From 29ebf3b51e1d4f70a36ae0c564ab3c595af6fce1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 10 Jan 2025 00:56:12 +0000 Subject: [PATCH] chore(release): update monorepo packages versions --- .../@whatwg-node_fetch-1929-dependencies.md | 5 -- ...hatwg-node_node-fetch-1929-dependencies.md | 6 -- .changeset/seven-forks-tease.md | 11 ---- .changeset/warm-plums-grin.md | 31 ---------- e2e/aws-lambda/CHANGELOG.md | 8 +++ e2e/aws-lambda/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/fetch/CHANGELOG.md | 16 +++++ packages/fetch/package.json | 4 +- packages/node-fetch/CHANGELOG.md | 61 +++++++++++++++++++ packages/node-fetch/package.json | 2 +- 14 files changed, 109 insertions(+), 62 deletions(-) delete mode 100644 .changeset/@whatwg-node_fetch-1929-dependencies.md delete mode 100644 .changeset/@whatwg-node_node-fetch-1929-dependencies.md delete mode 100644 .changeset/seven-forks-tease.md delete mode 100644 .changeset/warm-plums-grin.md diff --git a/.changeset/@whatwg-node_fetch-1929-dependencies.md b/.changeset/@whatwg-node_fetch-1929-dependencies.md deleted file mode 100644 index ba03966bf31..00000000000 --- a/.changeset/@whatwg-node_fetch-1929-dependencies.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@whatwg-node/fetch": patch ---- -dependencies updates: - - Updated dependency [`@whatwg-node/node-fetch@^0.7.5` ↗︎](https://www.npmjs.com/package/@whatwg-node/node-fetch/v/0.7.5) (from `^0.7.1`, in `dependencies`) diff --git a/.changeset/@whatwg-node_node-fetch-1929-dependencies.md b/.changeset/@whatwg-node_node-fetch-1929-dependencies.md deleted file mode 100644 index e668d5f6aff..00000000000 --- a/.changeset/@whatwg-node_node-fetch-1929-dependencies.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@whatwg-node/node-fetch": patch ---- -dependencies updates: - - Removed dependency [`@kamilkisiela/fast-url-parser@^1.1.4` ↗︎](https://www.npmjs.com/package/@kamilkisiela/fast-url-parser/v/1.1.4) (from `dependencies`) - - Removed dependency [`fast-querystring@^1.1.1` ↗︎](https://www.npmjs.com/package/fast-querystring/v/1.1.1) (from `dependencies`) diff --git a/.changeset/seven-forks-tease.md b/.changeset/seven-forks-tease.md deleted file mode 100644 index dc282ab26c0..00000000000 --- a/.changeset/seven-forks-tease.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@whatwg-node/node-fetch': patch ---- - -Remove the event listener on the provided `AbortSignal` when `node-libcurl` is used, the connection finishes to prevent -potential memory leaks; - -```ts -const res = await fetch(URL, { signal: new AbortController().signal }); -// AbortController is never aborted, and HTTP request is done as expected successfully -``` diff --git a/.changeset/warm-plums-grin.md b/.changeset/warm-plums-grin.md deleted file mode 100644 index a664666555e..00000000000 --- a/.changeset/warm-plums-grin.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -'@whatwg-node/node-fetch': patch ---- - -- Remove URL ponyfill implementation based on `fast-url-parser` and `fast-querystring`, because Node now uses Ada URL parser which is fast enough. - -- Fix `ReadableStream[Symbol.asyncIterator]` - -`ReadableStream` uses `Readable` so it uses `Symbol.asyncIterator` method of `Readable` but the returned iterator's `.return` method doesn't handle cancellation correctly. So we need to call `readable.destroy(optionalError)` manually to cancel the stream. - -This allows `ReadableStream` to use implementations relying on `AsyncIterable.cancel` to handle cancellation like `Readable.from` - -Previously the following was not handling cancellation; - -```ts -const res = new ReadableStream({ - start(controller) { - controller.enqueue('Hello'); - controller.enqueue('World'); - }, - cancel(reason) { - console.log('cancelled', reason); - } -}); - -const readable = Readable.from(res); - -readable.destroy(new Error('MY REASON')); - -// Should log 'cancelled MY REASON' -``` diff --git a/e2e/aws-lambda/CHANGELOG.md b/e2e/aws-lambda/CHANGELOG.md index 67f547b91fe..589ae943d21 100644 --- a/e2e/aws-lambda/CHANGELOG.md +++ b/e2e/aws-lambda/CHANGELOG.md @@ -1,5 +1,13 @@ # @e2e/aws-lambda +## 0.0.36 + +### Patch Changes + +- Updated dependencies + [[`b88b85c`](https://github.com/ardatan/whatwg-node/commit/b88b85c301923719f4722bdfe070728725bcc1b5)]: + - @whatwg-node/fetch@0.10.2 + ## 0.0.35 ### Patch Changes diff --git a/e2e/aws-lambda/package.json b/e2e/aws-lambda/package.json index 14290c756ec..ea7f919a44f 100644 --- a/e2e/aws-lambda/package.json +++ b/e2e/aws-lambda/package.json @@ -1,6 +1,6 @@ { "name": "@e2e/aws-lambda", - "version": "0.0.35", + "version": "0.0.36", "private": true, "scripts": { "build": "node scripts/bundle.js", @@ -8,7 +8,7 @@ }, "dependencies": { "@e2e/shared-scripts": "0.0.0", - "@whatwg-node/fetch": "0.10.1", + "@whatwg-node/fetch": "0.10.2", "aws-lambda": "1.0.7" }, "devDependencies": { diff --git a/e2e/shared-server/CHANGELOG.md b/e2e/shared-server/CHANGELOG.md index a4dcf5418ab..ef00620a52b 100644 --- a/e2e/shared-server/CHANGELOG.md +++ b/e2e/shared-server/CHANGELOG.md @@ -1,5 +1,13 @@ # @e2e/shared-server +## 0.0.127 + +### Patch Changes + +- Updated dependencies + [[`b88b85c`](https://github.com/ardatan/whatwg-node/commit/b88b85c301923719f4722bdfe070728725bcc1b5)]: + - @whatwg-node/fetch@0.10.2 + ## 0.0.126 ### Patch Changes diff --git a/e2e/shared-server/package.json b/e2e/shared-server/package.json index 08d94486663..f3adfef3d0a 100644 --- a/e2e/shared-server/package.json +++ b/e2e/shared-server/package.json @@ -1,9 +1,9 @@ { "name": "@e2e/shared-server", - "version": "0.0.126", + "version": "0.0.127", "private": true, "dependencies": { - "@whatwg-node/fetch": "0.10.1", + "@whatwg-node/fetch": "0.10.2", "@whatwg-node/server": "0.9.65" } } diff --git a/e2e/vercel/CHANGELOG.md b/e2e/vercel/CHANGELOG.md index 756fd26fd0b..45dc7999e68 100644 --- a/e2e/vercel/CHANGELOG.md +++ b/e2e/vercel/CHANGELOG.md @@ -1,5 +1,12 @@ # @e2e/vercel +## 0.0.127 + +### Patch Changes + +- Updated dependencies []: + - @e2e/shared-server@0.0.127 + ## 0.0.126 ### Patch Changes diff --git a/e2e/vercel/package.json b/e2e/vercel/package.json index a84a5942a5c..ccac6f17e4b 100644 --- a/e2e/vercel/package.json +++ b/e2e/vercel/package.json @@ -1,6 +1,6 @@ { "name": "@e2e/vercel", - "version": "0.0.126", + "version": "0.0.127", "private": true, "scripts": { "build": "node scripts/bundle.js", @@ -12,7 +12,7 @@ }, "dependencies": { "@e2e/shared-scripts": "0.0.0", - "@e2e/shared-server": "0.0.126", + "@e2e/shared-server": "0.0.127", "encoding": "0.1.13", "next": "15.1.4", "react": "19.0.0", diff --git a/packages/fetch/CHANGELOG.md b/packages/fetch/CHANGELOG.md index 2ecf0696529..6c0a7fea702 100644 --- a/packages/fetch/CHANGELOG.md +++ b/packages/fetch/CHANGELOG.md @@ -1,5 +1,21 @@ # @whatwg-node/fetch +## 0.10.2 + +### Patch Changes + +- [#1929](https://github.com/ardatan/whatwg-node/pull/1929) + [`b88b85c`](https://github.com/ardatan/whatwg-node/commit/b88b85c301923719f4722bdfe070728725bcc1b5) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + - Updated dependency + [`@whatwg-node/node-fetch@^0.7.5` ↗︎](https://www.npmjs.com/package/@whatwg-node/node-fetch/v/0.7.5) + (from `^0.7.1`, in `dependencies`) +- Updated dependencies + [[`b88b85c`](https://github.com/ardatan/whatwg-node/commit/b88b85c301923719f4722bdfe070728725bcc1b5), + [`9b39c3e`](https://github.com/ardatan/whatwg-node/commit/9b39c3e5db616a60e6dd8472fbd651f4905f3673), + [`b88b85c`](https://github.com/ardatan/whatwg-node/commit/b88b85c301923719f4722bdfe070728725bcc1b5)]: + - @whatwg-node/node-fetch@0.7.6 + ## 0.10.1 ### Patch Changes diff --git a/packages/fetch/package.json b/packages/fetch/package.json index 61769ad6ab6..7bb1160b67d 100644 --- a/packages/fetch/package.json +++ b/packages/fetch/package.json @@ -1,6 +1,6 @@ { "name": "@whatwg-node/fetch", - "version": "0.10.1", + "version": "0.10.2", "description": "Cross Platform Smart Fetch Ponyfill", "repository": { "type": "git", @@ -16,7 +16,7 @@ "browser": "dist/global-ponyfill.js", "types": "dist/index.d.ts", "dependencies": { - "@whatwg-node/node-fetch": "^0.7.5", + "@whatwg-node/node-fetch": "^0.7.6", "urlpattern-polyfill": "^10.0.0" }, "publishConfig": { diff --git a/packages/node-fetch/CHANGELOG.md b/packages/node-fetch/CHANGELOG.md index 178de1d8239..a5a1d6f7291 100644 --- a/packages/node-fetch/CHANGELOG.md +++ b/packages/node-fetch/CHANGELOG.md @@ -1,5 +1,66 @@ # @whatwg-node/node-fetch +## 0.7.6 + +### Patch Changes + +- [#1929](https://github.com/ardatan/whatwg-node/pull/1929) + [`b88b85c`](https://github.com/ardatan/whatwg-node/commit/b88b85c301923719f4722bdfe070728725bcc1b5) + Thanks [@ardatan](https://github.com/ardatan)! - dependencies updates: + + - Removed dependency + [`@kamilkisiela/fast-url-parser@^1.1.4` ↗︎](https://www.npmjs.com/package/@kamilkisiela/fast-url-parser/v/1.1.4) + (from `dependencies`) + - Removed dependency + [`fast-querystring@^1.1.1` ↗︎](https://www.npmjs.com/package/fast-querystring/v/1.1.1) (from + `dependencies`) + +- [#1947](https://github.com/ardatan/whatwg-node/pull/1947) + [`9b39c3e`](https://github.com/ardatan/whatwg-node/commit/9b39c3e5db616a60e6dd8472fbd651f4905f3673) + Thanks [@ardatan](https://github.com/ardatan)! - Remove the event listener on the provided + `AbortSignal` when `node-libcurl` is used, the connection finishes to prevent potential memory + leaks; + + ```ts + const res = await fetch(URL, { signal: new AbortController().signal }) + // AbortController is never aborted, and HTTP request is done as expected successfully + ``` + +- [#1929](https://github.com/ardatan/whatwg-node/pull/1929) + [`b88b85c`](https://github.com/ardatan/whatwg-node/commit/b88b85c301923719f4722bdfe070728725bcc1b5) + Thanks [@ardatan](https://github.com/ardatan)! - - Remove URL ponyfill implementation based on + `fast-url-parser` and `fast-querystring`, because Node now uses Ada URL parser which is fast + enough. + + - Fix `ReadableStream[Symbol.asyncIterator]` + + `ReadableStream` uses `Readable` so it uses `Symbol.asyncIterator` method of `Readable` but the + returned iterator's `.return` method doesn't handle cancellation correctly. So we need to call + `readable.destroy(optionalError)` manually to cancel the stream. + + This allows `ReadableStream` to use implementations relying on `AsyncIterable.cancel` to handle + cancellation like `Readable.from` + + Previously the following was not handling cancellation; + + ```ts + const res = new ReadableStream({ + start(controller) { + controller.enqueue('Hello') + controller.enqueue('World') + }, + cancel(reason) { + console.log('cancelled', reason) + } + }) + + const readable = Readable.from(res) + + readable.destroy(new Error('MY REASON')) + + // Should log 'cancelled MY REASON' + ``` + ## 0.7.5 ### Patch Changes diff --git a/packages/node-fetch/package.json b/packages/node-fetch/package.json index 97095c42cbe..cf4e4a20874 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.5", + "version": "0.7.6", "type": "module", "description": "Fetch API implementation for Node", "repository": {