Skip to content
This repository was archived by the owner on Oct 16, 2021. It is now read-only.

Commit 57fe832

Browse files
committed
Merge branch 'v6.x.zos' into v6.x.zos.trial
2 parents 4baa541 + ed1086a commit 57fe832

78 files changed

Lines changed: 524 additions & 228 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

BUILDING.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,8 @@ Prerequisites:
215215
[Git for Windows](http://git-scm.com/download/win) includes Git Bash
216216
and tools which can be included in the global `PATH`.
217217

218-
If the path to your build directory contains a space, the build will likely fail.
218+
If the path to your build directory contains a space or a non-ASCII character, the
219+
build will likely fail.
219220

220221
```console
221222
> .\vcbuild nosign
@@ -385,3 +386,26 @@ and [user guide](https://openssl.org/docs/fips/UserGuide-2.0.pdf).
385386
`/usr/local/ssl/fips-2.0`
386387
8. Build Node.js with `make -j`
387388
9. Verify with `node -p "process.versions.openssl"` (for example `1.0.2a-fips`)
389+
390+
## Building Node.js with external core modules
391+
392+
It is possible to specify one or more JavaScript text files to be bundled in
393+
the binary as builtin modules when building Node.js.
394+
395+
### Unix / macOS
396+
397+
This command will make `/root/myModule.js` available via
398+
`require('/root/myModule')` and `./myModule2.js` available via
399+
`require('myModule2')`.
400+
401+
```console
402+
$ ./configure --link-module '/root/myModule.js' --link-module './myModule2.js'
403+
```
404+
405+
### Windows
406+
407+
To make `./myCustomModule.js` available via `require('myCustomModule')`.
408+
409+
```console
410+
> .\vcbuild link-module './myCustomModule.js'
411+
```

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ release.
2626
</tr>
2727
<tr>
2828
<td valign="top">
29-
<b><a href="doc/changelogs/CHANGELOG_V6.md#6.13.0">6.13.0</a></b><br/>
29+
<b><a href="doc/changelogs/CHANGELOG_V6.md#6.13.1">6.13.1</a></b><br/>
30+
<a href="doc/changelogs/CHANGELOG_V6.md#6.13.0">6.13.0</a><br/>
3031
<a href="doc/changelogs/CHANGELOG_V6.md#6.12.3">6.12.3</a><br/>
3132
<a href="doc/changelogs/CHANGELOG_V6.md#6.12.2">6.12.2</a><br/>
3233
<a href="doc/changelogs/CHANGELOG_V6.md#6.12.1">6.12.1</a><br/>

COLLABORATOR_GUIDE.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,14 @@ Before landing pull requests, sufficient time should be left for input
127127
from other Collaborators. In general, leave at least 48 hours during the
128128
week and 72 hours over weekends to account for international time
129129
differences and work schedules. However, certain types of pull requests
130-
can be fast-tracked and may be landed after a shorter delay:
131-
132-
* Focused changes that affect only documentation and/or the test suite.
133-
`code-and-learn` and `good-first-issue` pull requests typically fall
134-
into this category.
135-
* Changes that fix regressions.
130+
can be fast-tracked and may be landed after a shorter delay. For example:
131+
132+
* Focused changes that affect only documentation and/or the test suite:
133+
* `code-and-learn` tasks typically fall into this category.
134+
* `good-first-issue` pull requests may also be suitable.
135+
* Changes that fix regressions:
136+
* Regressions that break the workflow (red CI or broken compilation).
137+
* Regressions that happen right before a release, or reported soon after.
136138

137139
When a pull request is deemed suitable to be fast-tracked, label it with
138140
`fast-track`. The pull request can be landed once 2 or more Collaborators

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,8 +408,8 @@ For more information about the governance of the Node.js project, see
408408
**Kunal Pathak** &lt;kunal.pathak@microsoft.com&gt;
409409
* [lance](https://github.com/lance) -
410410
**Lance Ball** &lt;lball@redhat.com&gt;
411-
* [lucamaraschi](https://github.com/lucamaraschi) -
412-
**Luca Maraschi** &lt;luca.maraschi@gmail.com&gt; (he/him)
411+
* [Leko](https://github.com/Leko) -
412+
**Shingo Inoue** &lt;leko.noor@gmail.com&gt; (he/him)
413413
* [lpinca](https://github.com/lpinca) -
414414
**Luigi Pinca** &lt;luigipinca@gmail.com&gt; (he/him)
415415
* [lucamaraschi](https://github.com/lucamaraschi) -
@@ -500,6 +500,8 @@ For more information about the governance of the Node.js project, see
500500
**Rich Trott** &lt;rtrott@gmail.com&gt; (he/him)
501501
* [tunniclm](https://github.com/tunniclm) -
502502
**Mike Tunnicliffe** &lt;m.j.tunnicliffe@gmail.com&gt;
503+
* [vdeturckheim](https://github.com/vdeturckheim) -
504+
**Vladimir de Turckheim** &lt;vlad2t@hotmail.com&gt; (he/him)
503505
* [vkurchatkin](https://github.com/vkurchatkin) -
504506
**Vladimir Kurchatkin** &lt;vladimir.kurchatkin@gmail.com&gt;
505507
* [vsemozhetbyt](https://github.com/vsemozhetbyt) -

doc/api/assert.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,8 @@ argument in callbacks.
254254
```js
255255
const assert = require('assert');
256256

257+
assert.ifError(null);
258+
// OK
257259
assert.ifError(0);
258260
// OK
259261
assert.ifError(1);

doc/api/buffer.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ endian format (`readDoubleBE()` returns big endian, `readDoubleLE()` returns
14421442
little endian).
14431443

14441444
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1445-
the result should be considered undefined behavior.
1445+
the resulting behavior is undefined.
14461446

14471447
Examples:
14481448

@@ -1479,7 +1479,7 @@ endian format (`readFloatBE()` returns big endian, `readFloatLE()` returns
14791479
little endian).
14801480

14811481
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1482-
the result should be considered undefined behavior.
1482+
the resulting behavior is undefined.
14831483

14841484
Examples:
14851485

@@ -1513,7 +1513,7 @@ added: v0.5.0
15131513
Reads a signed 8-bit integer from `buf` at the specified `offset`.
15141514

15151515
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1516-
the result should be considered undefined behavior.
1516+
the resulting behavior is undefined.
15171517

15181518
Integers read from a `Buffer` are interpreted as two's complement signed values.
15191519

@@ -1548,7 +1548,7 @@ the specified endian format (`readInt16BE()` returns big endian,
15481548
`readInt16LE()` returns little endian).
15491549

15501550
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1551-
the result should be considered undefined behavior.
1551+
the resulting behavior is undefined.
15521552

15531553
Integers read from a `Buffer` are interpreted as two's complement signed values.
15541554

@@ -1583,7 +1583,7 @@ the specified endian format (`readInt32BE()` returns big endian,
15831583
`readInt32LE()` returns little endian).
15841584

15851585
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1586-
the result should be considered undefined behavior.
1586+
the resulting behavior is undefined.
15871587

15881588
Integers read from a `Buffer` are interpreted as two's complement signed values.
15891589

@@ -1621,7 +1621,7 @@ and interprets the result as a two's complement signed value. Supports up to 48
16211621
bits of accuracy.
16221622

16231623
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1624-
the result should be considered undefined behavior.
1624+
the resulting behavior is undefined.
16251625

16261626
Examples:
16271627

@@ -1650,7 +1650,7 @@ added: v0.5.0
16501650
Reads an unsigned 8-bit integer from `buf` at the specified `offset`.
16511651

16521652
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1653-
the result should be considered undefined behavior.
1653+
the resulting behavior is undefined.
16541654

16551655
Examples:
16561656

@@ -1683,7 +1683,7 @@ specified endian format (`readUInt16BE()` returns big endian, `readUInt16LE()`
16831683
returns little endian).
16841684

16851685
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1686-
the result should be considered undefined behavior.
1686+
the resulting behavior is undefined.
16871687

16881688
Examples:
16891689

@@ -1722,7 +1722,7 @@ specified endian format (`readUInt32BE()` returns big endian,
17221722
`readUInt32LE()` returns little endian).
17231723

17241724
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1725-
the result should be considered undefined behavior.
1725+
the resulting behavior is undefined.
17261726

17271727
Examples:
17281728

@@ -1758,7 +1758,7 @@ and interprets the result as an unsigned integer. Supports up to 48
17581758
bits of accuracy.
17591759

17601760
Setting `noAssert` to `true` allows `offset` to be beyond the end of `buf`, but
1761-
the result should be considered undefined behavior.
1761+
the resulting behavior is undefined.
17621762

17631763
Examples:
17641764

@@ -2083,7 +2083,7 @@ endian). `value` *should* be a valid 64-bit double. Behavior is undefined when
20832083
`value` is anything other than a 64-bit double.
20842084

