@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
79b0e8bThanks @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. SetmaxRequestBodySize: falseincreateYogato 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
- #4577
7bff35cThanks @egoodwinx! - Add homepage and bugs.url to package.json files
3.0.2
Patch Changes
- #3660
d4cbae1Thanks @renovate! - dependencies updates:- Updated dependency
tslib@^2.8.1↗︎ (from^2.5.2, independencies)
- Updated dependency
3.0.1
Patch Changes
- #3532
57e7701Thanks @ardatan! - Improve typings forTypedEventTarget<TEvent>, soaddEventListenerandremoveEventListenermethods now expecttypeto be thetypeproperty ofTEvent, anddispatchEventexpects to getTEvent.
3.0.0
Major Changes
- #3063
01430e03Thanks @EmrysMyrddin! - Breaking Change: Drop support of Node.js 16
2.0.0
Major Changes
-
#2767
4228c1d5Thanks @renovate! - Drop support for Node.js 14. Require Node.js>=16. -
#2767
4228c1d5Thanks @renovate! - Events without an event payload will now always havenullas the event payload instead ofundefined.
1.0.0
Major Changes
- #1761
b2407c6aThanks @ardatan! - - DropTypedEventin favor ofCustomEvent- Use
@whatwg-node/eventsas a ponyfill instead of@whatwg-node/fetch
- Use
1.0.0-next.0
Major Changes
- #1761
b2407c6aThanks @ardatan! - BREAKING:- Drop
TypedEventin favor ofCustomEvent - Use
@whatwg-node/eventsas a ponyfill instead of@whatwg-node/fetch
- Drop
0.1.1
Patch Changes
- eecf24c: Fix CommonJS TypeScript resolution with
moduleResolutionnode16ornodenext
0.1.0
Minor Changes
- d024757: Initial release of this package. It contains an EventTarget implementation with generic typings.