Skip to content

Releases: saleor/app-sdk

v0.32.3

27 Feb 17:38
bea1e17
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.31.0...v0.32.3

0.31.0

27 Feb 13:38
Compare
Choose a tag to compare

createAppRegisterHandler now accepts hooks/callbacks

Common use case will be

  1. Perform any async operation before and after handler runs its built-in checks, like verification
  2. Perform initial app preparation, like seeding database with default data
  3. Perform additional checks and prevent installation if needed

See updated docs

  • Add hooks to createAppRegsiterHandler (#183) (195f2d9)

0.30.0

26 Feb 17:41
Compare
Choose a tag to compare

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

Docs

New Contributors

Full Changelog: v0.29.0...v0.30.0

0.29.0

15 Feb 10:40
Compare
Choose a tag to compare

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

0.29.0-1

15 Feb 10:09
Compare
Choose a tag to compare
0.29.0-1 Pre-release
Pre-release

0.29.0-0

14 Feb 15:21
Compare
Choose a tag to compare
0.29.0-0 Pre-release
Pre-release
  • Add better error handling for async webhook factory (#176) (ea65d37)
  • Expose verify-jwks and remove legacy domain usage instead of api url (#173) (6528331)
  • Add more debug messages to SaleorCloudAPL (#175) (a15d726)
  • Add strict type literal unions for Sync and Async Events enums (#174) (24778df)

0.28.0

07 Feb 10:52
Compare
Choose a tag to compare

Breaking

Remove inferWebhooks exports (@saleor/app-sdk/infer-webhooks)

Features

add user.permissions and user.emails to AppBridgeState

0.27.1

25 Jan 11:11
Compare
Choose a tag to compare
  • Permission check for the protected handler (#161) (bb3396d)
  • Allow setting initial theme from constructor in AppBridge (#162) (6ffaba2)

0.27.0

23 Jan 14:44
Compare
Choose a tag to compare

Breaking changes

  • Handle missing encryption key for the EncryptedMetadataManager (#159) (51284ef)

If encryptionKey argument is not passed to the EncryptedMetadataManager constructor, an error will be thrown.

Other

0.26.1

19 Jan 11:04
Compare
Choose a tag to compare

Add missing HANDLES_TAXES permission