Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/cruel-colts-show.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/whole-planes-mate.md

This file was deleted.

8 changes: 8 additions & 0 deletions benchmarks/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @benchmarks/server

## 0.0.53

### Patch Changes

- Updated dependencies
[[`9527e8f`](https://github.com/ardatan/whatwg-node/commit/9527e8fe2dc73e362b38060f4a6decbb87a4f597)]:
- @whatwg-node/[email protected]

## 0.0.52

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@benchmarks/server",
"version": "0.0.52",
"version": "0.0.53",
"type": "module",
"private": true,
"scripts": {
Expand All @@ -13,7 +13,7 @@
"test": "start-server-and-test start http://127.0.0.1:4000/ping loadtest"
},
"dependencies": {
"@whatwg-node/server": "0.10.5"
"@whatwg-node/server": "0.10.6"
},
"devDependencies": {
"start-server-and-test": "2.0.11"
Expand Down
8 changes: 8 additions & 0 deletions e2e/aws-lambda/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @e2e/aws-lambda

## 0.0.41

### Patch Changes

- Updated dependencies
[[`9527e8f`](https://github.com/ardatan/whatwg-node/commit/9527e8fe2dc73e362b38060f4a6decbb87a4f597)]:
- @whatwg-node/[email protected]

## 0.0.40

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions e2e/aws-lambda/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@e2e/aws-lambda",
"version": "0.0.40",
"version": "0.0.41",
"private": true,
"scripts": {
"build": "node scripts/bundle.js",
"e2e": "ts-node -r tsconfig-paths/register scripts/e2e.ts"
},
"dependencies": {
"@e2e/shared-scripts": "0.0.0",
"@whatwg-node/fetch": "0.10.6",
"@whatwg-node/fetch": "0.10.7",
"aws-lambda": "1.0.7"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions e2e/shared-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @e2e/shared-server

## 0.0.142

### Patch Changes

- Updated dependencies
[[`9527e8f`](https://github.com/ardatan/whatwg-node/commit/9527e8fe2dc73e362b38060f4a6decbb87a4f597)]:
- @whatwg-node/[email protected]
- @whatwg-node/[email protected]

## 0.0.141

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions e2e/shared-server/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@e2e/shared-server",
"version": "0.0.141",
"version": "0.0.142",
"private": true,
"dependencies": {
"@whatwg-node/fetch": "0.10.6",
"@whatwg-node/server": "0.10.5"
"@whatwg-node/fetch": "0.10.7",
"@whatwg-node/server": "0.10.6"
}
}
7 changes: 7 additions & 0 deletions e2e/vercel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @e2e/vercel

## 0.0.142

### Patch Changes

- Updated dependencies []:
- @e2e/[email protected]

## 0.0.141

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions e2e/vercel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@e2e/vercel",
"version": "0.0.141",
"version": "0.0.142",
"private": true,
"scripts": {
"build": "node scripts/bundle.js",
Expand All @@ -12,7 +12,7 @@
},
"dependencies": {
"@e2e/shared-scripts": "0.0.0",
"@e2e/shared-server": "0.0.141",
"@e2e/shared-server": "0.0.142",
"encoding": "0.1.13",
"next": "15.3.2",
"react": "19.1.0",
Expand Down
25 changes: 25 additions & 0 deletions packages/fetch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# @whatwg-node/fetch

## 0.10.7

### Patch Changes

- [#2383](https://github.com/ardatan/whatwg-node/pull/2383)
[`9527e8f`](https://github.com/ardatan/whatwg-node/commit/9527e8fe2dc73e362b38060f4a6decbb87a4f597)
Thanks [@ardatan](https://github.com/ardatan)! - Some implementations like `compression` npm
package do not implement `response.write(data, callback)` signature, but whatwg-node/server waits
for it to finish the response stream. Then it causes the response stream hangs when the
compression package takes the stream over when the response data is larger than its threshold.

It is actually a bug in `compression` package;
[expressjs/compression#46](https://github.com/expressjs/compression/issues/46) But since it is a
common mistake, we prefer to workaround this on our end.

Now after calling `response.write`, it no longer uses callback but first it checks the result;

if it is `true`, it means stream is drained and we can call `response.end` immediately. else if it
is `false`, it means the stream is not drained yet, so we can wait for the `drain` event to call
`response.end`.

- Updated dependencies
[[`9527e8f`](https://github.com/ardatan/whatwg-node/commit/9527e8fe2dc73e362b38060f4a6decbb87a4f597)]:
- @whatwg-node/[email protected]

## 0.10.6

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@whatwg-node/fetch",
"version": "0.10.6",
"version": "0.10.7",
"description": "Cross Platform Smart Fetch Ponyfill",
"repository": {
"type": "git",
Expand All @@ -16,7 +16,7 @@
"browser": "dist/global-ponyfill.js",
"types": "dist/index.d.ts",
"dependencies": {
"@whatwg-node/node-fetch": "^0.7.18",
"@whatwg-node/node-fetch": "^0.7.19",
"urlpattern-polyfill": "^10.0.0"
},
"publishConfig": {
Expand Down
25 changes: 25 additions & 0 deletions packages/node-fetch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# @whatwg-node/node-fetch

## 0.7.19

### Patch Changes

- [#2383](https://github.com/ardatan/whatwg-node/pull/2383)
[`9527e8f`](https://github.com/ardatan/whatwg-node/commit/9527e8fe2dc73e362b38060f4a6decbb87a4f597)
Thanks [@ardatan](https://github.com/ardatan)! - Some implementations like `compression` npm
package do not implement `response.write(data, callback)` signature, but whatwg-node/server waits
for it to finish the response stream. Then it causes the response stream hangs when the
compression package takes the stream over when the response data is larger than its threshold.

It is actually a bug in `compression` package;
[expressjs/compression#46](https://github.com/expressjs/compression/issues/46) But since it is a
common mistake, we prefer to workaround this on our end.

Now after calling `response.write`, it no longer uses callback but first it checks the result;

if it is `true`, it means stream is drained and we can call `response.end` immediately. else if it
is `false`, it means the stream is not drained yet, so we can wait for the `drain` event to call
`response.end`.

- Updated dependencies
[[`d86b4f3`](https://github.com/ardatan/whatwg-node/commit/d86b4f3df884709145023bf32bb1022c4a8bb9cb)]:
- @whatwg-node/[email protected]

## 0.7.18

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/node-fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@whatwg-node/node-fetch",
"version": "0.7.18",
"version": "0.7.19",
"type": "module",
"description": "Fetch API implementation for Node",
"repository": {
Expand Down Expand Up @@ -36,7 +36,7 @@
"dependencies": {
"@fastify/busboy": "^3.1.1",
"@whatwg-node/disposablestack": "^0.0.6",
"@whatwg-node/promise-helpers": "^1.3.1",
"@whatwg-node/promise-helpers": "^1.3.2",
"tslib": "^2.6.3"
},
"devDependencies": {
Expand Down
8 changes: 8 additions & 0 deletions packages/promise-helpers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @whatwg-node/promise-helpers

## 1.3.2

### Patch Changes

- [#2408](https://github.com/ardatan/whatwg-node/pull/2408)
[`d86b4f3`](https://github.com/ardatan/whatwg-node/commit/d86b4f3df884709145023bf32bb1022c4a8bb9cb)
Thanks [@slagiewka](https://github.com/slagiewka)! - Reuse fake promise Symbol

## 1.3.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/promise-helpers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@whatwg-node/promise-helpers",
"version": "1.3.1",
"version": "1.3.2",
"type": "module",
"description": "Promise helpers",
"repository": {
Expand Down
27 changes: 27 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,32 @@
# @whatwg-node/server

## 0.10.6

### Patch Changes

- [#2383](https://github.com/ardatan/whatwg-node/pull/2383)
[`9527e8f`](https://github.com/ardatan/whatwg-node/commit/9527e8fe2dc73e362b38060f4a6decbb87a4f597)
Thanks [@ardatan](https://github.com/ardatan)! - Some implementations like `compression` npm
package do not implement `response.write(data, callback)` signature, but whatwg-node/server waits
for it to finish the response stream. Then it causes the response stream hangs when the
compression package takes the stream over when the response data is larger than its threshold.

It is actually a bug in `compression` package;
[expressjs/compression#46](https://github.com/expressjs/compression/issues/46) But since it is a
common mistake, we prefer to workaround this on our end.

Now after calling `response.write`, it no longer uses callback but first it checks the result;

if it is `true`, it means stream is drained and we can call `response.end` immediately. else if it
is `false`, it means the stream is not drained yet, so we can wait for the `drain` event to call
`response.end`.

- Updated dependencies
[[`d86b4f3`](https://github.com/ardatan/whatwg-node/commit/d86b4f3df884709145023bf32bb1022c4a8bb9cb),
[`9527e8f`](https://github.com/ardatan/whatwg-node/commit/9527e8fe2dc73e362b38060f4a6decbb87a4f597)]:
- @whatwg-node/[email protected]
- @whatwg-node/[email protected]

## 0.10.5

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@whatwg-node/server",
"version": "0.10.5",
"version": "0.10.6",
"type": "module",
"description": "Fetch API compliant HTTP Server adapter",
"repository": {
Expand Down Expand Up @@ -36,8 +36,8 @@
"dependencies": {
"@envelop/instrumentation": "^1.0.0",
"@whatwg-node/disposablestack": "^0.0.6",
"@whatwg-node/fetch": "^0.10.6",
"@whatwg-node/promise-helpers": "^1.3.1",
"@whatwg-node/fetch": "^0.10.7",
"@whatwg-node/promise-helpers": "^1.3.2",
"tslib": "^2.6.3"
},
"devDependencies": {
Expand Down