esm: graduate import.meta properties

Mark as no longer experimental:

* `import.meta.dirname`
* `import.meta.filename`

PR-URL: https://github.com/nodejs/node/pull/58011
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Guy Bedford <guybedford@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
This commit is contained in:
James M Snell 2025-04-24 09:37:29 -07:00
parent e0cf8ae62a
commit c1b15a49be

View File

@ -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/58011
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/58011
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