NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #3587 most downloaded on npm
Latest stable
6.0.0
Last release 1 months ago
22 Oct 2026
Ships unpredictably
gaps range from 8 days to 4 months
Nearly every release is documented
notes for 60 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
1827 releases · first in 2021
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
d5c2c9a: fix immediate introspection for subscription and mutation
Your coding agent can read these notes before it upgrades. Set up the MCP server →
moduleResolution node16 or nodenext8bb2738: Support TypeScript module resolution.
af23408: Pass context to registerContextErrorHandler
export const useMyHook = (): Plugin => {
return {
onPluginInit(context) {
context.registerContextErrorHandler(({ context }) => {
console.error(
'Error occurred during context creation but at least I have the context so far',
context
)
})
}
}
}
af23408: Pass context to registerContextErrorHandler
af23408: Pass context to registerContextErrorHandler
export const useMyHook = (): Plugin => {
return {
onPluginInit(context) {
context.registerContextErrorHandler(({ context }) => {
console.error('Error occurred during context creation but at least I have the context so far', context);
});
},
};
};
d5115b4: allow masking validation and parse errors with useMaskedErrors.
useMaskedErrors({
handleParseErrors: true,
handleValidateErrors: true
})
This option is disabled by default as validation and parse errors are expected errors that help the API consumer instead of leaking secret information.
If you want to avoid leaking schema suggestions, we recommend using persisted operations.
d5115b4: add setResult to AfterValidateEventPayload for altering the validation errors.
useImmediateIntrospectionNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
78b3db2: Add setResultAndStopExecution to the onSubscribe context.
setResultAndStopExecution to the onSubscribe context.onExecutDone hooksNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Node: minimum supported version is now Node 22. Node 18 and 20 are no longer supported. Future releases will only support Node >=22.
#4574
79b0e8b
Thanks @egoodwinx! - ### Breaking Changes
yoga.fetch() can return a Promise where
it previously returned a synchronous Response, even when all resolvers and plugins are
synchronous.yoga.fetch() and response body parsing instead of relying on synchronous results. Set
maxRequestBodySize: false in createYoga to disable the body-size limit and preserve
synchronous parsing for in-memory bodies, but only if you enforce an appropriate request-body
limit elsewhere.aac65ef: Move onResolverCalled from within OnExecuteHookResult and OnSubscribeHookResult to
the Plugin type.
import type { Plugin } from "@envelop/core";
const plugin: Plugin = {
onExecute() {
- return {
- onResolverCalled() {}
- }
- }
+ },
+ onResolverCalled() {},
}
We highly recommend avoiding to use any plugins that use onResolverCalled within your production
environment as it has severe impact on the performance of the individual resolver functions within
your schema.
The schema resolver functions are now ONLY wrapped if any plugin in your envelop setup uses the
onResolverCalled hook.
If you need any shared state between onExecute and onResolverCalled you can share it by
extending the context object.
import type { Plugin } from '@envelop/core'
const sharedStateSymbol = Symbol('sharedState')
const plugin: Plugin = {
onExecute({ extendContext }) {
extendContext({ [sharedStateSymbol]: { value: 1 } })
},
onResolverCalled({ context }) {
const sharedState = context[sharedStateSymbol]
// logs 1
console.log(sharedState.value)
}
}
4106e08: Add new option breakContextBuilding to OnContextBuildingEventPayload.
This allows short-circuiting the context building phase. Please use this with care as careless usage of it can result in severe errors during the execution phase, as the context might not include all the fields your schema resolvers need.
4106e08: Add new plugin useImmediateIntrospection for speeding up introspection only operations
by skipping context building.
import { envelop, useImmediateIntrospection } from '@envelop/core'
import { schema } from './schema'
const getEnveloped = envelop({
plugins: [
useSchema(schema),
useImmediateIntrospection()
// additional plugins
]
})
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Updated dependencies [787d28a2]
Nothing published for this version
8bb2738: Support TypeScript module resolution.
d9cfb7c: Support including the original error stack for masked errors within the error extensions
via the isDev option and the defaultErrorFormatter.
useMaskedErrors({ isDev: true })
On Node.js environments the isDev default value is true if
globalThis.process.env["NODE_ENV"] is equal to "development". Otherwise, the default value is
ALWAYS false.
The FormatErrorHandler now has a third argument isDev which is forwarded from the
configuration and can be used for customizing the formatter behavior in development mode.
Nothing published for this version
8e365c2: fix potential memory leak when using onEnd and onNext stream handlers for hooking into subscribe and execute.
8e365c2: fix potential memory leak when using onEnd and onNext stream handlers for hooking
into subscribe and execute.
This has been caused by AsyncGenerators being blocked until the next value is published. Now disposed result streams (AsyncIterables) will properly cleanup the underlying stream source.
fd14339: feat(usePayloadFormatter): add second argument with execution arguments
128c5d3: Fix context type inference with enableIf helper
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
d1a0e4e: Allow userland code to specify type of currentContext in ContextFactoryFn
d30ef6a: fix issue that caused calculating negative tracing durations
fbf6155: update package.json repository links to point to the new home
521ecb8: Prefer globalThis.performance.now for tracing if available. Fallback to Date.now.
Using tracing no longer raises an error on browser, deno and cloudflare worker environments.
### Patch Changes - Updated dependencies [07d029b] - @envelop/core@2.3.2
moduleResolution node16 or nodenextUpdated dependencies [787d28a2]
b1a0331: Properly list @envelop/core as a peerDependency in plugins.
This resolves issues where the bundled envelop plugins published to npm had logic inlined from the
@envelop/core package, causing instanceof check of EnvelopError to fail.
Updated dependencies [b1a0331]
8bb2738: Support TypeScript module resolution.
3458917: Allow functions returning a plugin in enableIf and lazy load plugin by avoiding running the init flow of plugin if value is false.
enableIf and lazy load plugin by avoiding running
the init flow of plugin if value is false.Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
365a982: Allow async OnExecuteDone hook
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.