From 575451f1dc25bf45af4e5109be196efb4412435c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 26 May 2023 15:57:50 +0000 Subject: [PATCH] Version Packages (alpha) --- .changeset/pre.json | 3 +++ CHANGELOG.md | 40 ++++++++++++++++++++++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 46 insertions(+), 3 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 0b449e8aee7..6b35af92182 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -5,6 +5,7 @@ "@apollo/client": "3.7.2" }, "changesets": [ + "angry-weeks-marry", "curvy-dragons-talk", "curvy-monkeys-kneel", "cyan-insects-love", @@ -16,6 +17,7 @@ "funny-peas-change", "grumpy-tips-know", "heavy-ties-sneeze", + "hungry-chairs-live", "hungry-eagles-kick", "lazy-teachers-sell", "light-ravens-wait", @@ -39,6 +41,7 @@ "smooth-forks-shop", "strange-drinks-report", "twelve-files-promise", + "warm-pandas-cry", "wild-mice-nail" ] } diff --git a/CHANGELOG.md b/CHANGELOG.md index 9de5fb9ab7d..17ff0b58386 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,45 @@ # @apollo/client +## 3.8.0-alpha.16 + +### Minor Changes + +- [#10887](https://github.com/apollographql/apollo-client/pull/10887) [`f8c0b965d`](https://github.com/apollographql/apollo-client/commit/f8c0b965d49fb7d802371bb9cc3cb0b60cf05e5d) Thanks [@phryneas](https://github.com/phryneas)! - Add a new mechanism for Error Extraction to reduce bundle size by including + error message texts on an opt-in basis. + By default, errors will link to an error page with the entire error message. + This replaces "development" and "production" errors and works without + additional bundler configuration. + Bundling the text of error messages and development warnings can be enabled by + + ```js + import { loadErrorMessages, loadDevMessages } from '@apollo/client/dev'; + if (process.env.NODE_ENV !== 'production') { + loadErrorMessages(); + loadDevMessages(); + } + ``` + +- [#10509](https://github.com/apollographql/apollo-client/pull/10509) [`79df2c7ba`](https://github.com/apollographql/apollo-client/commit/79df2c7ba55b7cfee69fd54024174f77099a2550) Thanks [@jerelmiller](https://github.com/jerelmiller)! - Add the ability to specify custom GraphQL document transforms. These transforms are run before reading data from the cache, before local state is resolved, and before the query document is sent through the link chain. + + To register a custom document transform, create a transform using the `DocumentTransform` class and pass it to the `documentTransform` option on `ApolloClient`. + + ```ts + import { DocumentTransform } from '@apollo/client'; + + const documentTransform = new DocumentTransform((document) => { + // do something with `document` + return transformedDocument; + }); + + const client = new ApolloClient({ documentTransform: documentTransform }); + ``` + + For additional documentation on the behavior and API of `DocumentTransform`, see the [pull request](https://github.com/apollographql/apollo-client/pull/10509). + +### Patch Changes + +- [#10891](https://github.com/apollographql/apollo-client/pull/10891) [`ab42a5c08`](https://github.com/apollographql/apollo-client/commit/ab42a5c08840193cb915f4e66d71fac3834fec68) Thanks [@laverdet](https://github.com/laverdet)! - Fixes a bug in how multipart responses are read when using `@defer`. When reading a multipart body, `HttpLink` no longer attempts to parse the boundary (e.g. `"---"` or other boundary string) within the response data itself, only when reading the beginning of each mulitpart chunked message. + ## 3.8.0-alpha.15 ### Patch Changes diff --git a/package-lock.json b/package-lock.json index 9fd349e01bc..4b1b76f958f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apollo/client", - "version": "3.8.0-alpha.15", + "version": "3.8.0-alpha.16", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@apollo/client", - "version": "3.8.0-alpha.15", + "version": "3.8.0-alpha.16", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index b79941d147b..9ae477f749a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/client", - "version": "3.8.0-alpha.15", + "version": "3.8.0-alpha.16", "description": "A fully-featured caching GraphQL client.", "private": true, "keywords": [