Shelley Vohr
d68bff2e6f
2020-10-06, Version 12.19.0 'Erbium' (LTS)
...
Notable changes:
assert:
* (SEMVER-MINOR) port common.mustCall() to assert (ConorDavenport) https://github.com/nodejs/node/pull/31982
async_hooks:
* (SEMVER-MINOR) add AsyncResource.bind utility (James M Snell) https://github.com/nodejs/node/pull/34574
buffer:
* (SEMVER-MINOR) also alias BigUInt methods (Anna Henningsen) https://github.com/nodejs/node/pull/34960
* (SEMVER-MINOR) alias UInt ➡️ Uint in buffer methods (Anna Henningsen) https://github.com/nodejs/node/pull/34729
build:
* (SEMVER-MINOR) add build flag for OSS-Fuzz integration (davkor) https://github.com/nodejs/node/pull/34761
cli:
* (SEMVER-MINOR) add alias for report-directory to make it consistent (Ash Cripps) https://github.com/nodejs/node/pull/33587
crypto:
* (SEMVER-MINOR) allow KeyObjects in postMessage (Tobias Nießen) https://github.com/nodejs/node/pull/33360
* (SEMVER-MINOR) add randomInt function (Oli Lalonde) https://github.com/nodejs/node/pull/34600
deps:
* upgrade to libuv 1.39.0 (Colin Ihrig) https://github.com/nodejs/node/pull/34915
* upgrade npm to 6.14.7 (claudiahdz) https://github.com/nodejs/node/pull/34468
* upgrade to libuv 1.38.1 (Colin Ihrig) https://github.com/nodejs/node/pull/34187
dgram:
* (SEMVER-MINOR) add IPv6 scope id suffix to received udp6 dgrams (Pekka Nikander) https://github.com/nodejs/node/pull/14500
* (SEMVER-MINOR) allow typed arrays in .send() (Sarat Addepalli) https://github.com/nodejs/node/pull/22413
doc:
* (SEMVER-MINOR) Add maxTotalSockets option to agent constructor (rickyes) https://github.com/nodejs/node/pull/33617
* (SEMVER-MINOR) add basic embedding example documentation (Anna Henningsen) https://github.com/nodejs/node/pull/30467
* add Ricky Zhou to collaborators (rickyes) https://github.com/nodejs/node/pull/34676
* add release key for Ruy Adorno (Ruy Adorno) https://github.com/nodejs/node/pull/34628
* add DerekNonGeneric to collaborators (Derek Lewis) https://github.com/nodejs/node/pull/34602
* add AshCripps to collaborators (Ash Cripps) https://github.com/nodejs/node/pull/34494
* add HarshithaKP to collaborators (Harshitha K P) https://github.com/nodejs/node/pull/34417
* add rexagod to collaborators (Pranshu Srivastava) https://github.com/nodejs/node/pull/34457
* add release key for Richard Lau (Richard Lau) https://github.com/nodejs/node/pull/34397
* add danielleadams to collaborators (Danielle Adams) https://github.com/nodejs/node/pull/34360
* add sxa as collaborator (Stewart X Addison) https://github.com/nodejs/node/pull/34338
* add ruyadorno to collaborators (Ruy Adorno) https://github.com/nodejs/node/pull/34297
* (SEMVER-MAJOR) deprecate process.umask() with no arguments (Colin Ihrig) https://github.com/nodejs/node/pull/32499
embedding:
* (SEMVER-MINOR) make Stop() stop Workers (Anna Henningsen) https://github.com/nodejs/node/pull/32531
* (SEMVER-MINOR) provide hook for custom process.exit() behaviour (Anna Henningsen) https://github.com/nodejs/node/pull/32531
fs:
* (SEMVER-MINOR) implement lutimes (Maël Nison) https://github.com/nodejs/node/pull/33399
http:
* (SEMVER-MINOR) add maxTotalSockets to agent class (rickyes) https://github.com/nodejs/node/pull/33617
* (SEMVER-MINOR) return this from IncomingMessage#destroy() (Colin Ihrig) https://github.com/nodejs/node/pull/32789
* (SEMVER-MINOR) expose host and protocol on ClientRequest (wenningplus) https://github.com/nodejs/node/pull/33803
http2:
* (SEMVER-MINOR) return this for Http2ServerRequest#setTimeout (Pranshu Srivastava) https://github.com/nodejs/node/pull/33994
* (SEMVER-MINOR) do not modify explicity set date headers (Pranshu Srivastava) https://github.com/nodejs/node/pull/33160
module:
* (SEMVER-MINOR) named exports for CJS via static analysis (Guy Bedford) https://github.com/nodejs/node/pull/35249
* (SEMVER-MINOR) exports pattern support (Guy Bedford) https://github.com/nodejs/node/pull/34718
* (SEMVER-MINOR) package "imports" field (Guy Bedford) https://github.com/nodejs/node/pull/34117
* (SEMVER-MINOR) deprecate module.parent (Antoine du HAMEL) https://github.com/nodejs/node/pull/32217
n-api:
* (SEMVER-MINOR) create N-API version 7 (Gabriel Schulhof) https://github.com/nodejs/node/pull/35199
* (SEMVER-MINOR) support type-tagging objects (Gabriel Schulhof) https://github.com/nodejs/node/pull/28237
n-api,src:
* (SEMVER-MINOR) provide asynchronous cleanup hooks (Anna Henningsen) https://github.com/nodejs/node/pull/34572
perf_hooks:
* (SEMVER-MINOR) add idleTime and event loop util (Trevor Norris) https://github.com/nodejs/node/pull/34938
timers:
* (SEMVER-MINOR) allow timers to be used as primitives (Denys Otrishko) https://github.com/nodejs/node/pull/34017
tls:
* (SEMVER-MINOR) make 'createSecureContext' honor more options (Mateusz Krawczuk) https://github.com/nodejs/node/pull/33974
worker:
* (SEMVER-MINOR) add public method for marking objects as untransferable (Anna Henningsen) https://github.com/nodejs/node/pull/33979
* (SEMVER-MINOR) emit `'messagerror'` events for failed deserialization (Anna Henningsen) https://github.com/nodejs/node/pull/33772
* (SEMVER-MINOR) allow passing JS wrapper objects via postMessage (Anna Henningsen) https://github.com/nodejs/node/pull/33772
* (SEMVER-MINOR) allow transferring/cloning generic BaseObjects (Anna Henningsen) https://github.com/nodejs/node/pull/33772
* (SEMVER-MINOR) add option to track unmanaged file descriptors (Anna Henningsen) https://github.com/nodejs/node/pull/34303
* (SEMVER-MINOR) add stack size resource limit option (Anna Henningsen) https://github.com/nodejs/node/pull/33085
worker,fs:
* (SEMVER-MINOR) make FileHandle transferable (Anna Henningsen) https://github.com/nodejs/node/pull/33772
zlib:
* (SEMVER-MINOR) add `maxOutputLength` option (unknown) https://github.com/nodejs/node/pull/33516
* switch to lazy init for zlib streams (Andrey Pechkurov) https://github.com/nodejs/node/pull/34048
PR-URL: https://github.com/nodejs/node/pull/35401
2020-10-06 10:37:45 -07:00
Ruben Bridgewater
4277d952c0
doc: mark assert.CallTracker experimental
...
Some details might still change and it would be good to get feedback
from users before we mark this as stable.
Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de >
PR-URL: https://github.com/nodejs/node/pull/33124
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
2020-09-23 22:03:25 +02:00
Rich Trott
80fa1f5722
doc: fix malformed hashes in assert.md
...
URL hashes cannot contain `#`. Use hashes for the locations that were
intended.
PR-URL: https://github.com/nodejs/node/pull/35028
Reviewed-By: Derek Lewis <DerekNonGeneric@inf.is >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
2020-09-22 19:56:49 +02:00
Ye-hyoung Kang
1d64c2c345
doc: fix typo in assert.md
...
PR-URL: https://github.com/nodejs/node/pull/34316
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2020-09-22 19:53:47 +02:00
Alec Davidson
5ba0ba4b69
doc: add dynamic source code links
...
Fixes: https://github.com/nodejs/node/pull/33977
PR-URL: https://github.com/nodejs/node/pull/33996
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-09-22 01:09:54 +02:00
ConorDavenport
d73b8346b8
assert: port common.mustCall() to assert
...
Fixes: https://github.com/nodejs/node/issues/31392
PR-URL: https://github.com/nodejs/node/pull/31982
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Zeyu Yang <himself65@outlook.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
2020-09-15 21:39:03 +01:00
Shelley Vohr
3443e3ad4c
2020-04-08 Version 12.16.2 (LTS)
...
Notable changes:
doc:
* add ronag to collaborators (Robert Nagy) [#31498 ](https://github.com/nodejs/node/pull/31498 )
* add GeoffreyBooth to collaborators (Geoffrey Booth) [#31306 ](https://github.com/nodejs/node/pull/31306 )
deps:
* upgrade npm to 6.13.6 (Ruy Adorno) [#31304 ](https://github.com/nodejs/node/pull/31304 )
* update openssl to 1.1.1e (Hassaan Pasha) [#32328 ](https://github.com/nodejs/node/pull/32328 )
2020-04-07 20:35:33 -07:00
Eric Eastwood
ab735d0144
doc: update assert.rejects() docs with a validation function example
...
Spawned from my own struggle to use in https://gitlab.com/gitlab-org/gitter/webapp/merge_requests/1702#note_268452483
PR-URL: https://github.com/nodejs/node/pull/31271
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2020-03-30 11:00:00 -07:00
Rich Trott
1db85aa71c
doc: revise deepEqual() legacy assertion mode text
...
* Remove "potentially". It's arguably misplaced and certainly
unnecessary.
* Use italics for words-as-words usage of _Deep equality_ rather than
using quotation marks.
PR-URL: https://github.com/nodejs/node/pull/31704
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 10:59:40 -07:00
Rich Trott
aadd8cac4b
doc: improve strict assertion mode color text
...
Minor improvements to the text about colors in strict assertion mode:
* Consolidate the two paragraphs into one
* Pluralize "variables"
* Remove unnecessary article "the"
* Change "doc" to "documentation"
PR-URL: https://github.com/nodejs/node/pull/31703
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-03-30 10:59:40 -07:00
Rich Trott
708aff953a
doc: consolidate introductory text
...
PR-URL: https://github.com/nodejs/node/pull/31667
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2020-03-30 10:59:35 -07:00
Rich Trott
8f75c7497e
doc,assert: rename "mode" to "assertion mode"
...
Rename "strict mode" in the assert module to "strict assertion mode".
This is to avoid confusion with the more typical meaning of "strict
mode" in ECMAScript.
This necessitates a corresponding change of "legacy mode" to "legacy
assertion mode".
PR-URL: https://github.com/nodejs/node/pull/31635
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-03-30 10:59:31 -07:00
Myles Borins
d20e494d9f
2020-02-11, Version 12.16.0 'Erbium' (LTS)
...
Notable changes:
New assert APIs
The `assert` module now provides experimental `assert.match()` and
`assert.doesNotMatch()` methods. They will validate that the first argument is a
string and matches (or does not match) the provided regular expression
This is an experimental feature.
Ruben Bridgewater [#30929 ](https://github.com/nodejs/node/pull/30929 ).
Advanced serialization for IPC
The `child_process` and `cluster` modules now support a `serialization` option
to change the serialization mechanism used for IPC. The option can have one of
two values:
* `'json'` (default): `JSON.stringify()` and `JSON.parse()` are used. This is
how message serialization was done before.
* `'advanced'`: The serialization API of the `v8` module is used. It is based on
the HTML structured clone algorithm.
and is able to serialize more built-in JavaScript object types, such as
`BigInt`, `Map`, `Set` etc. as well as circular data structures.
Anna Henningsen [#30162 ](https://github.com/nodejs/node/pull/30162 ).
CLI flags
The new `--trace-exit` CLI flag makes Node.js print a stack trace whenever the
Node.js environment is exited proactively (i.e. by invoking the `process.exit()`
function or pressing Ctrl+C).
legendecas [#30516 ](https://github.com/nodejs/node/pull/30516 ).
___
The new `--trace-uncaught` CLI flag makes Node.js print a stack trace at the
time of throwing uncaught exceptions, rather than at the creation of the `Error`
object, if there is any.
This option is not enabled by default because it may affect garbage collection
behavior negatively.
Anna Henningsen [#30025 ](https://github.com/nodejs/node/pull/30025 ).
___
The `--disallow-code-generation-from-strings` V8 CLI flag is now whitelisted in
the `NODE_OPTIONS` environment variable.
Shelley Vohr [#30094 ](https://github.com/nodejs/node/pull/30094 ).
New crypto APIs
For DSA and ECDSA, a new signature encoding is now supported in addition to the
existing one (DER). The `verify` and `sign` methods accept a `dsaEncoding`
option, which can have one of two values:
* `'der'` (default): DER-encoded ASN.1 signature structure encoding `(r, s)`.
* `'ieee-p1363'`: Signature format `r || s` as proposed in IEEE-P1363.
Tobias Nießen [#29292 ](https://github.com/nodejs/node/pull/29292 ).
___
A new method was added to `Hash`: `Hash.prototype.copy`. It makes it possible to
clone the internal state of a `Hash` object into a new `Hash` object, allowing
to compute the digest between updates.
Ben Noordhuis [#29910 ](https://github.com/nodejs/node/pull/29910 ).
Dependency updates
libuv was updated to 1.34.0. This includes fixes to `uv_fs_copyfile()` and
`uv_interface_addresses()` and adds two new functions: `uv_sleep()` and
`uv_fs_mkstemp()`.
Colin Ihrig [#30783 ](https://github.com/nodejs/node/pull/30783 ).
___
V8 was updated to 7.8.279.23. This includes performance improvements to object
destructuring, RegExp match failures and WebAssembly startup time.
The official release notes are available at https://v8.dev/blog/v8-release-78 .
Michaël Zasso [#30109 ](https://github.com/nodejs/node/pull/30109 ).
New EventEmitter APIs
The new `EventEmitter.on` static method allows to async iterate over events.
Matteo Collina [#27994 ](https://github.com/nodejs/node/pull/27994 ).
___
It is now possible to monitor `'error'` events on an `EventEmitter` without
consuming the emitted error by installing a listener using the symbol
`EventEmitter.errorMonitor`.
Gerhard Stoebich [#30932 ](https://github.com/nodejs/node/pull/30932 ).
___
Using `async` functions with event handlers is problematic, because it
can lead to an unhandled rejection in case of a thrown exception.
The experimental `captureRejections` option in the `EventEmitter` constructor or
the global setting change this behavior, installing a
`.then(undefined, handler)` handler on the `Promise`. This handler routes the
exception asynchronously to the `Symbol.for('nodejs.rejection')` method if there
is one, or to the `'error'` event handler if there is none.
Setting `EventEmitter.captureRejections = true` will change the default for all
new instances of `EventEmitter`.
This is an experimental feature.
Matteo Collina [#27867 ](https://github.com/nodejs/node/pull/27867 ).
Performance Hooks are no longer experimental
The `perf_hooks` module is now considered a stable API.
legendecas [#31101 ](https://github.com/nodejs/node/pull/31101 ).
Introduction of experimental WebAssembly System Interface (WASI) support
A new core module, `wasi`, is introduced to provide an implementation of the
[WebAssembly System Interface](https://wasi.dev/ ) specification.
WASI gives sandboxed WebAssembly applications access to the
underlying operating system via a collection of POSIX-like functions.
This is an experimental feature.
Colin Ihrig [#30258 ](https://github.com/nodejs/node/pull/30258 ).
PR-URL: https://github.com/nodejs/node/pull/31691
2020-02-11 15:37:05 +01:00
Ruben Bridgewater
fc7b27ea78
assert: implement assert.match() and assert.doesNotMatch()
...
This adds a new functionality to the assertion module: a dedicated
check for regular expressions. So far it's possible to use
`assert.ok(regexp.test(string))`. This is not ideal though when it
comes to the error message, since it's not possible to know how
either of the input values look like. It's just known that the
assertion failed.
This allows to pass through the regular expression and the input
string. The string is then matched against the regular expression
and reports a expressive error message in case of a failure.
Backport-PR-URL: https://github.com/nodejs/node/pull/31431
PR-URL: https://github.com/nodejs/node/pull/30929
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com >
2020-02-06 02:49:40 +00:00
Ruben Bridgewater
9a6aff8517
doc: make AssertionError a link
...
This makes sure that `AssertionError` links to the correct place in
the assert documentation.
Backport-PR-URL: https://github.com/nodejs/node/pull/31431
PR-URL: https://github.com/nodejs/node/pull/28263
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-02-06 02:49:40 +00:00
Ruben Bridgewater
08b5a2fcb4
doc: update assert.throws() examples
...
This updates two outdated examples to the current implementation.
Backport-PR-URL: https://github.com/nodejs/node/pull/31431
PR-URL: https://github.com/nodejs/node/pull/28263
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2020-02-06 02:49:39 +00:00
Shobhit Chittora
420d793f9a
doc: adds assert doc for strict mode with pointer to strict equality
...
Refs: https://github.com/nodejs/node/issues/30485
PR-URL: https://github.com/nodejs/node/pull/30486
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
2020-02-06 02:49:02 +00:00
Rich Trott
b7bd84f7d2
doc: simplify "is recommended" language in assert documentation
...
Replace "X is not recommended" with "Avoid X".
Replace "It is recommended not to use X" with "Avoid X".
PR-URL: https://github.com/nodejs/node/pull/30558
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2020-02-06 02:48:58 +00:00
Rich Trott
2885bdbc56
doc,assert: use code markup/markdown in headers
...
Backport-PR-URL: https://github.com/nodejs/node/pull/31108
PR-URL: https://github.com/nodejs/node/pull/31086
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2020-02-06 02:48:43 +00:00
Rich Trott
da0c6736d0
benchmark,doc,lib,test: prepare for padding lint rule
...
Upcoming lint rule will require a blank line between consecutive
functions. Add it in the places where we don't have it already.
PR-URL: https://github.com/nodejs/node/pull/30696
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-12-17 17:07:01 -05:00
Shobhit Chittora and Vse Mozhet Byt
ec5fe999e8
doc: adds NO_COLOR to assert doc page
...
Co-Authored-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
PR-URL: https://github.com/nodejs/node/pull/30483
Refs: https://github.com/nodejs/node/issues/30484
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Denys Otrishko <shishugi@gmail.com >
2019-12-17 17:06:35 -05:00
Nick Schonning
b916ea3010
doc: escape brackets not used as markdown reference links
...
These can turn into links if reference links are added to the document
PR-URL: https://github.com/nodejs/node/pull/29809
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-10-14 17:28:14 +02:00
Nick Schonning
a5c2154534
doc: add explicit bracket for markdown reference links
...
Use explicit trailing `[]` for reference markdown links to prevent
implicit links when references are added to documents.
PR-URL: https://github.com/nodejs/node/pull/29808
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-10-09 21:44:51 +02:00
Vse Mozhet Byt
aea0253697
doc: unify place of stability notes
...
In most cases, stability note is the first info in a doc section
after YAML. This PR makes it consistent across all docs,
as this info seems the most relevant for a reader.
PR-URL: https://github.com/nodejs/node/pull/29799
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2019-10-09 21:41:48 +02:00
Nick Schonning
d1a4aa3ca2
doc: add missing reference link values
...
Reference links were used in the document, but not define at the end.
PR-URL: https://github.com/nodejs/node/pull/29558
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-10-09 21:35:08 +02:00
Nick Schonning
2a5340144c
doc: space around lists
...
Address markdownlint rule MD032.
Flagged a few mixed list styles.
PR-URL: https://github.com/nodejs/node/pull/29467
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: David Carlier <devnexen@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2019-09-25 18:20:49 +02:00
Kamat, Trivikram
a2c704773a
doc,errors: add extends to derived classes
...
PR-URL: https://github.com/nodejs/node/pull/29303
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2019-09-04 16:48:17 +02:00
Rich Trott
f4abf17d36
doc: remove legacy mode deprecation in assert
...
The deprecation was revoked in
https://github.com/nodejs/node/pull/28892 .
PR-URL: https://github.com/nodejs/node/pull/28909
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Roman Reiss <me@silverwind.io >
Reviewed-By: James M Snell <jasnell@gmail.com >
2019-08-02 22:24:12 +02:00
himself65
3f78a51b5e
doc: add examples at assert.strictEqual
...
PR-URL: https://github.com/nodejs/node/pull/28092
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-07-20 11:29:57 +02:00
Rich Trott
3f65b91eb9
doc: remove superfluous MDN link in assert.md
...
PR-URL: https://github.com/nodejs/node/pull/28246
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-07-20 11:10:25 +02:00
Rich Trott
d759e0fa49
doc: remove "note that" from assert.md
...
Refs: https://github.com/nodejs/remark-preset-lint-node/pull/16
PR-URL: https://github.com/nodejs/node/pull/28329
Reviewed-By: Gus Caplan <me@gus.host >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Tobias Nießen <tniessen@tnie.de >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-07-02 09:07:53 +02:00
Rich Trott
51742b834d
doc: revise assert legacy mode text
...
Revise the text for the `assert` module's legacy mode to make it simpler
and more scannable.
PR-URL: https://github.com/nodejs/node/pull/28315
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2019-07-02 09:07:45 +02:00
Rich Trott
1f2b8c8cab
doc: revise strict mode text in assert
...
Revise the text describing `strict` mode.
PR-URL: https://github.com/nodejs/node/pull/28285
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2019-07-02 09:07:44 +02:00
Rich Trott
168c12758b
doc: tidy AssertionError text
...
Several minor improvements to text. Remove some repetition.
PR-URL: https://github.com/nodejs/node/pull/28255
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
2019-07-02 09:07:41 +02:00
Rich Trott
8aeb9cc10f
doc: revise intro sentence for assert
...
Simplify language, remove redundancy ("tests that can be used to
test") and remove wordy passive voice ("that can be used to" replaced
with "for").
PR-URL: https://github.com/nodejs/node/pull/28226
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
2019-06-18 16:04:11 +02:00
Rich Trott
60156274b1
doc: improve assert strict-mode text
...
Simplify and clarify introductory material on `strict` mode.
Merge two single-sentence paragraphs into a single paragraph.
Replace "`strict mode`" with "`strict` mode".
PR-URL: https://github.com/nodejs/node/pull/28239
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
2019-06-18 16:03:17 +02:00
Ruben Bridgewater
abe5d05523
doc: update assert's validation functions
...
Using `assert.throws()` or `assert.rejects()` in combination with
validation function can be very powerful. Using them by returning
any value besides `true` makes debugging very difficult though
because there's no context or reason why the error validation failed.
Thus, it is recommended to throw an error in such cases instead of
returning anything besides `true`.
PR-URL: https://github.com/nodejs/node/pull/27781
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-06-17 21:12:26 +02:00
Kyle Zhang
70b485478c
doc: fix the wrong name of AssertionError
...
err.name of AssertionError should be 'AssertionError'
PR-URL: https://github.com/nodejs/node/pull/27982
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
2019-06-02 15:15:23 +02:00
Ruben Bridgewater
76af4f0d05
tools: prohibit assert.doesNotReject() in Node.js core
...
This makes sure we do not use `assert.doesNotReject()` anywhere in
our code base. This is just a simple wrapper that catches the
rejection and then rejects it again in case of an error. Thus, it is
not useful to do that.
The error message for `assert.doesNotThrow()` is also improved.
PR-URL: https://github.com/nodejs/node/pull/27402
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com >
Reviewed-By: Beth Griggs <Bethany.Griggs@uk.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2019-04-29 16:57:28 +02:00
Beth Griggs
2f45ad8060
2019-04-23, Version 12.0.0 (Current)
...
Notable changes:
* assert:
* validate required arguments (Ruben Bridgewater)
[#26641 ](https://github.com/nodejs/node/pull/26641 )
* adjust loose assertions (Ruben Bridgewater)
[#25008 ](https://github.com/nodejs/node/pull/25008 )
* async_hooks:
* remove deprecated `emitBefore` and `emitAfter` (Matteo Collina)
[#26530 ](https://github.com/nodejs/node/pull/26530 )
* remove promise object from resource (Andreas Madsen)
[#23443 ](https://github.com/nodejs/node/pull/23443 )
* bootstrap: make Buffer and process non-enumerable (Ruben Bridgewater)
[#24874 ](https://github.com/nodejs/node/pull/24874 )
* buffer:
* use stricter range checks (Ruben Bridgewater)
[#27045 ](https://github.com/nodejs/node/pull/27045 )
* harden `SlowBuffer` creation (ZYSzys)
[#26272 ](https://github.com/nodejs/node/pull/26272 )
* harden validation of buffer allocation size (ZYSzys)
[#26162 ](https://github.com/nodejs/node/pull/26162 )
* do proper error propagation in addon methods (Anna Henningsen)
[#23939 ](https://github.com/nodejs/node/pull/23939 )
* child_process:
* remove `options.customFds` (cjihrig)
[#25279 ](https://github.com/nodejs/node/pull/25279 )
* harden fork arguments validation (ZYSzys)
[#27039 ](https://github.com/nodejs/node/pull/27039 )
* use non-infinite `maxBuffer` defaults (kohta ito)
[#23027 ](https://github.com/nodejs/node/pull/23027 )
* console:
* don't use ANSI escape codes when `TERM=dumb` (Vladislav Kaminsky)
[#26261 ](https://github.com/nodejs/node/pull/26261 )
* crypto:
* remove legacy native handles (Tobias Nießen)
[#27011 ](https://github.com/nodejs/node/pull/27011 )
* decode missing passphrase errors (Tobias Nießen)
[#25208 ](https://github.com/nodejs/node/pull/25208 )
* remove `Cipher.setAuthTag()` and `Decipher.getAuthTag()`
(Tobias Nießen)
[#26249 ](https://github.com/nodejs/node/pull/26249 )
* remove deprecated `crypto._toBuf()` (Tobias Nießen)
[#25338 ](https://github.com/nodejs/node/pull/25338 )
* set `DEFAULT\_ENCODING` property to non-enumerable
(Antoine du Hamel)
[#23222 ](https://github.com/nodejs/node/pull/23222 )
* deps:
* update V8 to 7.4.288.13
(Michaël Zasso, cjihrig, Refael Ackermann)
(Anna Henningsen, Ujjwal Sharma)
[#26685 ](https://github.com/nodejs/node/pull/26685 )
* bump minimum icu version to 63 (Ujjwal Sharma)
[#25852 ](https://github.com/nodejs/node/pull/25852 )
* update OpenSSL to 1.1.1b (Sam Roberts, Shigeki Ohtsu)
[#26327 ](https://github.com/nodejs/node/pull/26327 )
* errors:
* update error name (Ruben Bridgewater)
[#26738 ](https://github.com/nodejs/node/pull/26738 )
* fs:
* use proper .destroy() implementation for SyncWriteStream
(Matteo Collina)
[#26690 ](https://github.com/nodejs/node/pull/26690 )
* improve mode validation (Ruben Bridgewater)
[#26575 ](https://github.com/nodejs/node/pull/26575 )
* harden validation of start option in `createWriteStream()`
(ZYSzys)
[#25579 ](https://github.com/nodejs/node/pull/25579 )
* make writeFile consistent with readFile wrt fd
(Sakthipriyan Vairamani (thefourtheye))
[#23709 ](https://github.com/nodejs/node/pull/23709 )
* http:
* validate timeout in `ClientRequest()` (cjihrig)
[#26214 ](https://github.com/nodejs/node/pull/26214 )
* return HTTP 431 on `HPE_HEADER_OVERFLOW` error (Albert Still)
[#25605 ](https://github.com/nodejs/node/pull/25605 )
* switch default parser to llhttp (Anna Henningsen)
[#24870 ](https://github.com/nodejs/node/pull/24870 )
* Runtime-deprecate `outgoingMessage._headers` and
`outgoingMessage._headerNames` (Morgan Roderick)
[#24167 ](https://github.com/nodejs/node/pull/24167 )
* lib:
* remove `Atomics.wake()` (Gus Caplan)
[#27033 ](https://github.com/nodejs/node/pull/27033 )
* move DTRACE\_\* probes out of global scope (James M Snell)
[#26541 ](https://github.com/nodejs/node/pull/26541 )
* deprecate `_stream_wrap` (Sam Roberts)
[#26245 ](https://github.com/nodejs/node/pull/26245 )
* use ES6 class inheritance style (Ruben Bridgewater)
[#24755 ](https://github.com/nodejs/node/pull/24755 )
* module:
* remove unintended access to deps/ (Anna Henningsen)
[#25138 ](https://github.com/nodejs/node/pull/25138 )
* improve error message for MODULE\_NOT\_FOUND (Ali Ijaz Sheikh)
[#25690 ](https://github.com/nodejs/node/pull/25690 )
* requireStack property for MODULE\_NOT\_FOUND (Ali Ijaz Sheikh)
[#25690 ](https://github.com/nodejs/node/pull/25690 )
* remove dead code (Ruben Bridgewater)
[#26983 ](https://github.com/nodejs/node/pull/26983 )
* make `require('.')` never resolve outside the current directory
(Ruben Bridgewater)
[#26973 ](https://github.com/nodejs/node/pull/26973 )
* throw an error for invalid package.json main entries
(Ruben Bridgewater)
[#26823 ](https://github.com/nodejs/node/pull/26823 )
* don't search in `require.resolve.paths` (cjihrig)
[#23683 ](https://github.com/nodejs/node/pull/23683 )
* net:
* remove `Server.listenFD()` (cjihrig)
[#27127 ](https://github.com/nodejs/node/pull/27127 )
* do not add `.host` and `.port` properties to DNS error
(Ruben Bridgewater)
[#26751 ](https://github.com/nodejs/node/pull/26751 )
* emit "write after end" errors in the next tick (Ouyang Yadong)
[#24457 ](https://github.com/nodejs/node/pull/24457 )
* deprecate `_setSimultaneousAccepts()` undocumented function
(James M Snell)
[#23760 ](https://github.com/nodejs/node/pull/23760 )
* os:
* implement `os.type()` using `uv_os_uname()` (cjihrig)
[#25659 ](https://github.com/nodejs/node/pull/25659 )
* remove `os.getNetworkInterfaces()` (cjihrig)
[#25280 ](https://github.com/nodejs/node/pull/25280 )
* process:
* make global.process, global.Buffer getters (Guy Bedford)
[#26882 ](https://github.com/nodejs/node/pull/26882 )
* move DEP0062 (node --debug) to end-of-life (Joyee Cheung)
[#25828 ](https://github.com/nodejs/node/pull/25828 )
* exit on --debug and --debug-brk after option parsing
(Joyee Cheung)
[#25828 ](https://github.com/nodejs/node/pull/25828 )
* improve `--redirect-warnings` handling (Ruben Bridgewater)
[#24965 ](https://github.com/nodejs/node/pull/24965 )
* readline:
* support TERM=dumb (Vladislav Kaminsky)
[#26261 ](https://github.com/nodejs/node/pull/26261 )
* repl:
* add welcome message (gengjiawen)
[#25947 ](https://github.com/nodejs/node/pull/25947 )
* fix terminal default setting (Ruben Bridgewater)
[#26518 ](https://github.com/nodejs/node/pull/26518 )
* check colors with `.getColorDepth()` (Vladislav Kaminsky)
[#26261 ](https://github.com/nodejs/node/pull/26261 )
* deprecate REPLServer.rli (Ruben Bridgewater)
[#26260 ](https://github.com/nodejs/node/pull/26260 )
* src:
* remove unused `INT_MAX` constant (Sam Roberts)
[#27078 ](https://github.com/nodejs/node/pull/27078 )
* update `NODE_MODULE_VERSION` to 72 (Ujjwal Sharma)
[#26685 ](https://github.com/nodejs/node/pull/26685 )
* remove `AddPromiseHook()` (Anna Henningsen)
[#26574 ](https://github.com/nodejs/node/pull/26574 )
* clean up `MultiIsolatePlatform` interface (Anna Henningsen)
[#26384 ](https://github.com/nodejs/node/pull/26384 )
* properly configure default heap limits (Ali Ijaz Sheikh)
[#25576 ](https://github.com/nodejs/node/pull/25576 )
* remove `icuDataDir` from node config (GauthamBanasandra)
[#24780 ](https://github.com/nodejs/node/pull/24780 )
* tls:
* support TLSv1.3 (Sam Roberts)
[#26209 ](https://github.com/nodejs/node/pull/26209 )
* return correct version from `getCipher()` (Sam Roberts)
[#26625 ](https://github.com/nodejs/node/pull/26625 )
* check arg types of renegotiate() (Sam Roberts)
[#25876 ](https://github.com/nodejs/node/pull/25876 )
* add code for `ERR_TLS_INVALID_PROTOCOL_METHOD` (Sam Roberts)
[#24729 ](https://github.com/nodejs/node/pull/24729 )
* emit a warning when servername is an IP address (Rodger Combs)
[#23329 ](https://github.com/nodejs/node/pull/23329 )
* disable TLS v1.0 and v1.1 by default (Ben Noordhuis)
[#23814 ](https://github.com/nodejs/node/pull/23814 )
* remove unused arg to createSecureContext() (Sam Roberts)
[#24241 ](https://github.com/nodejs/node/pull/24241 )
* deprecate `Server.prototype.setOptions()` (cjihrig)
[#23820 ](https://github.com/nodejs/node/pull/23820 )
* load `NODE_EXTRA_CA_CERTS` at startup (Ouyang Yadong)
[#23354 ](https://github.com/nodejs/node/pull/23354 )
* util:
* remove `util.print()`, `util.puts()`, `util.debug()`
and `util.error()` (cjihrig)
[#25377 ](https://github.com/nodejs/node/pull/25377 )
* change inspect compact and breakLength default
(Ruben Bridgewater)
[#27109 ](https://github.com/nodejs/node/pull/27109 )
* improve inspect edge cases (Ruben Bridgewater)
[#27109 ](https://github.com/nodejs/node/pull/27109 )
* only the first line of the error message (Simon Zünd)
[#26685 ](https://github.com/nodejs/node/pull/26685 )
* don't set the prototype of callbackified functions
(Ruben Bridgewater)
[#26893 ](https://github.com/nodejs/node/pull/26893 )
* rename callbackified function (Ruben Bridgewater)
[#26893 ](https://github.com/nodejs/node/pull/26893 )
* increase function length when using `callbackify()`
(Ruben Bridgewater)
[#26893 ](https://github.com/nodejs/node/pull/26893 )
* prevent tampering with internals in `inspect()`
(Ruben Bridgewater)
[#26577 ](https://github.com/nodejs/node/pull/26577 )
* prevent Proxy traps being triggered by `.inspect()`
(Ruben Bridgewater)
[#26241 ](https://github.com/nodejs/node/pull/26241 )
* prevent leaking internal properties (Ruben Bridgewater)
[#24971 ](https://github.com/nodejs/node/pull/24971 )
* protect against monkeypatched Object prototype for inspect()
(Rich Trott)
[#25953 ](https://github.com/nodejs/node/pull/25953 )
* treat format arguments equally (Roman Reiss)
[#23162 ](https://github.com/nodejs/node/pull/23162 )
* win, fs:
* detect if symlink target is a directory (Bartosz Sosnowski)
[#23724 ](https://github.com/nodejs/node/pull/23724 )
* zlib:
* throw TypeError if callback is missing (Anna Henningsen)
[#24929 ](https://github.com/nodejs/node/pull/24929 )
* make “bare” constants un-enumerable (Anna Henningsen)
[#24824 ](https://github.com/nodejs/node/pull/24824 )
PR-URL: https://github.com/nodejs/node/pull/26930
2019-04-23 11:56:52 +01:00
Ruben Bridgewater
7493db21b6
assert: adjust loose assertions
...
This changes the loose deep equal comparison by using the same logic
as done in the strict deep equal comparison besides comparing
primitives loosely, not comparing symbol properties and not comparing
the prototype.
`assert.deepEqual` is still commenly used and this is likely the
biggest pitfall.
Most changes are only minor and won't have a big impact besides
likely fixing user expectations.
PR-URL: https://github.com/nodejs/node/pull/25008
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com >
2019-01-27 03:34:25 +01:00
Sam Roberts
64cea5a1ac
doc: sort bottom-of-file markdown links
...
Reapply https://github.com/nodejs/node/pull/12726
It would be nice to have the sort check applied as part of doc testing,
but this change doesn't implement that.
PR-URL: https://github.com/nodejs/node/pull/24679
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2018-11-28 13:09:31 -08:00
Denys Otrishko
f90cf19fdd
doc: remove notice of dashes in V8 options
...
Previously only V8 options supported both dashes in them (making them
equivalent), but now Node.js also supports both styles so the note can
be removed.
PR-URL: https://github.com/nodejs/node/pull/23903
Refs: https://github.com/nodejs/node/pull/18592
Reviewed-By: Richard Lau <riclau@uk.ibm.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: George Adams <george.adams@uk.ibm.com >
2018-10-29 21:24:08 +00:00
Ruben Bridgewater
c1483bac94
doc: improve assert documentation
...
This fixes the officially accepted message types for `assert.throws()`,
`assert.rejects()`, `assert.doesNotThrow()` and
`assert.doesNotReject()`. It also renames the `block` argument in
those functions to `fn` and `promiseFn` for further clarity.
PR-URL: https://github.com/nodejs/node/pull/22692
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: George Adams <george.adams@uk.ibm.com >
2018-09-07 22:42:08 +01:00
Vse Mozhet Byt
1a25f9639a
doc: remove redundant 'Example:' and similar notes
...
Some nits were also fixed in passing.
PR-URL: https://github.com/nodejs/node/pull/22537
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com >
Reviewed-By: James M Snell <jasnell@gmail.com >
2018-08-29 16:53:03 +03:00
Ruben Bridgewater
0518b9edf3
assert: multiple improvements
...
1) Switched + / - and red / green in diffs. It seems like that style
is more natural to most people.
2) Short primitives do not use the diff anymore. Especially short
numbers can be read well like 1 !== 2. Cases that can not be
displayed like that (e.g., -0 and +0) use the regular diff output.
3) Improved error descriptions. It was not always clear what the
messages stood for. That should now be resolved.
4) Added a position indicator for single lines in case a tty is used
and the line is shorter than the visual columns.
5) Color detection is now done by checking stderr instead of stdout.
PR-URL: https://github.com/nodejs/node/pull/21628
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Matteo Collina <matteo.collina@gmail.com >
Reviewed-By: Anna Henningsen <anna@addaleax.net >
Reviewed-By: James M Snell <jasnell@gmail.com >
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
2018-08-04 10:04:32 +02:00
Eugene Y. Q. Shen
ce98e2e989
doc: rename stackStartFunction in assert.md
...
[assert.js](https://github.com/nodejs/node/blob/master/lib/assert.js )
uses `stackStartFn` everywhere instead of `stackStartFunction`.
This also increases consistency with `stackStartFn`
in the `AssertionError` options.
PR-URL: https://github.com/nodejs/node/pull/22077
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Rich Trott <rtrott@gmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Luigi Pinca <luigipinca@gmail.com >
2018-08-02 17:36:27 +03:00
Rich Trott
85fe134026
doc: remove spaces around slashes
...
Remove spaces around slash characters in documentation. This change
sometimes rewords the content where the slash construction may not be
what is called for.
PR-URL: https://github.com/nodejs/node/pull/21140
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com >
Reviewed-By: Michaël Zasso <targos@protonmail.com >
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com >
Reviewed-By: Colin Ihrig <cjihrig@gmail.com >
2018-06-06 21:23:00 -07:00
Anna Henningsen
82f18118ff
2018-05-23, Version 10.2.0 (Current)
...
* addons:
- Fixed a memory leak for users of `AsyncResource` and N-API.
(Michael Dawson)
https://github.com/nodejs/node/pull/20668
* assert:
- The `error` parameter of `assert.throws()` can be an object containing
regular expressions now. (Ruben Bridgewater)
https://github.com/nodejs/node/pull/20485
* crypto:
- The `authTagLength` option has been made more flexible (Tobias Nießen)
https://github.com/nodejs/node/pull/20235 )
https://github.com/nodejs/node/pull/20039
* esm:
- Builtin modules (e.g. `fs`) now provide named exports in ES6 modules.
(Gus Caplan)
https://github.com/nodejs/node/pull/20403
* http:
- Handling of `close` and `aborted` events has been made more consistent.
(Robert Nagy)
https://github.com/nodejs/node/pull/20075
https://github.com/nodejs/node/pull/20611
* module:
- add --preserve-symlinks-main (David Goldstein)
https://github.com/nodejs/node/pull/19911
* timers:
- `timeout.refresh()` has been added to the public API.
(Jeremiah Senkpiel)
https://github.com/nodejs/node/pull/20298
* Embedder support:
- Functions for creating V8 `Isolate` and `Context` objects with
Node.js-specific behaviour have been added to the API.
(Allen Yonghuang Wang)
https://github.com/nodejs/node/pull/20639
- Node.js `Environment`s clean up resources before exiting now.
(Anna Henningsen)
https://github.com/nodejs/node/pull/19377
- Support for multi-threaded embedding has been improved.
(Anna Henningsen)
https://github.com/nodejs/node/pull/20542
https://github.com/nodejs/node/pull/20539
https://github.com/nodejs/node/pull/20541
PR-URL: https://github.com/nodejs/node/pull/20724
2018-05-23 19:08:39 -04:00
Anna Henningsen
50b334befd
doc: add missing changes: entry for assert.throws
...
Refs: https://github.com/nodejs/node/pull/20485
PR-URL: https://github.com/nodejs/node/pull/20723
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de >
Reviewed-By: Ujjwal Sharma <usharma1998@gmail.com >
2018-05-14 19:52:35 +02:00