# What changed in @envelop/core

> 13 changes in @envelop/core 4 to 6 from its official release notes, upgrade guides and advisories: 6 breaking, 3 new APIs and options. Each one cited. Sources checked 2026-10-23. HTML: https://unstale.sh/npm/@envelop/core/

To see which of these apply to a repository, run `npx @unstale/cli init` in it.

## @envelop/core 6

### Breaking changes

- @envelop/core utils no longer re-exports this helper. Import it from @whatwg-node/promise-helpers. (5.0.0, 6.0.0) — [release notes](https://github.com/graphql-hive/graphql-yoga/releases/tag/%40envelop/core%406.0.0), [upgrade guide](https://the-guild.dev/graphql/yoga-server/docs/migration/migration-from-yoga-v5)
- @envelop/core utils no longer re-exports this helper. Import it from @whatwg-node/promise-helpers. (5.0.0, 6.0.0) — [release notes](https://github.com/graphql-hive/graphql-yoga/releases/tag/%40envelop/core%406.0.0), [upgrade guide](https://the-guild.dev/graphql/yoga-server/docs/migration/migration-from-yoga-v5)
- The @envelop/core export was removed. Use handleMaybePromise from @whatwg-node/promise-helpers instead. (6.0.0) — [release notes](https://github.com/graphql-hive/graphql-yoga/releases/tag/%40envelop/core%406.0.0)

## @envelop/core 5

### New APIs and options

- Exports documentStringMap so developers can set a value for getDocumentString externally. (5.4.0) — [release notes](https://github.com/graphql-hive/graphql-yoga/blob/73fe2a004fcf23b36ca36e3a980579aaf25e0eea/packages/envelop/core/CHANGELOG.md#540)

### Fixes and other changes

- Adds support for graphql-js 17 and updates compatibility with subscribe. (5.6.0) — [release notes](https://github.com/graphql-hive/graphql-yoga/blob/73fe2a004fcf23b36ca36e3a980579aaf25e0eea/packages/envelop/core/CHANGELOG.md#560)
- The hook now receives the latest mergable context when an error originates from a context extension. (5.5.1) — [release notes](https://github.com/graphql-hive/graphql-yoga/blob/73fe2a004fcf23b36ca36e3a980579aaf25e0eea/packages/envelop/core/CHANGELOG.md#551)
- useErrorHandler handles incremental execution errors. (5.5.0) — [release notes](https://github.com/graphql-hive/graphql-yoga/blob/73fe2a004fcf23b36ca36e3a980579aaf25e0eea/packages/envelop/core/CHANGELOG.md#550)

## @envelop/core 4

### Breaking changes

- Plugins added with addPlugin are inserted in place, so their hooks execute immediately after the hooks of the plugin that added them. (4.0.0) — [upgrade guide](https://the-guild.dev/graphql/yoga-server/docs/migration/migration-from-yoga-v4)
- Node.js v16 is no longer supported. (4.0.0) — [upgrade guide](https://the-guild.dev/graphql/yoga-server/docs/migration/migration-from-yoga-v4)
- Node 14 is no longer supported; Node 16 or higher is required. (4.0.0) — [release notes](https://github.com/graphql-hive/graphql-yoga/blob/HEAD/packages/envelop/core/CHANGELOG.md)

### New APIs and options

- The function is exported so users can obtain the parsed document string. (4.0.0) — [release notes](https://github.com/graphql-hive/graphql-yoga/blob/HEAD/packages/envelop/core/CHANGELOG.md)
- The notes direct developers to install the graphql-yoga NPM package. (4.0.0) — [upgrade guide](https://the-guild.dev/graphql/yoga-server/docs/migration/migration-from-yoga-v4)

### Performance

- Parsed document string results are memoized and reused wherever possible. (4.0.0) — [release notes](https://github.com/graphql-hive/graphql-yoga/blob/HEAD/packages/envelop/core/CHANGELOG.md)
