On this page

@graphql-yoga/typed-event-target

Changelog for @graphql-yoga/typed-event-target: every release with its changes and the pull requests behind them.

4.0.0

Major Changes

  • #4574 79b0e8b Thanks @egoodwinx! - ### Breaking Changes

    • Node: minimum supported version is now Node 22. Node 18 and 20 are no longer supported. Future releases will only support Node >=22.
    • GraphQL: minimum supported version is now GraphQL 16. GraphQL 14 and 15 are no longer supported.
    • Request body parsing: Yoga now limits request bodies to 25,000,000 bytes by default. Enforcing this limit streams the body through a byte counter, making POST body parsing asynchronous even for an in-memory body. As a result, yoga.fetch() can return a Promise where it previously returned a synchronous Response, even when all resolvers and plugins are synchronous.

    Migration

    • If you’re on Node 18/20, upgrade to Node 22 or later before upgrading this package.
    • If you’re on graphql 14/15, upgrade to graphql 16 or 17 first.
    • Await 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.

3.0.3

Patch Changes

3.0.2

Patch Changes

3.0.1

Patch Changes

  • #3532 57e7701 Thanks @ardatan! - Improve typings for TypedEventTarget<TEvent>, so addEventListener and removeEventListener methods now expect type to be the type property of TEvent, and dispatchEvent expects to get TEvent.

3.0.0

Major Changes

2.0.0

Major Changes

  • #2767 4228c1d5 Thanks @renovate! - Drop support for Node.js 14. Require Node.js >=16.

  • #2767 4228c1d5 Thanks @renovate! - Events without an event payload will now always have null as the event payload instead of undefined.

1.0.0

Major Changes

1.0.0-next.0

Major Changes

0.1.1

Patch Changes

  • eecf24c: Fix CommonJS TypeScript resolution with moduleResolution node16 or nodenext

0.1.0

Minor Changes

  • d024757: Initial release of this package. It contains an EventTarget implementation with generic typings.