fix(deps): update dependency react-apollo to v3 - abandoned #650
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
This PR contains the following updates:
2.5.8->3.1.5Release Notes
apollographql/react-apollo
v3.1.5Compare Source
v3.1.4Compare Source
v3.1.3Compare Source
onCompletedbeing called more often than necessary.@hwillson in 0901f4a
v3.1.2Compare Source
Bug Fixes
ssr: falseandssrMode: true.@maapteh in #3515
MockLink's brokennewDatafunction handling.@pawelkleczek in #3539
networkStatusfrom changingreadyat the end of pagination.@mu29 in #3514
v3.1.1Compare Source
Improvements
startPollingorstopPollingafter a component has unmounted is now a no-op (instead of throwing an exception). Polling is automatically stopped when a component is unmounted, so it doesn't need to be called manually.@hwillson in #3485
ignoreResultsto be controlled throughgraphqlandwithMutationoptions.@tim-stasse in #3431
ObservableQueryinstance, to avoid attempting to use it after a componenthas unmounted.
@jfrolich in #3490
Bug Fixes
loadingstate when an error occurs after a refetch, that is the same as the previous error.@jet2jet in #3477
ChildDataPropsandChildMutatePropstypes.@hwillson in #3495
onCompletedis called each time auseLazyQuerybased query completes, after the execution function is called.@hwillson in #3497
v3.1.0Compare Source
Potentially Breaking Change
datastate from{}toundefined. This change aligns all parts of the React Apollo query cycle so thatdatais alwaysundefinedif there is no data, instead ofdatabeing converted into an empty object. This change impacts the initial query response, initial SSR response,datavalue when errors occur,datavalue when skipping, etc. All of these areas are now aligned to only ever return a value fordataif there really is a value to return (instead of making it seem like there is one by converting to{}).@hwillson in #3388
Bug Fixes
skipoption when usinguseSubscription.@n1ru4l in #3356
refetch,fetchMore,updateQuery,startPolling,stopPolling, andsubscribeToMoremaintain a stable identity when they're passed back alongside query results.@hwillson in #3422
fetchMore.updateQuerywithnotifyOnNetworkStatusChangeset to true. WhennotifyOnNetworkStatusChangeis true, re-renders will now wait untilupdateQueryhas completed, to make sure the updated data is used during the render.@hwillson in #3433
clientto theuseMutationresult.@joshalling in #3417
onErrorandonCompletedcallbacks from being part of the internal memoization that's used to decide when certain after render units of functionality are run, when usinguseQuery. This fixes issues related to un-necessary component cleanup, likeerrordisappearing from results when it should be present.@dylanwulf in #3419
useLazyQuery's execution function can now be called multiple times in a row, and will properly submit network requests each time called, when using a fetch policy ofnetwork-only.@hwillson in #3453
network-onlyandcache-and-networkfetch policies, along with changes to ensure disabled SSR queries are not fired.@mikebm in #3435
voidfrom theMutationFunction's returned Promise types.@hwillson in #3458
onCompletedcalls during the same query execution cycle.@hwillson in #3461
@dqunbp in #3273
@SeanRoberts in #3380
v3.0.1Compare Source
Improvements
@joshalling in #3324
Bug Fixes
onErrorcallback calls and ensurerefetchsetsloadingstate properly.@hwillson in #3339
useLazyQueryexport to thereact-apollo(all) package.@hwillson in #3320
voidfrom being one of theMutationTuplemutate function possible generics. This will make it easier to properly destructure results returned by the mutate function Promise.@hwillson in #3334
MockedProviderPropsandMockedProviderStatefrom@apollo/react-testing.@hwillson in #3337
@types/reactas a peer dep, to address potential TS compilation errors when usingApolloProvider.@zkochan in #3278
error's are maintained after re-renders, when they should be.@hwillson in #3362
v3.0.0Compare Source
Overview
This major release includes a large refactoring of the existing React Apollo codebase, to introduce new improvements, changes, features and bug fixes. The biggest new features are:
useQuery,useLazyQuery,useMutation,useSubscription, anduseApolloClienthooks, following React's Hooks API.graphqlHOC and render proper components.@apollo/react-common@apollo/react-hooks@apollo/react-components@apollo/react-hoc@apollo/react-ssr@apollo/react-testingConsult the Hooks migration guide for more details around upgrading. For more information regarding how to use the new hooks, please consult the updated React Apollo docs (all docs have been updated to be hooks first).
Breaking Changes
The minimum supported React version is now 16.8.
The
react-apollo@3package preserves most of the functionality ofreact-apollo@2by re-exporting existing components and functions from@apollo/react-componentsand@apollo/react-hoc. If you want to use Hooks, Components, or HOC directly, import the new@apollo/react-hooks,@apollo/react-components, and/or@apollo/react-hocpackages instead.React Apollo testing utilities are no longer available as part of the
react-apollopackage. They should now be imported from the new@apollo/react-testingpackage.The deprecated
walkTreefunction has been removed (9b24d756).The deprecated
GraphqlQueryControlsandMutationFunctypes have been removed (ade881f0).Preact is no longer supported (b742ae63).
Various Typescript type changes. Since we've introduced a third way of managing data with React (Hooks), we had to rework many of the existing exported types to better align with the Hooks way of doing things. Base types are used to hold common properties across Hooks, Components and the
graphqlHOC, and these types are then extended when needed to provide properties that are specific to a certain React paradigm(30edb1b0 and
3d138db3).
catchAsyncError,wrap, andcomposeutilities have been removed(2c3a262, 7de864e, and e6089a7).
Previously,
composewas imported then exported directly from lodash usingflowRight. To keep usingcompose, install thelodash.flowrightpackage, then update yourcomposeimports as:Render prop components (
Query,MutationandSubscription) can no longer be extended. In other words, this is no longer possible:All class based render prop components have been converted to functional components, so they could then just wrap their hook based equivalents (
useQuery,useMutation,useSubscription).While we recommend switching over to use the new hooks as soon as possible, if you're looking for a stop gap you can consider typing a
Querycomponent in a similar fashion, like:Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.