Releases: saleor/app-sdk
0.20.1
Fixes build problem for app-bridge/next
0.20.0
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
- Add routing changing actions and RoutePropagator by @lkostrowski in #110
- Add REST APL by @lkostrowski in #115
0.19.0
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
- Remove variables from the env if are already existing in the upstash APL tests by @krzysztofwolski in #103
- Add functions to process the Saleor webhooks by @krzysztofwolski in #100
- Improve debug messages for async webhook handler by @krzysztofwolski in #105
subscriptionQueryAst
orquery
argument has to be specified for the event subscriptions by @krzysztofwolski in #107
Full Changelog: v0.18.0...v0.19.0
0.19.0-0
0.18.0
🚨 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
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