20852085
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2086-
the end of `buf`, but the result should be considered undefined behavior.
2086+
the end of `buf`, but the resulting behavior is undefined.
20872087

20882088
Examples:
20892089

@@ -2119,7 +2119,7 @@ endian). `value` *should* be a valid 32-bit float. Behavior is undefined when
21192119
`value` is anything other than a 32-bit float.
21202120

21212121
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2122-
the end of `buf`, but the result should be considered undefined behavior.
2122+
the end of `buf`, but the resulting behavior is undefined.
21232123

21242124
Examples:
21252125

@@ -2153,7 +2153,7 @@ signed 8-bit integer. Behavior is undefined when `value` is anything other than
21532153
a signed 8-bit integer.
21542154

21552155
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2156-
the end of `buf`, but the result should be considered undefined behavior.
2156+
the end of `buf`, but the resulting behavior is undefined.
21572157

21582158
`value` is interpreted and written as a two's complement signed integer.
21592159

@@ -2187,7 +2187,7 @@ endian). `value` *should* be a valid signed 16-bit integer. Behavior is undefine
21872187
when `value` is anything other than a signed 16-bit integer.
21882188

21892189
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2190-
the end of `buf`, but the result should be considered undefined behavior.
2190+
the end of `buf`, but the resulting behavior is undefined.
21912191

