Skip to content
This repository was archived by the owner on Apr 10, 2024. It is now read-only.

Bump @apollo/client from 3.2.1 to 3.3.7 in /gsa#39

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/gsa/apollo/client-3.3.7
Closed

Bump @apollo/client from 3.2.1 to 3.3.7 in /gsa#39
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/gsa/apollo/client-3.3.7

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jan 18, 2021

Bumps @apollo/client from 3.2.1 to 3.3.7.

Release notes

Sourced from @apollo/client's releases.

3.3.0

Apollo Client 3.3.0

Bug Fixes

  • Update @wry/equality to consider undefined properties equivalent to missing properties. @benjamn in #7108

  • Prevent memory leaks involving unused onBroadcast function closure created in ApolloClient constructor. @kamilkisiela in #7161

  • Provide default empty cache object for root IDs like ROOT_QUERY, to avoid differences in behavior before/after ROOT_QUERY data has been written into InMemoryCache. @benjamn in #7100

  • Cancel queryInfo.notifyTimeout in QueryInfo#markResult to prevent unnecessary network requests when using a FetchPolicy of cache-and-network or network-only in a React component with multiple useQuery calls. @benjamn in #7347

Potentially breaking changes

  • Ensure cache.readQuery and cache.readFragment always return TData | null, instead of throwing MissingFieldError exceptions when missing fields are encountered. @benjamn in #7098

    Since this change converts prior exceptions to null returns, and since null was already a possible return value according to the TData | null return type, we are confident this change will be backwards compatible (as long as null was properly handled before).

  • HttpLink will now automatically strip any unused variables before sending queries to the GraphQL server, since those queries are very likely to fail validation, according to the All Variables Used rule in the GraphQL specification. If you depend on the preservation of unused variables, you can restore the previous behavior by passing includeUnusedVariables: true to the HttpLink constructor (which is typically passed as options.link to the ApolloClient constructor). @benjamn in #7127

  • Ensure MockLink (used by MockedProvider) returns mock configuration errors (e.g. No more mocked responses for the query ...) through the Link's Observable, instead of throwing them. These errors are now available through the error property of a result. @hwillson in #7110

    Returning mock configuration errors through the Link's Observable was the default behavior in Apollo Client 2.x. We changed it for 3, but the change has been problematic for those looking to migrate from 2.x to 3. We've decided to change this back with the understanding that not many people want or are relying on MockLink's throwing exception approach. If you want to change this functionality, you can define custom error handling through MockLink.setOnError.

  • Unsubscribing the last observer from an ObservableQuery will once again unsubscribe from the underlying network Observable in all cases, as in Apollo Client 2.x, allowing network requests to be cancelled by unsubscribing. @javier-garcia-meteologica in #7165 and #7170.

  • The independent QueryBaseOptions and ModifiableWatchQueryOptions interface supertypes have been eliminated, and their fields are now defined by QueryOptions. @DCtheTall in #7136

  • Internally, Apollo Client now avoids nested imports from the graphql package, importing everything from the top-level package instead. For example,

    import { visit } from "graphql/language/visitor"

    is now just

    import { visit } from "graphql"

    Since the graphql package uses .mjs modules, your bundler may need to be configured to recognize .mjs files as ECMAScript modules rather than CommonJS modules. @benjamn in #7185

Improvements

  • Support inheritance of type and field policies, according to possibleTypes.

... (truncated)

Changelog

Sourced from @apollo/client's changelog.

Apollo Client 3.3.7

Bug Fixes

  • Fix a regression due to #7310 that caused loading always to be true for skip: true results during server-side rendering. @rgrove in #7567

  • Avoid duplicate useReactiveVar listeners when rendering in React.StrictMode. @jcreighton in #7581

Improvements

  • Set displayName on ApolloContext objects for easier debugging. @dulmandakh in #7550

Apollo Client 3.3.6

Bug Fixes

  • Immediately apply queryType: true, mutationType: true, and subscriptionType: true type policies, rather than waiting for the first time the policy is used, fixing a regression introduced by #7065. @benjamn in #7463

  • Check that window is defined even when connectToDevTools is true. @yasupeke in #7434

Improvements

  • Replace stray console.debug (undefined in React Native) with invariant.log. @benjamn in #7454

  • Suggest Firefox Apollo DevTools as well as the Chrome extension. @benjamn in #7461

Apollo Client 3.3.5

Improvements

  • Restore client.version property, reflecting the current @apollo/client version from package.json. @benjamn in #7448

Apollo Client 3.3.4

Improvements

Apollo Client 3.3.3

Bug fixes

... (truncated)

Commits
  • ce994a2 Bump @apollo/client npm version to 3.3.7.
  • 0c64bb4 Mention PR #7550 in CHANGELOG.md.
  • ec8a488 Sync package-lock.json (minor changes).
  • 8264e16 Update queries.mdx (#7575)
  • 3501f90 Avoid duplicate useReactiveVar listeners when rendering in React.StrictMode (...
  • 00284d2 Fix skip causing loading to always be true during SSR (#7567)
  • 24f7429 Merge pull request #7576 from apollographql/timbotnik/cache-mutation-update
  • 4614bdc Missing cache id line?
  • b17c14d Fix typo (#7569)
  • 4a5822a Set displayName for ApolloContext for easier debugging (#7550)
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually

@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 18, 2021
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Feb 8, 2021

Superseded by #43.

@dependabot dependabot bot closed this Feb 8, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/gsa/apollo/client-3.3.7 branch February 8, 2021 04:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants