Skip to content

Releases: saleor/app-sdk

0.20.1

22 Nov 09:00
Compare
Choose a tag to compare

Fixes build problem for app-bridge/next

0.20.0

21 Nov 15:39
Compare
Choose a tag to compare

What's Changed

RoutePropagator

A React (Next.js specific) component that syncs app's route with Dashboard

// _app.tsx

import { RoutePropagator } from "@saleor/app-sdk/app-bridge/next";

export default function App() {
  // ...your code 

  return (
    <AppBridgeProvider appBridgeInstance={appBridgeInstance}>
      <GraphQLProvider>
        <ThemeProvider overrides={themeOverrides} ssr>
          <RoutePropagator /> {/* Add this 🚀 */}
          <Component {...pageProps} />
        </ThemeProvider>
      </GraphQLProvider>
    </AppBridgeProvider>
  );
}

RestAPL

Add new APL - for simple REST resources, learn more here

Full Changelog: v0.19.0...v0.20.0

0.20.0-0

21 Nov 11:54
Compare
Choose a tag to compare
0.20.0-0 Pre-release
Pre-release

0.19.0

05 Nov 09:44
Compare
Choose a tag to compare

Saleor Async Webhook 🚀

This release introduces SaleorAsyncWebhook, which helps writing webhooks triggered by Saleor events.
Working example is here

export const productUpdatedWebhook = new SaleorAsyncWebhook<ProductUpdatedWebhookPayloadFragment>({
  name: "Example product updated webhook",
  webhookPath: "api/webhooks/saleor/product-updated",
  asyncEvent: "PRODUCT_UPDATED",
  apl: saleorApp.apl,
  subscriptionQueryAst: ExampleProductUpdatedSubscription,
});

export default productUpdatedWebhook.createHandler((req, res, context) => {
  // your logic
})

What's Changed

Full Changelog: v0.18.0...v0.19.0

0.19.0-0

03 Nov 12:10
Compare
Choose a tag to compare
0.19.0-0 Pre-release
Pre-release
  • Add functions to process the Saleor webhooks (#100) (e439438)
  • Remove variables from the env if are already existing (#103) (6e389db)

0.18.0

26 Oct 10:53
Compare
Choose a tag to compare

🚨 Breaking change

This release removes root import path @saleor/app-sdk.
This is step to introduce monorepo with smaller packages and avoid bundling too many in single package.

This solves some issues when browser code breaks, because import includes Node only APIs

Migration

Migrate all imports from @saleor/app-sdk to nested paths, eg @saleor/app-sdk/types or @saleor/app-sdk/const

0.17.0

24 Oct 14:14
Compare
Choose a tag to compare

This release changes behavior of FileAPL.

If file with local config doesn't exist or can't be read:
before - thrown error
after - returns Promise<undefined>

effectively, new FileAPL().get() can be safely used, before app is installed

  • Change behavior when FileAPL reads file that doesnt exist to fallback value (#96) (ff49281)

0.16.0

18 Oct 14:06
Compare
Choose a tag to compare

0.15.0

17 Oct 10:10
Compare
Choose a tag to compare
  • Downgrade node-fetch to maintain compatibility with commonjs (#85) (8465582)
  • feat: add getLayout to return type of withAuthorization (#82) (d7ccde3)

0.14.1

12 Oct 14:00
Compare
Choose a tag to compare

Full Changelog: v0.13.2...v0.14.1