21922192
`value` is interpreted and written as a two's complement signed integer.
21932193

@@ -2221,7 +2221,7 @@ endian). `value` *should* be a valid signed 32-bit integer. Behavior is undefine
22212221
when `value` is anything other than a signed 32-bit integer.
22222222

22232223
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2224-
the end of `buf`, but the result should be considered undefined behavior.
2224+
the end of `buf`, but the resulting behavior is undefined.
22252225

22262226
`value` is interpreted and written as a two's complement signed integer.
22272227

@@ -2256,7 +2256,7 @@ Supports up to 48 bits of accuracy. Behavior is undefined when `value` is
22562256
anything other than a signed integer.
22572257

22582258
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2259-
the end of `buf`, but the result should be considered undefined behavior.
2259+
the end of `buf`, but the resulting behavior is undefined.
22602260

22612261
Examples:
22622262

@@ -2290,7 +2290,7 @@ valid unsigned 8-bit integer. Behavior is undefined when `value` is anything
22902290
other than an unsigned 8-bit integer.
22912291

22922292
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2293-
the end of `buf`, but the result should be considered undefined behavior.
2293+
the end of `buf`, but the resulting behavior is undefined.
22942294

22952295
Examples:
22962296

@@ -2324,7 +2324,7 @@ endian). `value` should be a valid unsigned 16-bit integer. Behavior is
23242324
undefined when `value` is anything other than an unsigned 16-bit integer.
23252325

23262326
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2327-
the end of `buf`, but the result should be considered undefined behavior.
2327+
the end of `buf`, but the resulting behavior is undefined.
23282328

23292329
Examples:
23302330

@@ -2362,7 +2362,7 @@ endian). `value` should be a valid unsigned 32-bit integer. Behavior is
23622362
undefined when `value` is anything other than an unsigned 32-bit integer.
23632363

23642364
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2365-
the end of `buf`, but the result should be considered undefined behavior.
2365+
the end of `buf`, but the resulting behavior is undefined.
23662366

23672367
Examples:
23682368

@@ -2400,7 +2400,7 @@ Supports up to 48 bits of accuracy. Behavior is undefined when `value` is
24002400
anything other than an unsigned integer.
24012401

24022402
Setting `noAssert` to `true` allows the encoded form of `value` to extend beyond
2403-
the end of `buf`, but the result should be considered undefined behavior.
2403+
the end of `buf`, but the resulting behavior is undefined.
24042404

24052405
Examples:
24062406

doc/api/child_process.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -974,10 +974,10 @@ process.send({ foo: 'bar' });
974974
Child Node.js processes will have a [`process.send()`][] method of their own that
975975
allows the child to send messages back to the parent.
976976

