Skip to content
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

Update Apollo GraphQL packages (major) #552

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 13, 2018

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
apollo-client 1.9.2 -> 2.6.10 age adoption passing confidence
react-apollo 2.2.4 -> 3.1.5 age adoption passing confidence

Release Notes

apollographql/apollo-client (apollo-client)

v2.6.10

Compare Source

v2.6.9

Compare Source

v2.6.8

Compare Source

Apollo Client (2.6.8)
GraphQL Anywhere (4.2.6)
Apollo Boost (0.4.7)

v2.6.7

Compare Source

v2.6.6

Compare Source

v2.6.4

Compare Source

Apollo Client (2.6.4)

v2.6.3

Compare Source

Apollo Client (2.6.3)

v2.6.2

Compare Source

v2.6.1

Compare Source

Apollo Utilities 1.3.2

v2.6.0

Compare Source

  • 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 in #​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

    new ApolloClient({ assumeImmutableResults: true });

    which allows the client to avoid taking defensive snapshots of past results using cloneDeep, as explained by @​benjamn in #​4543.

  • Identical overlapping queries are now deduplicated internally by apollo-client, rather than using the apollo-link-dedup package.

    @​benjamn in commit 7cd8479f

  • 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:

    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) and commit cf069bc7

  • Avoid updating (and later invalidating) cache watches when fetchPolicy is 'no-cache'.

    @​bradleyayers in PR #​4573, part of issue #​3452

  • Remove temporary queryId after fetchMore completes.

    @​doomsower in #​4440

  • Call clearStore callbacks after clearing store.

    @​ds8k in #​4695

  • Perform all DocumentNode transforms once, and cache the results.

    @​benjamn in #​4601

  • Accommodate @client @​export variable changes in ObservableQuery.

    @​hwillson in #​4604

  • Support the returnPartialData option for watched queries again.

    @​benjamn in #​4743

  • Preserve networkStatus for incomplete cache-and-network queries.

    @​benjamn in #​4765

  • Preserve cache-and-network fetchPolicy when refetching.

    @​benjamn in #​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 in #​4531

  • Polling queries are no longer batched together, so their scheduling should be more predictable.

    @​benjamn in #​4800

Apollo Cache In-Memory 1.6.0
  • Support new InMemoryCache({ freezeResults: true }) to help enforce immutability.

    @​benjamn in #​4514

  • Allow IntrospectionFragmentMatcher to match fragments against the root Query, as HeuristicFragmentMatcher 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 @exported as input variables.

    @​benjamn in #​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 in #​4373

v2.5.1

Compare Source

apollo-client 2.5.1
graphql-anywhere 4.2.1

v2.5.0

Compare Source

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
  • Revamped CJS and ESM bundling approach with Rollup.

    @​rosskevin in #​4261
  • Fixes an issue where the QueryManager was accidentally returning cached
    data for network-only queries.

    @​danilobuerger in #​4352
  • Fixed an issue in the repo .gitattributes that was causing binary files
    to have their line endings adjusted, and cleaned up corrupted documentation
    imagehttps://github.com/apollographql/apollo-client/pull/4232ull/4232).

    @​rajington in #​4438
  • Improve (and shorten) query polling implementation.

    PR #​4337

v2.4.13

Compare Source

Apollo Client (2.4.13)

v2.4.12

Compare Source

Apollo Client (2.4.12)
  • Support ApolloClient#stop method for safe client disposal.

    PR #​4336

v2.4.11

Compare Source

  • Added explicit dependencies on the
    tslib package to all client
    packages to fix
    Issue #​4332.
Apollo Client (2.4.11)
  • Reverted some breaking changes accidentally released in a patch version
    (2.4.10). PR #​4334

v2.4.10

Compare Source

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

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.

    PR #​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

  • 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

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:

    import { visit } from "graphql/language/visitor";
    
    function flattenSelections(selection: SelectionNode) {
      const selections: SelectionNode[] = [];
      visit(selection, {
        SelectionSet(ss) {
          selections.push(...ss.selections);
        },
      });
      return selections;
    }

v2.4.9

Compare Source

Apollo Client (2.4.9)
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 in #​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

  • The RecordingCache abstraction has been removed, and thus is no longer
    exported from apollo-cache-inmemory.

    PR #​4319

  • Export the optimism wrap function using ES2015 export syntax, instead of
    CommonJS.

    @​ardatan in #​4158

v2.4.8

Compare Source

Apollo Client (2.4.8)
Apollo Cache In-Memory (1.3.12)
  • Avoid using DepTrackingCache for optimistic reads.
    PR #​4521

  • When creating an InMemoryCache object, it's now possible to disable the
    result 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:

    new InMemoryCache({
      resultCaching: false,
    });

    Part of PR #​4521.

v2.4.7

Compare Source

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
    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

Compare Source

Apollo Cache In-Memory (1.3.10)
  • Added some returns to prevent errors with noImplicitReturns
    TypeScript rule.
    PR #​4137

  • Exclude the src/ directory when publishing apollo-cache-inmemory.
    Issue #​4083

v2.4.5

Compare Source

Apollo Cache (1.1.20)
Apollo Cache In-Memory (1.3.9)
Apollo Utilities (1.0.25)

v2.4.4

Compare Source

Apollo Utilities (1.0.24)
  • Discard property accessor functions in cloneDeep helper, to fix
    issue #​4034.

  • Unconditionally remove cloneDeep property accessors.
    PR #​4039

  • Avoid copying non-enumerable and/or Symbol keys in cloneDeep.
    PR #​4052

Apollo Cache In-Memory (1.3.7)

v2.4.3

Compare Source

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

  • 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
    React Native PR #​21492 (pending)

  • The apollo-cache-inmemory package now allows graphql@^14.0.0 as a
    peer dependency.
    Issue #​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
    PR #​4032

