Skip to content

Commit

Permalink
Upcoming Release Changes (#1875)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
theguild-bot and github-actions[bot] authored Dec 10, 2024
1 parent 7fb47d8 commit ded85ee
Show file tree
Hide file tree
Showing 14 changed files with 98 additions and 66 deletions.
7 changes: 0 additions & 7 deletions .changeset/chilly-beans-destroy.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/good-pans-remember.md

This file was deleted.

33 changes: 0 additions & 33 deletions .changeset/shy-hotels-roll.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/sweet-mayflies-decide.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.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
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.35",
"version": "0.0.36",
"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.9.60"
"@whatwg-node/server": "0.9.61"
},
"devDependencies": {
"start-server-and-test": "2.0.8"
Expand Down
8 changes: 8 additions & 0 deletions e2e/shared-server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 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.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"
}
}
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.122

### Patch Changes

- Updated dependencies []:
- @e2e/shared-server@0.0.122

## 0.0.121

### 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.121",
"version": "0.0.122",
"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.121",
"@e2e/shared-server": "0.0.122",
"encoding": "0.1.13",
"next": "15.0.4",
"react": "19.0.0",
Expand Down
29 changes: 29 additions & 0 deletions packages/node-fetch/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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.4",
"version": "0.7.5",
"type": "module",
"description": "Fetch API implementation for Node",
"repository": {
Expand Down
38 changes: 38 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit ded85ee

Please sign in to comment.