-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Version Packages (alpha) #12473
Merged
Merged
Version Packages (alpha) #12473
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
|
commit: |
✅ Deploy Preview for apollo-client-docs ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
c8c868f
to
6fb0d46
Compare
size-limit report 📦
|
6fb0d46
to
a3ad715
Compare
a3ad715
to
c7acf60
Compare
jerelmiller
approved these changes
Mar 24, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to release-4.0, this PR will be updated.
release-4.0
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onrelease-4.0
.Releases
@apollo/[email protected]
Major Changes
#12463
3868df8
Thanks @jerelmiller! -ObservableQuery.setOptions
has been removed as it was an alias ofreobserve
. Prefer usingreobserve
directly instead.As a result of this change,
reobserve
has been marked for public use and is no longer considered an internal API. ThenewNetworkStatus
argument has been removed to facilitate this change.#12470
d32902f
Thanks @phryneas! -ssrMode
,ssrForceFetchDelay
anddisableNetworkFetches
have been reworked:Previously, a
ObservableQuery
created byclient.query
orclient.watchQuery
while one of those were active would permanently be changed from a
fetchPolicy
of
"network-only"
or"cache-and-network"
to"cache-first"
, and stay that wayeven long after
disableNetworkFetches
would have been deactivated.Now, the
ObservableQuery
will keep their originalfetchPolicy
, but queriesmade during
disableNetworkFetches
will just apply thefetchPolicy
replacementat request time, just for that one request.
ApolloClient.disableNetworkFetches
has been renamed toApolloClient.prioritizeCacheValues
to better reflect this behaviour.#12465
a132163
Thanks @jerelmiller! - Flatten out React hook types. As a result, the base types have been removed. Prefer using the hook types instead. Removed types include:BaseMutationOptions
BaseQueryOptions
BaseSubscriptionOptions
ObservableQueryFields
MutationSharedOptions
QueryFunctionOptions
#12463
3868df8
Thanks @jerelmiller! -useQuery
no longer returnsreobserve
as part of its result. It was possible to usereobserve
to set new options on the underlyingObservableQuery
instance which differed from the options passed to the hook. This could result in unexpected results. Instead prefer to rerender the hook with new options.Patch Changes
a132163
Thanks @jerelmiller! - Rename all React hook result types and options. These types have all moved under a namespace that matches the hook name. For example,useQuery
exportsuseQuery.Options
anduseQuery.Result
types. As such, the old hook types have been deprecated and will be removed in v5.