From 26426577ff2194c6075568da64709f79a868564d Mon Sep 17 00:00:00 2001 From: Kevin Locke Date: Fri, 7 May 2021 10:40:13 -0600 Subject: [PATCH] doc: remove import.meta.resolve parent URL type Support for parent argument of type `URL` was added in #38587, which has not been backported to previous releases yet. Update docs for v14.x to remove the URL type for this argument. Signed-off-by: Kevin Locke PR-URL: https://github.com/nodejs/node/pull/38585 Reviewed-By: Antoine du Hamel --- doc/api/esm.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index d568e651d60a94..571789d79ddf71 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -271,6 +271,11 @@ const buffer = readFileSync(new URL('./data.proto', import.meta.url)); ``` ### `import.meta.resolve(specifier[, parent])` + > Stability: 1 - Experimental @@ -278,7 +283,7 @@ This feature is only available with the `--experimental-import-meta-resolve` command flag enabled. * `specifier` {string} The module specifier to resolve relative to `parent`. -* `parent` {string|URL} The absolute parent module URL to resolve from. If none +* `parent` {string} The absolute parent module URL to resolve from. If none is specified, the value of `import.meta.url` is used as the default. * Returns: {Promise}