Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #394 +/- ##
=======================================
Coverage 83.81% 83.81%
=======================================
Files 107 107
Lines 3497 3497
Branches 588 588
=======================================
Hits 2931 2931
Misses 555 555
Partials 11 11 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
cfddaf0 to
90d1d61
Compare
01d71dc to
8d8e89a
Compare
3053ab2 to
e03623c
Compare
c9620e3 to
9bc95d0
Compare
5196512 to
67e0681
Compare
67e0681 to
522842f
Compare
522842f to
edde57b
Compare
kzuraw
approved these changes
Mar 20, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
@saleor/app-sdk@1.0.0
Major Changes
8dc8d4a: Changed publically exported paths. New exports will be documented in docs and migration guide
3dfb91c:
requiredEnvVarsparam was removed trom SaleorApp. Field was not used internally. Apps should validate it's envs.51caa77: Removed
/middlewares, you should use/handlersinstead.51caa77: Removed deprecated fields fields and methods in
/handlers:SaleorAsyncWebhookandSaleorSyncWebhook- removed deprecatedasyncEventandsubscriptionQueryAstprocessSaleorWebhookandprocessProtectedHandlermethods in favor ofSaleorSyncWebhook,SaleorAsyncWebhookclasses andcreateProtectedHandlerhandler/nextto/shareda915771: ### APL
isReadyandisConfiguredmethods are now optional in theAPLinterface@saleor/app-sdk/APL/*where*is one of the implementations. Now tree shaking is available126493d: Generating AppBridge action now uses native web API Crypto.
5b0f7a8: Removed
ctx.buildResponseparameter from SyncWebhookHandler ctx and replace with standalonebuildSyncWebhookResponsePayloadfunctionBefore
After
This change reduces complexity of TypeScript generics and make it easier to build abstractions on top of built-in handlers
3dfb91c: Saleor version that was previously represented as a floating number (eg Saleor 3.20 was represented as 3.2) is now a
SaleorSchemaVersionwhich is a tuplemajor: number, minor: number. This format is now passed to Manifest handler and webhooks handler8dc8d4a: Added new root exports: auth/browser and auth/node for token-related utilities
6875d17: MetadataManager now requires deleteMetadata to be defined
c956220: Breaking change: SDK will no longer check
saleor-domainheader when validating Saleor requests, instead it will checksaleor-api-urlheader.Minor Changes
4fa8271: Added handlers for Web API: Request and Response
Example
This example uses Next.js app router
To see more details check these examples:
51caa77: Added abstract
PlatformAdapterInterfaceandActionHandlerInterfaceto enable cross-framework handler implementations.Next.js handlers were rewritten to use the new interface.
5e4eb20: Add new exported path "util" with helper methods like parseSchemaVersion
Patch Changes
003b1ca: Added
authorandlicensefields topacakge.json003b1ca: Updated project license: it previously used BSD 3-Clause for code and Creative Commons Attribution 4.0 International License for artwork.
Since this project doesn't include any artwork, Creative Commons license was removed.
Updated
licensefield inpackage.json: It incorrectly statedISClicense instead ofBSD-3-Clause.8f6b437: Updated Typescript
0a917ac: Updated packages: vite, vitest, raw-body, prettier, tsup, jose
5fb68e6: Schema version passed to manifest handler will be string, not float
853abaa: Added AWS Lambda platform handlers
Check this example on how to use it.