1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
denoland-deno/cli/tests/testdata/npm/registry/@denotest
Bartek Iwańczuk 44f8b05f5b
feat: Expand 'imports' section of deno.json (#22087)
This commit adds automatic expansion of "imports" field in "deno.json"
file.

If "npm:" or "jsr:" imports are encountered we automatically try to add
a "directory" remapping.

Previously users had to specify entries for both `foo` and `foo/` to be
able to import like
`import { symbol1 } from "foo";` and `import { symbol2 } from
"foo/some_file.js"`:
```
{
  "imports": {
    "foo": "npm:@foo/bar",
    "foo/": "npm:/@foo/bar/",
}
```

With this change users can only add entry for `foo`:
```
{
  "imports": {
    "foo": "npm:@foo/bar",
}
```
The entry for `foo/` will be provided automatically.

Similarly if user provides "directory" remapping explicitly, we will not
overwrite it.
2024-01-24 23:44:06 +01:00
..
bin fix(cli): for main-module that exists in package.json, use the version defined in package.json directly (#20328) 2023-09-18 20:02:58 +00:00
binary-package/1.0.0 fix(npm): improved optional dependency support (#19135) 2023-05-17 17:38:50 -04:00
binary-package-linux/1.0.0 fix(npm): improved optional dependency support (#19135) 2023-05-17 17:38:50 -04:00
binary-package-mac/1.0.0 fix(npm): improved optional dependency support (#19135) 2023-05-17 17:38:50 -04:00
binary-package-windows/1.0.0 fix(npm): improved optional dependency support (#19135) 2023-05-17 17:38:50 -04:00
breaking-change-between-versions fix(check): should bust check cache when json module or npm resolution changes (#19941) 2023-07-26 17:23:07 -04:00
builtin-module-module/1.0.0 fix(ext/node): fix builtin module module (#15904) 2022-09-17 20:35:32 +09:00
CAPITALS/1.0.0 fix(npm): support non-all lowercase package names (#16669) 2022-11-16 18:44:31 +00:00
check-error/1.0.0 fix(npm): handle directory resolution when resolving declaration files (#16706) 2022-11-19 10:40:01 -05:00
child-process-fork/1.0.0 feat: warn when using --unstable, prefer granular flags (#21452) 2024-01-23 15:33:07 +01:00
cjs-default-export/1.0.0 feat(unstable/npm): initial type checking of npm specifiers (#16332) 2022-10-21 15:20:18 +00:00
cjs-invalid-name-exports/1.0.0 fix(npm): escape export identifier in double quoted string (#19694) 2023-07-03 18:41:09 +00:00
cjs-local-global-decls/1.0.0 perf: faster node globals access in cjs (#19997) 2023-07-31 19:45:32 +00:00
cjs-module-export-assignment/1.0.0 chore(npm): add explicit tests for module.exports assignment with type checking (#16435) 2022-10-27 17:54:46 -04:00
cjs-module-export-assignment-number/1.0.0 chore(npm): add explicit tests for module.exports assignment with type checking (#16435) 2022-10-27 17:54:46 -04:00
cjs-reexport-collision/1.0.0 fix(npm): handle cjs re-exports with the same name as an export (#15626) 2022-08-26 14:34:35 -04:00
cjs-require-esm-error/1.0.0 fix(node): improve require esm error messages (#19853) 2023-07-17 14:00:44 -04:00
cjs-this-in-exports/1.0.0 fix(npm): remove export binding to match node (#15837) 2022-09-10 11:38:11 -04:00
cjs-with-file-stem/1.0.0 fix(npm): probing for files that have a file stem (#16641) 2022-11-15 13:58:04 +01:00
conditional-exports/1.0.0 feat(unstable): ability to npm install then deno run main.ts (#20967) 2023-10-25 14:39:00 -04:00
conditional-exports-strict/1.0.0 feat(unstable): ability to npm install then deno run main.ts (#20967) 2023-10-25 14:39:00 -04:00
create-require/1.0.0 fix(ext/node): allow absolute path in createRequire (#16853) 2022-11-29 14:13:14 +09:00
d-ext/1.0.0 fix(node): resolve file.d specifiers in npm packages (#20918) 2023-10-17 00:26:38 +09:00
different-nested-dep/1.0.0 fix(byonm): correct resolution for scoped packages (#21083) 2023-11-06 08:35:26 -05:00
different-nested-dep-child fix(byonm): correct resolution for scoped packages (#21083) 2023-11-06 08:35:26 -05:00
dual-cjs-esm/1.0.0 feat(unstable): ability to npm install then deno run main.ts (#20967) 2023-10-25 14:39:00 -04:00
dual-cjs-esm-dep/1.0.0 fix(npm): create node_modules/.deno/node_modules folder (#19242) 2023-05-24 15:04:21 -04:00
dual-cjs-esm-dep-missing/1.0.0 fix(npm): create node_modules/.deno/node_modules folder (#19242) 2023-05-24 15:04:21 -04:00
dynamic-import/1.0.0 fix(npm): support dynamic import of Deno TS from npm package (#19858) 2023-07-17 17:17:58 -04:00
env-var-re-export/1.0.0 fix(npm): recursive translation of reexports, remove window global in node code (#15806) 2022-09-08 22:01:48 +02:00
esm-basic/1.0.0 feat: Expand 'imports' section of deno.json (#22087) 2024-01-24 23:44:06 +01:00
esm-import-cjs-default/1.0.0 feat(unstable/npm): initial type checking of npm specifiers (#16332) 2022-10-21 15:20:18 +00:00
file-dts-dmts-dcts/1.0.0 fix(npm): improve declaration resolution for filename with different extensions (#19966) 2023-07-28 11:24:22 -04:00
globals/1.0.0 feat(ext/node): properly segregate node globals (#19307) 2023-07-19 10:30:04 +02:00
imports-package-json/1.0.0 fix(node): support resolving a package.json import to a builtin node module (#21576) 2023-12-14 15:09:05 +00:00
MixedCase/1.0.0 fix(npm): support non-all lowercase package names (#16669) 2022-11-16 18:44:31 +00:00
no-types-cjs/1.0.0 fix(npm): don't resolve JS files when resolving types (#16854) 2022-11-28 17:48:56 -05:00
no-types-in-conditional-exports/1.0.0 fix(npm): don't fail if conditional exports don't contains types (#16651) 2022-11-16 01:40:03 +01:00
non-existent-dep/1.0.0 fix(npm): reload an npm package's dependency's information when version not found (#18622) 2023-04-06 21:41:19 -04:00
non-existent-dep-version/1.0.0 fix(npm): reload an npm package's dependency's information when version not found (#18622) 2023-04-06 21:41:19 -04:00
peer-dep-test-child feat(unstable/npm): support peer dependencies (#16561) 2022-11-08 14:17:24 -05:00
peer-dep-test-grandchild/1.0.0 feat(unstable/npm): support peer dependencies (#16561) 2022-11-08 14:17:24 -05:00
peer-dep-test-peer feat(unstable/npm): support peer dependencies (#16561) 2022-11-08 14:17:24 -05:00
permissions-outside-package/1.0.0 fix(npm): allow to read package.json if permissions are granted (#17209) 2023-01-10 14:35:44 +01:00
require-added-nm-folder/1.0.0 feat(npm): add flag for creating and resolving npm packages to a local node_modules folder (#15971) 2022-09-22 11:17:02 -04:00
reserved-word-exports/1.0.0 fix: allow reserved word 'mod' in exports (#21537) 2023-12-11 17:23:50 +01:00
special-chars-in-bin-name/1.0.0 fix(ext/node): json encode binary command name (#18596) 2023-04-06 01:46:21 +02:00
sub-folders/1.0.0 fix(npm): improve error message on directory import in npm package (#19538) 2023-07-14 16:47:18 +00:00
types/1.0.0 fix(npm): using types for packages with subpath (#16656) 2022-11-16 20:41:27 +01:00
types-ambient/1.0.0 feat(unstable/npm): initial type checking of npm specifiers (#16332) 2022-10-21 15:20:18 +00:00
types-entry-value-not-exists/1.0.0 fix(npm/check): prioritize exports over types entry (#16788) 2022-11-24 17:07:36 +00:00
types-exports-import-types/1.0.0 fix(npm): improve package.json exports support for types (#16880) 2022-11-30 23:07:32 +00:00
types-exports-subpaths/1.0.0 fix(lsp): improved npm specifier to import map entry mapping (#22016) 2024-01-21 17:19:10 -05:00
types-no-types-entry/1.0.0 fix(npm): dependency types were sometimes not being resolved when package had no types entry (#16958) 2022-12-05 20:09:31 -05:00
types_imported/1.0.0 fix(npm): using types for packages with subpath (#16656) 2022-11-16 20:41:27 +01:00
typescript-file/1.0.0 fix(npm): better error message when attempting to use typescript in npm packages (#16813) 2022-11-25 13:42:05 -05:00