diff --git a/CHANGELOG.md b/CHANGELOG.md index 87fd33f..ce4d397 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ ### ⚠️ BREAKING CHANGES -* the strict RFC 8909 mode has been removed +* the strict RFC 8089 mode has been removed * support for node 14 has been removed ### Bug Fixes diff --git a/lib/npa.js b/lib/npa.js index f5ede23..b719be9 100644 --- a/lib/npa.js +++ b/lib/npa.js @@ -248,7 +248,7 @@ function fromFile (res, where) { resolvedUrl = new url.URL(rawWithPrefix, `file://${path.resolve(where)}/`) specUrl = new url.URL(rawWithPrefix) } catch (originalError) { - const er = new Error('Invalid file: URL, must comply with RFC 8909') + const er = new Error('Invalid file: URL, must comply with RFC 8089') throw Object.assign(er, { raw: res.rawSpec, spec: res, @@ -257,7 +257,7 @@ function fromFile (res, where) { }) } - // XXX backwards compatibility lack of compliance with RFC 8909 + // XXX backwards compatibility lack of compliance with RFC 8089 if (resolvedUrl.host && resolvedUrl.host !== 'localhost') { const rawSpec = res.rawSpec.replace(/^file:\/\//, 'file:///') resolvedUrl = new url.URL(rawSpec, `file://${path.resolve(where)}/`) @@ -273,7 +273,7 @@ function fromFile (res, where) { specUrl = new url.URL(rawSpec) rawNoPrefix = rawSpec.replace(/^file:/, '') } - // XXX end RFC 8909 violation backwards compatibility section + // XXX end RFC 8089 violation backwards compatibility section // turn /C:/blah into just C:/blah on windows let specPath = decodeURIComponent(specUrl.pathname)