Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
311 changes: 279 additions & 32 deletions discounts/javascript/discount/default/schema.graphql

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
api_version = "2025-04"
api_version = "2026-01"

[[extensions]]
name = "t:name"
Expand Down
2 changes: 1 addition & 1 deletion discounts/rust/discount/default/Cargo.toml.liquid
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ edition = "2021"

[dependencies]
serde_json = "1.0"
shopify_function = "0.8.1"
shopify_function = "2.0.2"
graphql_client = "0.14.0"

[dependencies.serde]
Expand Down
2 changes: 1 addition & 1 deletion discounts/rust/discount/default/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
You can build this individual function using `cargo build`.

```shell
cargo build --target=wasm32-wasip1 --release
cargo build --target=wasm32-unknown-unknown --release
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the new target to be used currently otherwise it wouldn't build on 2026-01. https://shopify.slack.com/archives/CLD1WMN03/p1762532329810509?thread_ts=1762531781.130489&cid=CLD1WMN03

```

The Shopify CLI `build` command will also execute this, based on the configuration in `shopify.extension.toml`.
Loading
Loading