From 318f6790e3470cf0564df79a4cda290cfd06722f Mon Sep 17 00:00:00 2001 From: James M Snell Date: Thu, 24 Apr 2025 09:37:29 -0700 Subject: [PATCH 1/4] esm: graduate import.meta properties Mark as no longer experimental: * `import.meta.resolve()` * `import.meta.dirname` * `import.meta.filename` --- doc/api/esm.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index a34c8384d649f4..07244d3247510f 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -350,10 +350,12 @@ properties. It is only supported in ES modules. added: - v21.2.0 - v20.11.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/00000 + description: This property is no longer experimental. --> -> Stability: 1.2 - Release candidate - * {string} The directory name of the current module. This is the same as the [`path.dirname()`][] of the [`import.meta.filename`][]. @@ -365,10 +367,12 @@ added: added: - v21.2.0 - v20.11.0 +changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/00000 + description: This property is no longer experimental. --> -> Stability: 1.2 - Release candidate - * {string} The full absolute path and filename of the current module, with symlinks resolved. * This is the same as the [`url.fileURLToPath()`][] of the @@ -398,6 +402,9 @@ added: - v13.9.0 - v12.16.2 changes: + - version: REPLACEME + pr-url: https://github.com/nodejs/node/pull/00000 + description: This property is no longer experimental. - version: - v20.6.0 - v18.19.0 @@ -422,8 +429,6 @@ changes: description: Add support for WHATWG `URL` object to `parentURL` parameter. --> -> Stability: 1.2 - Release candidate - * `specifier` {string} The module specifier to resolve relative to the current module. * Returns: {string} The absolute URL string that the specifier would resolve to. From b49c4a6968818e75722ba56669500b204773775f Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 27 Apr 2025 07:09:17 -0700 Subject: [PATCH 2/4] Apply suggestions from code review Co-authored-by: Antoine du Hamel --- doc/api/esm.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 07244d3247510f..feae6aa43a5b4f 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -352,7 +352,7 @@ added: - v20.11.0 changes: - version: REPLACEME - pr-url: https://github.com/nodejs/node/pull/00000 + pr-url: https://github.com/nodejs/node/pull/58011 description: This property is no longer experimental. --> @@ -369,7 +369,7 @@ added: - v20.11.0 changes: - version: REPLACEME - pr-url: https://github.com/nodejs/node/pull/00000 + pr-url: https://github.com/nodejs/node/pull/58011 description: This property is no longer experimental. --> @@ -402,9 +402,6 @@ added: - v13.9.0 - v12.16.2 changes: - - version: REPLACEME - pr-url: https://github.com/nodejs/node/pull/00000 - description: This property is no longer experimental. - version: - v20.6.0 - v18.19.0 @@ -429,6 +426,7 @@ changes: description: Add support for WHATWG `URL` object to `parentURL` parameter. --> +> Stability: 1.2 - Release Candidate * `specifier` {string} The module specifier to resolve relative to the current module. * Returns: {string} The absolute URL string that the specifier would resolve to. From e055e1d6ce753b59de1411cba4a37997831355fe Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 27 Apr 2025 07:09:52 -0700 Subject: [PATCH 3/4] Apply suggestions from code review --- doc/api/esm.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/api/esm.md b/doc/api/esm.md index feae6aa43a5b4f..aa0ec87c5cfd92 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -427,6 +427,7 @@ changes: --> > Stability: 1.2 - Release Candidate + * `specifier` {string} The module specifier to resolve relative to the current module. * Returns: {string} The absolute URL string that the specifier would resolve to. From 4c82dda26140dc956b787d3356c4620331701759 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Sun, 27 Apr 2025 07:10:21 -0700 Subject: [PATCH 4/4] Update doc/api/esm.md --- doc/api/esm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index aa0ec87c5cfd92..106ee647d1f4cb 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -426,7 +426,7 @@ changes: description: Add support for WHATWG `URL` object to `parentURL` parameter. --> -> Stability: 1.2 - Release Candidate +> Stability: 1.2 - Release candidate * `specifier` {string} The module specifier to resolve relative to the current module.