Skip to content
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

Release 3.7.0 #9633

Merged
merged 107 commits into from
Sep 30, 2022
Merged

Release 3.7.0 #9633

merged 107 commits into from
Sep 30, 2022

Conversation

benjamn
Copy link
Member

@benjamn benjamn commented Apr 27, 2022

Like the Release 3.6.0 PR, this PR will serve to collect significant new features, deprecation warnings, and minor breaking changes that we intend to release in @apollo/client@3.7.0.

If you want to test these changes, run

npm i @apollo/client@3.7.0-beta.n

in your application, where the n in -beta.n comes from the most recent commit message like

Bump @apollo/client npm version to 3.7.0-beta.n.

Until v3.7.0 is released, we can continue merging smaller changes into main and releasing them, without worrying about larger changes on the release-3.7 branch.

benjamn and others added 21 commits September 21, 2022 12:55
This is just one implementation of a FragmentRegistry that could be
provided to InMemoryCache to fill in missing fragment declarations in
transformForLink.

Learning from past mistakes, we will avoid referring directly to this
particular implementation of FragmentRegistry within the InMemoryCache
implementation, since that forces the full FragmentRegistry
implementation to be bundled even when it is not used.
As long as InMemoryCache uses only this TypeScript interface when
handling FragmentRegistry configurations, any implementation can be
swapped in without also paying for the bundle size of the default
implementation (the FragmentRegistry class).
Since these changes do not include any calls to createFragmentRegistry,
the FragmentRegistry class implementation remains optional and thus
tree-shakable if unused.
Allow registering named fragments with `InMemoryCache` to support using
`...FragmentName` in queries without redeclaring `FragmentName` in every query
#10118)

* Improve flaky HoC fetchMore test.

* Strengthen flaky useFragment cache.{modify,writeFragment} test.
This is the first "release candidate" for the upcoming 3.7.0 minor
release, signalling we will only be fixing bugs and adding missing
documentation before the final release. No new features, in other words.

Please run `npm i @apollo/client@next` to install this version and kick
the tires in your real applications. We appreciate your feedback! 🐣
Deprecates the `onSubscriptionData` and `onSubscriptionComplete` callbacks in favor of the simplified `onData` and `onComplete` callbacks.
@hwillson hwillson marked this pull request as ready for review September 30, 2022 16:38
@hwillson hwillson merged commit 9134aaf into main Sep 30, 2022
@alessbell alessbell mentioned this pull request Dec 8, 2022
@apollographql apollographql locked as resolved and limited conversation to collaborators Feb 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants