diff --git a/.changeset/breezy-hotels-glow.md b/.changeset/breezy-hotels-glow.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/breezy-hotels-glow.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/chilly-cheetahs-taste.md b/.changeset/chilly-cheetahs-taste.md deleted file mode 100644 index 58dd51eeb..000000000 --- a/.changeset/chilly-cheetahs-taste.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -"@shopify/shopify-api": minor ---- - -Line Item Billing - -Now with the future flag `unstable_lineItemBilling` you can specify multiple line items in a single billing request. This will allow you to create a single billing request for a subscription with both recurring and usage based app billing. - -You will define the new billingConfig as follows. - -```ts -const shopify = shopifyApp({ -billing: { - "MultipleLineItems": { - replacementBehavior: BillingReplacementBehavior.ApplyImmediately, - trialDays: 7, - lineItems: [ - { - interval: BillingInterval.Usage, - amount: 30, - currencyCode: "USD", - terms: "per 1000 emails", - }, - { - interval: BillingInterval.Every30Days, - amount: 30, - currencyCode: "USD", - discount: { - durationLimitInIntervals: 3, - value: { - amount: 10, - }, - }, - }, - ], - }, - }, - futures: { - unstable_lineItemBilling: true, - } -}); -``` diff --git a/.changeset/chilly-masks-build.md b/.changeset/chilly-masks-build.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/chilly-masks-build.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/clean-countries-rush.md b/.changeset/clean-countries-rush.md deleted file mode 100644 index ac87f4ad9..000000000 --- a/.changeset/clean-countries-rush.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@shopify/storefront-api-client": minor -"@shopify/admin-api-client": minor -"@shopify/graphql-client": minor ---- - -Added the ability to automatically type GraphQL queries to the Storefront API when the files created by @shopify/api-codegen-preset are loaded for the app. diff --git a/.changeset/empty-houses-sparkle.md b/.changeset/empty-houses-sparkle.md deleted file mode 100644 index 49dbd650e..000000000 --- a/.changeset/empty-houses-sparkle.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@shopify/admin-api-client": minor -"@shopify/graphql-client": minor ---- - -Added the ability to automatically type GraphQL queries when the files created by @shopify/api-codegen-preset are loaded for the app. diff --git a/.changeset/fair-actors-pay.md b/.changeset/fair-actors-pay.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/fair-actors-pay.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/fifty-seals-promise.md b/.changeset/fifty-seals-promise.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/fifty-seals-promise.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/great-pugs-kick.md b/.changeset/great-pugs-kick.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/great-pugs-kick.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/healthy-pans-push.md b/.changeset/healthy-pans-push.md deleted file mode 100644 index 4434ea96a..000000000 --- a/.changeset/healthy-pans-push.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@shopify/shopify-api": minor ---- - -Introduce token exchange API for fetching access tokens. This feature is currently unstable and is hidden behind the `unstable_tokenExchange` future flag. diff --git a/.changeset/polite-donkeys-appear.md b/.changeset/polite-donkeys-appear.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/polite-donkeys-appear.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/popular-parents-notice.md b/.changeset/popular-parents-notice.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/popular-parents-notice.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/pretty-windows-train.md b/.changeset/pretty-windows-train.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/pretty-windows-train.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/quick-shirts-remain.md b/.changeset/quick-shirts-remain.md deleted file mode 100644 index 157b9e4b9..000000000 --- a/.changeset/quick-shirts-remain.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@shopify/graphql-client": minor ---- - -Rename `customHeaders` to `headers` in Api Client utils and types for readibility diff --git a/.changeset/swift-buckets-wait.md b/.changeset/swift-buckets-wait.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/swift-buckets-wait.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/tough-boats-end.md b/.changeset/tough-boats-end.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/tough-boats-end.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/tricky-sheep-itch.md b/.changeset/tricky-sheep-itch.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/tricky-sheep-itch.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/packages/admin-api-client/CHANGELOG.md b/packages/admin-api-client/CHANGELOG.md new file mode 100644 index 000000000..1f21ae1e7 --- /dev/null +++ b/packages/admin-api-client/CHANGELOG.md @@ -0,0 +1,15 @@ +# @shopify/admin-api-client + +## 0.1.0 + +### Minor Changes + +- ca89ef06: Added the ability to automatically type GraphQL queries to the Storefront API when the files created by @shopify/api-codegen-preset are loaded for the app. +- ef053fa5: Added the ability to automatically type GraphQL queries when the files created by @shopify/api-codegen-preset are loaded for the app. + +### Patch Changes + +- Updated dependencies [ca89ef06] +- Updated dependencies [ef053fa5] +- Updated dependencies [49d5966e] + - @shopify/graphql-client@0.8.0 diff --git a/packages/admin-api-client/package.json b/packages/admin-api-client/package.json index d292c93e4..7f1b51f4a 100644 --- a/packages/admin-api-client/package.json +++ b/packages/admin-api-client/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/admin-api-client", - "version": "0.0.1", + "version": "0.1.0", "description": "Shopify Admin API Client - A lightweight JS client to interact with Shopify's Admin API", "repository": { "type": "git", @@ -60,7 +60,7 @@ "dist/**/*.*" ], "dependencies": { - "@shopify/graphql-client": "^0.7.0" + "@shopify/graphql-client": "^0.8.0" }, "devDependencies": { "jest-environment-jsdom": "^29.5.0", diff --git a/packages/graphql-client/CHANGELOG.md b/packages/graphql-client/CHANGELOG.md index 6544d6e6b..bfebae6cf 100644 --- a/packages/graphql-client/CHANGELOG.md +++ b/packages/graphql-client/CHANGELOG.md @@ -1,5 +1,13 @@ # @shopify/graphql-client +## 0.8.0 + +### Minor Changes + +- ca89ef06: Added the ability to automatically type GraphQL queries to the Storefront API when the files created by @shopify/api-codegen-preset are loaded for the app. +- ef053fa5: Added the ability to automatically type GraphQL queries when the files created by @shopify/api-codegen-preset are loaded for the app. +- 49d5966e: Rename `customHeaders` to `headers` in Api Client utils and types for readibility + ## 0.7.0 ### Minor Changes diff --git a/packages/graphql-client/package.json b/packages/graphql-client/package.json index 63cf62121..08c349a65 100644 --- a/packages/graphql-client/package.json +++ b/packages/graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/graphql-client", - "version": "0.7.0", + "version": "0.8.0", "description": "Shopify GraphQL Client - A lightweight generic GraphQL JS client to interact with Shopify GraphQL APIs", "repository": { "type": "git", diff --git a/packages/shopify-api/CHANGELOG.md b/packages/shopify-api/CHANGELOG.md index c0d1ff677..43d474524 100644 --- a/packages/shopify-api/CHANGELOG.md +++ b/packages/shopify-api/CHANGELOG.md @@ -1,5 +1,50 @@ # Changelog +## 8.1.0 + +### Minor Changes + +- bf0664bb: Line Item Billing + + Now with the future flag `unstable_lineItemBilling` you can specify multiple line items in a single billing request. This will allow you to create a single billing request for a subscription with both recurring and usage based app billing. + + You will define the new billingConfig as follows. + + ```ts + const shopify = shopifyApp({ + billing: { + MultipleLineItems: { + replacementBehavior: BillingReplacementBehavior.ApplyImmediately, + trialDays: 7, + lineItems: [ + { + interval: BillingInterval.Usage, + amount: 30, + currencyCode: "USD", + terms: "per 1000 emails", + }, + { + interval: BillingInterval.Every30Days, + amount: 30, + currencyCode: "USD", + discount: { + durationLimitInIntervals: 3, + value: { + amount: 10, + }, + }, + }, + ], + }, + }, + futures: { + unstable_lineItemBilling: true, + }, + }); + ``` + +- eae5a4a8: Introduce token exchange API for fetching access tokens. This feature is currently unstable and is hidden behind the `unstable_tokenExchange` future flag. + ## 8.0.2 ### Patch Changes diff --git a/packages/shopify-api/lib/version.ts b/packages/shopify-api/lib/version.ts index 55dd705d2..8b7a1b150 100644 --- a/packages/shopify-api/lib/version.ts +++ b/packages/shopify-api/lib/version.ts @@ -1 +1 @@ -export const SHOPIFY_API_LIBRARY_VERSION = '8.0.2'; +export const SHOPIFY_API_LIBRARY_VERSION = '8.1.0'; diff --git a/packages/shopify-api/package.json b/packages/shopify-api/package.json index c27e472aa..f25eb8c23 100644 --- a/packages/shopify-api/package.json +++ b/packages/shopify-api/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/shopify-api", - "version": "8.0.2", + "version": "8.1.0", "description": "Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks", "main": "./lib/index.js", "types": "./lib/index.d.ts", diff --git a/packages/storefront-api-client/CHANGELOG.md b/packages/storefront-api-client/CHANGELOG.md index 40f7c517b..9b57f66ed 100644 --- a/packages/storefront-api-client/CHANGELOG.md +++ b/packages/storefront-api-client/CHANGELOG.md @@ -1,5 +1,18 @@ # @shopify/storefront-api-client +## 0.1.0 + +### Minor Changes + +- ca89ef06: Added the ability to automatically type GraphQL queries to the Storefront API when the files created by @shopify/api-codegen-preset are loaded for the app. + +### Patch Changes + +- Updated dependencies [ca89ef06] +- Updated dependencies [ef053fa5] +- Updated dependencies [49d5966e] + - @shopify/graphql-client@0.8.0 + ## 0.0.1 ### Patch Changes diff --git a/packages/storefront-api-client/package.json b/packages/storefront-api-client/package.json index 1b6c7622a..c871d958d 100644 --- a/packages/storefront-api-client/package.json +++ b/packages/storefront-api-client/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/storefront-api-client", - "version": "0.0.1", + "version": "0.1.0", "description": "Shopify Storefront API Client - A lightweight JS client to interact with Shopify's Storefront API", "repository": { "type": "git", @@ -83,7 +83,7 @@ "!node_modules" ], "dependencies": { - "@shopify/graphql-client": "^0.7.0" + "@shopify/graphql-client": "^0.8.0" }, "devDependencies": { "@babel/core": "^7.21.3",