# @saleor/app-sdk ## 0.42.0 ### 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 ## 0.41.1 ### Patch Changes - 4b7875a: Updated AsyncWebhookEventType enum. ## 0.41.0 ### 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. ## 0.40.1 ### Patch Changes - 9fefd72: Fixed invalid ProtectedHandlerContext that didnt include new user field ## 0.40.0 ### 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 ## 0.39.2 ### Patch Changes - 9056e76: Added definitions for new async events: - `CHECKOUT_FULLY_PAID` - `GIFT_CARD_SENT` ## 0.39.1 ### Patch Changes - 1783f47: Improved typings in metadata manager ## 0.39.0 ### 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](https://github.com/saleor/saleor-app-sdk/issues/222) 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. ## 0.38.0 ### 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 ## 0.37.4 ### Patch Changes - 7c6c164: Improved and fixed debug logs in createAppRegistedHandler - 11b793b: Changed import type from next/router, that fixes Next 13.3.1 build ## 0.37.3 ### 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