-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Version Packages (rc) #12778
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 (rc) #12778
Conversation
commit: |
8d4b351
to
7a6608a
Compare
size-limit report 📦
|
7a6608a
to
1de8991
Compare
|
1de8991
to
32f946b
Compare
🛠️ Docs preview building...The preview is currently being built. Build ID: b7a1d6b335c1f5098ee32518 |
32f946b
to
07c8e4a
Compare
🛠️ Docs preview building...The preview is currently being built. Build ID: b9c39504ca77964d8cad0af8 |
07c8e4a
to
41a1972
Compare
🛠️ Docs preview building...The preview is currently being built. Build ID: b8225b04bc34b46bc2019ca4 |
41a1972
to
ba8c109
Compare
🛠️ Docs preview building...The preview is currently being built. Build ID: 0c3a14c1891deef6c75abecb |
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]
Patch Changes
454ec78
Thanks @jerelmiller! - Don't exportgql
from@apollo/client/react
entrypoint. Import from@apollo/client
instead.@apollo/[email protected]
Major Changes
#12776
bce9b74
Thanks @jerelmiller! - Report masked fragments as complete even when a nested masked fragment contains partial data.#12774
511b4f3
Thanks @jerelmiller! - Apply document transforms before reading data from the cache forclient.readQuery
,client.readFragment
,client.watchFragment
,useFragment
, anduseSuspenseFragment
.NOTE: This change does not affect the equivalent
cache.*
APIs. To read data from the cache without first running document transforms, runcache.readQuery
,cache.readFragment
, etc.Minor Changes
bce9b74
Thanks @jerelmiller! - AdddataState
to the value emitted fromclient.watchFragment
.Patch Changes
#12776
bce9b74
Thanks @jerelmiller! -cache.watchFragment
now returns anUnmasked<TData>
result sincecache.watchFragment
does not mask fragment spreads.#12370
0517163
Thanks @phryneas! -InMemoryCache
: Fields with an empty argument object are now saved the same way as fields without arguments.Previously, it was possible that the reponses for these two queries would be stored differently in the cache:
would be stored as
myField
and
would be stored as
myField({"optional":"Foo"})
if called with{optional: "Foo"}
and asmyField({})
if called without the optional argument.The cases
myField
andmyField({})
are equivalent from the perspective of a GraphQL server, and so in the future both of these will be stored asmyField
in the cache.#12775
454ec78
Thanks @jerelmiller! - Don't exportgql
from@apollo/client/react
entrypoint. Import from@apollo/client
instead.#12761
db6f7c3
Thanks @phryneas! - Deprecate second argument toreadFragment
andreadQuery
-optimistic
should be passed as part of the object in the first argument instead.