From 3f35dd178d766c479d641452b0f6cad1a3fb22d8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 27 Sep 2024 09:13:15 +0000 Subject: [PATCH 1/2] Version Packages --- .changeset/light-starfishes-build.md | 11 ----------- CHANGELOG.md | 14 ++++++++++++++ package.json | 2 +- 3 files changed, 15 insertions(+), 12 deletions(-) delete mode 100644 .changeset/light-starfishes-build.md diff --git a/.changeset/light-starfishes-build.md b/.changeset/light-starfishes-build.md deleted file mode 100644 index 7e1a313..0000000 --- a/.changeset/light-starfishes-build.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@team-plain/typescript-sdk': major ---- - -Upgrade the SDK webhook parsing to support webhook version '2024-09-18'. - -### Breaking Changes -If your Plain webhook target is on the legacy/unversioned version, the SDK will no longer be able to parse the webhook payload. You must update your webhook target to '2024-09-18'. Refer to [our docs](https://www.plain.com/docs/api-reference/webhooks/versions) for more information and instructions on how to safely upgrade your webhook target. - -### Added -`verifyPlainWebhook` method to verify the webhook signature, with support for replay attack protection, and parse the webhook payload. Refer to the [README](./README.md) for usage instructions. diff --git a/CHANGELOG.md b/CHANGELOG.md index 6462b3a..2fc8702 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # @team-plain/typescript-sdk +## 5.0.0 + +### Major Changes + +- a51fc80: Upgrade the SDK webhook parsing to support webhook version '2024-09-18'. + + ### Breaking Changes + + If your Plain webhook target is on the legacy/unversioned version, the SDK will no longer be able to parse the webhook payload. You must update your webhook target to '2024-09-18'. Refer to [our docs](https://www.plain.com/docs/api-reference/webhooks/versions) for more information and instructions on how to safely upgrade your webhook target. + + ### Added + + `verifyPlainWebhook` method to verify the webhook signature, with support for replay attack protection, and parse the webhook payload. Refer to the [README](./README.md) for usage instructions. + ## 4.10.1 ### Patch Changes diff --git a/package.json b/package.json index 7ad4d8f..f1f2f18 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@team-plain/typescript-sdk", - "version": "4.10.1", + "version": "5.0.0", "description": "Typescript SDK for Plain's Core GraphQL API", "main": "dist/index.js", "module": "dist/index.mjs", From c2055d10bf2d96819f2e3a9ead61b2cb3777c1bd Mon Sep 17 00:00:00 2001 From: Mohamed Elghobaty Date: Fri, 27 Sep 2024 11:19:09 +0200 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2fc8702..7d7b486 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,13 +6,13 @@ - a51fc80: Upgrade the SDK webhook parsing to support webhook version '2024-09-18'. - ### Breaking Changes +#### Breaking Changes - If your Plain webhook target is on the legacy/unversioned version, the SDK will no longer be able to parse the webhook payload. You must update your webhook target to '2024-09-18'. Refer to [our docs](https://www.plain.com/docs/api-reference/webhooks/versions) for more information and instructions on how to safely upgrade your webhook target. +If your Plain webhook target is on the legacy/unversioned version, the SDK will no longer be able to parse the webhook payload. You must update your webhook target to '2024-09-18'. Refer to [our docs](https://www.plain.com/docs/api-reference/webhooks/versions) for more information and instructions on how to safely upgrade your webhook target. - ### Added +#### Added - `verifyPlainWebhook` method to verify the webhook signature, with support for replay attack protection, and parse the webhook payload. Refer to the [README](./README.md) for usage instructions. +`verifyPlainWebhook` method to verify the webhook signature, with support for replay attack protection, and parse the webhook payload. Refer to the [README](./README.md) for usage instructions. ## 4.10.1