@shopify/shopify-api@13.1.0
Minor Changes
- 9264a64: Add REST resources for API version 2026-04
- e4db082: Add
webhookId(shopify-webhook-id) as a required field on Events webhooks. This is the true idempotency key for webhook deliveries. Previously, onlyeventIdwas extracted for Events webhooks and was used as a fallback forwebhookIdin downstream packages. This is no longer true. Both fields now coexist and represent distinct values.
Patch Changes
-
e510582: Updated
@graphql-codegen/introspection,@graphql-codegen/typescript,isbotdependencies -
832fad0: Updated
isbotdependencies -
6c95ae1: Use a cookie-specific derived key when signing OAuth state and session cookies instead of signing them directly with the app API secret. This prevents signed OAuth state cookies from being reused as valid Shopify webhook HMACs. OAuth state values are also now generated with 32 random bytes encoded as hex.
Token-exchange-only flows that do not use signed OAuth/session cookies are not affected.
-
7ec655a: Fix TypeScript type errors for consumers using ES2024+ lib targets
Widen
ArrayBufferparameter types toArrayBuffer | Uint8Arrayin crypto
utilities and safe-compare, fixing TS2345 errors introduced by TypeScript 5.7's
genericUint8Array<ArrayBuffer>type.