This is the changelog for node-fetch-server
. It follows semantic versioning.
- Expose
createHeaders(req: http.IncomingMessage): Headers
API for creating headers from the headers of incoming request objects. - Update
sendResponse
to use an object to add support for libraries such as express while maintainingnode:http
andnode:https
compatibility.
- Fix low-level API example in the README
- BREAKING: Change
createRequest
signature tocreateRequest(req, res, options)
so the abort signal fires on theres
's "end" event instead ofreq
- Added
createRequest(req: http.IncomingMessage, options): Request
andsendResponse(res: http.ServerResponse, response: Response): Promise<void>
exports to assist with building custom fetch servers
- Small perf improvement from avoiding accessing
req.headers
and readingreq.rawHeaders
instead - Added CommonJS build
- Initial release