v3.6.5
版本发布时间: 2022-05-24 06:28:15
apollographql/apollo-client最新发布版本:v3.12.0-alpha.0(2024-10-02 04:16:11)
Bug Fixes (from CHANGELOG.md
)
-
Restore pre-v3.6
variables
replacement behavior ofObservableQuery#reobserve
method, fixing a regression that prevented removal of variables. @benjamn in #9741 -
Preserve
previousData
even when different query or client provided touseQuery
, instead of resettingpreviousData
to undefined in those cases, matching behavior prior to v3.6.0. @benjamn in #9734 -
Fix bug where
onCompleted()
andonError()
are stale foruseMutation()
. @charle692 in #9740 -
Limit scope of
DeepMerger
object reuse, and avoid usingObject.isFrozen
, which can introduce differences between development and production if objects that were frozen usingObject.freeze
in development are left unfrozen in production. @benjamn in #9742 -
Properly merge
variables
from originaluseLazyQuery(query, { variables })
withvariables
passed to execution function. @benjamn in #9758
What's Changed (auto-generated by GitHub)
- Preserve
previousData
even when different client or query passed touseQuery
by @benjamn in https://github.com/apollographql/apollo-client/pull/9734 - Restore pre-v3.6
variables
replacement behavior ofObservableQuery#reobserve
method by @benjamn in https://github.com/apollographql/apollo-client/pull/9741 - Clarify modifying response data in link docs by @hatched-kade in https://github.com/apollographql/apollo-client/pull/9430
- adds documentation on file uploads by @jpvajda in https://github.com/apollographql/apollo-client/pull/9744
- Fix improper syntax with spread operator by @mongodben in https://github.com/apollographql/apollo-client/pull/9441
- Reduce confusion about the query component by @jpvajda in https://github.com/apollographql/apollo-client/pull/9747
- Fix bug where onCompleted and onError are stale for useMutation. onCompleted and onError could not be changed while a mutation is executing. by @charle692 in https://github.com/apollographql/apollo-client/pull/9740
- Restrict
DeepMerger
mutable object reuse to fix subtle production-only bug by @benjamn in https://github.com/apollographql/apollo-client/pull/9742 - Merge
variables
from originaluseLazyQuery(query, { variables })
withvariables
passed to execution function by @benjamn in https://github.com/apollographql/apollo-client/pull/9758
New Contributors
- @hatched-kade made their first contribution in https://github.com/apollographql/apollo-client/pull/9430
- @mongodben made their first contribution in https://github.com/apollographql/apollo-client/pull/9441
- @charle692 made their first contribution in https://github.com/apollographql/apollo-client/pull/9740
Full Changelog: https://github.com/apollographql/apollo-client/compare/v3.6.4...v3.6.5