David Sherret
55b85d4992
fix(npm): support cjs resolution of package subpath with package.json ( #15855 )
2022-09-15 12:02:16 -04:00
David Sherret
921c74bb28
fix(npm): align Deno importing Node cjs with Node esm importing cjs ( #15879 )
2022-09-15 12:02:07 -04:00
David Sherret
209f78c3ac
fix(npm): align Node esm code importing cjs with Node ( #15838 )
2022-09-15 12:01:11 -04:00
David Sherret
e3090f11f3
fix(npm): remove export binding to match node ( #15837 )
2022-09-15 12:00:45 -04:00
Bartek Iwańczuk
f835767409
fix(npm): recursive translation of reexports, remove window global in node code ( #15806 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-09-09 15:33:30 +09:00
Bartek Iwańczuk
1cf7f15c9d
refactor(npm): reorganize remapping built-in Node modules to remote URLs ( #15755 )
...
Changes how built-in Node modules are mapped to polyfills
from "deno_std". Instead of intertwining this logic into Node
resolution logic, we map them to "NodeResolution::BuiltIn"
which are remapped to "deno_std" URLs in ProcState.
2022-09-09 15:27:41 +09:00
Bartek Iwańczuk
95992f2336
fix(npm): conditional exports in npm: specifiers ( #15778 )
2022-09-09 15:27:27 +09:00
Bartek Iwańczuk
6c80cacb58
refactor: cleanup Node compatibility code ( #15766 )
...
- move errors related to Node compat from cli/node/errors.rs to "ext/node" crate
- remove dependency on "node_resolver" crate
- make some of structures private to the "cli/node" module
2022-09-09 15:26:52 +09:00
Bartek Iwańczuk
beff2f81eb
BREAKING(unstable): remove --compat mode ( #15678 )
...
This commit removes "compat" mode. We shipped support for "npm:" specifier
support in v1.25 and that is preferred way to interact with Node code that we
will iterate and improve upon.
2022-09-09 15:23:41 +09:00
Bartek Iwańczuk
adec4f575e
fix(npm): translate CJS to ESM with name clashes for files and dirs ( #15697 )
2022-08-31 00:31:59 +02:00
David Sherret
5f251b283b
fix(npm): prefer importing esm from esm ( #15676 )
2022-08-30 14:09:22 -04:00
Bartek Iwańczuk
b62ef4d37b
refactor(cli): Remove cli/node dependency on cli/compat ( #15654 )
2022-08-29 20:19:54 +02:00
David Sherret
ec98d86d21
fix(npm): handle cjs re-exports with the same name as an export ( #15626 )
2022-08-26 14:34:35 -04:00
David Sherret
18fcef8b29
fix(npm): cjs export analysis should take into consideration exports with dashes ( #15582 )
2022-08-24 13:37:34 -04:00
David Sherret
684aabbc25
feat: support subpaths in npm package references ( #15578 )
2022-08-24 11:25:32 -04:00
Bartek Iwańczuk
5268fa0e0f
fix(unstable): various resolution bugs for npm: specifiers ( #15546 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2022-08-24 14:54:20 +02:00
David Sherret
452df99222
feat(npm): support packages with multiple command names ( #15565 )
2022-08-23 22:01:21 -04:00
David Sherret
e7367044d9
feat: binary npm commands ( #15542 )
2022-08-23 10:39:19 -04:00
David Sherret
87f80ff6be
feat(unstable): initial support for npm specifiers ( #15484 )
...
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-08-20 11:31:33 -04:00