Skip to content

Commit

Permalink
Version Packages (alpha)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 26, 2023
1 parent f8c0b96 commit 575451f
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"@apollo/client": "3.7.2"
},
"changesets": [
"angry-weeks-marry",
"curvy-dragons-talk",
"curvy-monkeys-kneel",
"cyan-insects-love",
Expand All @@ -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",
Expand All @@ -39,6 +41,7 @@
"smooth-forks-shop",
"strange-drinks-report",
"twelve-files-promise",
"warm-pandas-cry",
"wild-mice-nail"
]
}
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down

0 comments on commit 575451f

Please sign in to comment.