@mjackson/node-fetch-server
0.7.0 · 6 Jun 2025MIT2.4M / weekRepositoryHomepagenpmAtom feed
Upgrading @mjackson/node-fetch-server From 0.1.0 to 0.7.0
8 releases in betweenevery note read
Reading releases, release notes and advisories…
Release by release
- New
Add
/srcto npm package, so "go to definition" goes to the actual source
- New
0.6.1nothing new or fixed in the note
- New
Add http/2 support
- New
0.5.1nothing new or fixed in the note
- New
Expose
createHeaders(req: http.IncomingMessage): HeadersAPI for creating headers from the headers of incoming request objects.
- New
- Fixed
Fix low-level API example in the README
- Fixed
- New
Added
createRequest(req: http.IncomingMessage, options): RequestandsendResponse(res: http.ServerResponse, response: Response): Promise<void>exports to assist with building custom fetch servers
- New
- New
Added CommonJS build
- New
6 other lines we could not sort, mostly version bumps
- 0.7.0
Use one set of types for all built files, instead of separate types for ESM and CJS
- 0.7.0
Build using esbuild directly instead of tsup
- 0.6.1
Update typings and docs for http/2 support
- 0.5.1
Iterate manually over response bodies in
sendResponseinstead of usingfor await...of. This seems to avoid an issue where the iterator tries to read from a stream after the lock has been released. - 0.5.0
Update
sendResponseto use an object to add support for libraries such as express while maintainingnode:httpandnode:httpscompatibility. - 0.2.0
Small perf improvement from avoiding accessing
req.headersand readingreq.rawHeadersinstead
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.