@apollo/client 4.2.0
A fully-featured caching GraphQL client.
@apollo/client@4.2.0 was published on 2026-05-20. Its manifest declares 7 runtime dependencies and 6 peer requirements. Type declarations are bundled according to the package metadata. No Node.js engine requirement is declared in this manifest.
All @apollo/client versions · Permanent reference to 4.2.0 · Latest release
Package specifications
| Version | 4.2.0 |
|---|---|
| License declaration | MIT |
| Published | 2026-05-20T22:35:57.520Z |
| Node.js requirement | Not declared |
| Type declarations | Bundled declarations |
| Runtime dependency count | 7 |
| Peer requirement count | 6 |
| Optional dependency count | 0 |
| Minified size | Measurement not available yet |
| Minified + gzip | Measurement not available yet |
| Unpacked distribution size | 11798.70 KiB |
| Published file count | 1811 |
| Package type | module |
| ES module entry | ./core/index.js |
| Default entry | ./__cjs/core/index.cjs |
| Side effects declaration | false |
| Direct advisories | 0 |
| Resolved graph dependencies | 8 |
| Repository stars | 19785 |
| Repository forks | 2811 |
Install @apollo/client 4.2.0
npm install @apollo/client@4.2.0 pnpm add @apollo/client@4.2.0 yarn add @apollo/client@4.2.0
Runtime dependencies
- tslib ^2.3.0
- optimism ^0.18.0
- @wry/trie ^0.5.0
- @wry/caches ^1.0.0
- graphql-tag ^2.12.6
- @wry/equality ^0.5.6
- @graphql-typed-document-node/core ^3.1.1
Peer requirements
- rxjs ^7.3.0
- react ^17.0.0 || ^18.0.0 || >=19.0.0-rc (optional peer)
- graphql ^16.0.0
- react-dom ^17.0.0 || ^18.0.0 || >=19.0.0-rc (optional peer)
- graphql-ws ^5.5.5 || ^6.0.3 (optional peer)
- subscriptions-transport-ws ^0.9.0 || ^0.11.0 (optional peer)
Optional dependencies
- None declared
Resolved dependency graph
This deps.dev graph describes a generic 64-bit Linux environment, not your application lockfile.
- @graphql-typed-document-node/core@3.2.0 — direct
- @wry/caches@1.0.1 — direct
- @wry/context@0.7.4 — indirect
- @wry/equality@0.5.7 — direct
- @wry/trie@0.5.0 — direct
- graphql-tag@2.12.7 — direct
- optimism@0.18.1 — direct
- tslib@2.8.1 — direct
How to interpret the specifications
Bundlephobia measurements use its standard package build and may exclude peer dependencies. Unpacked npm distribution size includes shipped files and is a different measurement. Module declarations do not prove tree-shaking or runtime compatibility.
Advisories apply to this package version directly; transitive dependencies need separate inspection. Repository signals describe the whole repository and are current observations, including on historical-version pages.
OpenSSF repository checks
Provider assessment: 2026-08-24T00:00:00Z. These are repository checks, not a jsL maintenance score.
| Code-Review | 3/10 — Found 7/18 approved changesets -- score normalized to 3 |
|---|---|
| CII-Best-Practices | 0/10 — no effort to earn an OpenSSF best practices badge detected |
| Maintained | 10/10 — 30 commit(s) and 25 issue activity found in the last 90 days -- score normalized to 10 |
| Dangerous-Workflow | 10/10 — no dangerous workflow patterns detected |
| License | 10/10 — license file detected |
| Token-Permissions | 6/10 — detected GitHub workflow tokens with excessive permissions |
| Branch-Protection | 3/10 — branch protection is not maximal on development and all release branches |
| Security-Policy | 10/10 — security policy file detected |
| Binary-Artifacts | 10/10 — no binaries found in the repo |
| Pinned-Dependencies | 8/10 — dependency not pinned by hash detected -- score normalized to 8 |
| Fuzzing | 0/10 — project is not fuzzed |
| SAST | 6/10 — SAST tool is not run on all commits -- score normalized to 6 |
Evidence and freshness
- https://registry.npmjs.org/%40apollo%2Fclient/4.2.0 — retrieved 2026-10-29T08:19:53.403Z
- https://api.deps.dev/v3/projects/github.com%2Fapollographql%2Fapollo-client — retrieved 2026-10-29T05:09:29.957Z
- https://api.deps.dev/v3/systems/npm/packages/%40apollo%2Fclient/versions/4.2.0 — retrieved 2026-10-29T08:19:53.900Z
- https://api.deps.dev/v3/systems/npm/packages/%40apollo%2Fclient/versions/4.2.0:dependencies — retrieved 2026-10-29T08:19:53.963Z