Releases: ardatan/whatwg-node
Releases · ardatan/whatwg-node
September 19, 2022
@whatwg-node/[email protected]
Patch Changes
September 17, 2022
@whatwg-node/[email protected]
Patch Changes
September 16, 2022
@whatwg-node/[email protected]
Minor Changes
-
#121
a67f447
Thanks @ardatan! - Improvements;createServerAdapter
can now accept the request handler itself.
createServerAdapter(req => { return new Response(`I got ${req.url}`); });
Breaking Changes;
baseObject
in the configuration has been removed! Now you can passbaseObject
itself butbaseObject
needs to implement ahandle
method that is exactly same withhandleRequest
.
- const myServerBaseObject = {...} + const myServerBaseObject = { + handle(req) {/*...*/} + } - const adapter = createServerAdapter({ - baseObject: myServerBaseObject, - handleRequest(req) {/*...*/} - }) + const adapter = createServerAdapter(myServerBaseObject)
handleRequest
has been renamed tohandle
which has the same signature.
createServerAdapter({ - handleRequest(request) { + handle(request) { })
Request
in the configuration needs to be passed as a second argument.
createServerAdapter({ - handleRequest(request) { + handle(request) { - Request: MyRequestCtor - }) + }, MyRequestCtor)
September 12, 2022
September 12, 2022
@whatwg-node/[email protected]
Patch Changes
September 09, 2022
September 07, 2022
@whatwg-node/[email protected]
Patch Changes
September 07, 2022
@whatwg-node/[email protected]
Patch Changes
September 07, 2022
@whatwg-node/[email protected]
Minor Changes
-
005937c
Thanks @ardatan! - feat(fetch): newfieldsFirst
option to allow async stream consumption for multipart forms
@whatwg-node/[email protected]
Minor Changes
Patch Changes
- Updated dependencies [
005937c
,effc03d
]:- @whatwg-node/[email protected]