diff --git a/.changeset/pre.json b/.changeset/pre.json index 19d34ab8c0f..4658d0ccc21 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -63,6 +63,7 @@ "four-toes-serve", "fresh-moose-hope", "fresh-swans-remain", + "friendly-news-drive", "friendly-olives-refuse", "friendly-walls-think", "funny-boats-wink", @@ -110,6 +111,7 @@ "late-bottles-add", "late-trainers-peel", "lazy-baboons-rescue", + "lemon-carrots-breathe", "lemon-pans-sit", "light-apes-rescue", "light-dolphins-taste", @@ -127,6 +129,7 @@ "mean-beans-agree", "mean-lizards-think", "metal-needles-search", + "mighty-buckets-hide", "mighty-carrots-bathe", "mighty-jobs-drum", "mighty-penguins-wink", @@ -154,6 +157,7 @@ "perfect-vans-give", "pink-ladybugs-cough", "plenty-deers-clean", + "plenty-flies-relate", "polite-bees-care", "poor-eels-punch", "poor-spiders-hunt", @@ -162,6 +166,7 @@ "proud-walls-shave", "purple-balloons-accept", "purple-bears-flash", + "purple-eyes-divide", "purple-lions-cough", "rare-apes-drive", "rare-dingos-doubt", @@ -186,6 +191,7 @@ "shaggy-pugs-add", "shaggy-singers-tickle", "sharp-glasses-sneeze", + "sharp-lemons-bathe", "shiny-carrots-invent", "short-jokes-jam", "short-months-complain", @@ -221,6 +227,7 @@ "sour-guests-poke", "sour-kids-deliver", "sour-pillows-guess", + "sour-wombats-shout", "spotty-days-compete", "spotty-mugs-poke", "stale-games-live", @@ -244,10 +251,12 @@ "thirty-pens-jump", "tidy-pandas-punch", "tidy-squids-poke", + "tough-hairs-develop", "tough-olives-fry", "tough-rockets-allow", "tough-taxis-smoke", "tough-tips-drop", + "tricky-glasses-reply", "tricky-tables-shave", "twelve-mangos-dance", "twenty-numbers-perform", diff --git a/CHANGELOG.md b/CHANGELOG.md index 9343854e58c..9ca3b87feac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,29 @@ # @apollo/client +## 4.0.0-rc.8 + +### Major Changes + +- [#12825](https://github.com/apollographql/apollo-client/pull/12825) [`292b949`](https://github.com/apollographql/apollo-client/commit/292b949e9e1d10a715e0fd403737361f91432fbf) Thanks [@jerelmiller](https://github.com/jerelmiller)! - The `serializeFetchParameter` helper is no longer exported and `JSON.stringify` is used directly. As such, the `ClientParseError` type has also been removed in favor of throwing any JSON serialize errors directly. + +- [#12824](https://github.com/apollographql/apollo-client/pull/12824) [`0506f12`](https://github.com/apollographql/apollo-client/commit/0506f12936d3fe7c840e5d56a5efa20bbce1525e) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Ensure the `error` argument for the `delay` and `attempts` functions on `RetryLink` are an `ErrorLike`. + +- [#12823](https://github.com/apollographql/apollo-client/pull/12823) [`19e315e`](https://github.com/apollographql/apollo-client/commit/19e315e316ae458913f4d11961b0a2a365df0a19) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Move all 1st party link types into a namespace. + +- [#12823](https://github.com/apollographql/apollo-client/pull/12823) [`19e315e`](https://github.com/apollographql/apollo-client/commit/19e315e316ae458913f4d11961b0a2a365df0a19) Thanks [@jerelmiller](https://github.com/jerelmiller)! - The `OperationBatcher` class is no longer exported from `@apollo/client/link/batch`. It is an implementation detail of `BatchLink` and should not be relied on directly. + +### Patch Changes + +- [#12824](https://github.com/apollographql/apollo-client/pull/12824) [`0506f12`](https://github.com/apollographql/apollo-client/commit/0506f12936d3fe7c840e5d56a5efa20bbce1525e) Thanks [@jerelmiller](https://github.com/jerelmiller)! - `RetryLink` now emits a `next` event instead of an `error` event when encountering a protocol errors for multipart subscriptions when the operation is not retried. This ensures the observable notification remains the same as when `RetryLink` is not used. + +- [#12819](https://github.com/apollographql/apollo-client/pull/12819) [`7ff548d`](https://github.com/apollographql/apollo-client/commit/7ff548dab0f38bfe315fce6cc51105c93d112271) Thanks [@jerelmiller](https://github.com/jerelmiller)! - update type of `HttpLink.Options.fetchOptions` to `RequestInit` + +- [#12820](https://github.com/apollographql/apollo-client/pull/12820) [`fba3d9e`](https://github.com/apollographql/apollo-client/commit/fba3d9ec96cce9f1a89908e4f33361e27d1f52b4) Thanks [@jerelmiller](https://github.com/jerelmiller)! - The `fetchOptions` option provided to `HttpLink` and `BatchHttpLink` is now `RequestInit` instead of `any`. The `credentials` option is now a `RequestCredentials` type instead of a `string`. + +- [#12823](https://github.com/apollographql/apollo-client/pull/12823) [`19e315e`](https://github.com/apollographql/apollo-client/commit/19e315e316ae458913f4d11961b0a2a365df0a19) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Fix the type of the argument for the `sha256` function for `PersistedQueryLink` from `...any[]` to `string`. + +- [#12821](https://github.com/apollographql/apollo-client/pull/12821) [`223a409`](https://github.com/apollographql/apollo-client/commit/223a4094f401bbe7fd3e4c249fa405843b63ba2e) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add a deprecation warning to `WebSocketLink`. + ## 4.0.0-rc.7 ### Major Changes diff --git a/package-lock.json b/package-lock.json index fcb42420ac1..06b0f174ed4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apollo/client", - "version": "4.0.0-rc.7", + "version": "4.0.0-rc.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apollo/client", - "version": "4.0.0-rc.7", + "version": "4.0.0-rc.8", "hasInstallScript": true, "license": "MIT", "workspaces": [ diff --git a/package.json b/package.json index 886b894adbe..8ff1afe93e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/client", - "version": "4.0.0-rc.7", + "version": "4.0.0-rc.8", "description": "A fully-featured caching GraphQL client.", "private": true, "keywords": [