github-actions
released this
08 Dec 17:08
·
403 commits
to main
since this release
Minor Changes
- Implement
mapExchange
, which replaceserrorExchange
, allowingonOperation
andonResult
to be called to either react to or replace operations and results. For backwards compatibility, this exchange is also exported aserrorExchange
and supportsonError
, by @kitten (See #2846)
Patch Changes
- Move remaining
Variables
generics over fromobject
default toVariables extends AnyVariables = AnyVariables
. This has been introduced previously in #2607 but some missing ports have been missed due to TypeScript not catching them previously. Depending on your TypeScript version theobject
default is incompatible withAnyVariables
, by @kitten (See #2843) - Reuse output of
stringifyDocument
in place of repeatedprint
. This will mean that we now prevent callingprint
repeatedly for identical operations and are instead only reusing the result once.
This change has a subtle consequence of our internals. Operation keys will change due to this
refactor and we will no longer sanitise strip newlines from queries that@urql/core
has printed, by @kitten (See #2847) - Update to
wonka@^6.1.2
to fix memory leak infetch
caused in Node.js by a lack of clean up after initiating a request, by @kitten (See #2850)