angular-fullstack-graphql
angular-fullstack-graphql copied to clipboard
Update Apollo GraphQL packages (major)
This PR contains the following updates:
| Package | Type | Update | Change | References |
|---|---|---|---|---|
| apollo-client | dependencies | major | 1.9.3 -> 2.4.7 |
source |
| graphql-tag | dependencies | major | 1.3.2 -> 2.10.0 |
source |
Release Notes
apollographql/apollo-client
v2.4.7
Apollo Client (2.4.7)
- The
ApolloClientconstructor has been updated to acceptnameandversionparams, that can be used to support Apollo Server Client Awareness functionality. These client awareness properties are passed into the defined Apollo Link chain, and are then ultimately sent out as custom headers with outgoing requests.
@​hwillson in #​4154
Apollo Boost (0.1.22)
- No changes.
Apollo Cache (1.1.21)
- No changes.
Apollo Cache In-Memory (1.3.11)
- No changes.
Apollo Utilities (1.0.26)
- No changes.
Graphql Anywhere (4.1.23)
- No changes.
v2.4.6
Apollo Cache In-Memory (1.3.10)
-
Added some
returns to prevent errors withnoImplicitReturnsTypeScript rule. PR #​4137 -
Exclude the
src/directory when publishingapollo-cache-inmemory. Issue #​4083
v2.4.5
-
Optimistic tests cleanup. PR #​3834 by @​joshribakoff
-
Documentation updates. PR #​3840 by @​chentsulin and PR #​3844 by @​lorensr
-
Implement
ObservableQuery#isDifferentFromLastResultto fix Issue #​4054 and Issue #​4031. PR #​4069
Apollo Cache (1.1.20)
- Add
readQuerytest to make sure options aren't mutated. @​CarloPalinckx in #​3838
Apollo Cache In-Memory (1.3.9)
- Avoid modifying source objects when merging cache results. Issue #​4081 PR #​4089
Apollo Utilities (1.0.25)
- Fix
apollo-utilitiesisEqualbug due to missinghasOwnPropertycheck. PR #​4072 by @​samkline
v2.4.4
Apollo Utilities (1.0.24)
-
Discard property accessor functions in
cloneDeephelper, to fix issue #​4034. -
Unconditionally remove
cloneDeepproperty accessors. PR #​4039 -
Avoid copying non-enumerable and/or
Symbolkeys incloneDeep. PR #​4052
Apollo Cache In-Memory (1.3.7)
-
Throw when querying non-scalar objects without a selection set. Issue #​4025 PR #​4038
-
Work around spec non-compliance of
Map#setandSet#addin IE11. Issue #​4024 PR #​4012
v2.4.3
-
Add additional checks to make sure we don't try to set the network status of queries in the store, when the store doesn't exist.
@​i6mi6 in #​3914 -
Documentation updates.
@​shanonvl in #​3925
@​ojh102 in #​3920
@​Bkucera in #​3919
@​j4chou in #​3915
@​billfienberg in #​3886
@​TLadd in #​3884 -
The
ObservableQueryclass now makes a deep clone oflastResultwhen first received, so that theisDifferentResultlogic will not be confused if the result object is modified later. Issue #​3992 PR #​4032
Apollo Cache In-Memory (1.3.6)
-
Optimize repeated
apollo-cache-inmemoryreads by caching partial query results, 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#executeStoreQueryandexecuteSelectionSet, and work around bugs in the React NativeMapandSetpolyfills. PR #​3964 React Native PR #​21492 (pending) -
The
apollo-cache-inmemorypackage now allowsgraphql@^14.0.0as a peer dependency. Issue #​3978 -
The
apollo-cache-inmemorypackage now correctly broadcasts changes even when the new data is===to the old data, since the contents of the data object may have changed. Issue #​3992 PR #​4032
Apollo GraphQL Anywhere (4.1.20)
- Make
graphql-anywherefilterfunction generic (typescript).
@​minznerjosh in #​3929
Apollo Utilities (1.0.22)
- The
fclonepackage has been replaced with a customcloneDeepimplementation that is tolerant of cycles, symbol properties, and non-enumerable properties. PR #​4032
Apollo Boost (0.1.17)
- Remove duplicate InMemoryCache export for Babel 6 compatibility. Issue #​3910 PR #​3932
Apollo Cache (1.1.18)
- No changes.
v2.4.2
Apollo Client (2.4.2)
- Apollo Client no longer deep freezes query results. @​hwillson in #​3883
- A new
clearStoremethod has been added, that will remove all data from the store. UnlikeresetStore, it will not refetch active queries after removing store data. @​hwillson in #​3885
Apollo Utilities (1.0.21)
- Replace the custom
cloneDeepimplementation withfclone, to avoid crashing when encountering circular references.
@​hwillson in #​3881
Apollo Boost (0.1.16)
- No changes.
Apollo Cache (1.1.17)
- No changes.
Apollo Cache In-Memory (1.2.10)
- No changes.
Apollo GraphQL Anywhere (4.1.19)
- No changes.
v2.4.1
Apollo Client (2.4.1)
-
mutate'srefetchQueriesoption now allows queries to include a customcontextoption. Thiscontextwill be used when refetching the query. For example:context = { headers: { token: 'some auth token', }, }; client.mutate({ mutation: UPDATE_CUSTOMER_MUTATION, variables: { userId: user.id, firstName, ... }, refetchQueries: [{ query: CUSTOMER_MESSAGES_QUERY, variables: { userId: user.id }, context, }], context, });The
CUSTOMER_MESSAGES_QUERYabove will be refetched usingcontext. Normally queries are refetched using the original context they were first started with, but this provides a way to override the context, if needed.
@​hwillson in #​3852 -
Documentation updates.
@​hwillson in #​3841
Apollo Boost (0.1.15)
- Various internal infrastructure changes related to building, bundling, testing, etc. @​hwillson in #​3817
Apollo Cache (1.1.16)
- Various internal infrastructure changes related to building, bundling, testing, etc. @​hwillson in #​3817
Apollo Cache In-Memory (1.2.9)
- Various internal infrastructure changes related to building, bundling, testing, etc. @​hwillson in #​3817
Apollo Utilities (1.0.20)
- Various internal infrastructure changes related to building, bundling, testing, etc. @​hwillson in #​3817
Apollo GraphQL Anywhere (4.1.18)
- Various internal infrastructure changes related to building, bundling, testing, etc. @​hwillson in #​3817
v2.4.0
Apollo Client (2.4.0)
- Add proper error handling for subscriptions. If you have defined an
errorhandler on your subscription observer, it will now be called when an error comes back in a result, and thenexthandler will be skipped (similar to how we're handling errors with mutations). Previously, the error was just passed in the result to thenexthandler. If you don't have anerrorhandler defined, the previous functionality is maintained, meaning the error is passed in the result, giving the next handler a chance to deal with it. This should help address backwards compatibility (and is the reason for the minor version bumo in this release).
@​clayne11 in #​3800 - Allow an
optimisticparam to be passed intoApolloClient.readQueryandApolloClient.readFragment, that when set totrue, will allow optimistic results to be returned. Isfalseby default.
@​jay1337 in #​2429 - Optimistic tests cleanup.
@​joshribakoff in #​3713 - Make sure each package has its own
.npmignore, so they're taken into consideration when publishing via lerna.
@​hwillson in #​3828 - Documentation updates.
@​toolness in #​3804
@​pungggi in #​3798
@​lorensr in #​3748
@​joshribakoff in #​3730
@​yalamber in #​3819
@​pschreibs85 in #​3812
@​msreekm in #​3808
@​kamaltmo in #​3806
@​lorensr in #​3739
@​brainkim in #​3680
Apollo Cache In-Memory (1.2.8)
- Fix typo in
console.warnregarding fragment matching error message.
@​combizs in #​3701
Apollo Boost (0.1.14)
- No changes.
Apollo Cache (1.1.15)
- No changes.
Apollo Utilities (1.0.19)
- No changes.
Apollo GraphQL Anywhere (4.1.17)
- No changes.
v2.3.8
Apollo Client (2.3.8)
- Adjusted the
graphqlpeer dependency to cover explicit minor ranges. Since the ^ operator only covers any minor version if the major version is not 0 (since a major version of 0 is technically considered development by semver 2), the current ^0.11.0 || ^14.0.0 graphql range doesn't cover 0.12._ or 0.13._. This fixes theapollo-client@X has incorrect peer dependency "graphql@^0.11.0 || ^14.0.0"errors that people might have seen usinggraphql0.12.x or 0.13.x.
@​hwillson in #​3746 - Document
setVariablesinternal API status.
@​PowerKiKi in #​3692 - Corrected
ApolloClient.queryManagertyping as it may beundefined.
@​danilobuerger in #​3661 - Make sure using a
no-cachefetch policy with subscriptions prevents data from being cached.
@​hwillson in #​3773 - Fixed an issue that sometimes caused empty query results, when using the
no-cachefetch policy.
@​hwillson in #​3777 - Documentation updates.
@​hwillson in #​3750
@​hwillson in #​3754
@​TheMightyPenguin in #​3725
@​bennypowers in #​3668
@​hwillson in #​3762
@​chentsulin in #​3688
@​chentsulin in #​3687
@​ardouglass in #​3645
@​hwillson in #​3764
@​hwillson in #​3767
@​hwillson in #​3774
@​hwillson in #​3779
Apollo Boost (0.1.13)
- No changes.
Apollo Cache In-Memory (1.2.7)
- No changes.
Apollo Cache (1.1.14)
- No changes.
Apollo Utilities (1.0.18)
- No changes.
Apollo GraphQL Anywhere (4.1.16)
- No changes.
v2.3.7
Apollo Client (2.3.7)
- Release 2.3.6 broke Typescript compilation.
QueryManager'sgetQueryWithPreviousResultmethod included an invalidvariablesreturn type in the auto-generatedcore/QueryManager.d.tsdeclaration file. The type definition had a locally referenced path, that appears to have been caused by the typescript compiler getting confused at compile/publish time.getQueryWithPreviousResultreturn types are now excplicity identified, which helps Typescript avoid the local type reference. For more details, see #​3729.
@​hwillson in #​3731
Apollo Boost (0.1.12)
- No changes.
v2.3.6
Apollo Client (2.3.6)
- Documentation updates.
@​ananth99 in #​3599
@​hwillson in #​3635
@​JakeDawkins in #​3642
@​hwillson in #​3644
@​gbau in #​3644
@​chentsulin in #​3608
@​MikaelCarpenter in #​3609
@​Gamezpedia in #​3612
@​jinxac in #​3647
@​abernix in #​3705
@​dandv in #​3703
@​hwillson in #​3580 - Updated
graphqlpeerDependenciesto handle 14.x versions.
@​ivank in #​3598 - Add optional generic type params for variables on low level methods.
@​mvestergaard in #​3588 - Add a new
awaitRefetchQueriesconfig option to the Apollo Clientmutatefunction, that when set totruewill wait for allrefetchQueriesto be fully refetched, before resolving the mutation call.awaitRefetchQueriesisfalseby default.
@​jzimmek in #​3169
Apollo Boost (0.1.11)
- Allow
fetchto be given as a configuration option toApolloBoost.
@​mbaranovski in #​3590 - The
apollo-boostApolloClientconstructor now warns about unsupported options.
@​quentin- in #​3551
Apollo Cache (1.1.13)
- No changes.
Apollo Cache In-Memory (1.2.6)
- Add
__typenameandidproperties todataIdFromObjectparameter (typescript)
@​jfurler in #​3641 - Fixed an issue caused by
dataIdFromObjectconsidering returned 0 values to be falsy, instead of being a valid ID, which lead to the store not being updated properly in some cases.
@​hwillson in #​3711
Apollo Utilities (1.0.17)
- No changes.
Apollo GraphQL Anywhere (4.1.15)
- Add support for arrays to
graphql-anywhere's filter utility.
@​jsweet314 in #​3591 - Fix
Cannot convert object to primitive valueerror that was showing up when attempting to report a missing property on an object.
@​benjie in #​3618
v2.3.5
Apollo Client (2.3.5)
- Internal code formatting updates.
- Documentation updates.
Apollo Boost (0.1.10)
- No changes.
Apollo Cache (1.1.12)
- No changes.
Apollo Cache In-Memory (1.2.5)
- No changes.
Apollo Utilities (1.0.16)
- Removed unnecessary whitespace from error message.
Apollo GraphQL Anywhere (4.1.14)
- No changes.
v2.3.4
Apollo Client (2.3.4)
- Export the
QueryOptionsinterface, to make sure it can be used by other projects (likeapollo-angular). - Fixed an issue caused by typescript changes to the constructor
defaultOptionsparam, that preventedquerydefaults from passing type checks. (@​hwillson in #​3585)
Apollo Boost (0.1.9)
- No changes
Apollo Cache (1.1.11)
- No changes
Apollo Cache In-Memory (1.2.4)
- No changes
Apollo Utilities (1.0.15)
- No changes
Apollo GraphQL Anywhere (4.1.13)
- No changes
v2.3.3
Apollo Client (2.3.3)
- Typescript improvements. Made observable query parameterized on data and
variables:
ObservableQuery<TData, TVariables>(@​excitement-engineer in #​3140) - Added optional generics to cache manipulation methods (typescript). (@​mvestergaard in #​3541)
- Typescript improvements. Created a new
QueryOptionsinterface that is now used byApolloClient.queryoptions, instead of the previousWatchQueryOptionsinterface. This helps reduce confusion (especially in the docs) that made it look likeApolloClient.queryacceptedApolloClient.watchQueryonly options, likepollingInterval. (@​hwillson in #​3569)
Apollo Boost (0.1.8)
- Allow
cacheto be given as a configuration option toApolloBoost. (@​dandean in #​3561) - Allow
headersandcredentialsto be passed in as configuration parameters to theapollo-boostApolloClientconstructor. (@​rzane in #​3098)
Apollo Cache (1.1.10)
- Added optional generics to cache manipulation methods (typescript). (@​mvestergaard in #​3541)
Apollo Cache In-Memory (1.2.3)
- Added optional generics to cache manipulation methods (typescript). (@​mvestergaard in #​3541)
- Restore non-enumerability of
resultFields[ID_KEY]. (@​benjamn in #​3544) - Cache query documents transformed by InMemoryCache. (@​benjamn in #​3553)
Apollo Utilities (1.0.14)
- Store key names generated by
getStoreKeyNamenow leverage a more deterministic approach to handling JSON based strings. This prevents store key names from differing when usingargslike{ prop1: 'value1', prop2: 'value2' }and{ prop2: 'value2', prop1: 'value1' }. (@​gdi2290 in #​2869) - Avoid needless
hasOwnPropertycheck indeepFreeze. (@​benjamn in #​3545)
Apollo GraphQL Anywhere (4.1.12)
- No new changes.
v2.3.2
Apollo Client (2.3.2)
- Fix SSR and
cache-and-networkfetch policy (@​dastoori in #​3372) - Fixed an issue where the
updateQuerymethod passed toObservableQuery.fetchMorewas receiving the original query variables, instead of the new variables that it used to fetch more data. (@​abhiaiyer91 in #​3500) - Fixed an issue involving
Object.setPrototypeOf()not working on JSC (Android), by instead setting theprototypeofthismanually. (@​seklyza in #​3306) - Added safeguards to make sure
QueryStore.initQueryandQueryStore.markQueryResultdon't try to set the network status of afetchMoreForQueryIdquery, if it does not exist in the store. This was happening when a query component was unmounted while afetchMorewas still in flight. (@​conrad-vanl in #​3367, @​doomsower in #​3469)
Apollo Boost (0.1.7)
- Various internal code cleanup, tooling and dependency changes.
Apollo Cache (1.1.9)
- Various internal code cleanup, tooling and dependency changes.
Apollo Cache In-Memory (1.2.2)
- Fixed an issue that caused fragment only queries to sometimes fail. (@​abhiaiyer91 in #​3507)
- Fixed cache invalidation for inlined mixed types in union fields within arrays. (@​dferber90 in #​3422)
Apollo Utilities (1.0.13)
- Make
maybeDeepFreezea little more defensive, by always usingObject.prototype.hasOwnProperty(to avoid cases where the object being frozen doesn't have its ownhasOwnProperty). (@​jorisroling in #​3418) - Remove certain small internal caches to prevent memory leaks when using SSR. (@​brunorzn in #​3444)
Apollo GraphQL Anywhere (4.1.11)
- Source files are now excluded when publishing to npm. (@​hwillson in #​3454)
apollostack/graphql-tag
v2.10.0
- Add support for
graphql@14by timsuchanek in #​210, #​211
v2.9.2
v2.9.1
v2.9.0
- Remove duplicate exports in named exports by wacii in #​170
- Add
experimentalFragmentVariablescompatibility by lucasconstantino in #​167
v2.8.0
- Update
graphqlto ^0.13, support testing all compatible versions jnwng in PR #​156 - Export single queries as both default and named stonexer in PR #​154
v2.7.3
v2.7.1
v2.7.0
v2.6.1
v2.6.0
- Support multiple query definitions when using Webpack loader jfaust in PR #​122
v2.5.0
- Update graphql to ^0.11.0, add graphql@^0.11.0 to peerDependencies pleunv in PR #​124
v2.4.2
v2.4.1
v2.4.0
v2.3.0
- Add flow support michalkvasnicak in PR #​98
v2.2.2
v2.2.1
- Fix #​61: split('/n') does not work on Windows dnalborczyk in PR #​89
v2.2.0
- Bumping
graphqlpeer dependency to ^0.10.0 dotansimha in PR #​85
v2.1.0
- Add support for calling
gqlas a function matthewerwin in PR #​66 - Including yarn.lock file PowerKiKi in PR #​72
- Ignore duplicate fragments when using the Webpack loader czert in PR #​52
- Fixing
graphql-tag/loaderby properly stringifying GraphQL Source jnwng in PR #​65
v2.0.0
Restore dependence on graphql module abhiaiyer91 in
PR #​46 addressing
#​6
- Added
graphqlas a peerDependency
Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:ghost: Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
- [ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Renovate Bot. View repository job log here.