SurveyMonkey / graphql-ergonomock

Automatic mocking of GraphQL queries
MIT License
19 stars 5 forks source link

chore(deps): update dependency @apollo/client to v3.0.2 #53

Closed renovate[bot] closed 4 years ago

renovate[bot] commented 4 years ago

This PR contains the following updates:

Package Type Update Change
@apollo/client (source) devDependencies patch 3.0.0-rc.13 -> 3.0.2

Release Notes

apollographql/apollo-client ### [`v3.0.2`](https://togithub.com/apollographql/apollo-client/blob/master/CHANGELOG.md#Apollo-Client-302) [Compare Source](https://togithub.com/apollographql/apollo-client/compare/v3.0.1...v3.0.2) ### [`v3.0.1`](https://togithub.com/apollographql/apollo-client/blob/master/CHANGELOG.md#Apollo-Client-301) [Compare Source](https://togithub.com/apollographql/apollo-client/compare/v3.0.0...v3.0.1) ### [`v3.0.0`](https://togithub.com/apollographql/apollo-client/blob/master/CHANGELOG.md#Apollo-Client-300) [Compare Source](https://togithub.com/apollographql/apollo-client/compare/v3.0.0-rc.13...v3.0.0) #### Improvements > ⚠️ **Note:** As of 3.0.0, Apollo Client uses a new package name: [`@apollo/client`](https://www.npmjs.com/package/@​apollo/client) > > ##### `ApolloClient` - **[BREAKING]** `ApolloClient` is now only available as a named export. The default `ApolloClient` export has been removed.
[@​hwillson](https://togithub.com/hwillson) in [#​5425](https://togithub.com/apollographql/apollo-client/pull/5425) - **[BREAKING]** The `queryManager` property of `ApolloClient` instances is now marked as `private`, paving the way for a more aggressive redesign of its API. - **[BREAKING]** Apollo Client will no longer deliver "stale" results to `ObservableQuery` consumers, but will instead log more helpful errors about which cache fields were missing.
[@​benjamn](https://togithub.com/benjamn) in [#​6058](https://togithub.com/apollographql/apollo-client/pull/6058) - **[BREAKING]** `ApolloError`'s thrown by Apollo Client no longer prefix error messages with `GraphQL error:` or `Network error:`. To differentiate between GraphQL/network errors, refer to `ApolloError`'s public `graphQLErrors` and `networkError` properties.
[@​lorensr](https://togithub.com/lorensr) in [#​3892](https://togithub.com/apollographql/apollo-client/pull/3892) - **[BREAKING]** Support for the `@live` directive has been removed, but might be restored in the future if a more thorough implementation is proposed.
[@​benjamn](https://togithub.com/benjamn) in [#​6221](https://togithub.com/apollographql/apollo-client/pull/6221) - **[BREAKING]** Apollo Client 2.x allowed `@client` fields to be passed into the `link` chain if `resolvers` were not set in the constructor. This allowed `@client` fields to be passed into Links like `apollo-link-state`. Apollo Client 3 enforces that `@client` fields are local only, meaning they are no longer passed into the `link` chain, under any circumstances.
[@​hwillson](https://togithub.com/hwillson) in [#​5982](https://togithub.com/apollographql/apollo-client/pull/5982) - **[BREAKING?]** Refactor `QueryManager` to make better use of observables and enforce `fetchPolicy` more reliably.
[@​benjamn](https://togithub.com/benjamn) in [#​6221](https://togithub.com/apollographql/apollo-client/pull/6221) - The `updateQuery` function previously required by `fetchMore` has been deprecated with a warning, and will be removed in the next major version of Apollo Client. Please consider using a `merge` function to handle incoming data instead of relying on `updateQuery`.
[@​benjamn](https://togithub.com/benjamn) in [#​6464](https://togithub.com/apollographql/apollo-client/pull/6464) - Helper functions for generating common pagination-related field policies may be imported from `@apollo/client/utilities`. The most basic helper is `concatPagination`, which emulates the concatenation behavior of typical `updateQuery` functions. A more sophisticated helper is `offsetLimitPagination`, which implements offset/limit-based pagination. If you are consuming paginated data from a Relay-friendly API, use `relayStylePagination`. Feel free to use [these helper functions](https://togithub.com/apollographql/apollo-client/blob/master/src/utilities/policies/pagination.ts) as inspiration for your own field policies, and/or modify them to suit your needs.
[@​benjamn](https://togithub.com/benjamn) in [#​6465](https://togithub.com/apollographql/apollo-client/pull/6465) - Updated to work with `graphql@15`.
[@​durchanek](https://togithub.com/durchanek) in [#​6194](https://togithub.com/apollographql/apollo-client/pull/6194) and [#​6279](https://togithub.com/apollographql/apollo-client/pull/6279)
[@​hagmic](https://togithub.com/hagmic) in [#​6328](https://togithub.com/apollographql/apollo-client/pull/6328) - Apollo Link core and HTTP related functionality has been merged into `@apollo/client`. Functionality that was previously available through the `apollo-link`, `apollo-link-http-common` and `apollo-link-http` packages is now directly available from `@apollo/client` (e.g. `import { HttpLink } from '@​apollo/client'`). The `ApolloClient` constructor has also been updated to accept new `uri`, `headers` and `credentials` options. If `uri` is specified, Apollo Client will take care of creating the necessary `HttpLink` behind the scenes.
[@​hwillson](https://togithub.com/hwillson) in [#​5412](https://togithub.com/apollographql/apollo-client/pull/5412) - The `gql` template tag should now be imported from the `@apollo/client` package, rather than the `graphql-tag` package. Although the `graphql-tag` package still works for now, future versions of `@apollo/client` may change the implementation details of `gql` without a major version bump.
[@​hwillson](https://togithub.com/hwillson) in [#​5451](https://togithub.com/apollographql/apollo-client/pull/5451) - `@apollo/client/core` can be used to import the Apollo Client core, which includes everything the main `@apollo/client` package does, except for all React related functionality.
[@​kamilkisiela](https://togithub.com/kamilkisiela) in [#​5541](https://togithub.com/apollographql/apollo-client/pull/5541) - Several deprecated methods have been fully removed: - `ApolloClient#initQueryManager` - `QueryManager#startQuery` - `ObservableQuery#currentResult` - Apollo Client now supports setting a new `ApolloLink` (or link chain) after `new ApolloClient()` has been called, using the `ApolloClient#setLink` method.
[@​hwillson](https://togithub.com/hwillson) in [#​6193](https://togithub.com/apollographql/apollo-client/pull/6193) - The final time a mutation `update` function is called, it can no longer accidentally read optimistic data from other concurrent mutations, which ensures the use of optimistic updates has no lasting impact on the state of the cache after mutations have finished.
[@​benjamn](https://togithub.com/benjamn) in [#​6551](https://togithub.com/apollographql/apollo-client/pull/6551) - Apollo links that were previously maintained in have been merged into the Apollo Client project. They should be accessed using the new entry points listed in the [migration guide](./docs/source/migrating/apollo-client-3-migration.md).
[@​hwillson](https://togithub.com/hwillson) in [#](TODO) ##### `InMemoryCache` > ⚠️ **Note:** `InMemoryCache` has been significantly redesigned and rewritten in Apollo Client 3.0. Please consult the [migration guide](https://www.apollographql.com/docs/react/v3.0-beta/migrating/apollo-client-3-migration/#cache-improvements) and read the new [documentation](https://www.apollographql.com/docs/react/v3.0-beta/caching/cache-configuration/) to understand everything that has been improved. - The `InMemoryCache` constructor should now be imported directly from `@apollo/client`, rather than from a separate package. The `apollo-cache-inmemory` package is no longer supported. > The `@apollo/client/cache` entry point can be used to import `InMemoryCache` without importing other parts of the Apollo Client codebase.
> [@​hwillson](https://togithub.com/hwillson) in [#​5577](https://togithub.com/apollographql/apollo-client/pull/5577) - **[BREAKING]** `FragmentMatcher`, `HeuristicFragmentMatcher`, and `IntrospectionFragmentMatcher` have all been removed. We now recommend using `InMemoryCache`’s `possibleTypes` option instead. For more information see the [Defining `possibleTypes` manually](https://www.apollographql.com/docs/react/v3.0-beta/data/fragments/#defining-possibletypes-manually) section of the docs.
[@​benjamn](https://togithub.com/benjamn) in [#​5073](https://togithub.com/apollographql/apollo-client/pull/5073) - **[BREAKING]** As promised in the [Apollo Client 2.6 blog post](https://blog.apollographql.com/whats-new-in-apollo-client-2-6-b3acf28ecad1), all cache results are now frozen/immutable.
[@​benjamn](https://togithub.com/benjamn) in [#​5153](https://togithub.com/apollographql/apollo-client/pull/5153) - **[BREAKING]** Eliminate "generated" cache IDs to avoid normalizing objects with no meaningful ID, significantly reducing cache memory usage. This might be a backwards-incompatible change if your code depends on the precise internal representation of normalized data in the cache.
[@​benjamn](https://togithub.com/benjamn) in [#​5146](https://togithub.com/apollographql/apollo-client/pull/5146) - **[BREAKING]** `InMemoryCache` will no longer merge the fields of written objects unless the objects are known to have the same identity, and the values of fields with the same name will not be recursively merged unless a custom `merge` function is defined by a field policy for that field, within a type policy associated with the `__typename` of the parent object.
[@​benjamn](https://togithub.com/benjamn) in [#​5603](https://togithub.com/apollographql/apollo-client/pull/5603) - **[BREAKING]** `InMemoryCache` now _throws_ when data with missing or undefined query fields is written into the cache, rather than just warning in development.
[@​benjamn](https://togithub.com/benjamn) in [#​6055](https://togithub.com/apollographql/apollo-client/pull/6055) - **[BREAKING]** `client|cache.writeData` have been fully removed. `writeData` usage is one of the easiest ways to turn faulty assumptions about how the cache represents data internally, into cache inconsistency and corruption. `client|cache.writeQuery`, `client|cache.writeFragment`, and/or `cache.modify` can be used to update the cache.
[@​benjamn](https://togithub.com/benjamn) in [#​5923](https://togithub.com/apollographql/apollo-client/pull/5923) - `InMemoryCache` now supports tracing garbage collection and eviction. Note that the signature of the `evict` method has been simplified in a potentially backwards-incompatible way.
[@​benjamn](https://togithub.com/benjamn) in [#​5310](https://togithub.com/apollographql/apollo-client/pull/5310) - **[beta-BREAKING]** Please note that the `cache.evict` method now requires `Cache.EvictOptions`, though it previously supported positional arguments as well.
[@​danReynolds](https://togithub.com/danReynolds) in [#​6141](https://togithub.com/apollographql/apollo-client/pull/6141) [@​benjamn](https://togithub.com/benjamn) in [#​6364](https://togithub.com/apollographql/apollo-client/pull/6364) - Removing an entity object using the `cache.evict` method does not automatically remove dangling references to that entity elsewhere in the cache, but dangling references will be automatically filtered from lists whenever those lists are read from the cache. You can define a custom field `read` function to customize this behavior. See [#​6412](https://togithub.com/apollographql/apollo-client/pull/6412), [#​6425](https://togithub.com/apollographql/apollo-client/pull/6425), and [#​6454](https://togithub.com/apollographql/apollo-client/pull/6454) for further explanation. - Cache methods that would normally trigger a broadcast, like `cache.evict`, `cache.writeQuery`, and `cache.writeFragment`, can now be called with a named options object, which supports a `broadcast: boolean` property that can be used to silence the broadcast, for situations where you want to update the cache multiple times without triggering a broadcast each time.
[@​benjamn](https://togithub.com/benjamn) in [#​6288](https://togithub.com/apollographql/apollo-client/pull/6288) - `InMemoryCache` now `console.warn`s in development whenever non-normalized data is dangerously overwritten, with helpful links to documentation about normalization and custom `merge` functions.
[@​benjamn](https://togithub.com/benjamn) in [#​6372](https://togithub.com/apollographql/apollo-client/pull/6372) - The result caching system (introduced in [#​3394](https://togithub.com/apollographql/apollo-client/pull/3394)) now tracks dependencies at the field level, rather than at the level of whole entity objects, allowing the cache to return identical (`===`) results much more often than before.
[@​benjamn](https://togithub.com/benjamn) in [#​5617](https://togithub.com/apollographql/apollo-client/pull/5617) - `InMemoryCache` now has a method called `modify` which can be used to update the value of a specific field within a specific entity object: ```ts cache.modify({ id: cache.identify(post), fields: { comments(comments: Reference[], { readField }) { return comments.filter(comment => idToRemove !== readField("id", comment)); }, }, }); ``` This API gracefully handles cases where multiple field values are associated with a single field name, and also removes the need for updating the cache by reading a query or fragment, modifying the result, and writing the modified result back into the cache. Behind the scenes, the `cache.evict` method is now implemented in terms of `cache.modify`.
[@​benjamn](https://togithub.com/benjamn) in [#​5909](https://togithub.com/apollographql/apollo-client/pull/5909) and [#​6178](https://togithub.com/apollographql/apollo-client/pull/6178) - `InMemoryCache` provides a new API for storing client state that can be updated from anywhere: ```ts import { makeVar } from "@​apollo/client" const v = makeVar(123) console.log(v()) // 123 console.log(v(v() + 1)) // 124 console.log(v()) // 124 v("asdf") // TS type error ``` These variables are _reactive_ in the sense that updating their values invalidates any previously cached query results that depended on the old values.
[@​benjamn](https://togithub.com/benjamn) in [#​5799](https://togithub.com/apollographql/apollo-client/pull/5799), [#​5976](https://togithub.com/apollographql/apollo-client/pull/5976), and [#​6512](https://togithub.com/apollographql/apollo-client/pull/6512) - Various cache read and write performance optimizations, cutting read and write times by more than 50% in larger benchmarks.
[@​benjamn](https://togithub.com/benjamn) in [#​5948](https://togithub.com/apollographql/apollo-client/pull/5948) - The `cache.readQuery` and `cache.writeQuery` methods now accept an `options.id` string, which eliminates most use cases for `cache.readFragment` and `cache.writeFragment`, and skips the implicit conversion of fragment documents to query documents performed by `cache.{read,write}Fragment`.
[@​benjamn](https://togithub.com/benjamn) in [#​5930](https://togithub.com/apollographql/apollo-client/pull/5930) - Support `cache.identify(entity)` for easily computing entity ID strings.
[@​benjamn](https://togithub.com/benjamn) in [#​5642](https://togithub.com/apollographql/apollo-client/pull/5642) - Support eviction of specific entity fields using `cache.evict(id, fieldName)`.
[@​benjamn](https://togithub.com/benjamn) in [#​5643](https://togithub.com/apollographql/apollo-client/pull/5643) - Make `InMemoryCache#evict` remove data from all `EntityStore` layers.
[@​benjamn](https://togithub.com/benjamn) in [#​5773](https://togithub.com/apollographql/apollo-client/pull/5773) - Stop paying attention to `previousResult` in `InMemoryCache`.
[@​benjamn](https://togithub.com/benjamn) in [#​5644](https://togithub.com/apollographql/apollo-client/pull/5644) - Improve optimistic update performance by limiting cache key diversity.
[@​benjamn](https://togithub.com/benjamn) in [#​5648](https://togithub.com/apollographql/apollo-client/pull/5648) - Custom field `read` functions can read from neighboring fields using the `readField(fieldName)` helper, and may also read fields from other entities by calling `readField(fieldName, objectOrReference)`.
[@​benjamn](https://togithub.com/benjamn) in [#​5651](https://togithub.com/apollographql/apollo-client/pull/5651) - Expose cache `modify` and `identify` to the mutate `update` function.
[@​hwillson](https://togithub.com/hwillson) in [#​5956](https://togithub.com/apollographql/apollo-client/pull/5956) - Add a default `gc` implementation to `ApolloCache`.
[@​justinwaite](https://togithub.com/justinwaite) in [#​5974](https://togithub.com/apollographql/apollo-client/pull/5974) ##### React - **[BREAKING]** The `QueryOptions`, `MutationOptions`, and `SubscriptionOptions` React Apollo interfaces have been renamed to `QueryDataOptions`, `MutationDataOptions`, and `SubscriptionDataOptions` (to avoid conflicting with similarly named and exported Apollo Client interfaces). - **[BREAKING]** Results with `loading: true` will no longer redeliver previous data, though they may provide partial data from the cache, when available.
[@​benjamn](https://togithub.com/benjamn) in [#​6566](https://togithub.com/apollographql/apollo-client/pull/6566) - **[BREAKING?]** Remove `fixPolyfills.ts`, except when bundling for React Native. If you have trouble with `Map` or `Set` operations due to frozen key objects in React Native, either update React Native to version 0.59.0 (or 0.61.x, if possible) or investigate why `fixPolyfills.native.js` is not included in your bundle.
[@​benjamn](https://togithub.com/benjamn) in [#​5962](https://togithub.com/apollographql/apollo-client/pull/5962) - The contents of the `@apollo/react-hooks` package have been merged into `@apollo/client`, enabling the following all-in-one `import`: ```ts import { ApolloClient, ApolloProvider, useQuery } from '@​apollo/client'; ``` [@​hwillson](https://togithub.com/hwillson) in [#​5357](https://togithub.com/apollographql/apollo-client/pull/5357) - React SSR features (previously accessed via `@apollo/react-ssr`) can now be accessed from the separate Apollo Client entry point of `@apollo/client/react/ssr`. These features are not included in the default `@apollo/client` bundle.
[@​hwillson](https://togithub.com/hwillson) in [#​6499](https://togithub.com/apollographql/apollo-client/pull/6499) ##### General - **[BREAKING]** Removed `graphql-anywhere` since it's no longer used by Apollo Client.
[@​hwillson](https://togithub.com/hwillson) in [#​5159](https://togithub.com/apollographql/apollo-client/pull/5159) - **[BREAKING]** Removed `apollo-boost` since Apollo Client 3.0 provides a boost like getting started experience out of the box.
[@​hwillson](https://togithub.com/hwillson) in [#​5217](https://togithub.com/apollographql/apollo-client/pull/5217) - **[BREAKING]** We are no longer exporting certain (intended to be) internal utilities. If you are depending on some of the lesser known exports from `apollo-cache`, `apollo-cache-inmemory`, or `apollo-utilities`, they may no longer be available from `@apollo/client`.
[@​hwillson](https://togithub.com/hwillson) in [#​5437](https://togithub.com/apollographql/apollo-client/pull/5437) and [#​5514](https://togithub.com/apollographql/apollo-client/pull/5514) > Utilities that were previously externally available through the `apollo-utilities` package are now only available by importing from `@apollo/client/utilities`.
> [@​hwillson](https://togithub.com/hwillson) in [#​5683](https://togithub.com/apollographql/apollo-client/pull/5683) - Make sure all `graphql-tag` public exports are re-exported.
[@​hwillson](https://togithub.com/hwillson) in [#​5861](https://togithub.com/apollographql/apollo-client/pull/5861) - Fully removed `prettier`. The Apollo Client team has decided to no longer automatically enforce code formatting across the codebase. In most cases existing code styles should be followed as much as possible, but this is not a hard and fast rule.
[@​hwillson](https://togithub.com/hwillson) in [#​5227](https://togithub.com/apollographql/apollo-client/pull/5227) - Make sure `ApolloContext` plays nicely with IE11 when storing the shared context.
[@​ms](https://togithub.com/ms) in [#​5840](https://togithub.com/apollographql/apollo-client/pull/5840) - Migrated React Apollo HOC and Components functionality into Apollo Client, making it accessible from `@apollo/client/react/components` and `@apollo/client/react/hoc` entry points.
[@​hwillson](https://togithub.com/hwillson) in [#​6558](https://togithub.com/apollographql/apollo-client/pull/6558) - Support passing a `context` object through the link execution chain when using subscriptions.
[@​sgtpepper43](https://togithub.com/sgtpepper43) in [#​4925](https://togithub.com/apollographql/apollo-client/pull/4925) - `MockSubscriptionLink` now supports multiple subscriptions.
[@​dfrankland](https://togithub.com/dfrankland) in [#​6081](https://togithub.com/apollographql/apollo-client/pull/6081) ##### Bug Fixes - `useMutation` adjustments to help avoid an infinite loop / too many renders issue, caused by unintentionally modifying the `useState` based mutation result directly.
[@​hwillson](https://github/com/hwillson) in [#​5770](https://togithub.com/apollographql/apollo-client/pull/5770) - Missing `__typename` fields no longer cause the `InMemoryCache#diff` result to be marked `complete: false`, if those fields were added by `InMemoryCache#transformDocument` (which calls `addTypenameToDocument`).
[@​benjamn](https://togithub.com/benjamn) in [#​5787](https://togithub.com/apollographql/apollo-client/pull/5787) - Fixed an issue that allowed `@client @​export` based queries to lead to extra unnecessary network requests being fired.
[@​hwillson](https://togithub.com/hwillson) in [#​5946](https://togithub.com/apollographql/apollo-client/pull/5946) - Refined `useLazyQuery` types to help prevent runtime errors.
[@​benmosher](https://togithub.com/benmosher) in [#​5935](https://togithub.com/apollographql/apollo-client/pull/5935) - Make sure `@client @​export` variables used in watched queries are updated each time the query receives new data that changes the value of the `@export` variable.
[@​hwillson](https://togithub.com/hwillson) in [#​5986](https://togithub.com/apollographql/apollo-client/pull/5986) - Ensure `useMutation` passes a defined `errorPolicy` option into its underlying `ApolloClient.mutate()` call.
[@​jamesreggio](https://togithub.com/jamesreggio) in [#​5863](https://togithub.com/apollographql/apollo-client/pull/5863) - `useQuery`: Prevent new data re-render attempts during an existing render. This helps avoid React 16.13.0's "Cannot update a component from inside the function body of a different component" warning ([facebook/react#​17099](https://togithub.com/facebook/react/pull/17099)).
[@​hwillson](https://togithub.com/hwillson) in [#​6107](https://togithub.com/apollographql/apollo-client/pull/6107) - Expand `ApolloError` typings to include `ServerError` and `ServerParseError`.
[@​dmarkow](https://togithub.com/dmarkow) in [#​6319](https://togithub.com/apollographql/apollo-client/pull/6319) - Fast responses received over the link chain will no longer conflict with `skip` settings.
[@​hwillson](https://togithub.com/hwillson) in [#​6587](https://togithub.com/apollographql/apollo-client/pull/6587) #### Apollo Client 2.6.8 ##### Apollo Client (2.6.8) - Update the `fetchMore` type signature to accept `context`.
[@​koenpunt](https://togithub.com/koenpunt) in [#​5147](https://togithub.com/apollographql/apollo-client/pull/5147) - Fix type for `Resolver` and use it in the definition of `Resolvers`.
[@​peoplenarthax](https://togithub.com/peoplenarthax) in [#​4943](https://togithub.com/apollographql/apollo-client/pull/4943) - Local state resolver functions now receive a `fragmentMap: FragmentMap` object, in addition to the `field: FieldNode` object, via the `info` parameter.
[@​mjlyons](https://togithub.com/mjlyons) in [#​5388](https://togithub.com/apollographql/apollo-client/pull/5388) - Documentation updates.
[@​tomquirk](https://togithub.com/tomquirk) in [#​5645](https://togithub.com/apollographql/apollo-client/pull/5645)
[@​Sequoia](https://togithub.com/Sequoia) in [#​5641](https://togithub.com/apollographql/apollo-client/pull/5641)
[@​phryneas](https://togithub.com/phryneas) in [#​5628](https://togithub.com/apollographql/apollo-client/pull/5628)
[@​AryanJ-NYC](https://togithub.com/AryanJ-NYC) in [#​5560](https://togithub.com/apollographql/apollo-client/pull/5560) ##### GraphQL Anywhere (4.2.6) - Fix `filter` edge case involving `null`.
[@​lifeiscontent](https://togithub.com/lifeiscontent) in [#​5110](https://togithub.com/apollographql/apollo-client/pull/5110) ##### Apollo Boost (0.4.7) - Replace `GlobalFetch` reference with `WindowOrWorkerGlobalScope`.
[@​abdonrd](https://togithub.com/abdonrd) in [#​5373](https://togithub.com/apollographql/apollo-client/pull/5373) - Add `assumeImmutableResults` typing to apollo boost `PresetConfig` interface.
[@​bencoullie](https://togithub.com/bencoullie) in [#​5571](https://togithub.com/apollographql/apollo-client/pull/5571) #### Apollo Client (2.6.4) ##### Apollo Client (2.6.4) - Modify `ObservableQuery` to allow queries with `notifyOnNetworkStatusChange` to be notified when loading after an error occurs.
[@​jasonpaulos](https://togithub.com/jasonpaulos) in [#​4992](https://togithub.com/apollographql/apollo-client/pull/4992) - Add `graphql` as a `peerDependency` of `apollo-cache` and `graphql-anywhere`.
[@​ssalbdivad](https://togithub.com/ssalbdivad) in [#​5081](https://togithub.com/apollographql/apollo-client/pull/5081) - Documentation updates.
[@​raibima](https://togithub.com/raibima) in [#​5132](https://togithub.com/apollographql/apollo-client/pull/5132)
[@​hwillson](https://togithub.com/hwillson) in [#​5141](https://togithub.com/apollographql/apollo-client/pull/5141) #### Apollo Client (2.6.3) ##### Apollo Client (2.6.3) - A new `ObservableQuery.resetQueryStoreErrors()` method is now available that can be used to clear out `ObservableQuery` query store errors.
[@​hwillson](https://togithub.com/hwillson) in [#​4941](https://togithub.com/apollographql/apollo-client/pull/4941) - Documentation updates.
[@​michael-watson](https://togithub.com/michael-watson) in [#​4940](https://togithub.com/apollographql/apollo-client/pull/4940)
[@​hwillson](https://togithub.com/hwillson) in [#​4969](https://togithub.com/apollographql/apollo-client/pull/4969) #### Apollo Client (2.6.1) ##### Apollo Utilities 1.3.2 - Reimplement `isEqual` without pulling in massive `lodash.isequal`.
[@​benjamn](https://togithub.com/benjamn) in [#​4924](https://togithub.com/apollographql/apollo-client/pull/4924) #### Apollo Client (2.6.1) - In all Apollo Client packages, the compilation of `lib/bundle.esm.js` to `lib/bundle.cjs.js` and `lib/bundle.umd.js` now uses Babel instead of Rollup, since Babel correctly compiles some [edge cases](https://togithub.com/apollographql/apollo-client/issues/4843#issuecomment-495717720) that neither Rollup nor TypeScript compile correctly.
[@​benjamn](https://togithub.com/benjamn) in [#​4911](https://togithub.com/apollographql/apollo-client/pull/4911) ##### Apollo Cache In-Memory 1.6.1 - Pretend that `__typename` exists on the root Query when matching fragments.
[@​benjamn](https://togithub.com/benjamn) in [#​4853](https://togithub.com/apollographql/apollo-client/pull/4853) ##### Apollo Utilities 1.3.1 - The `isEqual` function has been reimplemented using the `lodash.isequal` npm package, to better support circular references. Since the `lodash.isequal` package is already used by `react-apollo`, this change is likely to decrease total bundle size.
[@​capaj](https://togithub.com/capaj) in [#​4915](https://togithub.com/apollographql/apollo-client/pull/4915) #### Apollo Client (2.6.0) - In production, `invariant(condition, message)` failures will now include a unique error code that can be used to trace the error back to the point of failure.
[@​benjamn](https://togithub.com/benjamn) in [#​4521](https://togithub.com/apollographql/apollo-client/pull/4521) ##### Apollo Client 2.6.0 - If you can be sure your application code does not modify cache result objects (see `freezeResults` note below), you can unlock substantial performance improvements by communicating this assumption via ```ts new ApolloClient({ assumeImmutableResults: true }) ``` which allows the client to avoid taking defensive snapshots of past results using `cloneDeep`, as explained by [@​benjamn](https://togithub.com/benjamn) in [#​4543](https://togithub.com/apollographql/apollo-client/pull/4543). - Identical overlapping queries are now deduplicated internally by `apollo-client`, rather than using the `apollo-link-dedup` package.
[@​benjamn](https://togithub.com/benjamn) in commit [7cd8479f](https://togithub.com/apollographql/apollo-client/pull/4586/commits/7cd8479f27ce38930f122e4f703c4081a75a63a7) - The `FetchPolicy` type has been split into two types, so that passing `cache-and-network` to `ApolloClient#query` is now forbidden at the type level, whereas previously it was forbidden by a runtime `invariant` assertion: ```ts export type FetchPolicy = | 'cache-first' | 'network-only' | 'cache-only' | 'no-cache' | 'standby'; export type WatchQueryFetchPolicy = | FetchPolicy | 'cache-and-network'; ``` The exception thrown if you ignore the type error has also been improved to explain the motivation behind this restriction.
[Issue #​3130 (comment)](https://togithub.com/apollographql/apollo-client/issues/3130#issuecomment-478409066) and commit [cf069bc7](github.com/apollographql/apollo-client/commit/cf069bc7ee6577092234b0eb0ac32e05d50f5a1c) - Avoid updating (and later invalidating) cache watches when `fetchPolicy` is `'no-cache'`.
[@​bradleyayers](https://togithub.com/bradleyayers) in [PR #​4573](https://togithub.com/apollographql/apollo-client/pull/4573), part of [issue #​3452](https://togithub.com/apollographql/apollo-client/issues/3452) - Remove temporary `queryId` after `fetchMore` completes.
[@​doomsower](https://togithub.com/doomsower) in [#​4440](https://togithub.com/apollographql/apollo-client/pull/4440) - Call `clearStore` callbacks after clearing store.
[@​ds8k](https://togithub.com/ds8k) in [#​4695](https://togithub.com/apollographql/apollo-client/pull/4695) - Perform all `DocumentNode` transforms once, and cache the results.
[@​benjamn](https://togithub.com/benjamn) in [#​4601](https://togithub.com/apollographql/apollo-client/pull/4601) - Accommodate `@client @​export` variable changes in `ObservableQuery`.
[@​hwillson](https://togithub.com/hwillson) in [#​4604](https://togithub.com/apollographql/apollo-client/pull/4604) - Support the `returnPartialData` option for watched queries again.
[@​benjamn](https://togithub.com/benjamn) in [#​4743](https://togithub.com/apollographql/apollo-client/pull/4743) - Preserve `networkStatus` for incomplete `cache-and-network` queries.
[@​benjamn](https://togithub.com/benjamn) in [#​4765](https://togithub.com/apollographql/apollo-client/pull/4765) - Preserve `cache-and-network` `fetchPolicy` when refetching.
[@​benjamn](https://togithub.com/benjamn) in [#​4840](https://togithub.com/apollographql/apollo-client/pull/4840) - Update the React Native docs to remove the request for external example apps that we can link to. We're no longer going to manage a list of external example apps.
[@​hwillson](https://togithub.com/hwillson) in [#​4531](https://togithub.com/apollographql/apollo-client/pull/4531) - Polling queries are no longer batched together, so their scheduling should be more predictable.
[@​benjamn](https://togithub.com/benjamn) in [#​4800](https://togithub.com/apollographql/apollo-client/pull/4800) ##### Apollo Cache In-Memory 1.6.0 - Support `new InMemoryCache({ freezeResults: true })` to help enforce immutability.
[@​benjamn](https://togithub.com/benjamn) in [#​4514](https://togithub.com/apollographql/apollo-client/pull/4514) - Allow `IntrospectionFragmentMatcher` to match fragments against the root `Query`, as `HeuristicFragmentMatcher` does.
[@​rynobax](https://togithub.com/rynobax) in [#​4620](https://togithub.com/apollographql/apollo-client/pull/4620) - Rerential identity (`===`) of arrays in cache results will now be preserved for unchanged data.
[@​benjamn](https://togithub.com/benjamn) in commit [f3091d6a](https://togithub.com/apollographql/apollo-client/pull/4586/commits/f3091d6a7e91be98549baea58903282cc540f460) - Avoid adding `__typename` field to `@client` selection sets that have been `@export`ed as input variables.
[@​benjamn](https://togithub.com/benjamn) in [#​4784](https://togithub.com/apollographql/apollo-client/pull/4784) ##### GraphQL Anywhere 4.2.2 - The `graphql` function can now be configured to ignore `@include` and `@skip` directives (useful when walking a fragment to generate prop types or filter result data).
[@​GreenGremlin](https://togithub.com/GreenGremlin) in [#​4373](https://togithub.com/apollographql/apollo-client/pull/4373) #### Apollo Client 2.5.1 ##### apollo-client 2.5.1 - Fixes `A tuple type element list cannot be empty` issue.
[@​benjamn](https://togithub.com/benjamn) in [#​4502](https://togithub.com/apollographql/apollo-client/pull/4502) ##### graphql-anywhere 4.2.1 - Adds back the missing `graphql-anywhere/lib/async` entry point.
[@​benjamn](https://togithub.com/benjamn) in [#​4503](https://togithub.com/apollographql/apollo-client/pull/4503) #### Apollo Client (2.5.0) ##### Apollo Client (2.5.0) - Introduces new local state management features (client-side schema and local resolver / `@client` support) and many overall code improvements, to help reduce the Apollo Client bundle size.
[#​4361](https://togithub.com/apollographql/apollo-client/pull/4361) - Revamped CJS and ESM bundling approach with Rollup.
[@​rosskevin](https://togithub.com/rosskevin) in [#​4261](https://togithub.com/apollographql/apollo-client/pull/4261) - Fixes an issue where the `QueryManager` was accidentally returning cached data for `network-only` queries.
[@​danilobuerger](https://togithub.com/danilobuerger) in [#​4352](https://togithub.com/apollographql/apollo-client/pull/4352) - Fixed an issue in the repo `.gitattributes` that was causing binary files to have their line endings adjusted, and cleaned up corrupted documentation images (ref: [#​4232](https://togithub.com/apollographql/apollo-client/pull/4232)).
[@​rajington](https://togithub.com/rajington) in [#​4438](https://togithub.com/apollographql/apollo-client/pull/4438) - Improve (and shorten) query polling implementation.
[PR #​4337](https://togithub.com/apollographql/apollo-client/pull/4337) #### Apollo Client (2.4.13) ##### Apollo Client (2.4.13) - Resolve "invalidate" -> "invalidated" typo in `QueryManager`.
[@​quazzie](https://togithub.com/quazzie) in [#​4041](https://togithub.com/apollographql/apollo-client/pull/4041) - Properly type `setQuery` and fix now typed callers.
[@​danilobuerger](https://togithub.com/danilobuerger) in [#​4369](https://togithub.com/apollographql/apollo-client/pull/4369) - Align with the React Apollo decision that result `data` should be `TData | undefined` instead of `TData | {}`.
[@​danilobuerger](https://togithub.com/danilobuerger) in [#​4356](https://togithub.com/apollographql/apollo-client/pull/4356) - Documentation updates.
[@​danilobuerger](https://togithub.com/danilobuerger) in [#​4340](https://togithub.com/apollographql/apollo-client/pull/4340)
[@​justyn-clark](https://togithub.com/justyn-clark) in [#​4383](https://togithub.com/apollographql/apollo-client/pull/4383)
[@​jtassin](https://togithub.com/jtassin) in [#​4287](https://togithub.com/apollographql/apollo-client/pull/4287)
[@​Gongreg](https://togithub.com/Gongreg) in [#​4386](https://togithub.com/apollographql/apollo-client/pull/4386)
[@​davecardwell](https://togithub.com/davecardwell) in [#​4399](https://togithub.com/apollographql/apollo-client/pull/4399)
[@​michaelknoch](https://togithub.com/michaelknoch) in [#​4384](https://togithub.com/apollographql/apollo-client/pull/4384)
#### Apollo Client (2.4.12) ##### Apollo Client (2.4.12) - Support `ApolloClient#stop` method for safe client disposal.
[PR #​4336](https://togithub.com/apollographql/apollo-client/pull/4336) #### Apollo Client (2.4.11) - Added explicit dependencies on the [`tslib`](https://www.npmjs.com/package/tslib) package to all client packages to fix [Issue #​4332](https://togithub.com/apollographql/apollo-client/issues/4332). ##### Apollo Client (2.4.11) - Reverted some breaking changes accidentally released in a patch version (2.4.10). [PR #​4334](https://togithub.com/apollographql/apollo-client/pull/4334) #### Apollo Client (2.4.10) ##### Apollo Client (2.4.10) - The `apollo-client` package no longer exports a `printAST` function from `graphql/language/printer`. If you need this functionality, import it directly: `import { print } from "graphql/language/printer"` - Query polling now uses a simpler scheduling strategy based on a single `setTimeout` interval rather than multiple `setInterval` timers. The new timer fires at the rate of the fastest polling interval, and queries with longer polling intervals fire whenever the time elapsed since they last fired exceeds their desired interval.
[PR #​4243](https://togithub.com/apollographql/apollo-client/pull/4243) ##### Apollo Cache In-Memory (1.4.1) - The `optimism` npm package has been updated to a version (0.6.9) that provides its own TypeScript declarations, which should fix problems like [Issue #​4327](https://togithub.com/apollographql/apollo-client/issues/4327).
[PR #​4331](https://togithub.com/apollographql/apollo-client/pull/4331) - Error messages involving GraphQL queries now print the queries using `JSON.stringify` instead of the `print` function exported by the `graphql` package, to avoid pulling unnecessary printing logic into your JavaScript bundle.
[PR #​4234](https://togithub.com/apollographql/apollo-client/pull/4234) - The `QueryKeyMaker` abstraction has been removed, meaning that cache results 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](https://togithub.com/apollographql/apollo-client/pull/4245) ##### Apollo Utilities (1.1.1) - The `flattenSelections` helper function is no longer exported from `apollo-utilities`, since `getDirectiveNames` has been reimplemented without using `flattenSelections`, and `flattenSelections` has no clear purpose now. If you need the old functionality, use a visitor: ```ts import { visit } from "graphql/language/visitor"; function flattenSelections(selection: SelectionNode) { const selections: SelectionNode[] = []; visit(selection, { SelectionSet(ss) { selections.push(...ss.selections); } }); return selections; } ``` #### Apollo Client (2.4.9) ##### Apollo Client (2.4.9) - Apollo Client has been updated to use `graphql` 14.x as a dev dependency.
[@​hwillson](https://togithub.com/hwillson) in [#​4233](https://togithub.com/apollographql/apollo-client/pull/4233) - The `onClearStore` function can now be used to register callbacks that should be triggered when calling `clearStore`.
[@​joe-re](https://togithub.com/joe-re) in [#​4082](https://togithub.com/apollographql/apollo-client/pull/4082) - Make `isApolloError` available for external use.
[@​FredyC](https://togithub.com/FredyC) in [#​4223](https://togithub.com/apollographql/apollo-client/pull/4223) - The `QueryManager` now calls `complete` on the observables used by Apollo Client's Subscription handling. This gives finite subscriptions a chance to handle cleanup.
[@​sujeetsr](https://togithub.com/sujeetsr) in [#​4290](https://togithub.com/apollographql/apollo-client/pull/4290) - Documentation updates.
[@​lifedup](https://togithub.com/lifedup) in [#​3931](https://togithub.com/apollographql/apollo-client/pull/3931)
[@​Dem0n3D](https://togithub.com/Dem0n3D) in [#​4008](https://togithub.com/apollographql/apollo-client/pull/4008)
[@​anand-sundaram-zocdoc](https://togithub.com/anand-sundaram-zocdoc) in [#​4009](https://togithub.com/apollographql/apollo-client/pull/4009)
[@​mattphoto](https://togithub.com/mattphoto) in [#​4026](https://togithub.com/apollographql/apollo-client/pull/4026)
[@​birge](https://togithub.com/birge) in [#​4029](https://togithub.com/apollographql/apollo-client/pull/4029)
[@​mxstbr](https://togithub.com/mxstbr) in [#​4127](https://togithub.com/apollographql/apollo-client/pull/4127)
[@​Caerbannog](https://togithub.com/Caerbannog) in [#​4140](https://togithub.com/apollographql/apollo-client/pull/4140)
[@​jedwards1211](https://togithub.com/jedwards1211) in [#​4179](https://togithub.com/apollographql/apollo-client/pull/4179)
[@​nutboltu](https://togithub.com/nutboltu) in [#​4182](https://togithub.com/apollographql/apollo-client/pull/4182)
[@​CarloPalinckx](https://togithub.com/CarloPalinckx) in [#​4189](https://togithub.com/apollographql/apollo-client/pull/4189)
[@​joebernard](https://togithub.com/joebernard) in [#​4206](https://togithub.com/apollographql/apollo-client/pull/4206)
[@​evans](https://togithub.com/evans) in [#​4213](https://togithub.com/apollographql/apollo-client/pull/4213)
[@​danilobuerger](https://togithub.com/danilobuerger) in [#​4214](https://togithub.com/apollographql/apollo-client/pull/4214)
[@​stubailo](https://togithub.com/stubailo) in [#​4220](https://togithub.com/apollographql/apollo-client/pull/4220)
[@​haysclark](https://togithub.com/haysclark) in [#​4255](https://togithub.com/apollographql/apollo-client/pull/4255)
[@​shelmire](https://togithub.com/shelmire) in [#​4266](https://togithub.com/apollographql/apollo-client/pull/4266)
[@​peggyrayzis](https://togithub.com/peggyrayzis) in [#​4280](https://togithub.com/apollographql/apollo-client/pull/4280)
[@​caydie-tran](https://togithub.com/caydie-tran) in [#​4300](https://togithub.com/apollographql/apollo-client/pull/4300) ##### Apollo Utilities (1.1.0) - Transformation utilities have been refactored to work with `graphql` 14.x. GraphQL AST's are no longer being directly modified.
[@​hwillson](https://togithub.com/hwillson) in [#​4233](https://togithub.com/apollographql/apollo-client/pull/4233) ##### Apollo Cache In-Memory (1.4.0) - 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](https://togithub.com/apollographql/apollo-client/pull/4319/) - The `RecordingCache` abstraction has been removed, and thus is no longer exported from `apollo-cache-inmemory`.
[PR #​4319](https://togithub.com/apollographql/apollo-client/pull/4319/) - Export the optimism `wrap` function using ES2015 export syntax, instead of CommonJS.
[@​ardatan](https://togithub.com/ardatan) in [#​4158](https://togithub.com/apollographql/apollo-client/pull/4158) #### Apollo Client (2.4.8) ##### Apollo Client (2.4.8) - Documentation and config updates.
[@​justinanastos](https://togithub.com/justinanastos) in [#​4187](https://togithub.com/apollographql/apollo-client/pull/4187)
[@​PowerKiKi](https://togithub.com/PowerKiKi) in [#​3693](https://togithub.com/apollographql/apollo-client/pull/3693)
[@​nandito](https://togithub.com/nandito) in [#​3865](https://togithub.com/apollographql/apollo-client/pull/3865) - Schema/AST tranformation utilities have been updated to work properly with `@client` directives.
[@​justinmakaila](https://togithub.com/justinmakaila) in [#​3482](https://togithub.com/apollographql/apollo-client/pull/3482) ##### Apollo Cache In-Memory (1.3.12) - Avoid using `DepTrackingCache` for optimistic reads. [PR #​4521](https://togithub.com/apollographql/apollo-client/pull/4251) - When creating an `InMemoryCache` object, it's now possible to disable the result caching behavior introduced in [#​3394](https://togithub.com/apollographql/apollo-client/pull/3394), either for diagnostic purposes or because the benefit of caching repeated reads is not worth the extra memory usage in your application: ```ts new InMemoryCache({ resultCaching: false }) ``` Part of [PR #​4521](https://togithub.com/apollographql/apollo-client/pull/4251). #### Apollo Client (2.4.7) ##### Apollo Client (2.4.7) - The `ApolloClient` constructor has been updated to accept `name` and `version` params, that can be used to support Apollo Server [Client Awareness](https://www.apollographql.com/docs/apollo-server/v2/features/metrics.html#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](https://togithub.com/hwillson) in [#​4154](https://togithub.com/apollographql/apollo-client/pull/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. #### Apollo Client (2.4.6) ##### Apollo Cache In-Memory (1.3.10) - Added some `return`s to prevent errors with `noImplicitReturns` TypeScript rule. [PR #​4137](https://togithub.com/apollographql/apollo-client/pull/4137) - Exclude the `src/` directory when publishing `apollo-cache-inmemory`. [Issue #​4083](https://togithub.com/apollographql/apollo-client/issues/4083) #### Apollo Client (2.4.5) - Optimistic tests cleanup. [PR #​3834](https://togithub.com/apollographql/apollo-client/pull/3834) by [@​joshribakoff](https://togithub.com/joshribakoff) - Documentation updates. [PR #​3840](https://togithub.com/apollographql/apollo-client/pull/3840) by [@​chentsulin](https://togithub.com/chentsulin) and [PR #​3844](https://togithub.com/apollographql/apollo-client/pull/3844) by [@​lorensr](https://togithub.com/lorensr) - Implement `ObservableQuery#isDifferentFromLastResult` to fix [Issue #​4054](https://togithub.com/apollographql/apollo-client/issues/4054) and [Issue #​4031](https://togithub.com/apollographql/apollo-client/issues/4031). [PR #​4069](https://togithub.com/apollographql/apollo-client/pull/4069) ##### Apollo Cache (1.1.20) - Add `readQuery` test to make sure options aren't mutated. [@​CarloPalinckx](https://togithub.com/CarloPalinckx) in [#​3838](https://togithub.com/apollographql/apollo-client/pull/3838) ##### Apollo Cache In-Memory (1.3.9) - Avoid modifying source objects when merging cache results. [Issue #​4081](https://togithub.com/apollographql/apollo-client/issues/4081) [PR #​4089](https://togithub.com/apollographql/apollo-client/pull/4089) ##### Apollo Utilities (1.0.25) - Fix `apollo-utilities` `isEqual` bug due to missing `hasOwnProperty` check. [PR #​4072](https://togithub.com/apollographql/apollo-client/pull/4072) by [@​samkline](https://togithub.com/samkline) #### Apollo Client (2.4.4) ##### Apollo Utilities (1.0.24) - Discard property accessor functions in `cloneDeep` helper, to fix [issue #​4034](https://togithub.com/apollographql/apollo-client/issues/4034). - Unconditionally remove `cloneDeep` property accessors. [PR #​4039](https://togithub.com/apollographql/apollo-client/pull/4039) - Avoid copying non-enumerable and/or `Symbol` keys in `cloneDeep`. [PR #​4052](https://togithub.com/apollographql/apollo-client/pull/4052) ##### Apollo Cache In-Memory (1.3.7) - Throw when querying non-scalar objects without a selection set. [Issue #​4025](https://togithub.com/apollographql/apollo-client/issues/4025) [PR #​4038](https://togithub.com/apollographql/apollo-client/pull/4038) - Work around spec non-compliance of `Map#set` and `Set#add` in IE11. [Issue #​4024](https://togithub.com/apollographql/apollo-client/issues/4024) [PR #​4012](https://togithub.com/apollographql/apollo-client/pull/4012) #### Apollo Client (2.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](https://togithub.com/i6mi6) in [#​3914](https://togithub.com/apollographql/apollo-client/pull/3914) - Documentation updates.
[@​shanonvl](https://togithub.com/shanonvl) in [#​3925](https://togithub.com/apollographql/apollo-client/pull/3925)
[@​ojh102](https://togithub.com/ojh102) in [#​3920](https://togithub.com/apollographql/apollo-client/pull/3920)
[@​Bkucera](https://togithub.com/Bkucera) in [#​3919](https://togithub.com/apollographql/apollo-client/pull/3919)
[@​j4chou](https://togithub.com/j4chou) in [#​3915](https://togithub.com/apollographql/apollo-client/pull/3915)
[@​billfienberg](https://togithub.com/billfienberg) in [#​3886](https://togithub.com/apollographql/apollo-client/pull/3886)
[@​TLadd](https://togithub.com/TLadd) in [#​3884](https://togithub.com/apollographql/apollo-client/pull/3884) - The `ObservableQuery` class now makes a deep clone of `lastResult` when first received, so that the `isDifferentResult` logic will not be confused if the result object is modified later. [Issue #​3992](https://togithub.com/apollographql/apollo-client/issues/3992) [PR #​4032](https://togithub.com/apollographql/apollo-client/pull/4032/commits/e66027c5341dc7aaf71ee7ffcba1305b9a553525) ##### Apollo Cache In-Memory (1.3.6) - Optimize repeated `apollo-cache-inmemory` reads 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](https://togithub.com/apollographql/apollo-client/pull/3394) - Include root ID and fragment matcher function in cache keys computed by `StoreReader#executeStoreQuery` and `executeSelectionSet`, and work around bugs in the React Native `Map` and `Set` polyfills. [PR #​3964](https://togithub.com/apollographql/apollo-client/pull/3964) [React Native PR #​21492 (pending)](https://togithub.com/facebook/react-native/pull/21492) - The `apollo-cache-inmemory` package now allows `graphql@^14.0.0` as a peer dependency. [Issue #​3978](https://togithub.com/apollographql/apollo-client/issues/3978) - The `apollo-cache-inmemory` package 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](https://togithub.com/apollographql/apollo-client/issues/3992) [PR #​4032](https://togithub.com/apollographql/apollo-client/pull/4032/commits/d6a673fbc1444e115e90cc9e4c7fa3fc67bb7e56) ##### Apollo GraphQL Anywhere (4.1.20) - Make `graphql-anywhere` `filter` function generic (typescript).
[@​minznerjosh](https://togithub.com/minznerjosh) in [#​3929](https://togithub.com/apollographql/apollo-client/pull/3929) ##### Apollo Utilities (1.0.22) - The `fclone` package has been replaced with a custom `cloneDeep` implementation that is tolerant of cycles, symbol properties, and non-enumerable properties. [PR #​4032](https://togithub.com/apollographql/apollo-client/pull/4032/commits/78e2ad89f950da2829f49c7876f968adb2bc1302) ##### Apollo Boost (0.1.17) - Remove duplicate InMemoryCache export for Babel 6 compatibility. [Issue #​3910](https://togithub.com/apollographql/apollo-client/issues/3910) [PR #​3932](https://togithub.com/apollographql/apollo-client/pull/3932) ##### Apollo Cache (1.1.18) - No changes. #### Apollo Client (2.4.2) ##### Apollo Client (2.4.2) - Apollo Client no longer deep freezes query results. [@​hwillson](https://togithub.com/hwillson) in [#​3883](https://togithub.com/apollographql/apollo-client/pull/3883) - A new `clearStore` method has been added, that will remove all data from the store. Unlike `resetStore`, it will not refetch active queries after removing store data. [@​hwillson](https://togithub.com/hwillson) in [#​3885](https://togithub.com/apollographql/apollo-client/pull/3885) ##### Apollo Utilities (1.0.21) - Replace the custom `cloneDeep` implementation with [`fclone`](https://www.npmjs.com/package/fclone), to avoid crashing when encountering circular references.
[@​hwillson](https://togithub.com/hwillson) in [#​3881](https://togithub.com/apollographql/apollo-client/pull/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. #### 2.4.1 (August 26, 2018) ##### Apollo Client (2.4.1) - `mutate`'s `refetchQueries` option now allows queries to include a custom `context` option. This `context` will be used when refetching the query. For example: ```js 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_QUERY` above will be refetched using `context`. 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](https://togithub.com/hwillson) in [#​3852](https://togithub.com/apollographql/apollo-client/pull/3852) - Documentation updates.
[@​hwillson](https://togithub.com/hwillson) in [#​3841](https://togithub.com/apollographql/apollo-client/pull/3841) ##### Apollo Boost (0.1.15) - Various internal infrastructure changes related to building, bundling, testing, etc. [@​hwillson](https://togithub.com/hwillson) in [#​3817](https://togithub.com/apollographql/apollo-client/pull/3817) ##### Apollo Cache (1.1.16) - Various internal infrastructure changes related to building, bundling, testing, etc. [@​hwil

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 you tick the rebase/retry checkbox.

:no_bell: Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by WhiteSource Renovate. View repository job log here.

codecov[bot] commented 4 years ago

Codecov Report

Merging #53 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #53   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            8         8           
  Lines          153       153           
  Branches        40        40           
=========================================
  Hits           153       153           

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b06a0b6...2f2816e. Read the comment docs.

joual commented 4 years ago

:tada: This PR is included in version 1.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: