GeezerVison is showing github.com — module: runtime deprecate exports double slash maps · nodejs/node@7dd2f41
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: doc/api/deprecations.md +4-1Lines changed: 4 additions & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -3201,13 +3201,16 @@ The [`--trace-atomics-wait`][] flag is deprecated. |
3201 | 3201 |
|
3202 | 3202 | <!-- YAML |
3203 | 3203 | changes: |
| 3204 | + - version: REPLACEME |
| 3205 | + pr-url: https://github.com/nodejs/node/pull/44495 |
| 3206 | + description: Runtime deprecation. |
3204 | 3207 | - version: REPLACEME |
3205 | 3208 | pr-url: https://github.com/nodejs/node/pull/44477 |
3206 | 3209 | description: Documentation-only deprecation |
3207 | 3210 | with `--pending-deprecation` support. |
3208 | 3211 | --> |
3209 | 3212 |
|
3210 | | -Type: Documentation-only (supports [`--pending-deprecation`][]) |
| 3213 | +Type: Runtime |
3211 | 3214 |
|
3212 | 3215 | Package imports and exports targets mapping into paths including a double slash |
3213 | 3216 | (of _"/"_ or _"\\"_) are deprecated and will fail with a resolution validation |
|
Collapse file
Copy file name to clipboardExpand all lines: lib/internal/modules/esm/resolve.js -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -33,7 +33,6 @@ const { |
33 | 33 | Stats, |
34 | 34 | } = require('fs'); |
35 | 35 | const { getOptionValue } = require('internal/options'); |
36 | | -const pendingDeprecation = getOptionValue('--pending-deprecation'); |
37 | 36 | // Do not eagerly grab .manifest, it may be in TDZ |
38 | 37 | const policy = getOptionValue('--experimental-policy') ? |
39 | 38 | require('internal/process/policy') : |
@@ -102,7 +101,6 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) { |
102 | 101 | const doubleSlashRegEx = /[/\\][/\\]/; |
103 | 102 |
|
104 | 103 | function emitInvalidSegmentDeprecation(target, request, match, pjsonUrl, base) { |
105 | | - if (!pendingDeprecation) { return; } |
106 | 104 | const pjsonPath = fileURLToPath(pjsonUrl); |
107 | 105 | const double = RegExpPrototypeExec(doubleSlashRegEx, target) !== null; |
108 | 106 | process.emitWarning( |
|