-
Notifications
You must be signed in to change notification settings - Fork 322
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
fix(deps): update dependency react-apollo to v3 - abandoned #650
base: master
Are you sure you want to change the base?
Conversation
40f5a0c
to
5bb2964
Compare
5bb2964
to
a2e78b1
Compare
a2e78b1
to
d5f087f
Compare
74853a4
to
7a3d243
Compare
7a3d243
to
b512971
Compare
b512971
to
2ea56a7
Compare
2ea56a7
to
f1863e6
Compare
f1863e6
to
a8f5d1d
Compare
a8f5d1d
to
473a633
Compare
473a633
to
a3803b2
Compare
a3803b2
to
1e7d34a
Compare
1e7d34a
to
3f56aed
Compare
7abf676
to
da10021
Compare
da10021
to
6158734
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
Autoclosing SkippedThis PR has been flagged for autoclosing. However, it is being skipped due to the branch being already modified. Please close/delete it manually or report a bug if you think this is in error. |
This PR contains the following updates:
2.5.8
->3.1.5
Release Notes
apollographql/react-apollo
v3.1.5
Compare Source
v3.1.4
Compare Source
v3.1.3
Compare Source
onCompleted
being called more often than necessary.@hwillson in 0901f4a
v3.1.2
Compare Source
Bug Fixes
ssr: false
andssrMode: true
.@maapteh in #3515
MockLink
's brokennewData
function handling.@pawelkleczek in #3539
networkStatus
from changingready
at the end of pagination.@mu29 in #3514
v3.1.1
Compare Source
Improvements
startPolling
orstopPolling
after 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
ignoreResults
to be controlled throughgraphql
andwithMutation
options.@tim-stasse in #3431
ObservableQuery
instance, to avoid attempting to use it after a componenthas unmounted.
@jfrolich in #3490
Bug Fixes
loading
state when an error occurs after a refetch, that is the same as the previous error.@jet2jet in #3477
ChildDataProps
andChildMutateProps
types.@hwillson in #3495
onCompleted
is called each time auseLazyQuery
based query completes, after the execution function is called.@hwillson in #3497
v3.1.0
Compare Source
Potentially Breaking Change
data
state from{}
toundefined
. This change aligns all parts of the React Apollo query cycle so thatdata
is alwaysundefined
if there is no data, instead ofdata
being converted into an empty object. This change impacts the initial query response, initial SSR response,data
value when errors occur,data
value when skipping, etc. All of these areas are now aligned to only ever return a value fordata
if there really is a value to return (instead of making it seem like there is one by converting to{}
).@hwillson in #3388
Bug Fixes
skip
option when usinguseSubscription
.@n1ru4l in #3356
refetch
,fetchMore
,updateQuery
,startPolling
,stopPolling
, andsubscribeToMore
maintain a stable identity when they're passed back alongside query results.@hwillson in #3422
fetchMore.updateQuery
withnotifyOnNetworkStatusChange
set to true. WhennotifyOnNetworkStatusChange
is true, re-renders will now wait untilupdateQuery
has completed, to make sure the updated data is used during the render.@hwillson in #3433
client
to theuseMutation
result.@joshalling in #3417
onError
andonCompleted
callbacks 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, likeerror
disappearing 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-only
andcache-and-network
fetch policies, along with changes to ensure disabled SSR queries are not fired.@mikebm in #3435
void
from theMutationFunction
's returned Promise types.@hwillson in #3458
onCompleted
calls during the same query execution cycle.@hwillson in #3461
@dqunbp in #3273
@SeanRoberts in #3380
v3.0.1
Compare Source
Improvements
@joshalling in #3324
Bug Fixes
onError
callback calls and ensurerefetch
setsloading
state properly.@hwillson in #3339
useLazyQuery
export to thereact-apollo
(all) package.@hwillson in #3320
void
from being one of theMutationTuple
mutate function possible generics. This will make it easier to properly destructure results returned by the mutate function Promise.@hwillson in #3334
MockedProviderProps
andMockedProviderState
from@apollo/react-testing
.@hwillson in #3337
@types/react
as 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.0
Compare 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
, anduseApolloClient
hooks, following React's Hooks API.graphql
HOC and render proper components.@apollo/react-common
@apollo/react-hooks
@apollo/react-components
@apollo/react-hoc
@apollo/react-ssr
@apollo/react-testing
Consult 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@3
package preserves most of the functionality ofreact-apollo@2
by re-exporting existing components and functions from@apollo/react-components
and@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-hoc
packages instead.React Apollo testing utilities are no longer available as part of the
react-apollo
package. They should now be imported from the new@apollo/react-testing
package.The deprecated
walkTree
function has been removed (9b24d756).The deprecated
GraphqlQueryControls
andMutationFunc
types 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
graphql
HOC, and these types are then extended when needed to provide properties that are specific to a certain React paradigm(30edb1b0 and
3d138db3).
catchAsyncError
,wrap
, andcompose
utilities have been removed(2c3a262, 7de864e, and e6089a7).
Previously,
compose
was imported then exported directly from lodash usingflowRight
. To keep usingcompose
, install thelodash.flowright
package, then update yourcompose
imports as:Render prop components (
Query
,Mutation
andSubscription
) 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
Query
component 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.