Skip to content

Releases: ardatan/whatwg-node

September 19, 2022

19 Sep 13:27
b93a53a
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

  • 48bdf61 Thanks @ardatan! - Set an empty object if there is no server context sent by the environment

September 17, 2022

17 Sep 10:14
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

September 16, 2022

16 Sep 17:28
1965a05
Compare
Choose a tag to compare

@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 pass baseObject itself but baseObject needs to implement a handle method that is exactly same with handleRequest.
    - const myServerBaseObject = {...}
    + const myServerBaseObject = {
    +   handle(req) {/*...*/}
    + }
    
    - const adapter = createServerAdapter({
    -   baseObject: myServerBaseObject,
    -   handleRequest(req) {/*...*/}
    - })
    + const adapter = createServerAdapter(myServerBaseObject)
    • handleRequest has been renamed to handle 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

12 Sep 13:25
d6b7303
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Minor Changes

September 12, 2022

12 Sep 11:57
05e6d77
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

  • c9f05f2 Thanks @ardatan! - Add ponyfills for Response.redirect, Response.json and Response.error

September 09, 2022

09 Sep 10:04
a3ca03a
Compare
Choose a tag to compare

[email protected]

Patch Changes

September 07, 2022

07 Sep 15:10
eaa749b
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

  • 7f37b6d Thanks @ardatan! - fix(fetch): respect filesLimit even with fieldsFirst

September 07, 2022

07 Sep 14:35
7d4b344
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Patch Changes

September 07, 2022

07 Sep 13:51
7bcd42e
Compare
Choose a tag to compare

@whatwg-node/[email protected]

Minor Changes

  • 005937c Thanks @ardatan! - feat(fetch): new fieldsFirst option to allow async stream consumption for multipart forms

  • effc03d Thanks @ardatan! - Bun Support

@whatwg-node/[email protected]

Minor Changes

Patch Changes

September 07, 2022

07 Sep 11:56
6a92487
Compare
Choose a tag to compare

[email protected]

Patch Changes