Skip to content

Release 4.0 #12201

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 256 commits into
base: main
Choose a base branch
from
Draft

Release 4.0 #12201

wants to merge 256 commits into from

Conversation

jerelmiller
Copy link
Member

Staging branch for all 4.0 changes

@svc-apollo-docs
Copy link

svc-apollo-docs commented Dec 9, 2024

🛠️ Docs preview building...

The preview is currently being built.

Build ID: 7c1e3325e91f9e6e896fc41e

Copy link

changeset-bot bot commented Dec 9, 2024

⚠️ No Changeset found

Latest commit: 5ce6a1d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

pkg-pr-new bot commented Dec 9, 2024

npm i https://pkg.pr.new/apollographql/apollo-client/@apollo/client-graphql-codegen@12201
npm i https://pkg.pr.new/apollographql/apollo-client/@apollo/client@12201

commit: 5ce6a1d

Copy link

netlify bot commented Dec 9, 2024

Deploy Preview for apollo-client-docs ready!

Name Link
🔨 Latest commit 50dc13f
🔍 Latest deploy log https://app.netlify.com/sites/apollo-client-docs/deploys/6802796ab822e40008318f86
😎 Deploy Preview https://deploy-preview-12201--apollo-client-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

github-actions bot commented Dec 9, 2024

size-limit report 📦

Path Size
dist/apollo-client.min.cjs 0 B (-100% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (CJS) 42.67 KB (-15.99% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) (CJS) 37.76 KB (-21.13% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" 32.57 KB (-10.35% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) 26.98 KB (-20.01% 🔽)
import { ApolloProvider } from "@apollo/client/react" 5.7 KB (+353.31% 🔺)
import { ApolloProvider } from "@apollo/client/react" (production) 960 B (-24.41% 🔽)
import { useQuery } from "@apollo/client/react" 7.02 KB (-30.48% 🔽)
import { useQuery } from "@apollo/client/react" (production) 2.23 KB (-75.23% 🔽)
import { useLazyQuery } from "@apollo/client/react" 6.89 KB (-27.39% 🔽)
import { useMutation } from "@apollo/client/react" 6.23 KB (+72.32% 🔺)
import { useMutation } from "@apollo/client/react" (production) 1.47 KB (-48.08% 🔽)
import { useSubscription } from "@apollo/client/react" 6.56 KB (+48.32% 🔺)
import { useSubscription } from "@apollo/client/react" (production) 1.81 KB (-48.11% 🔽)
import { useSuspenseQuery } from "@apollo/client/react" 8.34 KB (+41.59% 🔺)
import { useSuspenseQuery } from "@apollo/client/react" (production) 3.61 KB (-20.8% 🔽)
import { useBackgroundQuery } from "@apollo/client/react" 8.09 KB (+50.37% 🔺)
import { useBackgroundQuery } from "@apollo/client/react" (production) 3.37 KB (-16.55% 🔽)
import { useLoadableQuery } from "@apollo/client/react" 8.06 KB (+47.39% 🔺)
import { useLoadableQuery } from "@apollo/client/react" (production) 3.35 KB (-18.66% 🔽)
import { useReadQuery } from "@apollo/client/react" 6.39 KB (+86.04% 🔺)
import { useReadQuery } from "@apollo/client/react" (production) 1.63 KB (-51.84% 🔽)
import { useFragment } from "@apollo/client/react" 6.42 KB (+171.7% 🔺)
import { useFragment } from "@apollo/client/react" (production) 1.67 KB (-27.75% 🔽)
import { useLazyQuery } from "@apollo/client/react" (production) 2.13 KB (+100% 🔺)

jerelmiller and others added 25 commits January 10, 2025 17:54
* knip experiment

* some more config

* run `knip --fix` once

* more configuration, fix issues

* Remove deprecated `resetApolloContext` export

* add another exlusion

* run prettier

* some cleanup

* api-extractor

* config adjustments

* add CI job

* remove `isNullish`

* add a small integration test showing various re-export situations a wrapping library might use

* prettier
* move from `ts-node` to `node --experimental-strip-types`, create `build.ts`

* remove `engines` field, specify `devEngines`

* adjust node version for CI

* fix up some more syntax

* prettier

* adjust precheck, bump minimal lockfile version to 3

* convert jest config to esm

* move `entryPoints` to TS, make it work in mjs and jest

* run rollup with ts config

* update a few more node calls

* some more typings

* move all scripts to function invocation

* migrate `prepareChangestsRelease` too

* remove scripts that are not called manually

* convert `prepareDist` to TS

* migrate `precheck.js`

* `version.js->ts`

* use jest ts config

* prettier

* dirname.cjs->cts

* dirname-related import fixes

* fix up new knip issues

* delete `devEngines` instead of `engines` field

* require node 23.6 instead of 22.6
@github-actions github-actions bot mentioned this pull request Jun 27, 2025
jerelmiller and others added 9 commits June 27, 2025 11:28
Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
Co-authored-by: jerelmiller <565661+jerelmiller@users.noreply.github.com>
…operation`. (#12748)

Co-authored-by: Jerel Miller <jerelmiller@gmail.com>
Co-authored-by: jerelmiller <565661+jerelmiller@users.noreply.github.com>
* Add refetchObservableQueries

* Bind differently

* Use non-deprecated method name

* Add changeset

* Rerun api report

* Update size limits

* adjust changeset

* remove duplicate runtime assignment

---------

Co-authored-by: Lenz Weber-Tronic <lorenz.weber-tronic@apollographql.com>
* inline React Compiler runtime

* remove runtime peerDependency

* export tests

* fix CRA5?

* comment

* api report

* add as `react-compiler` export condition

* use compiled version in CI tests

* ensure `react-compiler` export isn't swallowed

* also add `@apollo/client/react/compiled` entry point

* legacy node10 exports

* chores

* remove exports condition

* Clean up Prettier, Size-limit, and Api-Extractor

* changeset

---------

Co-authored-by: phryneas <4282439+phryneas@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants