Skip to content

Releases: saleor/app-sdk

v0.39.1

24 May 08:35
5e393d0
Compare
Choose a tag to compare

0.39.1

Minor Changes

  • d4169dc: Added new method to SettingsManager - "delete". It can delete metadata by key in Saleor. Implemented in MetadataManager and EncryptedMetadataManager

Patch Changes

  • f809368: Added tokenRefresh event to AppBridge.

    It's meant to be triggered by dashboard, when token is refreshed.
    Apps that use new AppBridge will receive fresh token.

    This fixes this issue

    For Saleor Cloud where token lives for 24h it was rare, but Saleor can be set to have any token duration, causing app to fail fast.

  • 1783f47: Improved typings in metadata manager

v0.38.0

15 May 13:37
4e3bdda
Compare
Choose a tag to compare

Minor Changes

  • da351fa: Added JWT token expire date validation (claims.exp field). If token is expired, error will be thrown and verification will be aborted

Patch Changes

  • 62e4c39: Registed Handler now prints saleorApiUrl in error response, so its available in dashboard toast
  • 62e4c39: Wrapped useAuthenticatedFetch with useMemo to avoid re-renders
  • c777275: Fixed SaleorCloudAPL "getAll" method that was not mapping response from remote with AuthData interface
  • c777275: Added additional debug log if saleorApiUrl doesnt exist in register handler

v0.37.4

26 Apr 11:42
463fffb
Compare
Choose a tag to compare

Patch Changes

  • 7c6c164: Improved and fixed debug logs in createAppRegistedHandler
  • 11b793b: Changed import type from next/router, that fixes Next 13.3.1 build

v0.37.3

14 Apr 10:10
a7cad6a
Compare
Choose a tag to compare

Patch Changes

  • 5057d34: Support comma-delimited x-forwarded-proto

  • 5a68bec: Fix serialization of the nested values in the UpstashAPL.

  • ab24968: processProtectedHandler no longer requires a full NextApiRequest object as an argument. Now only the headers property is required to satisfy the type safety.

    Thanks to that, some requests like HTML

    with tokens in BODY can be validated. Till now only fetch/ajax calls could have been validated

v0.37.2

31 Mar 12:13
73c9545
Compare
Choose a tag to compare

Patch Changes

  • b108460: Added definitions for new sync events for payments:

    • TRANSACTION_CHARGE_REQUESTED
    • TRANSACTION_REFUND_REQUESTED
    • TRANSACTION_CANCELATION_REQUESTED
    • PAYMENT_GATEWAY_INITIALIZE_SESSION
    • TRANSACTION_INITIALIZE_SESSION
    • TRANSACTION_PROCESS_SESSION

v0.37.1

16 Mar 14:08
0deb0fa
Compare
Choose a tag to compare

0.37.1

Minor Changes

  • 6e748e3: Add author field to AppManifest

Patch Changes

  • 96ffb92: Restores MANAGE_APPS to Permissions, but remove it from AppPermissions

v0.36.0

14 Mar 13:16
b49e901
Compare
Choose a tag to compare

Minor Changes

  • 5744aa4: Add requiredSaleorVersion field to AppManifest, so Saleor can validate it during installation
  • dfd632b: Add EnvAPL which is a read-only single-tenant APL implementation. It can print AuthData from registration process, but the developer is responsible to configure ENV and pass data to the constructor. Docs
  • f7d38dc: Added useAuthenticatedFetch hook with can construct decorated window.fetch with pre-defined headers with required AppBridge state. Can be used with createProtectedHandler. Docs

Patch Changes

  • dfd632b: "domain" field in AuthData is no longer required. It will be set by registerHandler, but if missing, domain can be resolved from saleorApiUrl
  • dfd632b: JWKS field in AuthData is no longer required. registerHandler will try to set it for cache purposes, but not every time it is possible. If JWKS is not found, registerHandler will fetch it
  • f7d38dc: Remove MANAGE_APPS from possible permissions, because App should not have it. Mutations that requires MANAGE_APPS will not work with App Token even if permission is set

v0.34.1

07 Mar 11:31
c1913d9
Compare
Choose a tag to compare

Patch Changes

  • 75eff60: Exported SyncWebhookResponsesMap so it can be imported by app

v0.34.0

07 Mar 10:44
92ecc32
Compare
Choose a tag to compare

Minor Changes

  • 9420209: Add SaleorSyncWebhook class

    Now app-sdk support both new SaleorAsyncWebhook() and new SaleorSyncWebhook().

    Changes:

    Constructor field subscriptionQueryAst?: ASTNode in SaleorAsyncWebhook has been deprecated.

    Use query field instead (query: ASTNode | string)

    Constructor field asyncEvent has been deprecated. Use event instead

v0.33.0

28 Feb 13:02
bc6e68d
Compare
Choose a tag to compare

Minor Changes

  • a939281: Register handler hooks will now respond with errors parsable by the dashboard. "Body" in error was removed, so client code can provide message and status.

Patch Changes

  • 5a93a16: Fix typo in UpstashAPL docs