977-
There is a special case when sending a `{cmd: 'NODE_foo'}` message. All messages
978-
containing a `NODE_` prefix in its `cmd` property are considered to be reserved
979-
for use within Node.js core and will not be emitted in the child's
980-
[`process.on('message')`][] event. Rather, such messages are emitted using the
977+
There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages
978+
containing a `NODE_` prefix in the `cmd` property are reserved for use within
979+
Node.js core and will not be emitted in the child's [`process.on('message')`][]
980+
event. Rather, such messages are emitted using the
981981
`process.on('internalMessage')` event and are consumed internally by Node.js.
982982
Applications should avoid using such messages or listening for
983983
`'internalMessage'` events as it is subject to change without notice.

doc/api/crypto.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,7 +1099,7 @@ password always creates the same key. The low iteration count and
10991099
non-cryptographically secure hash algorithm allow passwords to be tested very
11001100
rapidly.
11011101

1102-
In line with OpenSSL's recommendation to use pbkdf2 instead of
1102+
In line with OpenSSL's recommendation to use PBKDF2 instead of
11031103
[`EVP_BytesToKey`][] it is recommended that developers derive a key and IV on
11041104
their own using [`crypto.pbkdf2()`][] and to use [`crypto.createCipheriv()`][]
11051105
to create the `Cipher` object. Users should not use ciphers with counter mode
@@ -1154,7 +1154,7 @@ password always creates the same key. The low iteration count and
11541154
non-cryptographically secure hash algorithm allow passwords to be tested very
11551155
rapidly.
11561156

1157-
In line with OpenSSL's recommendation to use pbkdf2 instead of
1157+
In line with OpenSSL's recommendation to use PBKDF2 instead of
11581158
[`EVP_BytesToKey`][] it is recommended that developers derive a key and IV on
11591159
their own using [`crypto.pbkdf2()`][] and to use [`crypto.createDecipheriv()`][]
11601160
to create the `Decipher` object.

doc/api/http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ Once a socket is assigned to this request and is connected
550550
added: v0.5.9
551551
-->
552552

553-
* `timeout` {number} Milliseconds before a request is considered to be timed out.
553+
* `timeout` {number} Milliseconds before a request times out.
554554
* `callback` {Function} Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.
555555

556556
Once a socket is assigned to this request and is connected

doc/api/process.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,6 +1300,19 @@ event loop **before** additional I/O is processed. As a result,
13001300
recursively setting nextTick callbacks will block any I/O from
13011301
happening, just like a `while(true);` loop.
13021302

1303+
## process.noDeprecation
1304+
<!-- YAML
1305+
added: v0.8.0
1306+
-->
1307+
1308+
* {boolean}
1309+
1310+
The `process.noDeprecation` property indicates whether the `--no-deprecation`
1311+
flag is set on the current Node.js process. See the documentation for
1312+
the [`warning` event][process_warning] and the
1313+
[`emitWarning` method][process_emit_warning] for more information about this
1314+
flag's behavior.
1315+
13031316
## process.pid
13041317
<!-- YAML
13051318
added: v0.1.15
@@ -1648,6 +1661,19 @@ false
16481661

16491662
See the [TTY][] documentation for more information.
16501663

1664+
## process.throwDeprecation
1665+
<!-- YAML
1666+
added: v0.9.12
1667+
-->
1668+
1669+
* {boolean}
1670+
1671+
The `process.throwDeprecation` property indicates whether the
1672+
`--throw-deprecation` flag is set on the current Node.js process. See the
1673+
documentation for the [`warning` event][process_warning] and the
1674+
[`emitWarning` method][process_emit_warning] for more information about this
1675+
flag's behavior.
1676+
16511677
## process.title
16521678
<!-- YAML
16531679
added: v0.1.104
@@ -1668,6 +1694,19 @@ Node.js v0.8 allowed for longer process title strings by also overwriting the
16681694
`environ` memory but that was potentially insecure and confusing in some
16691695
(rather obscure) cases.
16701696

1697+
## process.traceDeprecation
1698+
<!-- YAML
1699+
added: v0.8.0
1700+
-->
1701+
1702+
* {boolean}
1703+
1704+
The `process.traceDeprecation` property indicates whether the
1705+
`--trace-deprecation` flag is set on the current Node.js process. See the
1706+
documentation for the [`warning` event][process_warning] and the
1707+
[`emitWarning` method][process_emit_warning] for more information about this
1708+
flag's behavior.
1709+
16711710
## process.umask([mask])
16721711
<!-- YAML
16731712
added: v0.1.19

0 commit comments

Comments
 (0)