Skip to content

Releases: saleor/app-sdk

v0.47.0

06 Dec 14:09
ee07e79
Compare
Choose a tag to compare

Minor Changes

  • 09b9185: Added optional, experimental cacheManager property to CloudAPL constructor. By default it doesn't change any behavior
    and it's meant to be used for internal testing.

  • f49c63f: Added VercelKvApl. It will use Vercel KV Storage (using Upstash Redis under the hood).

    APL requires following env variables:

    KV_URL,KV_REST_API_URL,KV_REST_API_TOKEN,KV_REST_API_READ_ONLY_TOKEN - KV variables that are automatically linked by Vercel when KV is attached to the project.

    KV_STORAGE_NAMESPACE - a string identifier that should be unique per app. If more than one app writes with the same KV_STORAGE_NAMESPACE, Auth Data will be overwritten and apps can stop working.

    For now experimental - can be imported with:

    import { _experimental_VercelKvApl } from "@saleor/app-sdk/apl";
    

Patch Changes

  • 9a5c858: Added missing HTTP.METHOD attribute to APL calls
  • 6ddb7f4: Fixed bug where FileAPL.GET failed to read data when optional fields were not set (jwks, domain).
  • 828490b: Improved JSDoc for AppManifest.brand.logo, now it explains format and size of the image

v0.46.0

30 Nov 10:32
a3debcf
Compare
Choose a tag to compare

0.46.0

Minor Changes

  • ecef61d: Added OTEL spans around several app-sdk methods, like CloudApl and token verification methods.
  • 3c68c4c: Added definition for payment and transaction events. From now on, sync webhook factory will autocomplete response expected by Saleor
  • 3c68c4c: Added new permission - MANAGE_ORDERS_IMPORT - to Permission type
  • 3c68c4c: Added missing payment transactions sync events

v0.45.0

21 Nov 12:29
5634d6b
Compare
Choose a tag to compare

Minor Changes

  • d1c30dc: Changed behavior or Saleor Cloud APL - get method. Previously ANY error was catched and method returned "undefined". Now only 404-like errors will return "undefined" and error like 5xx, timeouts, wrong body, etc. will result with thrown error. This is technically a breaking change on function level, but in the end app will fail anyway - if APL is not found, it can't proceed. Now error is thrown earlier. It should help with debugging and better custom error handling.

Patch Changes

  • b5c4429: Fixed URLs to docs inline code and errors. Now they point to Saleor Docs website, instead local docs that were removed

v0.43.0

25 Jul 07:17
5c56cf5
Compare
Choose a tag to compare

Minor Changes

  • 1118ea9: Added new actions and events for dynamic permissions request.

    Now App can ask Dashboard to grant more permissions than originally assigned.

    Operation can be approved or rejected by the user.

    This feature is available in Saleor 3.15 and higher

v0.42.0

24 Jul 13:59
8eae161
Compare
Choose a tag to compare

Minor Changes

  • b8935a8: Added "appPermissions" field to AppBridgeState. Now, when app is mounted and handshake is complete, app will automatically extract permissions and save them.
  • b8935a8: Exposed "@saleor/app-sdk/headers" path. It contains helper methods: getSaleorHeaders and getBaseUrl

v0.41.1

13 Jul 08:53
2ddc7a3
Compare
Choose a tag to compare

Patch Changes

  • 4b7875a: Updated AsyncWebhookEventType enum.

v0.41.0

27 Jun 15:26
ec09ce9
Compare
Choose a tag to compare

Minor Changes

  • 86d963e: Added NextApiRequest to context of createManifestHandler. Now you can read native request to construct more specific manifest based on request params
  • b365c7c: Added saleorVersion and dashboardVersion fields to AppBridge state. They are optional - will be provided from 3.15.

v0.40.1

14 Jun 13:51
989810f
Compare
Choose a tag to compare

Patch Changes

  • 9fefd72: Fixed invalid ProtectedHandlerContext that didnt include new user field

v0.40.0

14 Jun 10:36
007d3a1
Compare
Choose a tag to compare

Minor Changes

  • 1d08329: Added "brand" field to Manifest type, that allows to provide app's logo URL. It will work from Saleor 3.15
  • 390fae2: Extended context argument in createProtectedHandler. Now it contains "user" object with email and permissions

v0.39.2

12 Jun 11:34
215a410
Compare
Choose a tag to compare

Patch Changes

  • 9056e76: Added definitions for new async events:

    • CHECKOUT_FULLY_PAID
    • GIFT_CARD_SENT