diff --git a/.changeset/document-card-filters.md b/.changeset/document-card-filters.md deleted file mode 100644 index 6117a42..0000000 --- a/.changeset/document-card-filters.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"pdfmonkey": minor ---- - -Adding the `search` filter to `documentCards.list()` (exact document ID or partial filename) and letting `status` take several statuses. Query values now accept arrays, sent as `key[]=a&key[]=b`. Documenting the accepted `folders` and `sort` values on `documentTemplates.list()`. - -Fixing `workspaceCards.update()` to send `PUT` instead of `PATCH`, matching the API and the other update endpoints. Removing the `'error'` value from `DocumentStatus`: the API never returns it. diff --git a/.changeset/wait-for-generation-deadline.md b/.changeset/wait-for-generation-deadline.md deleted file mode 100644 index 8343354..0000000 --- a/.changeset/wait-for-generation-deadline.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"pdfmonkey": patch ---- - -Fixing `documents.waitForGeneration()` so its `timeout` is a true total budget: in-flight polls and their retries are now aborted when it expires, instead of resolving with a late success or reporting the timeout only after a slow response came back. diff --git a/.changeset/webhook-payloads.md b/.changeset/webhook-payloads.md deleted file mode 100644 index b829d41..0000000 --- a/.changeset/webhook-payloads.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"pdfmonkey": minor ---- - -Fixing `verifyWebhook()`, which rejected every real PDFMonkey webhook: it expected a `{ type, data, timestamp }` envelope the API never sends. It now returns the delivered body as a `WebhookPayload`, either `{ document }` (the document card, for `documents.generation.success`/`failure`) or the `quota.warning` usage figures. Narrow with `'document' in payload` and check `payload.document.status`. Removing the `WebhookEvent`, `WebhookEventType`, `DocumentDoneEvent`, `DocumentErrorEvent`, their `*Data` types and `UnknownWebhookEvent`. diff --git a/CHANGELOG.md b/CHANGELOG.md index d37f584..45c6765 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,16 @@ # pdfmonkey -## Unreleased +## 1.4.0 ### Minor Changes -- Adding the `search` filter to `documentCards.list()` (exact document ID or partial filename) and letting `status` take several statuses. Query values now accept arrays, sent as `key[]=a&key[]=b`. Documenting the accepted `folders` and `sort` values on `documentTemplates.list()`. -- Fixing `verifyWebhook()`, which rejected every real PDFMonkey webhook: it expected a `{ type, data, timestamp }` envelope the API never sends. It now returns the delivered body as a `WebhookPayload`, either `{ document }` (the document card, for `documents.generation.success`/`failure`) or the `quota.warning` usage figures. Narrow with `'document' in payload` and check `payload.document.status`. Removing the `WebhookEvent`, `WebhookEventType`, `DocumentDoneEvent`, `DocumentErrorEvent`, their `*Data` types and `UnknownWebhookEvent`. +- dfafa9f: Adding the `search` filter to `documentCards.list()` (exact document ID or partial filename) and letting `status` take several statuses. Query values now accept arrays, sent as `key[]=a&key[]=b`. Documenting the accepted `folders` and `sort` values on `documentTemplates.list()`. + + Fixing `workspaceCards.update()` to send `PUT` instead of `PATCH`, matching the API and the other update endpoints. Removing the `'error'` value from `DocumentStatus`: the API never returns it. +- af5932f: Fixing `verifyWebhook()`, which rejected every real PDFMonkey webhook: it expected a `{ type, data, timestamp }` envelope the API never sends. It now returns the delivered body as a `WebhookPayload`, either `{ document }` (the document card, for `documents.generation.success`/`failure`) or the `quota.warning` usage figures. Narrow with `'document' in payload` and check `payload.document.status`. Removing the `WebhookEvent`, `WebhookEventType`, `DocumentDoneEvent`, `DocumentErrorEvent`, their `*Data` types and `UnknownWebhookEvent`. ### Patch Changes -- Fixing `workspaceCards.update()` to send `PUT` instead of `PATCH`, matching the API and the other update endpoints. Removing the `'error'` value from `DocumentStatus`: the API never returns it. - ad9d7cd: Fixing `documents.waitForGeneration()` so its `timeout` is a true total budget: in-flight polls and their retries are now aborted when it expires, instead of resolving with a late success or reporting the timeout only after a slow response came back. ## 1.3.0 diff --git a/package.json b/package.json index bcee549..3bd6568 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pdfmonkey", - "version": "1.3.0", + "version": "1.4.0", "description": "Official PDFMonkey Node.js SDK — generate PDFs from HTML/CSS templates", "author": "PDFMonkey (https://www.pdfmonkey.io)", "homepage": "https://github.com/pdfmonkey/pdfmonkey-node#readme",