Commit 28c09c8
authored
chore(deps): pin dependencies (#1412)
> ℹ️ **Note**
>
> This PR body was truncated due to platform limits.
This PR contains the following updates:
| Package | Type | Update | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Adoption](https://docs.renovatebot.com/merge-confidence/) |
[Passing](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|---|---|---|---|
| [@0no-co/graphqlsp](https://redirect.github.com/0no-co/GraphQLSP) |
devDependencies | pin | [`^1.15.1` →
`1.15.2`](https://renovatebot.com/diffs/npm/@0no-co%2fgraphqlsp/1.15.2/1.15.2)
|

|

|

|

|
| [@apollo/client](https://www.apollographql.com/docs/react/)
([source](https://redirect.github.com/apollographql/apollo-client)) |
devDependencies | minor | [`4.0.11` →
`4.1.6`](https://renovatebot.com/diffs/npm/@apollo%2fclient/4.0.11/4.1.6)
|

|

|

|

|
| [@apollo/client](https://www.apollographql.com/docs/react/)
([source](https://redirect.github.com/apollographql/apollo-client)) |
devDependencies | minor | [`3.11.10` →
`3.14.0`](https://renovatebot.com/diffs/npm/@apollo%2fclient/3.11.10/3.14.0)
|

|

|

|

|
| [@apollo/client-3](https://www.apollographql.com/docs/react/)
([source](https://redirect.github.com/apollographql/apollo-client)) |
devDependencies | minor | [`3.13.0` →
`3.14.0`](https://renovatebot.com/diffs/npm/@apollo%2fclient-3/3.13.0/3.14.0)
|

|

|

|

|
|
[@apollo/datasource-rest](https://redirect.github.com/apollographql/datasource-rest)
| devDependencies | pin | [`^6.0.0` →
`6.0.0`](https://renovatebot.com/diffs/npm/@apollo%2fdatasource-rest/6.0.0/6.0.0)
|

|

|

|

|
|
[@apollo/server](https://redirect.github.com/apollographql/apollo-server)
([source](https://redirect.github.com/apollographql/apollo-server/tree/HEAD/packages/server))
| devDependencies | pin | [`^4.3.0` →
`4.9.3`](https://renovatebot.com/diffs/npm/@apollo%2fserver/4.9.3/4.9.3)
|

|

|

|

|
|
[@changesets/changelog-github](https://redirect.github.com/changesets/changesets/tree/main#readme)
([source](https://redirect.github.com/changesets/changesets)) |
devDependencies | minor | [`0.5.2` →
`0.6.0`](https://renovatebot.com/diffs/npm/@changesets%2fchangelog-github/0.5.2/0.6.0)
|

|

|

|

|
|
[@changesets/cli](https://redirect.github.com/changesets/changesets/tree/main#readme)
([source](https://redirect.github.com/changesets/changesets)) |
devDependencies | minor | [`2.27.12` →
`2.30.0`](https://renovatebot.com/diffs/npm/@changesets%2fcli/2.27.12/2.30.0)
|

|

|

|

|
| [@eslint/js](https://eslint.org)
([source](https://redirect.github.com/eslint/eslint/tree/HEAD/packages/js))
| devDependencies | pin | [`^9.21.0` →
`9.21.0`](https://renovatebot.com/diffs/npm/@eslint%2fjs/9.21.0/9.21.0)
|

|

|

|

|
|
[@graphql-codegen/fragment-matcher](https://redirect.github.com/dotansimha/graphql-code-generator)
([source](https://redirect.github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/other/fragment-matcher))
| devDependencies | pin | [`^5.1.0` →
`5.1.0`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ffragment-matcher/5.1.0/5.1.0)
|

|

|

|

|
|
[@graphql-codegen/typescript](https://redirect.github.com/dotansimha/graphql-code-generator)
([source](https://redirect.github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/typescript))
| devDependencies | minor | [`4.0.9` →
`4.1.6`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftypescript/4.0.9/4.1.6)
|

|

|

|

|
|
[@graphql-codegen/typescript-operations](https://redirect.github.com/dotansimha/graphql-code-generator)
([source](https://redirect.github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/operations))
| devDependencies | minor | [`4.2.3` →
`4.6.1`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftypescript-operations/4.2.3/4.6.1)
|

|

|

|

|
|
[@graphql-codegen/typescript-resolvers](https://redirect.github.com/dotansimha/graphql-code-generator)
([source](https://redirect.github.com/dotansimha/graphql-code-generator/tree/HEAD/packages/plugins/typescript/resolvers))
| devDependencies | minor | [`4.1.0` →
`4.5.2`](https://renovatebot.com/diffs/npm/@graphql-codegen%2ftypescript-resolvers/4.1.0/4.5.2)
|

|

|

|

|
|
[@graphql-tools/mock](https://redirect.github.com/ardatan/graphql-tools)
([source](https://redirect.github.com/ardatan/graphql-tools/tree/HEAD/packages/mock))
| devDependencies | minor | [`9.0.25` →
`9.1.5`](https://renovatebot.com/diffs/npm/@graphql-tools%2fmock/9.0.25/9.1.5)
|

|

|

|

|
| [@parcel/watcher](https://redirect.github.com/parcel-bundler/watcher)
| devDependencies | minor | [`2.4.1` →
`2.5.6`](https://renovatebot.com/diffs/npm/@parcel%2fwatcher/2.4.1/2.5.6)
|

|

|

|

|
|
[@testing-library/dom](https://redirect.github.com/testing-library/dom-testing-library)
| devDependencies | pin | [`^10.4.1` →
`10.4.1`](https://renovatebot.com/diffs/npm/@testing-library%2fdom/10.4.1/10.4.1)
|

|

|

|

|
|
[@testing-library/jest-dom](https://redirect.github.com/testing-library/jest-dom)
| devDependencies | pin | [`^6.0.0` →
`6.1.2`](https://renovatebot.com/diffs/npm/@testing-library%2fjest-dom/6.1.2/6.1.2)
|

|

|

|

|
|
[@testing-library/react](https://redirect.github.com/testing-library/react-testing-library)
| devDependencies | pin | [`^16.0.0` →
`16.0.0`](https://renovatebot.com/diffs/npm/@testing-library%2freact/16.0.0/16.0.0)
|

|

|

|

|
|
[@testing-library/user-event](https://redirect.github.com/testing-library/user-event)
| devDependencies | pin | [`^14.5.1` →
`14.5.2`](https://renovatebot.com/diffs/npm/@testing-library%2fuser-event/14.5.2/14.5.2)
|

|

|

|

|
|
[@types/chrome](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chrome))
| devDependencies | minor | [`0.0.326` →
`0.1.37`](https://renovatebot.com/diffs/npm/@types%2fchrome/0.0.326/0.1.37)
|

|

|

|

|
| @​types/classnames | devDependencies | pin | [`^2.2.10` →
`2.2.10`](https://renovatebot.com/diffs/npm/@types%2fclassnames/2.2.10/2.2.10)
|

|

|

|

|
|
[@types/jest](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest))
| devDependencies | pin | [`^29.5.0` →
`29.5.14`](https://renovatebot.com/diffs/npm/@types%2fjest/29.5.14/29.5.14)
|

|

|

|

|
|
[@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| devDependencies | pin | [`^22.0.0` →
`22.0.0`](https://renovatebot.com/diffs/npm/@types%2fnode/22.0.0/22.0.0)
|

|

|

|

|
|
[@types/node](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| devDependencies | minor | [`20.14.10` →
`20.19.37`](https://renovatebot.com/diffs/npm/@types%2fnode/20.14.10/20.19.37)
|

|

|

|

|
|
[@types/react](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react))
| devDependencies | pin | [`^18.3.23` →
`18.3.23`](https://renovatebot.com/diffs/npm/@types%2freact/18.3.23/18.3.23)
|

|

|

|

|
|
[@types/react-dom](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-dom)
([source](https://redirect.github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom))
| devDependencies | pin | [`^18.3.7` →
`18.3.7`](https://renovatebot.com/diffs/npm/@types%2freact-dom/18.3.7/18.3.7)
|

|

|

|

|
|
[@typescript-eslint/eslint-plugin](https://typescript-eslint.io/packages/eslint-plugin)
([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin))
| devDependencies | minor | [`7.14.1` →
`7.18.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/7.14.1/7.18.0)
|

|

|

|

|
|
[@typescript-eslint/parser](https://typescript-eslint.io/packages/parser)
([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser))
| devDependencies | minor | [`7.14.1` →
`7.18.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/7.14.1/7.18.0)
|

|

|

|

|
|
[@vitejs/plugin-react](https://redirect.github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme)
([source](https://redirect.github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react))
| devDependencies | pin | [`^4.5.2` →
`4.5.2`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-react/4.5.2/4.5.2)
|

|

|

|

|
| [classnames](https://redirect.github.com/JedWatson/classnames) |
devDependencies | pin | [`^2.2.6` →
`2.2.6`](https://renovatebot.com/diffs/npm/classnames/2.2.6/2.2.6) |

|

|

|

|
|
[eslint-plugin-jest-dom](https://redirect.github.com/testing-library/eslint-plugin-jest-dom)
| devDependencies | minor | [`5.4.0` →
`5.5.0`](https://renovatebot.com/diffs/npm/eslint-plugin-jest-dom/5.4.0/5.5.0)
|

|

|

|

|
|
[eslint-plugin-testing-library](https://redirect.github.com/testing-library/eslint-plugin-testing-library)
| devDependencies | minor | [`6.2.2` →
`6.5.0`](https://renovatebot.com/diffs/npm/eslint-plugin-testing-library/6.2.2/6.5.0)
|

|

|

|

|
| [graphql](https://redirect.github.com/graphql/graphql-js) |
devDependencies | pin | [`^16.6.0` →
`16.8.1`](https://renovatebot.com/diffs/npm/graphql/16.8.1/16.8.1) |

|

|

|

|
| [graphql](https://redirect.github.com/graphql/graphql-js) |
devDependencies | pin | [`^16.0.0` →
`16.8.1`](https://renovatebot.com/diffs/npm/graphql/16.8.1/16.8.1) |

|

|

|

|
| [graphql](https://redirect.github.com/graphql/graphql-js) |
devDependencies | minor | [`16.9.0` →
`16.13.1`](https://renovatebot.com/diffs/npm/graphql/16.9.0/16.13.1) |

|

|

|

|
| [jest](https://jestjs.io/)
([source](https://redirect.github.com/jestjs/jest/tree/HEAD/packages/jest))
| devDependencies | minor | [`30.0.5` →
`30.2.0`](https://renovatebot.com/diffs/npm/jest/30.0.5/30.2.0) |

|

|

|

|
| [lowdb](https://redirect.github.com/typicode/lowdb) | devDependencies
| pin | [`^1.0.0` →
`1.0.0`](https://renovatebot.com/diffs/npm/lowdb/1.0.0/1.0.0) |

|

|

|

|
| [pkg-pr-new](https://redirect.github.com/stackblitz-labs/pkg.pr.new)
([source](https://redirect.github.com/stackblitz-labs/pkg.pr.new/tree/HEAD/packages/cli))
| devDependencies | pin | [`^0.0.65` →
`0.0.65`](https://renovatebot.com/diffs/npm/pkg-pr-new/0.0.65/0.0.65) |

|

|

|

|
| [postcss](https://postcss.org/)
([source](https://redirect.github.com/postcss/postcss)) |
devDependencies | minor | [`8.4.49` →
`8.5.8`](https://renovatebot.com/diffs/npm/postcss/8.4.49/8.5.8) |

|

|

|

|
| [postcss-loader](https://redirect.github.com/webpack/postcss-loader) |
devDependencies | minor | [`8.1.1` →
`8.2.1`](https://renovatebot.com/diffs/npm/postcss-loader/8.1.1/8.2.1) |

|

|

|

|
| [react](https://react.dev/)
([source](https://redirect.github.com/facebook/react/tree/HEAD/packages/react))
| devDependencies | pin | [`^18.2.0` →
`18.2.0`](https://renovatebot.com/diffs/npm/react/18.2.0/18.2.0) |

|

|

|

|
| [react-dom](https://react.dev/)
([source](https://redirect.github.com/facebook/react/tree/HEAD/packages/react-dom))
| devDependencies | pin | [`^18.2.0` →
`18.2.0`](https://renovatebot.com/diffs/npm/react-dom/18.2.0/18.2.0) |

|

|

|

|
| [react-router-dom](https://redirect.github.com/remix-run/react-router)
([source](https://redirect.github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom))
| devDependencies | pin | [`^6.0.0` →
`6.11.2`](https://renovatebot.com/diffs/npm/react-router-dom/6.11.2/6.11.2)
|

|

|

|

|
| [rxjs](https://rxjs.dev)
([source](https://redirect.github.com/reactivex/rxjs)) | devDependencies
| pin | [`^7.8.2` →
`7.8.2`](https://renovatebot.com/diffs/npm/rxjs/7.8.2/7.8.2) |

|

|

|

|
| [tsx](https://tsx.is)
([source](https://redirect.github.com/privatenumber/tsx)) |
devDependencies | minor | [`4.11.0` →
`4.21.0`](https://renovatebot.com/diffs/npm/tsx/4.11.0/4.21.0) |

|

|

|

|
| [typescript](https://www.typescriptlang.org/)
([source](https://redirect.github.com/microsoft/TypeScript)) |
devDependencies | pin | [`^5.8.3` →
`5.8.3`](https://renovatebot.com/diffs/npm/typescript/5.8.3/5.8.3) |

|

|

|

|
| [typescript](https://www.typescriptlang.org/)
([source](https://redirect.github.com/microsoft/TypeScript)) |
devDependencies | minor | [`5.4.5` →
`5.9.3`](https://renovatebot.com/diffs/npm/typescript/5.4.5/5.9.3) |

|

|

|

|
|
[typescript-eslint](https://typescript-eslint.io/packages/typescript-eslint)
([source](https://redirect.github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint))
| devDependencies | minor | [`7.14.1` →
`7.18.0`](https://renovatebot.com/diffs/npm/typescript-eslint/7.14.1/7.18.0)
|

|

|

|

|
| [vite](https://vite.dev)
([source](https://redirect.github.com/vitejs/vite/tree/HEAD/packages/vite))
| devDependencies | pin | [`^6.3.5` →
`6.4.1`](https://renovatebot.com/diffs/npm/vite/6.4.1/6.4.1) |

|

|

|

|
|
[web-ext-plugin](https://redirect.github.com/hiikezoe/web-ext-webpack-plugin)
| devDependencies | minor | [`2.11.0` →
`2.12.0`](https://renovatebot.com/diffs/npm/web-ext-plugin/2.11.0/2.12.0)
|

|

|

|

|
| [webpack](https://redirect.github.com/webpack/webpack) |
devDependencies | minor | [`5.104.1` →
`5.105.4`](https://renovatebot.com/diffs/npm/webpack/5.104.1/5.105.4) |

|

|

|

|
| [ws](https://redirect.github.com/websockets/ws) | devDependencies |
pin | [`^8.18.0` →
`8.18.0`](https://renovatebot.com/diffs/npm/ws/8.18.0/8.18.0) |

|

|

|

|
| [zone.js](https://redirect.github.com/angular/angular)
([source](https://redirect.github.com/angular/angular/tree/HEAD/packages/zone.js),
[changelog](https://redirect.github.com/angular/angular/blob/master/packages/zone.js/CHANGELOG.md))
| devDependencies | minor | [`0.14.7` →
`0.16.1`](https://renovatebot.com/diffs/npm/zone.js/0.14.7/0.16.1) |

|

|

|

|
Add the preset `:preserveSemverRanges` to your config if you don't want
to pin your dependencies.
---
### Release Notes
<details>
<summary>apollographql/apollo-client (@​apollo/client)</summary>
###
[`v4.1.6`](https://redirect.github.com/apollographql/apollo-client/blob/HEAD/CHANGELOG.md#416)
[Compare
Source](https://redirect.github.com/apollographql/apollo-client/compare/@apollo/client@4.1.5...@apollo/client@4.1.6)
##### Patch Changes
-
[#​13128](https://redirect.github.com/apollographql/apollo-client/pull/13128)
[`6c0b8e4`](https://redirect.github.com/apollographql/apollo-client/commit/6c0b8e4301609b62ed599340589c978e4f51f020)
Thanks [@​pavelivanov](https://redirect.github.com/pavelivanov)! -
Fix `useQuery` hydration mismatch when `ssr: false` and `skip: true` are
used together
When both options were combined, the server would return `loading:
false` (because `useSSRQuery` checks `skip` first), but the client's
`getServerSnapshot` was returning `ssrDisabledResult` with `loading:
true`, causing a hydration mismatch.
###
[`v4.1.5`](https://redirect.github.com/apollographql/apollo-client/blob/HEAD/CHANGELOG.md#415)
[Compare
Source](https://redirect.github.com/apollographql/apollo-client/compare/@apollo/client@4.1.4...@apollo/client@4.1.5)
##### Patch Changes
-
[#​13155](https://redirect.github.com/apollographql/apollo-client/pull/13155)
[`3ba1583`](https://redirect.github.com/apollographql/apollo-client/commit/3ba1583f93c40343501acd9d598ce506537d1c9b)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Fix an issue where `useQuery` would poll with `pollInterval` when `skip`
was initialized to `true`.
-
[#​13135](https://redirect.github.com/apollographql/apollo-client/pull/13135)
[`fd42142`](https://redirect.github.com/apollographql/apollo-client/commit/fd42142495d24859a9bc7145a85bc8f8d857ec88)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Fix issue where `client.query` would apply options from
`defaultOptions.watchQuery`.
###
[`v4.1.4`](https://redirect.github.com/apollographql/apollo-client/blob/HEAD/CHANGELOG.md#414)
[Compare
Source](https://redirect.github.com/apollographql/apollo-client/compare/@apollo/client@4.1.3...@apollo/client@4.1.4)
##### Patch Changes
-
[#​13124](https://redirect.github.com/apollographql/apollo-client/pull/13124)
[`578081f`](https://redirect.github.com/apollographql/apollo-client/commit/578081f2da7f2f54c0dd2711ee4a97530a5c38fc)
Thanks [@​Re-cool](https://redirect.github.com/Re-cool)! - Ensure
`PersistedQueryLink` merges `http` and `fetchOptions` context values
instead of overwriting them.
###
[`v4.1.3`](https://redirect.github.com/apollographql/apollo-client/blob/HEAD/CHANGELOG.md#413)
[Compare
Source](https://redirect.github.com/apollographql/apollo-client/compare/@apollo/client@4.1.2...@apollo/client@4.1.3)
##### Patch Changes
-
[#​13111](https://redirect.github.com/apollographql/apollo-client/pull/13111)
[`bf46fe0`](https://redirect.github.com/apollographql/apollo-client/commit/bf46fe019b316ea8a87a05981a89fac5411260b4)
Thanks [@​RogerHYang](https://redirect.github.com/RogerHYang)! -
Fix `createFetchMultipartSubscription` to support cancellation via
`AbortController`
Previously, calling `dispose()` or `unsubscribe()` on a subscription
created by `createFetchMultipartSubscription` had no effect - the
underlying fetch request would continue running until completion. This
was because no `AbortController` was created or passed to `fetch()`, and
no cleanup function was returned from the Observable.
###
[`v4.1.2`](https://redirect.github.com/apollographql/apollo-client/blob/HEAD/CHANGELOG.md#412)
[Compare
Source](https://redirect.github.com/apollographql/apollo-client/compare/@apollo/client@4.1.1...@apollo/client@4.1.2)
##### Patch Changes
-
[#​13105](https://redirect.github.com/apollographql/apollo-client/pull/13105)
[`8b62263`](https://redirect.github.com/apollographql/apollo-client/commit/8b62263e19b3442e20fea822de62074cf4f5cb22)
Thanks [@​phryneas](https://redirect.github.com/phryneas)! -
`ssrMode`, `ssrForceFetchDelay` or `prioritizeCacheValues` should not
override `fetchPolicy: 'cache-only'`, `fetchPolicy: 'no-cache'`,
`fetchPolicy: 'standby'`, `skip: true`, or `skipToken` when reading the
initial value of an `ObservableQuery`.
-
[#​13105](https://redirect.github.com/apollographql/apollo-client/pull/13105)
[`8b62263`](https://redirect.github.com/apollographql/apollo-client/commit/8b62263e19b3442e20fea822de62074cf4f5cb22)
Thanks [@​phryneas](https://redirect.github.com/phryneas)! - Fix
`skipToken` in `useQuery` with `prerenderStatic` and related SSR
functions.
-
[#​13105](https://redirect.github.com/apollographql/apollo-client/pull/13105)
[`8b62263`](https://redirect.github.com/apollographql/apollo-client/commit/8b62263e19b3442e20fea822de62074cf4f5cb22)
Thanks [@​phryneas](https://redirect.github.com/phryneas)! - Avoid
fetches with `fetchPolicy: no-cache` in `useQuery` with
`prerenderStatic` and related SSR functions.
###
[`v4.1.1`](https://redirect.github.com/apollographql/apollo-client/blob/HEAD/CHANGELOG.md#411)
[Compare
Source](https://redirect.github.com/apollographql/apollo-client/compare/@apollo/client@4.1.0...@apollo/client@4.1.1)
##### Patch Changes
-
[#​13103](https://redirect.github.com/apollographql/apollo-client/pull/13103)
[`dee7dcf`](https://redirect.github.com/apollographql/apollo-client/commit/dee7dcff4d4baa26d623d1ecace60be88c684c1a)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Ensure `@client` fields that are children of aliased server fields are
resolved correctly.
###
[`v4.1.0`](https://redirect.github.com/apollographql/apollo-client/blob/HEAD/CHANGELOG.md#410)
[Compare
Source](https://redirect.github.com/apollographql/apollo-client/compare/@apollo/client@4.0.13...@apollo/client@4.1.0)
##### Minor Changes
-
[#​13043](https://redirect.github.com/apollographql/apollo-client/pull/13043)
[`65e66ca`](https://redirect.github.com/apollographql/apollo-client/commit/65e66cafb6828b63d14b64877bbad47af95f66e4)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Support `headers` transport for enhanced client awareness.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`785e223`](https://redirect.github.com/apollographql/apollo-client/commit/785e2232b4f7d9e561611cd4f45b8fdd1e44319e)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
You can now provide a callback function as the `context` option on the
`mutate` function returned by `useMutation`. The callback function is
called with the value of the `context` option provided to the
`useMutation` hook. This is useful if you'd like to merge the context
object provided to the `useMutation` hook with a value provided to the
`mutate` function.
```ts
function MyComponent() {
const [mutate, result] = useMutation(MUTATION, {
context: { foo: true },
});
async function runMutation() {
await mutate({
// sends context as { foo: true, bar: true }
context: (hookContext) => ({ ...hookContext, bar: true }),
});
}
// ...
}
```
-
[#​12923](https://redirect.github.com/apollographql/apollo-client/pull/12923)
[`94ea3e3`](https://redirect.github.com/apollographql/apollo-client/commit/94ea3e32c82dd767b62a6907be6c3891864633af)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Fix an issue where deferred payloads that returned arrays with fewer
items than the original cached array would retain items from the cached
array. This change includes `@stream` arrays where stream arrays replace
the cached arrays.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`96b531f`](https://redirect.github.com/apollographql/apollo-client/commit/96b531f6b57a158aa2c57da976c6dd22c1a7f4d5)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Don't set the fallback value of a `@client` field to `null` when a
`read` function is defined. Instead the `read` function will be called
with an `existing` value of `undefined` to allow default arguments to be
used to set the returned value.
When a `read` function is not defined nor is there a defined resolver
for the field, warn and set the value to `null` only in that instance.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`45ebb52`](https://redirect.github.com/apollographql/apollo-client/commit/45ebb52bcb84b81ce3a066204456c2e20f3d4c98)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Add support for `from: null` in `client.watchFragment` and
`cache.watchFragment`. When `from` is `null`, the emitted result is:
```ts
{
data: null,
dataState: "complete",
complete: true,
}
```
-
[#​12926](https://redirect.github.com/apollographql/apollo-client/pull/12926)
[`2b7f2c1`](https://redirect.github.com/apollographql/apollo-client/commit/2b7f2c167fc4a94e06457777f0c57b6dac7b2f2f)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Support the newer incremental delivery format for the `@defer` directive
implemented in `graphql@17.0.0-alpha.9`. Import the
`GraphQL17Alpha9Handler` to use the newer incremental delivery format
with `@defer`.
```ts
import { GraphQL17Alpha9Handler } from
"@​apollo/client/incremental";
const client = new ApolloClient({
// ...
incrementalHandler: new GraphQL17Alpha9Handler(),
});
```
> \[!NOTE]
> In order to use the `GraphQL17Alpha9Handler`, the GraphQL server MUST
implement the newer incremental delivery format. You may see errors or
unusual behavior if you use the wrong handler. If you are using Apollo
Router, continue to use the `Defer20220824Handler` because Apollo Router
does not yet support the newer incremental delivery format.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`45ebb52`](https://redirect.github.com/apollographql/apollo-client/commit/45ebb52bcb84b81ce3a066204456c2e20f3d4c98)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Add support for arrays with `useFragment`, `useSuspenseFragment`, and
`client.watchFragment`. This allows the ability to use a fragment to
watch multiple entities in the cache. Passing an array to `from` will
return `data` as an array where each array index corresponds to the
index in the `from` array.
```ts
function MyComponent() {
const result = useFragment({
fragment,
from: [item1, item2, item3],
});
// `data` is an array with 3 items
console.log(result); // { data: [{...}, {...}, {...}], dataState:
"complete", complete: true }
}
```
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`45ebb52`](https://redirect.github.com/apollographql/apollo-client/commit/45ebb52bcb84b81ce3a066204456c2e20f3d4c98)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Add a `getCurrentResult` function to the observable returned by
`client.watchFragment` and `cache.watchFragment` that returns the
current value for the watched fragment.
```ts
const observable = client.watchFragment({
fragment,
from: { __typename: "Item", id: 1 },
});
console.log(observable.getCurrentResult());
// {
// data: {...},
// dataState: "complete",
// complete: true,
// }
```
-
[#​13038](https://redirect.github.com/apollographql/apollo-client/pull/13038)
[`109efe7`](https://redirect.github.com/apollographql/apollo-client/commit/109efe7e4380b579c6a577982bd9a6e8c6a53892)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Add the `from` option to `readFragment`, `watchFragment`, and
`updateFragment`.
-
[#​12918](https://redirect.github.com/apollographql/apollo-client/pull/12918)
[`2e224b9`](https://redirect.github.com/apollographql/apollo-client/commit/2e224b99894432822f926fdfec36bd46dd73b35e)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Add support for the `@stream` directive on both the
`Defer20220824Handler` and the `GraphQL17Alpha2Handler`.
> \[!NOTE]
> The implementations of `@stream` differ in the delivery of incremental
results between the different GraphQL spec versions. If you upgrading
from the older format to the newer format, expect the timing of some
incremental results to change.
-
[#​13056](https://redirect.github.com/apollographql/apollo-client/pull/13056)
[`b224efc`](https://redirect.github.com/apollographql/apollo-client/commit/b224efc25515370c68b514405762e68a443e4a4a)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
`InMemoryCache` no longer filters out explicitly returned `undefined`
items from `read` functions for array fields. This now makes it possible
to create `read` functions on array fields that return partial data and
trigger a fetch for the full list.
-
[#​13058](https://redirect.github.com/apollographql/apollo-client/pull/13058)
[`121a2cb`](https://redirect.github.com/apollographql/apollo-client/commit/121a2cb68820727186ecd74ce1041ef95284682e)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Add an `extensions` option to `cache.write`, `cache.writeQuery`, and
`client.writeQuery`. This makes `extensions` available in cache `merge`
functions which can be accessed with the other merge function options.
As a result of this change, any `extensions` returned in GraphQL
operations are now available in `merge` in the cache writes for these
operations.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`96b531f`](https://redirect.github.com/apollographql/apollo-client/commit/96b531f6b57a158aa2c57da976c6dd22c1a7f4d5)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Add an abstract `resolvesClientField` function to `ApolloCache` that can
be used by caches to tell `LocalState` if it can resolve a `@client`
field when a local resolver is not defined.
`LocalState` will emit a warning and set a fallback value of `null` when
no local resolver is defined and `resolvesClientField` returns `false`,
or isn't defined. Returning `true` from `resolvesClientField` signals
that a mechanism in the cache will set the field value. In this case,
`LocalState` won't set the field value.
-
[#​13078](https://redirect.github.com/apollographql/apollo-client/pull/13078)
[`bf1e0dc`](https://redirect.github.com/apollographql/apollo-client/commit/bf1e0dcb2f6c9b94576dc6d049745f1869cd0043)
Thanks [@​phryneas](https://redirect.github.com/phryneas)! - Use
the default stream merge function for `@stream` fields only if stream
info is present. This change means that using the older
`Defer20220824Handler` will not use the default stream merge function
and will instead truncate the streamed array on the first chunk.
##### Patch Changes
-
[#​12884](https://redirect.github.com/apollographql/apollo-client/pull/12884)
[`d329790`](https://redirect.github.com/apollographql/apollo-client/commit/d32979070381f1897c90fb276e25a0c8375cc29a)
Thanks [@​phryneas](https://redirect.github.com/phryneas)! -
Ensure that `PreloadedQueryRef` instances are unsubscribed when garbage
collected
-
[#​13086](https://redirect.github.com/apollographql/apollo-client/pull/13086)
[`1a1d408`](https://redirect.github.com/apollographql/apollo-client/commit/1a1d4088f549088d4af3ff1f2d08d1c8e9af2a4d)
Thanks [@​phryneas](https://redirect.github.com/phryneas)! -
Change the returned value from `null` to `{}` when all fields in a query
were skipped.
This also fixes a bug where `useSuspenseQuery` would suspend
indefinitely when all fields were skipped.
-
[#​13010](https://redirect.github.com/apollographql/apollo-client/pull/13010)
[`7627000`](https://redirect.github.com/apollographql/apollo-client/commit/76270002254b0c6acb18872a39ab180f9f1e4067)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Fix an issue where errors parsed from incremental chunks in `ErrorLink`
might throw when using the `GraphQL17Alpha9Handler`.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`45ebb52`](https://redirect.github.com/apollographql/apollo-client/commit/45ebb52bcb84b81ce3a066204456c2e20f3d4c98)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Deduplicate watches created by `useFragment`, `client.watchFragment`,
and `cache.watchFragment` that contain the same fragment, variables, and
identifier. This should improve performance in situations where a
`useFragment` or a `client.watchFragment` is used to watch the same
object in multiple places of an application.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`259ae9b`](https://redirect.github.com/apollographql/apollo-client/commit/259ae9bafaa8122996b0a52dd99828b2261087e5)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Allow `FragmentType` not only to be called as `FragmentType<TData>`, but
also as `FragmentType<TypedDocumentNode>`.
-
[#​12925](https://redirect.github.com/apollographql/apollo-client/pull/12925)
[`5851800`](https://redirect.github.com/apollographql/apollo-client/commit/58518000edebb2a4b75c36ed22e9b67b3a254fa0)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Fix an issue where calling `fetchMore` with `@defer` or `@stream` would
not rerender incremental results as they were streamed.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`9e55188`](https://redirect.github.com/apollographql/apollo-client/commit/9e55188adcb4cf4236b14eb552286a4505650a29)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Truncate `@stream` arrays only on last chunk by default.
-
[#​13083](https://redirect.github.com/apollographql/apollo-client/pull/13083)
[`f3c2be1`](https://redirect.github.com/apollographql/apollo-client/commit/f3c2be1665d8e2e260a4f55ec803d6e609748390)
Thanks [@​phryneas](https://redirect.github.com/phryneas)! -
Expose the `ExtensionsWithStreamInfo` type for `extensions` in
`Cache.writeQuery`, `Cache.write` and `Cache.update` so other cache
implementations also can correctly access them.
-
[#​12923](https://redirect.github.com/apollographql/apollo-client/pull/12923)
[`94ea3e3`](https://redirect.github.com/apollographql/apollo-client/commit/94ea3e32c82dd767b62a6907be6c3891864633af)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Improve the cache data loss warning message when `existing` or
`incoming` is an array.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`4631175`](https://redirect.github.com/apollographql/apollo-client/commit/46311758f703ec7baa9013a49b897e823fd4edb0)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Ignore top-level `data` values on subsequent chunks in incremental
responses.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`2be8de2`](https://redirect.github.com/apollographql/apollo-client/commit/2be8de26f1bb68d2d6cd0d286565d47455332b47)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Create mechanism to add experimental features to Apollo Client
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`96b531f`](https://redirect.github.com/apollographql/apollo-client/commit/96b531f6b57a158aa2c57da976c6dd22c1a7f4d5)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Ensure `LocalState` doesn't try to read from the cache when using a
`no-cache` fetch policy.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`bb8ed7b`](https://redirect.github.com/apollographql/apollo-client/commit/bb8ed7b6b7e36e313822e44b230e27031d6fcbd9)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Ensure an error is thrown when `@stream` is detected and an
`incrementalDelivery` handler is not configured.
-
[#​13053](https://redirect.github.com/apollographql/apollo-client/pull/13053)
[`23ca0ba`](https://redirect.github.com/apollographql/apollo-client/commit/23ca0ba895473b397805e6bcc70e0fcf987547c5)
Thanks [@​phryneas](https://redirect.github.com/phryneas)! - Use
memoized observable mapping when using `watchFragment`, `useFragment` or
`useSuspenseFragment`.
-
[#​12927](https://redirect.github.com/apollographql/apollo-client/pull/12927)
[`44706a2`](https://redirect.github.com/apollographql/apollo-client/commit/44706a2e7ae2c977fa917214a1ff5e5fe4a9b3a7)
Thanks [@​jerelmiller](https://redirect.github.com/jerelmiller)! -
Add helper type `QueryRef.ForQuery<TypedDocumentNode>`
-
[#​13082](https://redirect.github.com/apollographql/apollo-client/pull/13082)
[`c257418`](https://redirect.github.com/apollographql/apollo-client/commit/c2574181f6b0d9ae059dfa3822a7842ec5f8ff1f)
Thanks [@​phryneas](https://redirect.github.com/phryneas)! - Pass
`streamInfo` through result extensions as a `WeakRef`.
- [#​12927](https://redirect.gi
</details>
---
### Configuration
📅 **Schedule**: Branch creation - "every weekend" in timezone
America/Los_Angeles, Automerge - At any time (no schedule defined).
🚦 **Automerge**: Enabled.
♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.
👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/apollographql/apollo-client-devtools).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zOTMuMCIsInVwZGF0ZWRJblZlciI6IjQzLjU5LjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbIjpjaHJpc3RtYXNfdHJlZTogZGVwZW5kZW5jaWVzIl19-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>1 parent 7ac3009 commit 28c09c8
7 files changed
Lines changed: 3638 additions & 2760 deletions
File tree
- development
- client-angular
- client
- server
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
0 commit comments