Releases: saleor/app-sdk
Releases · saleor/app-sdk
v0.32.3
What's Changed
- Change AppBridge default autoNotifyReady to true by @lkostrowski in #185
Full Changelog: v0.31.0...v0.32.3
0.31.0
createAppRegisterHandler
now accepts hooks/callbacks
Common use case will be
- Perform any async operation before and after handler runs its built-in checks, like verification
- Perform initial app preparation, like seeding database with default data
- Perform additional checks and prevent installation if needed
See updated docs
0.30.0
What's Changed - breaking 🚨
VercelAPL
has been removed, and automatic deployment to Vercel will not work.
Use FileAPL
for local development and UpstashAPL
for easy and free multi-tenant setup.
Feel free to write your own APL instead
- Remove Vercel APL by @lkostrowski in #170
Docs
- Add note about protected handler by @lkostrowski in #182
- Docs: Import types from the right path by @HazemKhaled in #184
New Contributors
- @HazemKhaled made their first contribution in #184
Full Changelog: v0.29.0...v0.30.0
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
0.29.0-1
0.29.0-0
0.28.0
0.27.1
0.27.0
Breaking changes
If encryptionKey
argument is not passed to the EncryptedMetadataManager constructor, an error will be thrown.
Other
0.26.1
Add missing HANDLES_TAXES
permission