node/doc/changelogs
Danielle Adams 0593b699b8
2023-01-05, Version 18.13.0 'Hydrogen' (LTS)
Notable changes:

Add support for externally shared js builtins:

By default Node.js is built so that all dependencies are bundled into the
Node.js binary itself. Some Node.js distributions prefer to manage dependencies
externally. There are existing build options that allow dependencies with
native code to be externalized. This commit adds additional options so that
dependencies with JavaScript code (including WASM) can also be externalized.
This addition does not affect binaries shipped by the Node.js project but
will allow other distributions to externalize additional dependencies when
needed.

Contributed by Michael Dawson in https://github.com/nodejs/node/pull/44376

Introduce `File`:

The File class is part of the [FileAPI](https://w3c.github.io/FileAPI/).
It can be used anywhere a Blob can, for example in `URL.createObjectURL`
and `FormData`. It contains two properties that Blobs do not have: `lastModified`,
the last time the file was modified in ms, and `name`, the name of the file.

Contributed by Khafra in https://github.com/nodejs/node/pull/45139

Support function mocking on Node.js test runner:

The `node:test` module supports mocking during testing via a top-level `mock`
object.

```js
test('spies on an object method', (t) => {
  const number = {
    value: 5,
    add(a) {
      return this.value + a;
    },
  };
  t.mock.method(number, 'add');

  assert.strictEqual(number.add(3), 8);
  assert.strictEqual(number.add.mock.calls.length, 1);
});
```

Contributed by Colin Ihrig in https://github.com/nodejs/node/pull/45326

Other notable changes:

build:
  * disable v8 snapshot compression by default (Joyee Cheung) https://github.com/nodejs/node/pull/45716
crypto:
  * update root certificates (Luigi Pinca) https://github.com/nodejs/node/pull/45490
deps:
  * update ICU to 72.1 (Michaël Zasso) https://github.com/nodejs/node/pull/45068
doc:
  * add doc-only deprecation for headers/trailers setters (Rich Trott) https://github.com/nodejs/node/pull/45697
  * add Rafael to the tsc (Michael Dawson) https://github.com/nodejs/node/pull/45691
  * deprecate use of invalid ports in `url.parse` (Antoine du Hamel) https://github.com/nodejs/node/pull/45576
  * add lukekarrys to collaborators (Luke Karrys) https://github.com/nodejs/node/pull/45180
  * add anonrig to collaborators (Yagiz Nizipli) https://github.com/nodejs/node/pull/45002
  * deprecate url.parse() (Rich Trott) https://github.com/nodejs/node/pull/44919
lib:
  * drop fetch experimental warning (Matteo Collina) https://github.com/nodejs/node/pull/45287
net:
  * (SEMVER-MINOR) add autoSelectFamily and autoSelectFamilyAttemptTimeout options (Paolo Insogna) https://github.com/nodejs/node/pull/44731
* src:
  * (SEMVER-MINOR) add uvwasi version (Jithil P Ponnan) https://github.com/nodejs/node/pull/45639
  * (SEMVER-MINOR) add initial shadow realm support (Chengzhong Wu) https://github.com/nodejs/node/pull/42869
test_runner:
  * (SEMVER-MINOR) add t.after() hook (Colin Ihrig) https://github.com/nodejs/node/pull/45792
  * (SEMVER-MINOR) don't use a symbol for runHook() (Colin Ihrig) https://github.com/nodejs/node/pull/45792
tls:
  * (SEMVER-MINOR) add "ca" property to certificate object (Ben Noordhuis) https://github.com/nodejs/node/pull/44935
  * remove trustcor root ca certificates (Ben Noordhuis) https://github.com/nodejs/node/pull/45776
tools:
  * update certdata.txt (Luigi Pinca) https://github.com/nodejs/node/pull/45490
util:
  * add fast path for utf8 encoding (Yagiz Nizipli) https://github.com/nodejs/node/pull/45412
  * improve textdecoder decode performance (Yagiz Nizipli) https://github.com/nodejs/node/pull/45294
  * (SEMVER-MINOR) add MIME utilities (#21128) (Bradley Farias) https://github.com/nodejs/node/pull/21128

PR-URL: https://github.com/nodejs/node/pull/46025
2023-01-05 19:57:23 -05:00
..
CHANGELOG_ARCHIVE.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_IOJS.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V4.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V5.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V6.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V7.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V8.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V9.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V10.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V11.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V12.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00
CHANGELOG_V13.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V14.md doc: clarify release notes for Node.js 14.21.2 2022-12-21 16:00:34 +00:00
CHANGELOG_V15.md doc: add lint rule to enforce trailing commas 2022-11-17 13:19:12 +00:00
CHANGELOG_V16.md doc: clarify release notes for Node.js 16.19.0 2022-12-21 16:00:35 +00:00
CHANGELOG_V17.md 2022-10-18, Version 19.0.0 (Current) 2022-10-18 11:17:48 -03:00
CHANGELOG_V18.md 2023-01-05, Version 18.13.0 'Hydrogen' (LTS) 2023-01-05 19:57:23 -05:00
CHANGELOG_V19.md 2022-12-14, Version 19.3.0 (Current) 2022-12-14 13:52:52 +00:00
CHANGELOG_V010.md
CHANGELOG_V012.md