chore(deps): update @apollo/client to 3.14.1#349
Merged
CataldoMazzilli merged 2 commits intoJun 4, 2026
Conversation
Bump @apollo/client 3.10.8 -> 3.14.1 (separated from the bundled runtime
deps update because it requires source changes for breaking type/API
changes introduced in the 3.11-3.14 line).
Type changes:
- Modifier<T> now returns DeepPartial<T> and cache.modify infers the
Entity from the field modifiers; annotate cache.modify<{ findTasks:
Reference[] }>() at the call sites and narrow the list modifiers in
cacheUtils to Modifier<readonly Reference[]>.
- MockedResponse is now declared MockedResponse<out TData, out TVariables>
with result: FetchResult<Unmasked<TData>>; the local Mock interface can
no longer be widened to Mock<Record<string, unknown>>. Type the test
helper 'mocks' option as MockedResponse[] (what MockedProvider accepts).
Deprecations (were emitted as console.warn and broke the
vitest-fail-on-console test setup):
- ApolloClient 'connectToDevTools' -> 'devtools: { enabled }'.
- useLazyQuery 'variables' option -> pass variables to the returned
execute function instead.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
lisaparma
approved these changes
Jun 4, 2026
…ient-update-2026-06-03 # Conflicts: # pnpm-lock.yaml
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

0 New Issues
0 Fixed Issues
0 Accepted Issues
Summary
Updates
@apollo/client3.10.8→3.14.1.This bump was split out of the bundled runtime-dependencies PR (#348) because, unlike the other runtime packages, it requires source changes to adapt to breaking type and API changes introduced across the 3.11–3.14 releases.
Type changes
cache.modify/Modifier<T>—Modifier<T>now returnsDeepPartial<T>(previouslyT), andcache.modifyinfers itsEntitytype from the field modifiers. This broke the list-field modifiers.cache.modify<{ findTasks: Reference[] }>(...)(NewTaskBoard.tsx,useTrashAction.ts,RemindersManager.test.tsx).cacheUtils.tsfromModifier<readonly Reference[] | Reference>toModifier<readonly Reference[]>(the single-Referencebranch is invalid for a list field's return type).MockedResponse— now declaredMockedResponse<out TData, out TVariables>withresult: FetchResult<Unmasked<TData>>. The localMockinterface can no longer be widened toMock<Record<string, unknown>>(theoutcovariance can't be propagated throughUnmasked). Typed the test helper'smocksoption asMockedResponse[]— exactly whatMockedProvideraccepts — instead of the localMock[].Deprecations
These were emitted as
console.warnand broke thevitest-fail-on-consoletest setup, so they had to be migrated:ApolloClient({ connectToDevTools })→devtools: { enabled }(apollo/index.ts).useLazyQuery(doc, { variables })→ variables are now passed to the returnedexecutefunction instead (RemindersManager.tsx).Verification
pnpm type-check✅pnpm lint✅ (only the 2 pre-existingimport/no-extraneous-dependencieswarnings intestUtils.tsx)pnpm test✅ — 229/229pnpm build✅Changelog
Release notes: https://github.com/apollographql/apollo-client/releases (3.11.x → 3.14.1)
Split from #348 (bundled runtime dependencies update).
🤖 Generated with Claude Code