Skip to content

Commit 254b8cd

Browse files
committed
2024-01-22, Version 21.6.1 (Current)
Notable changes: PR-URL: TODO
1 parent 1b8bba8 commit 254b8cd

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ release.
3636
</tr>
3737
<tr>
3838
<td valign="top">
39-
<b><a href="doc/changelogs/CHANGELOG_V21.md#21.6.0">21.6.0</a></b><br/>
39+
<b><a href="doc/changelogs/CHANGELOG_V21.md#21.6.1">21.6.1</a></b><br/>
40+
<a href="doc/changelogs/CHANGELOG_V21.md#21.6.0">21.6.0</a><br/>
4041
<a href="doc/changelogs/CHANGELOG_V21.md#21.5.0">21.5.0</a><br/>
4142
<a href="doc/changelogs/CHANGELOG_V21.md#21.4.0">21.4.0</a><br/>
4243
<a href="doc/changelogs/CHANGELOG_V21.md#21.3.0">21.3.0</a><br/>

doc/changelogs/CHANGELOG_V21.md

+12
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
</tr>
99
<tr>
1010
<td>
11+
<a href="#21.6.1">21.6.1</a><br/>
1112
<a href="#21.6.0">21.6.0</a><br/>
1213
<a href="#21.5.0">21.5.0</a><br/>
1314
<a href="#21.4.0">21.4.0</a><br/>
@@ -42,6 +43,17 @@
4243
* [io.js](CHANGELOG_IOJS.md)
4344
* [Archive](CHANGELOG_ARCHIVE.md)
4445

46+
<a id="21.6.1"></a>
47+
48+
## 2024-01-22, Version 21.6.1 (Current), @RafaelGSS
49+
50+
### Notable Changes
51+
52+
### Commits
53+
54+
* \[[`662ac95729`](https://github.com/nodejs/node/commit/662ac95729)] - _**Revert**_ "**stream**: fix cloned webstreams not being unref'd" (Matteo Collina) [#51491](https://github.com/nodejs/node/pull/51491)
55+
* \[[`1b8bba8aee`](https://github.com/nodejs/node/commit/1b8bba8aee)] - **test**: add regression test for 51586 (Matteo Collina) [#51491](https://github.com/nodejs/node/pull/51491)
56+
4557
<a id="21.6.0"></a>
4658

4759
## 2024-01-15, Version 21.6.0 (Current), @RafaelGSS

src/node_version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#define NODE_VERSION_IS_LTS 0
3030
#define NODE_VERSION_LTS_CODENAME ""
3131

32-
#define NODE_VERSION_IS_RELEASE 0
32+
#define NODE_VERSION_IS_RELEASE 1
3333

3434
#ifndef NODE_STRINGIFY
3535
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)

t.mjs

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import { test } from 'node:test'
2+
import assert from 'node:assert'
3+
4+
test('repro', async (t) => {
5+
const buf = new Uint8Array(1)
6+
const readable = new ReadableStream({
7+
start (controller) {
8+
controller.enqueue(buf)
9+
controller.close()
10+
}
11+
})
12+
13+
const [out1, out2] = readable.tee()
14+
const cloned = structuredClone(out2, { transfer: [out2] })
15+
16+
for await (const chunk of cloned) {
17+
assert.deepStrictEqual(chunk, buf)
18+
}
19+
20+
for await (const chunk of out2) {
21+
assert.deepStrictEqual(chunk, buf)
22+
}
23+
24+
for await (const chunk of out1) {
25+
assert.deepStrictEqual(chunk, buf)
26+
}
27+
})

0 commit comments

Comments
 (0)