Sourced from @apollo/client
's
releases.
v3.11.1
Patch Changes
#11969
061cab6
Thanks@jerelmiller
! - Remove check forwindow.__APOLLO_CLIENT__
when determining whether to connect to Apollo Client Devtools whenconnectToDevtools
ordevtools.enabled
is not specified. This now simply checks to see if the application is in development mode.#11971
ecf77f6
Thanks@jerelmiller
! - Prevent thesetTimeout
for suggesting devtools from running in non-browser environments.v3.11.0
Potentially Breaking Fixes
#11789
5793301
Thanks@phryneas
! - Changes usages of theGraphQLError
type toGraphQLFormattedError
.This was a type bug - these errors were never
GraphQLError
instances to begin with, and theGraphQLError
class has additional properties that can never be correctly rehydrated from a GraphQL result. The correct type to use here isGraphQLFormattedError
.Similarly, please ensure to use the type
FormattedExecutionResult
instead ofExecutionResult
- the non-"Formatted" versions of these types are for use on the server only, but don't get transported over the network.#11626
228429a
Thanks@phryneas
! - CallnextFetchPolicy
with "variables-changed" even if there is afetchPolicy
specified.Previously this would only be called when the current
fetchPolicy
was equal to thefetchPolicy
option or the option was not specified. If you usenextFetchPolicy
as a function, expect to see this function called more often.Due to this bug, this also meant that the
fetchPolicy
might be reset to the initialfetchPolicy
, even when you specified anextFetchPolicy
function. If you previously relied on this behavior, you will need to update yournextFetchPolicy
callback function to implement this resetting behavior.As an example, if your code looked like the following:
useQuery(QUERY, { nextFetchPolicy(currentFetchPolicy, info) { // your logic here } );
Update your function to the following to reimplement the resetting behavior:
useQuery(QUERY, { nextFetchPolicy(currentFetchPolicy, info) { if (info.reason === 'variables-changed') { return info.initialFetchPolicy; } // your logic here } );
... (truncated)
Sourced from @apollo/client
's
changelog.
3.11.1
Patch Changes
#11969
061cab6
Thanks@jerelmiller
! - Remove check forwindow.__APOLLO_CLIENT__
when determining whether to connect to Apollo Client Devtools whenconnectToDevtools
ordevtools.enabled
is not specified. This now simply checks to see if the application is in development mode.#11971
ecf77f6
Thanks@jerelmiller
! - Prevent thesetTimeout
for suggesting devtools from running in non-browser environments.3.11.0
Potentially Breaking Fixes
#11789
5793301
Thanks@phryneas
! - Changes usages of theGraphQLError
type toGraphQLFormattedError
.This was a type bug - these errors were never
GraphQLError
instances to begin with, and theGraphQLError
class has additional properties that can never be correctly rehydrated from a GraphQL result. The correct type to use here isGraphQLFormattedError
.Similarly, please ensure to use the type
FormattedExecutionResult
instead ofExecutionResult
- the non-"Formatted" versions of these types are for use on the server only, but don't get transported over the network.#11626
228429a
Thanks@phryneas
! - CallnextFetchPolicy
with "variables-changed" even if there is afetchPolicy
specified.Previously this would only be called when the current
fetchPolicy
was equal to thefetchPolicy
option or the option was not specified. If you usenextFetchPolicy
as a function, expect to see this function called more often.Due to this bug, this also meant that the
fetchPolicy
might be reset to the initialfetchPolicy
, even when you specified anextFetchPolicy
function. If you previously relied on this behavior, you will need to update yournextFetchPolicy
callback function to implement this resetting behavior.As an example, if your code looked like the following:
useQuery(QUERY, { nextFetchPolicy(currentFetchPolicy, info) { // your logic here } );
Update your function to the following to reimplement the resetting behavior:
useQuery(QUERY, { nextFetchPolicy(currentFetchPolicy, info) { if (info.reason === 'variables-changed') { return info.initialFetchPolicy; } // your logic here } );
... (truncated)
abcbe8b
Version Packages (#11970)ecf77f6
Don't attempt to connect to devtools in non-browser environments (#11971)061cab6
Fix incorrect default devtools config (#11969)fa3487d
Version Packages (#11967)7b8028e
Merge pull request #11922
from apollographql/release-3.11f7aed4f
Exit prerelease mode811c558
chore(deps): update dependency mocha to v10.7.0 (#11966)8379be1
chore(deps): update cimg/node docker tag to v22.5.1 (#11964)c982e5f
chore(deps): update all devdependencies16438fe
chore(deps): update all dependencies - patch updates