@graphql-tools/wrap
11.2.6 · 12 Nov 2026MIT15.3M / weekRepositorynpmAtom feed
Upgrading @graphql-tools/wrap From 6.2.4 to 7.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 25
- changes to make
- 0
- advisories fixed
- 0
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
- Breaking7.0.0
Release by release
- Breaking
- Breaking
Resolver validation options should now be set to
error,warnorignorerather thantrueorfalse. In previous versions, some of the validators caused errors to be thrown, while some issued warnings. This changes brings consistency to validator behavior. - Breaking
The
allowResolversNotInSchemahas been renamed torequireResolversToMatchSchema, to harmonize the naming convention of all the validators. The default setting ofrequireResolversToMatchSchemaiserror, matching the previous behavior. - Breaking
The
delegateToSchemareturn value has matured and been formalized as anExternalObject, in which all errors are integrated into the GraphQL response, preserving their initial path. Those advanced users accessing the result directly will note the change in error handling. This also allows for the deprecation of unnecessary helper functions includingslicedError,getErrors,getErrorsByPathSegmentfunctions. Only external errors with missing or invalid paths must still be preserved by annotating the remote object with special properties. The newgetUnpathedErrorsfunction is therefore necessary for retrieving only these errors. Note also the newannotateExternalObjectandmergeExternalObjectsfunctions, as well as the renaming ofhandleResulttoresolveExternalValue.
- Breaking
4 other lines we could not sort, mostly version bumps
- 7.0.0
Proxy all the errors
- 7.0.0
Better error handling for merges #2016, #2062
- 7.0.0
Disable implicit schema pruning #1817
- 7.0.0
Mocks not working for functions #1807
1 internal line (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.