From ded85eec884b271dbb83fe10774c338d1656a72f Mon Sep 17 00:00:00 2001 From: TheGuildBot <59414373+theguild-bot@users.noreply.github.com> Date: Tue, 10 Dec 2024 16:19:55 -0500 Subject: [PATCH] Upcoming Release Changes (#1875) Co-authored-by: github-actions[bot] --- .changeset/chilly-beans-destroy.md | 7 ------ .changeset/good-pans-remember.md | 11 --------- .changeset/shy-hotels-roll.md | 33 ------------------------- .changeset/sweet-mayflies-decide.md | 7 ------ benchmarks/server/CHANGELOG.md | 8 ++++++ benchmarks/server/package.json | 4 +-- e2e/shared-server/CHANGELOG.md | 8 ++++++ e2e/shared-server/package.json | 4 +-- e2e/vercel/CHANGELOG.md | 7 ++++++ e2e/vercel/package.json | 4 +-- packages/node-fetch/CHANGELOG.md | 29 ++++++++++++++++++++++ packages/node-fetch/package.json | 2 +- packages/server/CHANGELOG.md | 38 +++++++++++++++++++++++++++++ packages/server/package.json | 2 +- 14 files changed, 98 insertions(+), 66 deletions(-) delete mode 100644 .changeset/chilly-beans-destroy.md delete mode 100644 .changeset/good-pans-remember.md delete mode 100644 .changeset/shy-hotels-roll.md delete mode 100644 .changeset/sweet-mayflies-decide.md diff --git a/.changeset/chilly-beans-destroy.md b/.changeset/chilly-beans-destroy.md deleted file mode 100644 index fc27d316196..00000000000 --- a/.changeset/chilly-beans-destroy.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@whatwg-node/node-fetch': patch ---- - -Fix the error thrown \`ENOTFOUND\` when a parsed URL with IPV6 hostname is given - -Instead of using the parsed URL passed to the `fetch` function, let `node:http` parse it again. This way, the IPV6 hostname is correctly resolved. diff --git a/.changeset/good-pans-remember.md b/.changeset/good-pans-remember.md deleted file mode 100644 index 622a301a956..00000000000 --- a/.changeset/good-pans-remember.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@whatwg-node/node-fetch': patch ---- - -`url.searchParams` parameter should reflect the changes in `toString()` - -```ts -const url = new URL('http://example.com/?a=b'); -url.searchParams.set('a', 'c'); -console.log(url.toString()); // http://example.com/?a=c -``` diff --git a/.changeset/shy-hotels-roll.md b/.changeset/shy-hotels-roll.md deleted file mode 100644 index b0ece225311..00000000000 --- a/.changeset/shy-hotels-roll.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -'@whatwg-node/server': patch ---- - -Wait for remaining promises during `asyncDispose` correctly - -The `asyncDispose` function should wait for all remaining promises to resolve before returning. This ensures that the server is fully disposed of before the function returns. - -```ts -import { createServerAdapter } from '@whatwg-node/server'; - -const deferred = Promise.withResolvers(); - -const adapter = createServerAdapter((req, ctx) => { - ctx.waitUntil(deferred.promise); - return new Response('Hello, world!'); -}); - -const res = await adapter.fetch('http://example.com'); -console.assert(res.status === 200); -console.assert(await res.text() === 'Hello, world!'); - -let disposed = false; -adapter[Symbol.asyncDispose]().then(() => { - disposed = true; -}); - -console.assert(!disposed); - -deferred.resolve(); - -console.assert(disposed); -``` \ No newline at end of file diff --git a/.changeset/sweet-mayflies-decide.md b/.changeset/sweet-mayflies-decide.md deleted file mode 100644 index 4c6d0a811bc..00000000000 --- a/.changeset/sweet-mayflies-decide.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@whatwg-node/node-fetch': patch ---- - -Fix IPV6 parsing in \`URL\`; - -`new URL('http://[::1]')` should parse the host as \`[::1]\` not \`::1\`. diff --git a/benchmarks/server/CHANGELOG.md b/benchmarks/server/CHANGELOG.md index ba3b8e3b4d7..3b32920fc8b 100644 --- a/benchmarks/server/CHANGELOG.md +++ b/benchmarks/server/CHANGELOG.md @@ -1,5 +1,13 @@ # @benchmarks/server +## 0.0.36 + +### Patch Changes + +- Updated dependencies + [[`7fb47d8`](https://github.com/ardatan/whatwg-node/commit/7fb47d8e6a988658089315970d5662f5bf6bcb1f)]: + - @whatwg-node/server@0.9.61 + ## 0.0.35 ### Patch Changes diff --git a/benchmarks/server/package.json b/benchmarks/server/package.json index 0ed04103b6b..e5a8fffc252 100644 --- a/benchmarks/server/package.json +++ b/benchmarks/server/package.json @@ -1,6 +1,6 @@ { "name": "@benchmarks/server", - "version": "0.0.35", + "version": "0.0.36", "type": "module", "private": true, "scripts": { @@ -13,7 +13,7 @@ "test": "start-server-and-test start http://127.0.0.1:4000/ping loadtest" }, "dependencies": { - "@whatwg-node/server": "0.9.60" + "@whatwg-node/server": "0.9.61" }, "devDependencies": { "start-server-and-test": "2.0.8" diff --git a/e2e/shared-server/CHANGELOG.md b/e2e/shared-server/CHANGELOG.md index 60c5bf4d417..a35067b4272 100644 --- a/e2e/shared-server/CHANGELOG.md +++ b/e2e/shared-server/CHANGELOG.md @@ -1,5 +1,13 @@ # @e2e/shared-server +## 0.0.122 + +### Patch Changes + +- Updated dependencies + [[`7fb47d8`](https://github.com/ardatan/whatwg-node/commit/7fb47d8e6a988658089315970d5662f5bf6bcb1f)]: + - @whatwg-node/server@0.9.61 + ## 0.0.121 ### Patch Changes diff --git a/e2e/shared-server/package.json b/e2e/shared-server/package.json index 9ec81a5f14c..afd10c559ea 100644 --- a/e2e/shared-server/package.json +++ b/e2e/shared-server/package.json @@ -1,9 +1,9 @@ { "name": "@e2e/shared-server", - "version": "0.0.121", + "version": "0.0.122", "private": true, "dependencies": { "@whatwg-node/fetch": "0.10.1", - "@whatwg-node/server": "0.9.60" + "@whatwg-node/server": "0.9.61" } } diff --git a/e2e/vercel/CHANGELOG.md b/e2e/vercel/CHANGELOG.md index 07469dd9ea9..3e816581235 100644 --- a/e2e/vercel/CHANGELOG.md +++ b/e2e/vercel/CHANGELOG.md @@ -1,5 +1,12 @@ # @e2e/vercel +## 0.0.122 + +### Patch Changes + +- Updated dependencies []: + - @e2e/shared-server@0.0.122 + ## 0.0.121 ### Patch Changes diff --git a/e2e/vercel/package.json b/e2e/vercel/package.json index f42baacc83b..55540e6401b 100644 --- a/e2e/vercel/package.json +++ b/e2e/vercel/package.json @@ -1,6 +1,6 @@ { "name": "@e2e/vercel", - "version": "0.0.121", + "version": "0.0.122", "private": true, "scripts": { "build": "node scripts/bundle.js", @@ -12,7 +12,7 @@ }, "dependencies": { "@e2e/shared-scripts": "0.0.0", - "@e2e/shared-server": "0.0.121", + "@e2e/shared-server": "0.0.122", "encoding": "0.1.13", "next": "15.0.4", "react": "19.0.0", diff --git a/packages/node-fetch/CHANGELOG.md b/packages/node-fetch/CHANGELOG.md index a20b7bf1874..178de1d8239 100644 --- a/packages/node-fetch/CHANGELOG.md +++ b/packages/node-fetch/CHANGELOG.md @@ -1,5 +1,34 @@ # @whatwg-node/node-fetch +## 0.7.5 + +### Patch Changes + +- [#1872](https://github.com/ardatan/whatwg-node/pull/1872) + [`7fb47d8`](https://github.com/ardatan/whatwg-node/commit/7fb47d8e6a988658089315970d5662f5bf6bcb1f) + Thanks [@ardatan](https://github.com/ardatan)! - Fix the error thrown \`ENOTFOUND\` when a parsed + URL with IPV6 hostname is given + + Instead of using the parsed URL passed to the `fetch` function, let `node:http` parse it again. + This way, the IPV6 hostname is correctly resolved. + +- [#1872](https://github.com/ardatan/whatwg-node/pull/1872) + [`7fb47d8`](https://github.com/ardatan/whatwg-node/commit/7fb47d8e6a988658089315970d5662f5bf6bcb1f) + Thanks [@ardatan](https://github.com/ardatan)! - `url.searchParams` parameter should reflect the + changes in `toString()` + + ```ts + const url = new URL('http://example.com/?a=b') + url.searchParams.set('a', 'c') + console.log(url.toString()) // http://example.com/?a=c + ``` + +- [#1872](https://github.com/ardatan/whatwg-node/pull/1872) + [`7fb47d8`](https://github.com/ardatan/whatwg-node/commit/7fb47d8e6a988658089315970d5662f5bf6bcb1f) + Thanks [@ardatan](https://github.com/ardatan)! - Fix IPV6 parsing in \`URL\`; + + `new URL('http://[::1]')` should parse the host as \`[::1]\` not \`::1\`. + ## 0.7.4 ### Patch Changes diff --git a/packages/node-fetch/package.json b/packages/node-fetch/package.json index 4c403909976..1f28c69d2d4 100644 --- a/packages/node-fetch/package.json +++ b/packages/node-fetch/package.json @@ -1,6 +1,6 @@ { "name": "@whatwg-node/node-fetch", - "version": "0.7.4", + "version": "0.7.5", "type": "module", "description": "Fetch API implementation for Node", "repository": { diff --git a/packages/server/CHANGELOG.md b/packages/server/CHANGELOG.md index 93e7885be0c..d54a50933b0 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,43 @@ # @whatwg-node/server +## 0.9.61 + +### Patch Changes + +- [#1872](https://github.com/ardatan/whatwg-node/pull/1872) + [`7fb47d8`](https://github.com/ardatan/whatwg-node/commit/7fb47d8e6a988658089315970d5662f5bf6bcb1f) + Thanks [@ardatan](https://github.com/ardatan)! - Wait for remaining promises during `asyncDispose` + correctly + + The `asyncDispose` function should wait for all remaining promises to resolve before returning. + This ensures that the server is fully disposed of before the function returns. + + ```ts + import { createServerAdapter } from '@whatwg-node/server' + + const deferred = Promise.withResolvers() + + const adapter = createServerAdapter((req, ctx) => { + ctx.waitUntil(deferred.promise) + return new Response('Hello, world!') + }) + + const res = await adapter.fetch('http://example.com') + console.assert(res.status === 200) + console.assert((await res.text()) === 'Hello, world!') + + let disposed = false + adapter[Symbol.asyncDispose]().then(() => { + disposed = true + }) + + console.assert(!disposed) + + deferred.resolve() + + console.assert(disposed) + ``` + ## 0.9.60 ### Patch Changes diff --git a/packages/server/package.json b/packages/server/package.json index c9fc952735d..3f95efe183e 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@whatwg-node/server", - "version": "0.9.60", + "version": "0.9.61", "type": "module", "description": "Fetch API compliant HTTP Server adapter", "repository": {