-
Notifications
You must be signed in to change notification settings - Fork 63
Update delivery customizations examples to use renamed targets #625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: update-function-templates-2025-07
Are you sure you want to change the base?
Update delivery customizations examples to use renamed targets #625
Conversation
@@ -16,7 +16,8 @@ | |||
"shopify": "shopify", | |||
"prisma": "prisma", | |||
"graphql-codegen": "graphql-codegen", | |||
"vite": "vite" | |||
"vite": "vite", | |||
"test": "vitest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added to simplify running the tests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You've missed the operation attribute name change in a few places. I think you need to update the checkout/wasm/schema.graphql
file too... though not entirely sure what that template is for.
Otherwise looks good
sample-apps/delivery-customizations/extensions/delivery-customization-js/src/run.js
Show resolved
Hide resolved
94b53fa
to
c1f705e
Compare
c1f705e
to
418d310
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What I see here looks good.
Approving, but either here or as a followup PR we'll need to update the export name and GraphQL schema file name as per #623
Part of the ongoing project to rationalise the function API
gsd#44156 | doc | style guide | slack
This PR updates the Delivery Customizations templates and examples
Specifically:
shopify app function schema
)purchase.delivery-customization.run
->cart.delivery-options.transform.run
FunctionRunResult
->CartDeliveryOptionsTransformRunResult
RenameOperation
->DeliveryOptionRenameOperation
2025-07
Testing the changes:
yarn test
is JS dirscargo test
in Rust dirsJS example:

Rust eample
