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

Release 4.0 #12201

wants to merge 147 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: 6a37dc5

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/@apollo/client@12201

commit: 6a37dc5

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.11 KB (-17.1% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) (CJS) 37.66 KB (-21.35% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" 32.25 KB (-11.22% 🔽)
import { ApolloClient, InMemoryCache, HttpLink } from "@apollo/client" (production) 27.3 KB (-19.08% 🔽)
import { ApolloProvider } from "@apollo/client/react" 5.12 KB (+307.31% 🔺)
import { ApolloProvider } from "@apollo/client/react" (production) 962 B (-24.26% 🔽)
import { useQuery } from "@apollo/client/react" 10.82 KB (+7.19% 🔺)
import { useQuery } from "@apollo/client/react" (production) 6.61 KB (-26.67% 🔽)
import { useLazyQuery } from "@apollo/client/react" 6.3 KB (-33.52% 🔽)
import { useMutation } from "@apollo/client/react" 5.71 KB (+57.82% 🔺)
import { useMutation } from "@apollo/client/react" (production) 1.53 KB (-46.05% 🔽)
import { useSubscription } from "@apollo/client/react" 6.01 KB (+35.78% 🔺)
import { useSubscription } from "@apollo/client/react" (production) 1.83 KB (-47.3% 🔽)
import { useSuspenseQuery } from "@apollo/client/react" 7.77 KB (+31.87% 🔺)
import { useSuspenseQuery } from "@apollo/client/react" (production) 3.57 KB (-21.53% 🔽)
import { useBackgroundQuery } from "@apollo/client/react" 7.57 KB (+40.58% 🔺)
import { useBackgroundQuery } from "@apollo/client/react" (production) 3.42 KB (-15.49% 🔽)
import { useLoadableQuery } from "@apollo/client/react" 7.59 KB (+38.8% 🔺)
import { useLoadableQuery } from "@apollo/client/react" (production) 3.44 KB (-16.48% 🔽)
import { useReadQuery } from "@apollo/client/react" 5.79 KB (+68.35% 🔺)
import { useReadQuery } from "@apollo/client/react" (production) 1.62 KB (-52.12% 🔽)
import { useFragment } from "@apollo/client/react" 5.84 KB (+147.13% 🔺)
import { useFragment } from "@apollo/client/react" (production) 1.68 KB (-27.37% 🔽)
import { useLazyQuery } from "@apollo/client/react" (production) 2.13 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
@BlenderDude
Copy link
Member

!docs rebuild

1 similar comment
@BlenderDude
Copy link
Member

!docs rebuild

@BlenderDude
Copy link
Member

!docs rebuild

jerelmiller and others added 9 commits April 16, 2025 11:33
* fix up some type exports in `/core`

* update api report
)

* Inline type of network error in persisted-queries

* Remove NetworkError type in errors/index

* Add a NetworkError class

* Add tests for NetworkError

* Add tsdoc

* Add equality tester for NetworkError

* Export isErrorLike

* Leave cause as raw value in NetworkError

* Add a link that wraps errors with NetworkError

* Update exports snapshot

* Add changeset

* Rerun api report

* Update size limits

* Move isErrorLike to own file

* Update api report

* Update size limits

* Update doc

* Remove equality matcher

* Remove NetworkError from is tests

* Update NetworkError to be a facade object that registers errors

* Register network errors from the link chain

* Register errors from mutations

* Handle mutations

* Handle subscriptions

* Add watchQuery check

* Create separate internal function

* Update exports snapshot

* Remove network error link

* Update exports snapshot

* Update api report

* Update size limits

* Remove outdated file

* Export NetworkError in core

* Update changeset

* Add failing test case for mutations

* Wrap and register network error sooner in the chain

* Remove need to check CombinedGraphQLErrors

* Rename NetworkError to LinkError

* Add type to WeakSet

* Update changeset

* Rerun api report

* Update size limits

* Update exports snapshot
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@BlenderDude
Copy link
Member

!docs rebuild

2 similar comments
@BlenderDude
Copy link
Member

!docs rebuild

@BlenderDude
Copy link
Member

!docs rebuild

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