Apollo GraphQL Anywhere (4.1.20)
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
Apollo Boost (0.1.17)
Apollo Cache (1.1.18)
  • No changes.

v2.4.2

Compare Source

Apollo Client (2.4.2)
  • Apollo Client no longer deep freezes query results.
    @​hwillson in #​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 in #​3885
Apollo Utilities (1.0.21)
  • Replace the custom cloneDeep implementation with
    fclone, 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

Compare Source

Apollo Client (2.4.13)

v2.4.0

Compare Source

Apollo Client (2.4.0)
Apollo Cache In-Memory (1.2.8)
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

Compare Source

Apollo Client (2.3.8)
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

Compare Source

Apollo Client (2.3.7)
  • Release 2.3.6 broke Typescript compilation. QueryManager's
    getQueryWithPreviousResult method included an invalid variables return
    type in the auto-generated core/QueryManager.d.ts declaration 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.
    getQueryWithPreviousResult return types are now excplicity identified,
    which helps Typescript avoid the local type reference. For more details,
    https://github.com/apollographql/apollo-client/issues/3729ues/3729.

    @​hwillson in #​3731
Apollo Boost (0.1.12)
  • No changes.

v2.3.6

Compare Source

Apollo Client (2.3.6)
Apollo Boost (0.1.11)
Apollo Cache (1.1.13)
  • No changes.
Apollo Cache In-Memory (1.2.6)
  • Add __typename and id properties to dataIdFromObject parameter
    (typescript)

    @​jfurler in #​3641
  • Fixed an issue caused by dataIdFromObject considering 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 value error that was showing up
    when attempting to report a missing property on an object.

    @​benjie in #​3618

v2.3.5

Compare Source

Apollo Client (2.3.5)
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)
Apollo GraphQL Anywhere (4.1.14)
  • No changes.

v2.3.4

Compare Source

Apollo Client (2.3.4)
  • Export the QueryOptions interface, to make sure it can be used by other
    projects (like apollo-angular).
  • Fixed an issue caused by typescript changes to the constructor
    defaultOptions param, that prevented query defaults 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

Compare Source

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 QueryOptions interface that
    is now used by ApolloClient.query options, instead of the previous
    WatchQueryOptions interface. This helps reduce confusion (especially
    in the docs) that made it look like ApolloClient.query accepted
    ApolloClient.watchQuery only options, like pollingInterval.
    (@​hwillson in #​3569)
Apollo Boost (0.1.8)
  • Allow cache to be given as a configuration option to ApolloBoost.
    (@​dandean in #​3561)
  • Allow headers and credentials to be passed in as configuration
    parameters to the apollo-boost ApolloClient constructor.
    (@​rzane in #​3098)
Apollo Cache (1.1.10)
Apollo Cache In-Memory (1.2.3)
Apollo Utilities (1.0.14)
  • Store key names generated by getStoreKeyName now leverage a more
    deterministic approach to handling JSON based strings. This prevents store
    key names from differing when using args like
    { prop1: 'value1', prop2: 'value2' } and
    { prop2: 'value2', prop1: 'value1' }.
    (@​gdi2290 in #​2869)
  • Avoid needless hasOwnProperty check in deepFreeze.
    (@​benjamn in #​3545)
Apollo GraphQL Anywhere (4.1.12)
  • No new changes.

v2.3.2

Compare Source

Apollo Client (2.3.2)

Configuration

📅 Schedule: Branch creation - "before 4am on Monday" (UTC), 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.


  • If you want to rebase/retry this PR, check this box

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

@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch 2 times, most recently from e35179a to 31153df Compare November 21, 2018 18:21
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 31153df to d007648 Compare December 19, 2018 19:44
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch 4 times, most recently from 446fd06 to 587f033 Compare January 19, 2019 00:04
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 587f033 to 4b5e165 Compare February 13, 2019 18:35
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch 2 times, most recently from bb2dcd9 to 26788dc Compare February 27, 2019 14:38
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 26788dc to 0fae45e Compare May 22, 2019 18:01
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 0fae45e to 1a836a6 Compare June 19, 2019 11:43
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 1a836a6 to 4719e2e Compare August 10, 2019 10:01
@renovate renovate bot changed the title Update dependency apollo-client to v2 Update Apollo GraphQL packages (major) Aug 10, 2019
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 4719e2e to 8d1054f Compare August 20, 2019 16:01
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch 2 times, most recently from 47dcb25 to 53e4186 Compare September 7, 2019 13:54
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 53e4186 to ecbbec6 Compare October 3, 2019 12:00
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from ecbbec6 to 7282938 Compare November 11, 2019 07:01
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 7282938 to f1fb369 Compare November 21, 2019 10:29
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch 2 times, most recently from f450484 to 63bee10 Compare December 21, 2019 23:02
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 63bee10 to 8e6ba98 Compare December 31, 2019 03:59
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 8e6ba98 to 53cf2b4 Compare January 18, 2020 19:13
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 53cf2b4 to 560c5fc Compare February 9, 2020 05:57
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 560c5fc to 5636579 Compare February 16, 2020 12:00
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 5636579 to d2f94db Compare March 14, 2020 12:03
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch 2 times, most recently from c0b4e3b to e3e7500 Compare May 8, 2020 08:58
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from e3e7500 to 6f08f4a Compare July 1, 2020 12:56
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from 6f08f4a to b40be40 Compare September 25, 2022 15:22
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from b40be40 to bb4a521 Compare November 20, 2022 20:19
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from bb4a521 to f809e32 Compare April 20, 2023 07:27
@renovate renovate bot force-pushed the renovate/major-apollo-graphql-packages branch from f809e32 to 94a2755 Compare April 3, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants