Divy Srivastava
f911b58631
chore(ext/flash): disable flaky flash test ( #15908 )
2022-09-15 12:16:45 -04:00
Colin Ihrig
e90f42cb2c
fix(ops): add node.js env variable allowlist ( #15893 )
...
This commit allows the Node compatibility layer to skip
environment variable permission checks when --unstable
is passed and the variable name is one that Node uses.
Fixes: https://github.com/denoland/deno/issues/15890
2022-09-15 12:16:35 -04:00
Bartek Iwańczuk
3c6652d56b
fix(npm): binary entrypoint for .js or no extension ( #15900 )
2022-09-15 12:16:20 -04:00
Bartek Iwańczuk
89ef56a170
fix(npm): use shim from deno_node crate for 'module' built-in module ( #15881 )
2022-09-15 12:02:25 -04:00
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
David Sherret
f258a05444
fix: upgrade deno_ast to 0.19 ( #15808 )
2022-09-09 15:32:29 +09:00
Colin Ihrig
c763514c14
fix(core): make errors more resistant to tampering ( #15789 )
...
This commit makes error objects more resistant to
prototype tampering.
This bug was found when updating the deno_std Node compatibility
layer to Node 18. The Node test 'parallel/test-assert-fail.js'
was breaking std's assertion library.
Refs: https://github.com/denoland/deno_std/pull/2585
2022-09-09 15:30:45 +09:00
Divy Srivastava
5498a7e50b
fix(ext/flash): use utf8 length as Content-Length ( #15793 )
2022-09-09 15:30:23 +09:00
Divy Srivastava
e8709006ba
fix(test): unflake wasm_unreachable test ( #15794 )
2022-09-09 15:30:09 +09:00
Nayeem Rahman
7b072a2b7d
test: fix bad resource fixture ( #15792 )
2022-09-09 15:28:37 +09:00
Divy Srivastava
8a4e389bca
perf(runtime): short-circuit queue_async_op
for Poll::Ready ( #15773 )
2022-09-09 15:28:27 +09:00
Nayeem Rahman
f0e62ced6d
fix(watch): ignore unload errors on drop ( #15782 )
2022-09-09 15:27:52 +09:00
David Sherret
9d127a71b0
fix(cli): allow using file resource synchronously while being used async ( #15747 )
2022-09-09 15:24:16 +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
a83a263477
fix(npm): add more context to errors when file doesn't exist ( #15749 )
2022-09-09 15:22:33 +09:00
Nayeem Rahman
8d0b56bb95
refactor(test): grab runTests() and runBenchmarks() from __bootstrap ( #15420 )
2022-09-09 15:19:33 +09:00
Geert-Jan Zwiers
8de6411b79
fix(init): suppress info logs when using quiet mode ( #15741 )
2022-09-09 15:19:12 +09:00
Garcia
b162a57ab5
fix(ext/timers): create primordial eval
( #15110 )
2022-09-09 15:18:41 +09:00
David Sherret
fa30d05129
fix(npm): correct exact matching of pre-release versions ( #15745 )
2022-09-09 15:18:25 +09:00
Jason
eafec30b7a
fix(cli/repl): await Promise.any([])... ( #15623 )
2022-09-09 15:16:35 +09:00
Nayeem Rahman
bacfd5284f
fix(repl): don't terminate on unhandled error events ( #15548 )
2022-09-09 15:16:21 +09:00
Geert-Jan Zwiers
58e76098e6
fix(serde_v8): no panic on reading large text file ( #15494 )
...
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2022-09-01 22:20:11 +02:00
David Sherret
e1d7d7b0e3
fix(npm): better node version and version requirement compatibility ( #15714 )
2022-09-01 11:50:12 -04:00
Divy Srivastava
20c835407c
fix(ext/flash): retry write failures ( #15591 )
2022-09-01 18:58:34 +05:30
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
54be07d05e
fix(npm): skip extracting pax_global_header from tarballs ( #15677 )
2022-08-30 17:15:41 +02:00
Danny Povolotski
5e0fa5dd88
fix(ext/websocket): fix closing of WebSocketStream with unread messages ( #15632 )
2022-08-30 03:43:17 +02:00
David Sherret
c3e48cba18
fix(compile): panic when running with a populated dep analysis cache ( #15672 )
...
Closes #15612
2022-08-29 14:24:10 -04:00
Bartek Iwańczuk
2851a98072
fix(npm): conditional exports with wildcards ( #15652 )
2022-08-29 19:15:20 +02:00
Bartek Iwańczuk
ad98c9fdd1
chore: update test_util/std/ submodule ( #15657 )
2022-08-29 11:35:27 +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
Yoshiya Hinosawa
9b324b1cf4
fix(ext/node): fix global in node env ( #15622 )
2022-08-26 23:39:05 +09:00
David Sherret
f583a7ebf4
chore(npm): add test for esm npm binary package ( #15609 )
2022-08-26 09:17:48 -04:00
Bartek Iwańczuk
da10c9c8d1
fix(ext/flash): panic on AddrInUse ( #15607 )
2022-08-26 08:42:11 +05:30
David Sherret
376665d115
fix: avoid global declaration collisions in cjs ( #15608 )
...
* Use a default stack size * 2 in debug for Windows because swc using so much stack size. We should look into this more later though.
2022-08-25 20:24:18 -04:00
Bartek Iwańczuk
fb1c7b7dea
fix(unstable): finish HTTP response for 205 and 304 responses ( #15584 )
...
This commit fixes "Deno.serve()" API by making sure that
205 and 304 responses end with "\r\n\r\n".
2022-08-24 21:26:57 +02:00
David Sherret
348291f5ec
fix(npm): always require --unstable flag even for esm ( #15583 )
2022-08-24 13:44:38 -04:00
Luca Casonato
33c4d45328
fix: resolve jsxImportSource
relative to module ( #15561 )
...
Previously `jsxImportSource` was resolved relative to the config file
during graph building, and relative to the emitted module during
runtime.
This is now fixed so that the JSX import source is resolved relative to
the module both during graph building and at runtime.
2022-08-24 19:36:05 +02:00
David Sherret
684aabbc25
feat: support subpaths in npm package references ( #15578 )
2022-08-24 11:25:32 -04:00
Bartek Iwańczuk
a4cc09447e
fix(unstable): Deno.serve() can parse hostnames ( #15579 )
2022-08-24 16:38:51 +02: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
Luca Casonato
f3bde1d53b
feat(ext/flash): split upgradeHttp into two APIs ( #15557 )
...
This commit splits `Deno.upgradeHttp` into two different APIs, because
the same API is currently overloaded with two different functions. Flash
requests upgrade immediately, with no need to return a `Response`
object. Instead you have to manually write the response to the socket.
Hyper requests only upgrade once a `Response` object has been sent.
These two behaviours are now split into `Deno.upgradeHttp` and
`Deno.upgradeHttpRaw`. The latter is flash only. The former only
supports hyper requests at the moment, but can be updated to support
flash in the future.
Additionally this removes `void | Promise<void>` as valid return types
for the handler function. If one wants to use `Deno.upgradeHttpRaw`,
they will have to type cast the handler signature - the signature is
meant for the 99.99%, and should not be complicated for the 0.01% that
use `Deno.upgradeHttpRaw()`.
2022-08-24 17:40:57 +05:30
David Sherret
452df99222
feat(npm): support packages with multiple command names ( #15565 )
2022-08-23 22:01:21 -04:00
Luca Casonato
4ef08a58df
feat: update Deno.serve
function signature ( #15563 )
...
This commit changes the `Deno.serve` function signature to be more
versatile and easier to use. It is now a drop in replacement for
std/http's `serve`.
The input validation has also been reworked.
2022-08-24 00:08:56 +02:00
David Sherret
e7367044d9
feat: binary npm commands ( #15542 )
2022-08-23 10:39:19 -04:00