diff --git a/.changeset/afraid-wasps-visit.md b/.changeset/afraid-wasps-visit.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/afraid-wasps-visit.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/angry-lies-smile.md b/.changeset/angry-lies-smile.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/angry-lies-smile.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/beige-pots-matter.md b/.changeset/beige-pots-matter.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/beige-pots-matter.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/brown-gifts-pay.md b/.changeset/brown-gifts-pay.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/brown-gifts-pay.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/curly-pandas-stare.md b/.changeset/curly-pandas-stare.md deleted file mode 100644 index 13ad60743..000000000 --- a/.changeset/curly-pandas-stare.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@shopify/admin-api-client": patch ---- - -Fixed an issue with the `require` path being incorrect in package.json. diff --git a/.changeset/dull-students-sleep.md b/.changeset/dull-students-sleep.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/dull-students-sleep.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/fast-jokes-protect.md b/.changeset/fast-jokes-protect.md deleted file mode 100644 index 6650179bd..000000000 --- a/.changeset/fast-jokes-protect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@shopify/shopify-api": minor ---- - -Allow access tokens to be marked as expired before actual expiry. diff --git a/.changeset/fifty-buckets-love.md b/.changeset/fifty-buckets-love.md deleted file mode 100644 index f4c1404d0..000000000 --- a/.changeset/fifty-buckets-love.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -"@shopify/shopify-api": minor -"@shopify/storefront-api-client": patch -"@shopify/admin-api-client": patch -"@shopify/graphql-client": patch ---- - -Use the new GraphQL API clients in shopify-api to use all of the latest features, including automatic types for query / mutation return object and variables. - -For more information and examples, see the [migration guide to v9](https://github.com/Shopify/shopify-api-js/blob/main/packages/shopify-api/docs/migrating-to-v9.md#using-the-new-clients). diff --git a/.changeset/gentle-books-dress.md b/.changeset/gentle-books-dress.md deleted file mode 100644 index f15db3261..000000000 --- a/.changeset/gentle-books-dress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@shopify/graphql-client": patch ---- - -Fix `ResponseWithType` to correctly type the `json` return value diff --git a/.changeset/healthy-balloons-eat.md b/.changeset/healthy-balloons-eat.md deleted file mode 100644 index 9a4aea6ac..000000000 --- a/.changeset/healthy-balloons-eat.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@shopify/storefront-api-client": minor -"@shopify/admin-api-client": minor -"@shopify/graphql-client": minor ---- - -Export a REST API client from `admin-api-client`, with an API that is similar to the GraphQL client. diff --git a/.changeset/heavy-islands-study.md b/.changeset/heavy-islands-study.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/heavy-islands-study.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/nasty-swans-try.md b/.changeset/nasty-swans-try.md deleted file mode 100644 index 50e8523d6..000000000 --- a/.changeset/nasty-swans-try.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@shopify/storefront-api-client": minor -"@shopify/admin-api-client": minor -"@shopify/graphql-client": minor -"@shopify/shopify-api": minor ---- - -Updated shopify-api GraphQL clients' APIs to be closer to the underlying clients diff --git a/.changeset/old-horses-change.md b/.changeset/old-horses-change.md deleted file mode 100644 index 5e38760e3..000000000 --- a/.changeset/old-horses-change.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@shopify/shopify-api": minor ---- - -Underpinned the new REST client from `admin-api-client` into `shopify-api`, so apps can access it as a standalone client as well. diff --git a/.changeset/polite-chairs-peel.md b/.changeset/polite-chairs-peel.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/polite-chairs-peel.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/popular-flowers-hear.md b/.changeset/popular-flowers-hear.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/popular-flowers-hear.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/purple-bears-end.md b/.changeset/purple-bears-end.md deleted file mode 100644 index d34c8b8d0..000000000 --- a/.changeset/purple-bears-end.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@shopify/storefront-api-client": minor -"@shopify/admin-api-client": minor -"@shopify/graphql-client": minor ---- - -Add the raw network response object to `ResponseErrors` diff --git a/.changeset/real-icons-relax.md b/.changeset/real-icons-relax.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/real-icons-relax.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/real-rice-juggle.md b/.changeset/real-rice-juggle.md deleted file mode 100644 index b4cd3760e..000000000 --- a/.changeset/real-rice-juggle.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@shopify/storefront-api-client": minor -"@shopify/admin-api-client": minor -"@shopify/graphql-client": minor ---- - -Update api version validation error, generic error messages and client types diff --git a/.changeset/rich-ladybugs-own.md b/.changeset/rich-ladybugs-own.md deleted file mode 100644 index 64c46eae8..000000000 --- a/.changeset/rich-ladybugs-own.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@shopify/shopify-api": major ---- - -> [!NOTE] -> This change only affects apps that are using custom runtime adapters. -> If you're using a default adapter from this package, you don't need to make this change. - -Changed `setAbstractFetchFunc` to accept a `fetch` API instead of one based on `NormalizedRequest` and `NormalizedResponse`. - -With this change, we can return a `Response` object for requests with the upcoming clients, which can help make the interface for requests more familiar to users. - -For more information and examples, see the [migration guide to v9](https://github.com/Shopify/shopify-api-js/blob/main/packages/shopify-api/docs/migrating-to-v9.md#changes-to-runtime-adapters). diff --git a/.changeset/sharp-coats-argue.md b/.changeset/sharp-coats-argue.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/sharp-coats-argue.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/soft-icons-chew.md b/.changeset/soft-icons-chew.md deleted file mode 100644 index bf7d03d2e..000000000 --- a/.changeset/soft-icons-chew.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@shopify/shopify-api": minor ---- - -Added support for the 2024-01 API version. diff --git a/.changeset/soft-llamas-rush.md b/.changeset/soft-llamas-rush.md deleted file mode 100644 index 44c2387b5..000000000 --- a/.changeset/soft-llamas-rush.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@shopify/storefront-api-client": minor -"@shopify/admin-api-client": minor -"@shopify/graphql-client": minor ---- - -Update `UNSUPPORTED_API_VERSION` log type to `Unsupported_Api_Version` for consistent log type format diff --git a/.changeset/spotty-pens-do.md b/.changeset/spotty-pens-do.md deleted file mode 100644 index 5ae25f590..000000000 --- a/.changeset/spotty-pens-do.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@shopify/graphql-client": patch ---- - -Update `ResponseWithType` type to extend from the `Response` type diff --git a/.changeset/thirty-papayas-visit.md b/.changeset/thirty-papayas-visit.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/thirty-papayas-visit.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/wise-dodos-double.md b/.changeset/wise-dodos-double.md deleted file mode 100644 index 3484d13b6..000000000 --- a/.changeset/wise-dodos-double.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"@shopify/shopify-api": major ---- - -Rephrased `gdprTopics` to `privacyTopics` to account for other privacy regulations with data subject requests. - -This changes the name of the exported object. -You can fix this by changing your `import` statements: - -Before: - -```ts -import {gdprTopics} from '@shopify/shopify-api'; -``` - -After: - -```ts -import {privacyTopics} from '@shopify/shopify-api'; -``` diff --git a/.changeset/witty-turtles-wonder.md b/.changeset/witty-turtles-wonder.md deleted file mode 100644 index a845151cc..000000000 --- a/.changeset/witty-turtles-wonder.md +++ /dev/null @@ -1,2 +0,0 @@ ---- ---- diff --git a/.changeset/young-news-fail.md b/.changeset/young-news-fail.md deleted file mode 100644 index d87773648..000000000 --- a/.changeset/young-news-fail.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@shopify/shopify-api": minor ---- - -Add helpers to convert between shop admin URLs and legacy URLs. `sanitizeShop` utility method can now support shop admin URLs. diff --git a/packages/admin-api-client/CHANGELOG.md b/packages/admin-api-client/CHANGELOG.md index 1f21ae1e7..d69a1c0c9 100644 --- a/packages/admin-api-client/CHANGELOG.md +++ b/packages/admin-api-client/CHANGELOG.md @@ -1,5 +1,32 @@ # @shopify/admin-api-client +## 0.2.0 + +### Minor Changes + +- 0286e7fe: Export a REST API client from `admin-api-client`, with an API that is similar to the GraphQL client. +- 18781092: Updated shopify-api GraphQL clients' APIs to be closer to the underlying clients +- 2b9e06f6: Add the raw network response object to `ResponseErrors` +- 194ddcf2: Update api version validation error, generic error messages and client types +- c9622cd7: Update `UNSUPPORTED_API_VERSION` log type to `Unsupported_Api_Version` for consistent log type format + +### Patch Changes + +- 88858305: Fixed an issue with the `require` path being incorrect in package.json. +- 218f4521: Use the new GraphQL API clients in shopify-api to use all of the latest features, including automatic types for query / mutation return object and variables. + + For more information and examples, see the [migration guide to v9](https://github.com/Shopify/shopify-api-js/blob/main/packages/shopify-api/docs/migrating-to-v9.md#using-the-new-clients). + +- Updated dependencies [218f4521] +- Updated dependencies [49952d66] +- Updated dependencies [0286e7fe] +- Updated dependencies [18781092] +- Updated dependencies [2b9e06f6] +- Updated dependencies [194ddcf2] +- Updated dependencies [c9622cd7] +- Updated dependencies [82ee942e] + - @shopify/graphql-client@0.9.0 + ## 0.1.0 ### Minor Changes diff --git a/packages/admin-api-client/package.json b/packages/admin-api-client/package.json index f659db067..dcb19a407 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.1.0", + "version": "0.2.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.8.0" + "@shopify/graphql-client": "^0.9.0" }, "devDependencies": { "jest-environment-jsdom": "^29.5.0", diff --git a/packages/graphql-client/CHANGELOG.md b/packages/graphql-client/CHANGELOG.md index bfebae6cf..a1601ceb9 100644 --- a/packages/graphql-client/CHANGELOG.md +++ b/packages/graphql-client/CHANGELOG.md @@ -1,5 +1,24 @@ # @shopify/graphql-client +## 0.9.0 + +### Minor Changes + +- 0286e7fe: Export a REST API client from `admin-api-client`, with an API that is similar to the GraphQL client. +- 18781092: Updated shopify-api GraphQL clients' APIs to be closer to the underlying clients +- 2b9e06f6: Add the raw network response object to `ResponseErrors` +- 194ddcf2: Update api version validation error, generic error messages and client types +- c9622cd7: Update `UNSUPPORTED_API_VERSION` log type to `Unsupported_Api_Version` for consistent log type format + +### Patch Changes + +- 218f4521: Use the new GraphQL API clients in shopify-api to use all of the latest features, including automatic types for query / mutation return object and variables. + + For more information and examples, see the [migration guide to v9](https://github.com/Shopify/shopify-api-js/blob/main/packages/shopify-api/docs/migrating-to-v9.md#using-the-new-clients). + +- 49952d66: Fix `ResponseWithType` to correctly type the `json` return value +- 82ee942e: Update `ResponseWithType` type to extend from the `Response` type + ## 0.8.0 ### Minor Changes diff --git a/packages/graphql-client/package.json b/packages/graphql-client/package.json index 38511f9c4..14e295110 100644 --- a/packages/graphql-client/package.json +++ b/packages/graphql-client/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/graphql-client", - "version": "0.8.0", + "version": "0.9.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 3cd9c9f5a..9494c8182 100644 --- a/packages/shopify-api/CHANGELOG.md +++ b/packages/shopify-api/CHANGELOG.md @@ -1,5 +1,62 @@ # Changelog +## 9.0.0 + +### Major Changes + +- 64f61414: + + > [!NOTE] + > This change only affects apps that are using custom runtime adapters. + > If you're using a default adapter from this package, you don't need to make this change. + + Changed `setAbstractFetchFunc` to accept a `fetch` API instead of one based on `NormalizedRequest` and `NormalizedResponse`. + + With this change, we can return a `Response` object for requests with the upcoming clients, which can help make the interface for requests more familiar to users. + + For more information and examples, see the [migration guide to v9](https://github.com/Shopify/shopify-api-js/blob/main/packages/shopify-api/docs/migrating-to-v9.md#changes-to-runtime-adapters). + +- 7bd4be08: Rephrased `gdprTopics` to `privacyTopics` to account for other privacy regulations with data subject requests. + + This changes the name of the exported object. + You can fix this by changing your `import` statements: + + Before: + + ```ts + import { gdprTopics } from "@shopify/shopify-api"; + ``` + + After: + + ```ts + import { privacyTopics } from "@shopify/shopify-api"; + ``` + +### Minor Changes + +- 83b15905: Allow access tokens to be marked as expired before actual expiry. +- 218f4521: Use the new GraphQL API clients in shopify-api to use all of the latest features, including automatic types for query / mutation return object and variables. + + For more information and examples, see the [migration guide to v9](https://github.com/Shopify/shopify-api-js/blob/main/packages/shopify-api/docs/migrating-to-v9.md#using-the-new-clients). + +- 18781092: Updated shopify-api GraphQL clients' APIs to be closer to the underlying clients +- 4dd7612d: Underpinned the new REST client from `admin-api-client` into `shopify-api`, so apps can access it as a standalone client as well. +- 5e85e15b: Added support for the 2024-01 API version. +- 64cda80a: Add helpers to convert between shop admin URLs and legacy URLs. `sanitizeShop` utility method can now support shop admin URLs. + +### Patch Changes + +- Updated dependencies [88858305] +- Updated dependencies [218f4521] +- Updated dependencies [0286e7fe] +- Updated dependencies [18781092] +- Updated dependencies [2b9e06f6] +- Updated dependencies [194ddcf2] +- Updated dependencies [c9622cd7] + - @shopify/admin-api-client@0.2.0 + - @shopify/storefront-api-client@0.2.0 + ## 8.1.1 ### Patch Changes diff --git a/packages/shopify-api/lib/version.ts b/packages/shopify-api/lib/version.ts index 9e314d771..17b640df8 100644 --- a/packages/shopify-api/lib/version.ts +++ b/packages/shopify-api/lib/version.ts @@ -1 +1 @@ -export const SHOPIFY_API_LIBRARY_VERSION = '8.1.1'; +export const SHOPIFY_API_LIBRARY_VERSION = '9.0.0'; diff --git a/packages/shopify-api/package.json b/packages/shopify-api/package.json index 0fbf5e5a5..33e271dae 100644 --- a/packages/shopify-api/package.json +++ b/packages/shopify-api/package.json @@ -1,6 +1,6 @@ { "name": "@shopify/shopify-api", - "version": "8.1.1", + "version": "9.0.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", @@ -70,9 +70,9 @@ "node-fetch": "^2.6.7" }, "dependencies": { - "@shopify/admin-api-client": "^0.1.0", + "@shopify/admin-api-client": "^0.2.0", "@shopify/network": "^3.2.1", - "@shopify/storefront-api-client": "^0.1.0", + "@shopify/storefront-api-client": "^0.2.0", "compare-versions": "^5.0.3", "isbot": "^3.6.10", "jose": "^4.9.1", diff --git a/packages/storefront-api-client/CHANGELOG.md b/packages/storefront-api-client/CHANGELOG.md index 955111993..8ba7e669f 100644 --- a/packages/storefront-api-client/CHANGELOG.md +++ b/packages/storefront-api-client/CHANGELOG.md @@ -1,5 +1,31 @@ # @shopify/storefront-api-client +## 0.2.0 + +### Minor Changes + +- 0286e7fe: Export a REST API client from `admin-api-client`, with an API that is similar to the GraphQL client. +- 18781092: Updated shopify-api GraphQL clients' APIs to be closer to the underlying clients +- 2b9e06f6: Add the raw network response object to `ResponseErrors` +- 194ddcf2: Update api version validation error, generic error messages and client types +- c9622cd7: Update `UNSUPPORTED_API_VERSION` log type to `Unsupported_Api_Version` for consistent log type format + +### Patch Changes + +- 218f4521: Use the new GraphQL API clients in shopify-api to use all of the latest features, including automatic types for query / mutation return object and variables. + + For more information and examples, see the [migration guide to v9](https://github.com/Shopify/shopify-api-js/blob/main/packages/shopify-api/docs/migrating-to-v9.md#using-the-new-clients). + +- Updated dependencies [218f4521] +- Updated dependencies [49952d66] +- Updated dependencies [0286e7fe] +- Updated dependencies [18781092] +- Updated dependencies [2b9e06f6] +- Updated dependencies [194ddcf2] +- Updated dependencies [c9622cd7] +- Updated dependencies [82ee942e] + - @shopify/graphql-client@0.9.0 + ## 0.1.1 ### Patch Changes diff --git a/packages/storefront-api-client/package.json b/packages/storefront-api-client/package.json index 5bc88b3f3..6c24398b5 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.1.1", + "version": "0.2.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.8.0" + "@shopify/graphql-client": "^0.9.0" }, "devDependencies": { "jest-environment-jsdom": "^29.5.0"