-
Notifications
You must be signed in to change notification settings - Fork 16
fix(deps): update apollo graphql packages #48
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
base: master
Are you sure you want to change the base?
Conversation
|
bfb73f6
to
55ad1d4
Compare
55ad1d4
to
8d3196f
Compare
8d3196f
to
c8fb4b0
Compare
c8fb4b0
to
6fe4d48
Compare
6fe4d48
to
2228f16
Compare
2228f16
to
8056158
Compare
8056158
to
d0315f8
Compare
d0315f8
to
6072599
Compare
6072599
to
6524b13
Compare
6524b13
to
8ccb654
Compare
8ccb654
to
9d86f01
Compare
9d86f01
to
97b2b1b
Compare
97b2b1b
to
74be571
Compare
74be571
to
1c4ecfd
Compare
1c4ecfd
to
d8c8879
Compare
d8c8879
to
005d096
Compare
005d096
to
54eae25
Compare
65bd690
to
f478cb9
Compare
1cbc89b
to
d63ccda
Compare
c6112db
to
f8fd734
Compare
f8fd734
to
e57a5d2
Compare
9c4de2d
to
b99d4d8
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: package-lock.json
|
703a623
to
3af3e78
Compare
3af3e78
to
67687b5
Compare
67687b5
to
54aacee
Compare
497695e
to
9b0153b
Compare
94dff07
to
ce20da6
Compare
ce20da6
to
10a87b4
Compare
|
10a87b4
to
44fa3f9
Compare
44fa3f9
to
f88e09e
Compare
f88e09e
to
1a5c09d
Compare
1a5c09d
to
5fd31a3
Compare
5fd31a3
to
4201cae
Compare
4201cae
to
cd0337d
Compare
e5e7550
to
513d7a9
Compare
513d7a9
to
d06b2f8
Compare
d06b2f8
to
01d9faf
Compare
2bbb069
to
f0c6fea
Compare
f0c6fea
to
9c3522c
Compare
9c3522c
to
ae00e2f
Compare
ae00e2f
to
d943e06
Compare
This PR contains the following updates:
1.2.2
->1.6.6
2.3.1
->2.6.10
^0.19.1
->^0.20.0
2.9.2
->2.12.6
2.1.4
->2.5.8
Release Notes
apollographql/apollo-client (apollo-cache-inmemory)
v1.6.6
Compare Source
v1.6.5
Compare Source
v1.6.3
Compare Source
v1.6.2
Compare Source
v1.6.1
Compare Source
__typename
exists on the root Query when matching fragments.@benjamn in #4853
v1.6.0
Compare Source
Support
new InMemoryCache({ freezeResults: true })
to help enforce immutability.@benjamn in #4514
Allow
IntrospectionFragmentMatcher
to match fragments against the rootQuery
, asHeuristicFragmentMatcher
does.@rynobax in #4620
Rerential identity (
===
) of arrays in cache results will now be preserved for unchanged data.@benjamn in commit f3091d6a
Avoid adding
__typename
field to@client
selection sets that have been@export
ed as input variables.@benjamn in #4784
v1.5.1
Compare Source
v1.5.0
Compare Source
v1.4.3
Compare Source
v1.4.2
Compare Source
v1.4.1
Compare Source
The
optimism
npm 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.stringify
instead of theprint
function exported by thegraphql
package, to avoid pulling unnecessary printing logic into yourJavaScript bundle.
PR #4234
The
QueryKeyMaker
abstraction 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.0
Compare 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
RecordingCache
abstraction has been removed, and thus is no longerexported from
apollo-cache-inmemory
.PR #4319
Export the optimism
wrap
function using ES2015 export syntax, instead ofCommonJS.
@ardatan in #4158
v1.3.12
Compare Source
Avoid using
DepTrackingCache
for optimistic reads.PR #4521
When creating an
InMemoryCache
object, it's now possible to disable theresult caching behavior introduced in #3394,
either for diagnostic purposes or because the benefit of caching repeated
reads is not worth the extra memory usage in your application:
Part of PR #4521.
v1.3.11
Compare Source
v1.3.10
Compare Source
Added some
return
s to prevent errors withnoImplicitReturns
TypeScript rule.
PR #4137
Exclude the
src/
directory when publishingapollo-cache-inmemory
.Issue #4083
v1.3.9
Compare Source
Issue #4081
PR #4089
v1.3.8
Compare Source
v1.3.7
Compare Source
Throw when querying non-scalar objects without a selection set.
Issue #4025
PR #4038
Work around spec non-compliance of
Map#set
andSet#add
in IE11.Issue #4024
PR #4012
v1.3.6
Compare Source
Optimize repeated
apollo-cache-inmemory
reads by caching partial queryresults, for substantial performance improvements. As a consequence, watched
queries will not be rebroadcast unless the data have changed.
PR #3394
Include root ID and fragment matcher function in cache keys computed by
StoreReader#executeStoreQuery
andexecuteSelectionSet
, and workaround bugs in the React Native
Map
andSet
polyfills.PR #3964
React Native PR #21492 (pending)
The
apollo-cache-inmemory
package now allowsgraphql@^14.0.0
as apeer dependency.
Issue #3978
The
apollo-cache-inmemory
package now correctly broadcasts changeseven when the new data is
===
to the old data, since the contents ofthe data object may have changed.
Issue #3992
PR #4032
v1.3.5
Compare Source
v1.3.4
Compare Source
v1.3.3
Compare Source
v1.3.2
isEqual
without pulling in massivelodash.isequal
.@benjamn in #4924
v1.3.1
isEqual
function has been reimplemented using thelodash.isequal
npm package, to better support circular references. Since thelodash.isequal
package is already used byreact-apollo
, this change is likely to decrease total bundle size.@capaj in #4915
v1.3.0
Compare Source
v1.2.10
Compare Source
v1.2.9
Compare Source
testing, etc.
@hwillson in #3817
v1.2.8
Compare Source
console.warn
regarding fragment matching error message.@combizs in #3701
v1.2.7
Compare Source
v1.2.6
Compare Source
__typename
andid
properties todataIdFromObject
parameter(typescript)
@jfurler in #3641
dataIdFromObject
considering returned 0 values tobe falsy, instead of being a valid ID, which lead to the store not being
updated properly in some cases.
@hwillson in #3711
v1.2.5
Compare Source
v1.2.4
Compare Source
v1.2.3
Compare Source
(@mvestergaard in #3541)
resultFields[ID_KEY]
.(@benjamn in #3544)
(@benjamn in #3553)
apollographql/apollo-codegen (apollo-codegen)
v0.20.2
Compare Source
v0.20.1
Compare Source
flow-legacy
target being unusablev0.20.0
Compare Source
typescript
andflow
targets now refer to the modern implementations. The deprecated legacy targets are available undertypescript-legacy
andflow-legacy
.--output
parameter to the CLI is now required for all targets.apollographql/graphql-tag (graphql-tag)
v2.12.6
Compare Source
graphql
^16.0.0.@brainkim in #530
v2.12.5
Compare Source
src/
directory to npm, enabling source maps.@maclockard in #403
v2.12.4
Compare Source
@dobesv in #257
v2.12.3
Compare Source
tslib
dependency to version 2.1.0.@benjamn in #381
v2.12.2
Compare Source
Object.assign
to attach extra properties togql
.@benjamn in #380
v2.12.1
Compare Source
import type ...
syntax (introduced by #325) has been removed, fixing issue #345.@benjamn in #352
v2.12.0
Compare Source
graphql-tag
repository has been converted to TypeScript, adding type safety and enabling both ECMAScript and CommonJS module exports. While these changes are intended to be as backwards-compatible as possible, we decided to bump the minor version to reflect the significant refactoring.@PowerKiKi and @benjamn in #325
v2.11.0
Compare Source
package.json
sideEffects
changes to clearly identify thatgraphql-tag
doesn't have side effects.@hwillson in #313
v2.10.4
Compare Source
graphql
15.@adriencohen in #299
v2.10.3
Compare Source
index.d.ts
declaration file.@Guillaumez in #289
v2.10.2
Compare Source
index.d.ts
declaration file.@hwillson in #285
v2.10.1
Compare Source
Set
by rocwang in #190v2.10.0
Compare Source
graphql@14
by timsuchanek in #210, #211apollographql/react-apollo (react-apollo)
v2.5.8
Compare Source
2.5.8 (2019-06-21)
Bug Fixes
apollo-client
2.6.3'sObservableQuery.resetQueryStoreErrors
method optional, for people who can't update to
react-apollo
's newapollo-client
peer dep of 2.6.3.@hwillson in #3151
v2.5.7
Compare Source
Improvements
MockedProvider
is using the proper CJS/ESM bundle, whenreferencing
ApolloProvider
.@jure in #3029.
ApolloContext
definition to play a bit more nicely withReact.createContext
types.@JoviDeCroock in #3018
when using the
graphql
HOC.@andycarrell in #3008
MockLink
to improvedebugging experience used by
MockedProvider
.@evans in #3078
Bug Fixes
apollo-client@beta
peer dep.@brentertz in #3064
null
, when using thegraphql
HOC.@ZhengYuTay in #3056
query
being mandatory in thefetchMore
signature.@HsuTing in #3065
Query
component to get stuck in an alwaysloading state, caused by receiving an error (meaning subsequent valid
responses couldn't be handled). The
Query
component can now handle anerror in a response, then continue to handle a valid response afterwards.
@hwillson in #3107
Subscription
component code to avoid setting state on unmountedcomponent.
@jasonpaulos in #3139
loading
state fornetwork-only
fetch policy.@jasonpaulos in #3126
v2.5.6
Compare Source
Improvements
Both the
Query
component andgraphql
HOC now accept areturnPartialData
prop. 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
returnPartialData
prop totrue
on thesecond component, the
data
available 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.5
Compare Source
Improvements
ApolloContext
).@MrLoh in #2961
v2.5.4
Compare Source
Bug Fixes
Could not find "client" in the context of ApolloConsumer
errors whenusing
MockedProvider
.@hwillson in #2907
Query
components using afetchPolicy
ofno-cache
have theirdata preserved when the components tree is re-rendered.
@hwillson in #2914
Improvements
@afenton90 in #2932
v2.5.3
Compare Source
Bug Fixes
setState
in theonError
/onCompleted
callbacks of theQuery
component.@chenesan in #2751
Query
component, after an error was received, variables were adjusted, and then
the good data was fetched.
@MerzDaniel in #2718
Query
component updates from firing (undercertain circumstances) due to the internal
lastResult
value (that's usedto help prevent unnecessary re-renders) not being updated.
@Glennrs in #2840
Improvements
MockedProvider
now accepts achildProps
prop that can be used to passprops down to a child component.
@miachenmtl in #2482
onCompleted
callbacks now use a destructuring-friendly type definition.@jozanza in #2496
@connection
directives are now properly stripped fromMockedResponse
's,when using
MockedProvider
.@ajmath in #2523
MockedProvider
has been updated to stop setting a defaultresolvers
value of
{}
, which means by default Apollo Client 2.5 local resolverfunctionality is not enabled when mocking with
MockedProvider
. This allows@client
fields 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
MockedProvider
with AC 2.5's new local resolver functionality, you can pass your local
resolver map into the
MockedProvider
resolvers
prop.@ajmath in #2524
Improvements to the
graphql
HOC generics forfetchMore
andrefetch
.@EricMcRay in #2525
The
ApolloProvider
/ApolloConsumer
implementations have been refactoredto use React 16.3's new context API.
@wzrdzl in #2540
All
dependencies
anddevDependencies
have been updated to their latestversions, and related Typescript changes have been applied.
@hwillson in #2873
v2.5.2
Compare Source
Bug Fixes
Context
type fromtypes.ts
instead ofwalkTree.ts
,to reenable
import { Context } from 'react-apollo'
(which has beenbroken since 2.4.0).
@benjamn in #2825
Improvements
Add
examples/rollup
to enable application-level bundle measurement and demonstrate Rollup configuration best practices.
@benjamn in #2839
Bundle size reductions inspired by
examples/rollup
app.@benjamn in #2842
v2.5.1
Compare Source
Bug Fixes
MockedProvider
enables 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
ApolloClient
instance.@hwillson in #2825
v2.5.0
Compare Source
Improvements
features, as well as many overall code improvements to help reduce the React
Apollo bundle size.
#2758
MockedResponse
result
when 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.1
Compare Source
Improvements
Adds a
onSubscriptionComplete
prop to theSubscription
component, thatcan be passed a callback to be called when the subscription observable
is completed.
@sujeetsr in #2716
During server-side rendering,
ObservableQuery
objects created inprevious rendering passes will now be preserved in later passes (within
the same
getDataFromTree
orgetMarkupFromTree
call), so that errorscan be handled properly when using the
errorPolicy: "all"
option.PR #2753
v2.4.0
Compare Source
Bug Fixes
onCompleted
/onError
even ifMutation
unmounts.PR #2710
Improvements
walkTree
function has been deprecated, since there's no way tomake its behavior consistent with the latest versions of React. To save
bundle size,
walkTree
is no longer exported fromreact-apollo
,though you can still access it as follows:
v2.3.3
Compare Source
Bug Fixes
react-dom
as a peer dependency (since it's used bygetDataFromTree
and
renderToStringWithData
).@hwillson in #2660
Improvements
react
14.x support, since the 14.x release line is 2 years old now,and
react-apollo
is no longer tested against it.@hwillson in #2660
v2.3.2
Compare Source
Improvements
Bug Fixes
react-dom/server
unconditionally at thetop level, making
react-apollo
safer to use in environments like ReactNative that are neither browser-like nor Node-like, and thus struggle to
import
react-dom/server
and its dependencies. Additionally, the ReactNative bundler has been instructed to ignore all
react-dom/server
dependencies within
react-apollo
, soreact-dom
will not be bundledin React Native apps simply because they import
react-apollo
.PR #2627
v2.3.1
Compare Source
Improvements
Restore original
getDataFromTree(tree, context)
API, and introduce anew alternative called
getMarkupFromTree
to enable custom renderingfunctions:
PR #2586
Bug Fixes
react-apollo/...
imports. This problem was fixed in version 2.3.1 byrunning
npm publish
from thelib/
directory, as intended.Issue #2591
v2.3.0
Compare Source
Bug Fixes
networkStatus
to reflect the loading state correctly for partialrefetching.
@steelbrain in #2493
Improvements
getDataFromTree
usingReactDOM.renderToStaticMarkup
tomake asynchronous server-side rendering compatible with
React hooks.
Although the rendering function used by
getDataFromTree
defaults torenderToStaticMarkup
, any suitable rendering function can be passed asthe optional second argument to
getDataFromTree
, which now returns aPromise<string>
that resolves to The HTML rendered in the final pass,which means calling
renderToString
aftergetDataFromTree
may not benecessary anymore.
PR #2533
v2.2.4
Compare Source
Bug Fixes
lodash.isequal
was improperly set as a dev dependency forMockLink
/MockedProvider
. It is now a dependency.@danilobuerger in #2449
Improvements
Subscription
component now accepts afetchPolicy
prop.@MatthieuLemoine in #2298
Typescript
TVariables
generic is passed toObservableQuery
.@tgriesser in #2311
v2.2.3
Compare Source
Bug Fixes
a default
errorPolicy
ofall
.@amacleay in #2374
<Mutation />
refetchQueries
triggered by name (string) will now use the correct variables.@fracmal in #2422
Improvements
lodash
dependency withlodash.flowright
(since that's theonly non-dev
lodash
function we're dependent on). Devlodash
dependencies have also been updated to use their individual module
equivalent.
@hwillson in #2435
rollup-plugin-babel-minify
as it's no longer being used.@hwillson in #2436
getDataFromTree.ts
logic adjustment to avoid unnecessary callswhen a falsy
element
is encountered.@HOUCe in #2429
graphql
14 updates.@hwillson in #2437
latest version of React Apollo.
@hwillson in #2439
Typescript
lodash
typings.@williamboman in #2430
context
toMutationOptions
.@danilobuerger in #2354
MutationOptions
changes/fixes.@danilobuerger in #2340
allowSyntheticDefaultImports
use. Typescript'sallowSyntheticDefaultImports
compiler option is something we'd like tostart using, but we jumped the gun a bit by introducing it in
apollographql/react-apollo@9a96519.
Including it means that anyone who wants to use Typescript with React
Apollo would have to also include it in their own local
tsconfig.json
, tobe able to handle default imports properly. This is because we're also using
Typescript's
es2015
module
option, which meansallowSyntheticDefaultImports
has to be enabled explicitly. We'veswitched back to using a combination of
import * as X
andrequire
syntax, to work with default imports. We'll re-introduce
allowSyntheticDefaultImports
use in React Apollo 3.@hwillson in #2438
v2.2.2
Compare Source
React.createContext
and SSR, we now make sure the contextprovider value is reset to the previous value it had after its children are
walked.
@mitchellhamilton in #2304
When a query failed on the first result, the query result
data
was beingreturned as
undefined
. This behavior has been changed so thatdata
isreturned as an empty object. This makes checking for data (e.g.
instead of
data && data.user
you can just checkdata.user
) anddestructring (e.g.
{ data: { user } }
) easier. Note: this couldpotentially hurt applications that are relying on a falsey check of
data
to see if any query errors have occurred. A better (and supported) way to
check for errors is to use the result
errors
property.#1983
v2.2.1
Compare Source
Partial<TData>
instead ofTData | {}
, for theQueryResult
data
property."v2.2.0
Deprecated
MutationFunc
in favor ofMutationFn
.Added missing
onCompleted
andonError
callbacks toMutationOpts
.@danilobuerger in #2322
@excitement-engineer in #1998
<Subscription />
component now allows the registration of a callbackfunction, that will be triggered each time the component receives data. The
callback
options
object param consists of the current Apollo Clientinstance in
client
, and the received subscription data insubscriptionData
.@jedwards1211 in #1966
graphql
options
object is no longer mutated, when calculatingvariables from props. This now prevents an issue where components created
with
graphql
were not having their query variables updated properly, whenprops changed.
@ksmth in #1968
data
was beingreturned as
undefined
. This behavior has been changed so thatdata
isreturned as an empty object. This makes checking for data (e.g.
instead of
data && data.user
you can just checkdata.user
) anddestructring (e.g.
{ data: { user } }
) easier. Note: this couldpotentially hurt applications that are relying on a falsey check of
data
to see if any query errors have occurred. A better (and supported) way to
check for errors is to use the result
errors
property.@TLadd in #1983
cache
object to be passed into the test-utilsMockedProvider
.@palmfjord in #2254
MockedProvider
mocks
prop read only.@amacleay in #2284
FetchMoreOptions
andFetchMoreQueryOptions
types, andinstead import them from Apollo Client.
@skovy in #2281
graphql
HOCoptions.skip
property.@jameslaneconkling in #2208
lodash
directly.@shahyar in #2045
Query
skip
prop is set totrue
, make sure the render proploading
param is set tofalse
, since we're not actually loadinganything.
@edorivai in #1916
@hwillson in #2404
<Subscription />
,<Query />
&<Mutation />
all supportusing an Apollo Client instance configured in the
context
or viaprops.
@quentin- in #1956
Partial<TData>
instead ofTData | {}
, for theQueryResult
data
property.@tgriesser in #2313
<Query />
onCompleted
andonError
callbacks to be triggeredvia the
componentDidUpdate
lifecycle method. This ensures these callbackscan be used when data is fetched over the network, and when data is
fetched from the local store
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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 was generated by Mend Renovate. View the repository job log.