From 4e8797353c86ba86799ce0d19236d133188f1c9d Mon Sep 17 00:00:00 2001 From: Thomas Date: Sat, 4 Apr 2020 18:09:09 +0200 Subject: [PATCH 1/4] build: fix vcbuild error for missing Visual Studio The previous error was wrongly redirecting users to the ICU installation steps, which is unrelated to missing Visual Studio. PR-URL: https://github.com/nodejs/node/pull/32658 Reviewed-By: Anna Henningsen Reviewed-By: Bartosz Sosnowski Reviewed-By: Gireesh Punathil Reviewed-By: Luigi Pinca Reviewed-By: James M Snell Reviewed-By: Jiawen Geng --- vcbuild.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcbuild.bat b/vcbuild.bat index 3d8df205423ab5..22c3e237acf570 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -321,7 +321,7 @@ goto msbuild-found :msbuild-not-found echo Failed to find a suitable Visual Studio installation. echo Try to run in a "Developer Command Prompt" or consult -echo https://github.com/nodejs/node/blob/master/BUILDING.md#windows-1 +echo https://github.com/nodejs/node/blob/master/BUILDING.md#windows goto exit :msbuild-found From 6b2e3afee95f5d5fdc0751b6f58c447b87d8ec47 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Sat, 11 Apr 2020 17:02:59 +0300 Subject: [PATCH 2/4] doc: improve WHATWG url constructor code example Currently, the URL docs for the WHATWG URL spec support are somewhat lacking in their code example of how to access the new URL constructor that lives inside the core url package. PR-URL: https://github.com/nodejs/node/pull/32782 Reviewed-By: Anna Henningsen --- doc/api/url.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc/api/url.md b/doc/api/url.md index 49f56509fe41e9..6950c92f0980c8 100644 --- a/doc/api/url.md +++ b/doc/api/url.md @@ -105,6 +105,13 @@ const myURL = new URL('/foo', 'https://example.org/'); // https://example.org/foo ``` +The URL constructor is accessible as a property on the global object. +It can also be imported from the built-in url module: + +```js +console.log(URL === require('url').URL); // Prints 'true'. +``` + A `TypeError` will be thrown if the `input` or `base` are not valid URLs. Note that an effort will be made to coerce the given values into strings. For instance: From 76ba9503a2aa1e2f4a304c4d2c60756cfa7ee09e Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Mon, 27 Apr 2020 18:36:43 -0400 Subject: [PATCH 3/4] doc: assign missing deprecation code Signed-off-by: Richard Lau PR-URL: https://github.com/nodejs/node/pull/33109 Refs: https://github.com/nodejs/node/pull/32807 Reviewed-By: Anna Henningsen Reviewed-By: Beth Griggs --- doc/api/deprecations.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/api/deprecations.md b/doc/api/deprecations.md index cc57944292a998..86a6c719a42a27 100644 --- a/doc/api/deprecations.md +++ b/doc/api/deprecations.md @@ -2651,8 +2651,8 @@ written twice. This introduces a race condition between threads, and is a potential security vulnerability. There is no safe, cross-platform alternative API. - -### DEP0XXX: Use `request.destroy()` instead of `request.abort()` + +### DEP0140: Use `request.destroy()` instead of `request.abort()`