GeezerVison is showing github.com — module: runtime deprecate trailing slash patterns · nodejs/node@64287e4
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 |
|---|
@@ -2820,13 +2820,16 @@ and `'mgf1HashAlgorithm'`. |
2820 | 2820 | ### DEP0155: Trailing slashes in pattern specifier resolutions |
2821 | 2821 | <!-- YAML |
2822 | 2822 | changes: |
| 2823 | + - version: REPLACEME |
| 2824 | + pr-url: https://github.com/nodejs/node/pull/40117 |
| 2825 | + description: Runtime deprecation. |
2823 | 2826 | - version: REPLACEME |
2824 | 2827 | pr-url: https://github.com/nodejs/node/pull/40039 |
2825 | 2828 | description: Documentation-only deprecation |
2826 | 2829 | with `--pending-deprecation` support. |
2827 | 2830 | --> |
2828 | 2831 |
|
2829 | | -Type: Documentation-only (supports [`--pending-deprecation`][]) |
| 2832 | +Type: Runtime |
2830 | 2833 |
|
2831 | 2834 | The remapping of specifiers ending in `"/"` like `import 'pkg/x/'` is deprecated |
2832 | 2835 | for package `"exports"` and `"imports"` pattern resolutions. |
|
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 |
|---|
@@ -39,7 +39,6 @@ const { sep, relative, resolve } = require('path'); |
39 | 39 | const preserveSymlinks = getOptionValue('--preserve-symlinks'); |
40 | 40 | const preserveSymlinksMain = getOptionValue('--preserve-symlinks-main'); |
41 | 41 | const typeFlag = getOptionValue('--input-type'); |
42 | | -const pendingDeprecation = getOptionValue('--pending-deprecation'); |
43 | 42 | const { URL, pathToFileURL, fileURLToPath } = require('internal/url'); |
44 | 43 | const { |
45 | 44 | ERR_INPUT_TYPE_NOT_ALLOWED, |
@@ -107,7 +106,6 @@ function emitFolderMapDeprecation(match, pjsonUrl, isExports, base) { |
107 | 106 | } |
108 | 107 |
|
109 | 108 | function emitTrailingSlashPatternDeprecation(match, pjsonUrl, isExports, base) { |
110 | | - if (!pendingDeprecation) return; |
111 | 109 | const pjsonPath = fileURLToPath(pjsonUrl); |
112 | 110 | if (emittedPackageWarnings.has(pjsonPath + '|' + match)) |
113 | 111 | return; |
|
Collapse file
Copy file name to clipboardExpand all lines: test/es-module/test-esm-exports-deprecations.mjs -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -// Flags: --pending-deprecation |
2 | 1 | import { mustCall } from '../common/index.mjs'; |
3 | 2 | import assert from 'assert'; |
4 | 3 |
|
|
Collapse file
Copy file name to clipboardExpand all lines: test/es-module/test-esm-local-deprecations.mjs -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
1 | | -// Flags: --pending-deprecation |
2 | | - |
3 | 1 | import '../common/index.mjs'; |
4 | 2 | import assert from 'assert'; |
5 | 3 | import fixtures from '../common/fixtures.js'; |
|