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 246 commits into
base: main
Choose a base branch
from
Draft

Release 4.0 #12201

wants to merge 246 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: b845906

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: b845906

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.62 KB (-16.09% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) (CJS) 37.73 KB (-21.2% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" 32.55 KB (-10.4% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) 26.97 KB (-20.05% 🔽)
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.48 KB (-25.88% 🔽)
import { useQuery } from "@apollo/client/react" (production) 2.72 KB (-69.87% 🔽)
import { useLazyQuery } from "@apollo/client/react" 6.95 KB (-26.7% 🔽)
import { useMutation } from "@apollo/client/react" 6.52 KB (+80.26% 🔺)
import { useMutation } from "@apollo/client/react" (production) 1.75 KB (-38.21% 🔽)
import { useSubscription } from "@apollo/client/react" 6.63 KB (+49.75% 🔺)
import { useSubscription } from "@apollo/client/react" (production) 1.86 KB (-46.68% 🔽)
import { useSuspenseQuery } from "@apollo/client/react" 8.49 KB (+44.16% 🔺)
import { useSuspenseQuery } from "@apollo/client/react" (production) 3.73 KB (-18.04% 🔽)
import { useBackgroundQuery } from "@apollo/client/react" 8.22 KB (+52.8% 🔺)
import { useBackgroundQuery } from "@apollo/client/react" (production) 3.5 KB (-13.37% 🔽)
import { useLoadableQuery } from "@apollo/client/react" 8.54 KB (+56.23% 🔺)
import { useLoadableQuery } from "@apollo/client/react" (production) 3.81 KB (-7.45% 🔽)
import { useReadQuery } from "@apollo/client/react" 6.45 KB (+87.84% 🔺)
import { useReadQuery } from "@apollo/client/react" (production) 1.68 KB (-50.08% 🔽)
import { useFragment } from "@apollo/client/react" 6.49 KB (+174.76% 🔺)
import { useFragment } from "@apollo/client/react" (production) 1.74 KB (-24.75% 🔽)
import { useLazyQuery } from "@apollo/client/react" (production) 2.19 KB (+100% 🔺)

jerelmiller and others added 24 commits December 13, 2024 11:48
Co-authored-by: Lenz Weber-Tronic <[email protected]>
Co-authored-by: phryneas <[email protected]>
* 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
phryneas and others added 30 commits June 18, 2025 17:51
)

* rework multipart response parsing, remove incremental references

* remove export keyword

* Update src/link/http/__tests__/responseIterator.ts

Co-authored-by: Jerel Miller <[email protected]>

* Update src/incremental/handlers/__tests__/defer20220824.test.ts

Co-authored-by: Jerel Miller <[email protected]>

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

* simplify incremental logic

* Update src/link/http/parseAndCheckHttpResponse.ts

Co-authored-by: Jerel Miller <[email protected]>

* Update src/link/http/parseAndCheckHttpResponse.ts

Co-authored-by: Jerel Miller <[email protected]>

* Update src/link/http/parseAndCheckHttpResponse.ts

Co-authored-by: Jerel Miller <[email protected]>

* finangle types

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

* chores

---------

Co-authored-by: Jerel Miller <[email protected]>
Co-authored-by: phryneas <[email protected]>
* enable React compiler for hooks in ESM output

* pin React compiler dependencies

* knip

* also compile CJS

* disable CJS again

* deduplicate comment (thank you prettier)

* update compiler to `19.1.0-rc.2`

* add `build` export with values `"source" | "esm" | "cjs"`

* check that React tests run against ESM build in CI

* chores

* fixup 🤦

* Create real-turtles-boil.md

* chore
* migrate links to classes

* Update .changeset/weak-owls-buy.md

Co-authored-by: Jerel Miller <[email protected]>

---------

Co-authored-by: Jerel Miller <[email protected]>
)

* wip

* adjust options

* undo some type changes

* fix up types

* changesets

* type changes

* changeset changes

* fixup & chores

* add tests

* update test
* Add transformIgnorePatterns for rxjs

* Allow rxjs 7.3 and higher

* Test with min supported RxJS version

* Add changeset

* Run formatting

* Ensure existing moduleNameMapper config is used

* Update size limits

* Fix typo

* Don't allow 8.0.0

---------

Co-authored-by: Lenz Weber-Tronic <[email protected]>
…s and exclude from `client.refetchQueries` (#12712)

Co-authored-by: Lenz Weber-Tronic <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Lenz Weber-Tronic <[email protected]>
Co-authored-by: phryneas <[email protected]>
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