Update Apollo GraphQL packages #1
Open
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 contains the following updates:
1.3.12->1.6.52.4.8->2.6.81.0.12->1.0.202.10.0->2.10.34.0.3->4.0.82.3.1->2.5.8Release Notes
apollographql/apollo-client
v1.6.5Compare Source
v1.6.3Compare Source
v1.6.2Compare Source
v1.6.1Compare Source
__typenameexists on the root Query when matching fragments.@benjamn in #4853
v1.6.0Compare Source
Support
new InMemoryCache({ freezeResults: true })to help enforce immutability.@benjamn in #4514
Allow
IntrospectionFragmentMatcherto match fragments against the rootQuery, asHeuristicFragmentMatcherdoes.@rynobax in #4620
Rerential identity (
===) of arrays in cache results will now be preserved for unchanged data.@benjamn in commit f3091d6a
Avoid adding
__typenamefield to@clientselection sets that have been@exported as input variables.@benjamn in #4784
v1.5.1Compare Source
v1.5.0Compare Source
v1.4.3Compare Source
v1.4.2Compare Source
v1.4.1Compare Source
The
optimismnpm package has been updated to a version (0.6.9) thatprovides its own TypeScript declarations, which should fix problems like
Issue #4327.
PR #4331
Error messages involving GraphQL queries now print the queries using
JSON.stringifyinstead of theprintfunction exported by thegraphqlpackage, to avoid pulling unnecessary printing logic into yourJavaScript bundle.
PR #4234
The
QueryKeyMakerabstraction has been removed, meaning that cacheresults for non-identical queries (or sub-queries) with equivalent
structure will no longer be cached together. This feature was a nice
optimization in certain specific use cases, but it was not worth the
additional complexity or bundle size.
PR #4245
v1.4.0Compare Source
The speed and memory usage of optimistic reads and writes has been
improved dramatically using a new layering technique that does not
require copying the non-optimistic contents of the cache.
PR #4319
The
RecordingCacheabstraction has been removed, and thus is no longerexported from
apollo-cache-inmemory.PR #4319
Export the optimism
wrapfunction using ES2015 export syntax, instead ofCommonJS.
@ardatan in #4158
apollographql/apollo-link
v1.0.20Compare Source
v1.0.19Compare Source
v1.0.18Compare Source
where subscriber
nextand/orerrorcalls might have already deleted thekey the new dedupe changes were intended to help with.
@JoviDeCroock in #988
v1.0.17Compare Source
DedupLinkshared observable returningcleanup logic that unsubscribes from the real observable, without
checking whether only one of the many (shared) subscribers are
unsubscribing. This caused problems when using
DedupLinkin front ofHttpLink, as this lead toHttpLinkaborting HTTP requests while somecallers were still waiting for a response.
@ms in #984
v1.0.16Compare Source
v1.0.15Compare Source
v1.0.14Compare Source
v1.0.13Compare Source
apollographql/graphql-tag
v2.10.3Compare Source
index.d.tsdeclaration file.@Guillaumez in #289
v2.10.2Compare Source
index.d.tsdeclaration file.@hwillson in #285
v2.10.1Compare Source
Setby rocwang in #190apollographql/graphql-tools
v4.0.8Compare Source
v4.0.7Compare Source
extensionsprior to passing them tobuildASTSchema, in an effort to provide minimum compatibilty forgraphql@14-compatible schemas with the upcominggraphql@15release. This PR does not, however, bring support for newergraphql@15features like interfaces implementing interfaces. #1284v4.0.6Compare Source
getIntrospectionQueryinstead of deprecatedintrospectionQueryconstant from graphql-js@derek-miller in #1228
v4.0.5Compare Source
mergeSchemasas a string orGraphQLSchema.@hayes in #1062
mergeSchemasoptionally merge directive definitions.@freiksenet in #1003
buildSchemaoptions.@trevor-scheer in #1154
delegateToSchemato allow delegation to subscriptions with different root field names, allowsthe use of the
RenameRootFieldstransform with subscriptions,pull request #1104, fixes
#997.
Fixes #819.
v4.0.4Compare Source
WrapQuerywork for non-root fields@mdlavin in
#1007
@alvin777 in
#1005
mergeSchemasapi reference.@PlayMa256 in
#1014
@dougshamoo in #1012
@mfix22 in #983
TArgsgeneric whereverIFieldResolveris used.@brikou in #955
@evans in #1041
apollographql/react-apollo
v2.5.8Compare Source
2.5.8 (2019-06-21)
Bug Fixes
apollo-client2.6.3'sObservableQuery.resetQueryStoreErrorsmethod optional, for people who can't update to
react-apollo's newapollo-clientpeer dep of 2.6.3.@hwillson in #3151
v2.5.7Compare Source
Improvements
MockedProvideris using the proper CJS/ESM bundle, whenreferencing
ApolloProvider.@jure in #3029.
ApolloContextdefinition to play a bit more nicely withReact.createContexttypes.@JoviDeCroock in #3018
when using the
graphqlHOC.@andycarrell in #3008
MockLinkto improvedebugging experience used by
MockedProvider.@evans in #3078
Bug Fixes
apollo-client@betapeer dep.@brentertz in #3064
null, when using thegraphqlHOC.@ZhengYuTay in #3056
querybeing mandatory in thefetchMoresignature.@HsuTing in #3065
Querycomponent to get stuck in an alwaysloading state, caused by receiving an error (meaning subsequent valid
responses couldn't be handled). The
Querycomponent can now handle anerror in a response, then continue to handle a valid response afterwards.
@hwillson in #3107
Subscriptioncomponent code to avoid setting state on unmountedcomponent.
@jasonpaulos in #3139
loadingstate fornetwork-onlyfetch policy.@jasonpaulos in #3126
v2.5.6Compare Source
Improvements
Both the
Querycomponent andgraphqlHOC now accept areturnPartialDataprop. This is an important new feature, that shouldhelp address a lot of open Apollo Client / React Apollo issues, so we'll
explain it here with an example. Before this release, if you run a query
that looks like:
in one component, the results are cached, then you run a superset query like
the following in another component:
Apollo Client will not re-use the partial data that was cached from the first
query, when it preps and displays the second component. It can't find a
cache hit for the full second query, so it fires the full query over the
network.
With this release, if you set a
returnPartialDataprop totrueon thesecond component, the
dataavailable to that component will beautomatically pre-loaded with the parts of the query that can be found in the
cache, before the full query is fired over the network. This means you can
do things like showing partial data in your components, while the rest of the
data is being loaded over the network.
v2.5.5Compare Source
Improvements
ApolloContext).@MrLoh in #2961
v2.5.4Compare Source
Bug Fixes
Could not find "client" in the context of ApolloConsumererrors whenusing
MockedProvider.@hwillson in #2907
Querycomponents using afetchPolicyofno-cachehave theirdata preserved when the components tree is re-rendered.
@hwillson in #2914
Improvements
@afenton90 in #2932
v2.5.3Compare Source
Bug Fixes
setStatein theonError/onCompletedcallbacks of theQuerycomponent.@chenesan in #2751
Querycomponent, after an error was received, variables were adjusted, and then
the good data was fetched.
@MerzDaniel in #2718
Querycomponent updates from firing (undercertain circumstances) due to the internal
lastResultvalue (that's usedto help prevent unnecessary re-renders) not being updated.
@Glennrs in #2840
Improvements
MockedProvidernow accepts achildPropsprop that can be used to passprops down to a child component.
@miachenmtl in #2482
onCompletedcallbacks now use a destructuring-friendly type definition.@jozanza in #2496
@connectiondirectives are now properly stripped fromMockedResponse's,when using
MockedProvider.@ajmath in #2523
MockedProviderhas been updated to stop setting a defaultresolversvalue of
{}, which means by default Apollo Client 2.5 local resolverfunctionality is not enabled when mocking with
MockedProvider. This allows@clientfields to be passed through the mocked link chain, like peoplewere used to before AC 2.5. When using this default mode you will see a
dev only warning message about this like:
This message can be safely ignored. If you want to use
MockedProviderwith AC 2.5's new local resolver functionality, you can pass your local
resolver map into the
MockedProviderresolversprop.@ajmath in #2524
Improvements to the
graphqlHOC generics forfetchMoreandrefetch.@EricMcRay in #2525
The
ApolloProvider/ApolloConsumerimplementations have been refactoredto use React 16.3's new context API.
@wzrdzl in #2540
All
dependenciesanddevDependencieshave been updated to their latestversions, and related Typescript changes have been applied.
@hwillson in #2873
v2.5.2Compare Source
Bug Fixes
Contexttype fromtypes.tsinstead ofwalkTree.ts,to reenable
import { Context } from 'react-apollo'(which has beenbroken since 2.4.0).
@benjamn in #2825
Improvements
Add
examples/rollupto enable application-level bundle measurement and demonstrate Rollup configuration best practices.
@benjamn in #2839
Bundle size reductions inspired by
examples/rollupapp.@benjamn in #2842
v2.5.1Compare Source
Bug Fixes
MockedProviderenables Apollo Client 2.5's local state handling,and allow custom / mocked resolvers to be passed in as props, and used with
the created test
ApolloClientinstance.@hwillson in #2825
v2.5.0Compare Source
Improvements
features, as well as many overall code improvements to help reduce the React
Apollo bundle size.
#2758
MockedResponseresultwhen usingMockedProvider, such that every time the mocked result is returned,the function is run to calculate the result. This opens up new testing
possibilities, like being able to verify if a mocked result was actually
requested and received by a test.
@hwillson in #2788
v2.4.1Compare Source
Improvements
Adds a
onSubscriptionCompleteprop to theSubscriptioncomponent, thatcan be passed a callback to be called when the subscription observable
is completed.
@sujeetsr in #2716
During server-side rendering,
ObservableQueryobjects created inprevious rendering passes will now be preserved in later passes (within
the same
getDataFromTreeorgetMarkupFromTreecall), so that errorscan be handled properly when using the
errorPolicy: "all"option.PR #2753
v2.4.0Compare Source
Bug Fixes
onCompleted/onErroreven ifMutationunmounts.PR #2710
Improvements
walkTreefunction has been deprecated, since there's no way tomake its behavior consistent with the latest versions of React. To save
bundle size,
walkTreeis no longer exported fromreact-apollo,though you can still access it as follows:
v2.3.3Compare Source
Bug Fixes
react-domas a peer dependency (since it's used bygetDataFromTreeand
renderToStringWithData).@hwillson in #2660
Improvements
react14.x support, since the 14.x release line is 2 years old now,and
react-apollois no longer tested against it.@hwillson in #2660
v2.3.2Compare Source
Improvements
Bug Fixes
react-dom/serverunconditionally at thetop level, making
react-apollosafer to use in environments like ReactNative that are neither browser-like nor Node-like, and thus struggle to
import
react-dom/serverand its dependencies. Additionally, the ReactNative bundler has been instructed to ignore all
react-dom/serverdependencies within
react-apollo, soreact-domwill not be bundledin React Native apps simply because they import
react-apollo.PR #2627
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by WhiteSource Renovate. View repository job log here.