Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .changeset/template-republish.md

This file was deleted.

12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @passmint/node

## 0.7.0

### Minor Changes

- bc7ce7e: Add `templates.republish()` and `templates.retrieveRepublish()` to push a template's current design to passes already issued from it, plus the `TemplateRepublish` and `TemplateRepublishedEvent` types. Existing call shapes are unchanged.

- `templates.republish(id)` sends an `Idempotency-Key` (override with `{ idempotencyKey }`). A 429 `republish_in_progress` throws `PassmintRateLimitError` immediately; the SDK never auto-retries 429s, and this one can last minutes.
- New `template.republished` event type. `PassmintEventType` and `Event['type']` gain it, so exhaustive `switch`es over event types will flag the new case. `PASSMINT_EVENT_TYPES` gains an entry at runtime: code that subscribes with `[...PASSMINT_EVENT_TYPES]` will now receive it. It carries `data.object.template_republish` and no `pass`, so narrow with `event.type === 'template.republished'` and use `TemplateRepublishedEvent`.
- `template.republished` is only delivered to endpoints subscribed to it by name, never to `"*"`, so existing wildcard handlers that read `data.object.pass` keep working.
- `PassDelivery` gains optional `apple.retrying` and `google.retrying`, set when a failed push was queued for automatic retry.
- Server behaviour: `pass.update_failed` now fires only for permanent failures or once retries are exhausted, not for the first transient failure.

## 0.6.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@passmint/node",
"version": "0.6.0",
"version": "0.7.0",
"description": "Official Node.js SDK for the Passmint API.",
"type": "module",
"packageManager": "pnpm@9.15.0",
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
// Generated by scripts/sync-version.mjs — do not edit by hand.
export const VERSION = '0.6.0'
export const VERSION = '0.7.0'
Loading