Skip to content

0.29.0

Compare
Choose a tag to compare
@lkostrowski lkostrowski released this 15 Feb 10:40
· 243 commits to main since this release

New features

Strict typed Webhook events

new SaleorAsyncWebhook(
  asyncEvent: "ORDER_CREATED" // is string literal now, not a "string"
)

Types can also be imported from app-sdk, but you can use an enum generated from graphQL schema by codegen too.

import { AsyncWebhookEventType, SyncWebhookEventType } from "@saleor/app-sdk/types";

Available JWKS verification

verify-jwks was internal logic used to check signature of incoming webhook request (in SaleorAsyncWebhook class).

Now, they can be used directly

import { verifySignatureWithJwks, verifySignatureFromApiUrl } from "@saleor/app-sdk/verify-signature";

Improvements

  • Debug messages in SaleorCloudAPL should be more exhaustive
  • Add onError and formatErrorResponse options to SaleorAsyncWebhook for better error handling (see updated docs)

Removals

  • Remove legacy domain usage. Use saleorApiUrl instead

Chore

  • Install changesets for better changelogs and release process in the future

Full Changelog: v0.28.0...v0.29.0