Divy Srivastava
e8709006ba
fix(test): unflake wasm_unreachable test ( #15794 )
2022-09-09 15:30:09 +09:00
Aapo Alasuutari
42564b6c37
fix(core): opAsync leaks a promise on type error ( #15795 )
2022-09-09 15:29:55 +09:00
Arnau Orriols
dd428d1dc8
feat(ext/ffi): Implement FFI fast-call trampoline with Dynasmrt ( #15305 )
2022-09-09 15:29:44 +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
Alexander Sage
83dcf6ede3
fix(cli): Fix panic when providing invalid urls to --reload ( #15784 )
2022-09-09 15:28:17 +09:00
Giovanny Gutiérrez
f00dd96187
fix(core): Register external references for imports to the SnapshotCreator ( #15621 )
...
Several functions used for handling of dynamic imports and "import.meta"
object were not registered as external references and caused V8 to crash
during snapshotting. These functions are now registered as external refs
and aborts are no longer happening.
2022-09-09 15:28:04 +09:00
Nayeem Rahman
f0e62ced6d
fix(watch): ignore unload errors on drop ( #15782 )
2022-09-09 15:27:52 +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
David Sherret
916c2e96ac
chore: fix flaky stdout_write_all test ( #15772 )
2022-09-09 15:27:17 +09:00
Divy Srivastava
5f51c8fcbf
perf(runtime): flatten arguments for write_file ops ( #15776 )
2022-09-09 15:27:08 +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
Aapo Alasuutari
d908032dbb
feat(ext/ffi): Support bool FFI type ( #15754 )
2022-09-09 15:26:38 +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
sigmaSd
52cccbf83d
fix(ops): use qualified borrow in op macro ( #15769 )
...
Fix https://github.com/denoland/deno/issues/15764
Use RefCell::borrow instead of state.borrow to avoid clash with std::borrow::Borrow
2022-09-09 15:24:06 +09:00
Divy Srivastava
f98cc1cad4
fix(bench): make sure bytes/response is equal ( #15763 )
2022-09-09 15:23:56 +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
Bartek Iwańczuk
ed0471a681
chore: update devcontainer configuration ( #15751 )
2022-09-09 15:20:11 +09:00
Christian Dürr
07d1cacd5f
refactor: move JsError formatting to deno_runtime ( #15345 )
...
This takes the existing `fmt_error` module from cli and puts it as a
public module into `deno_runtime`.
2022-09-09 15:19:53 +09:00
Nayeem Rahman
8d0b56bb95
refactor(test): grab runTests() and runBenchmarks() from __bootstrap ( #15420 )
2022-09-09 15:19:33 +09:00
David Sherret
4255212d71
fix(npm): respect latest
dist tag for getting current version ( #15746 )
2022-09-09 15:19:20 +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
David Sherret
b23e00771f
refactor: extract out check code from emit ( #15729 )
...
Closes #15535
2022-09-09 15:18:07 +09:00
Jakub Łabor
f92224c6db
feat(serde_v8): Support StringObject as unit enum variant ( #15715 )
2022-09-09 15:17:46 +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
denobot
1e78804d5c
1.25.1
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2022-09-02 02:07:43 +02:00
Andreu Botella
307d84cfa5
refactor(core): Move optional callbacks from JsRuntimeState
to ContextState
( #15599 )
...
The `JsRuntimeState` struct stores a number of JS callbacks that are
used either in the event loop or when interacting with V8. Some of
these callback fields are vectors of callbacks, and therefore could
plausibly store at least one callback per realm. However, some of
those fields are `Option<v8::Global<v8::Function>>`, which would make
the callbacks set by a realm override the one that might have been set
by a different realm.
As it turns out, all of the current such optional callbacks
(`js_promise_reject_cb`, `js_format_exception_cb` and
`js_wasm_streaming_cb`) are only used from inside a realm, and
therefore this change makes it so such callbacks can only be set from
inside a realm, and will only affect that realm.
2022-09-01 23:01:05 +02: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
Aapo Alasuutari
778eb1da24
fix(ext/ffi): Fix pointer types ( #15730 )
2022-09-01 23:01:05 +05:30
David Sherret
3a601e56f4
fix(npm): ignore npm cache directory creation errors ( #15728 )
2022-09-01 12:37:14 -04:00
David Sherret
67713f4b93
fix(npm): ignore the unstable error in the lsp ( #15727 )
2022-09-01 12:06:23 -04: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
Jakub Łabor
37b32fa348
feat(serde_v8): Serialize integers as BigInt ( #15692 )
2022-09-01 16:21:28 +05:30
Divy Srivastava
0abf5a412b
perf(ext/web): flatten op arguments for text_encoding ( #15723 )
2022-09-01 16:21:13 +05:30
Divy Srivastava
73b4597dec
fix(serde_v8): update bytes::Bytes layout assumptions ( #15718 )
2022-09-01 16:01:48 +05:30
Divy Srivastava
e267ec6ed5
chore(serde_v8): take mutable reference in ToV8::to_v8
( #15707 )
2022-09-01 15:54:40 +05:30
Divy Srivastava
805ce6fdf7
feat(ops): support v8::FastApiCallbackOptions
( #15721 )
2022-09-01 15:53:06 +05:30
Geert-Jan Zwiers
cbd8307710
fix(check): --remote and --no-remote should be mutually exclusive ( #14964 )
2022-09-01 11:52:11 +02:00
Bartek Iwańczuk
b8933b1b56
chore: upgrade httparse to 1.8 ( #15699 )
2022-08-31 11:24:38 +02: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
79fe8ffff8
fix(fmt): add the file path to the panic messages when formatting is unstable ( #15693 )
2022-08-30 14:46:03 -04: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
Leo Kettmeir
f3a0e48d4e
fix(docs): add missing categories ( #15684 )
2022-08-30 13:16:56 +02:00