0.29.0
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
andformatErrorResponse
options toSaleorAsyncWebhook
for better error handling (see updated docs)
Removals
- Remove legacy
domain
usage. UsesaleorApiUrl
instead
Chore
- Install changesets for better changelogs and release process in the future
Full Changelog: v0.28.0...v0.29.0