Luca Casonato
c03fe284cf
docs: add jsdoc for WebAssembly namespace ( #7703 )
2020-09-26 20:33:20 +02:00
Bartek Iwańczuk
e1beebc71a
refactor: factor out check_unstable op helper ( #7695 )
2020-09-26 20:26:51 +02:00
Bartek Iwańczuk
f64a44810e
refactor: combine MainWorker::new and MainWorker::create ( #7693 )
...
* combine MainWorker::new and MainWorker::create
* remove compiler_starts fields
* make op_state types explicit for readability
2020-09-26 18:16:33 +02:00
Bartek Iwańczuk
ff785bc35a
refactor: use JsRuntime to implement TSC ( #7691 )
...
This commits removes "CompilerWorker" in favor of
using "JsRuntime".
"cli/ops/compiler.rs" has been removed in favor of inline
registration of ops in "cli/tsc.rs"
2020-09-26 16:33:25 +02:00
Bartek Iwańczuk
18b7109f76
refactor: prune unneeded JS code ( #7689 )
2020-09-26 15:59:24 +02:00
Nayeem Rahman
0ffaaba164
fix(cli/dts): Use var instead of const and let for globals ( #7680 )
2020-09-26 07:23:35 +10:00
Bartek Iwańczuk
b6c189e88e
refactor: clean timers tests ( #7679 )
2020-09-25 18:34:20 +02:00
Bartek Iwańczuk
dacb340f8f
v1.4.2
2020-09-25 16:53:48 +02:00
Luca Casonato
3204092732
refactor: class instead of var+interface in d.ts ( #7514 )
2020-09-25 16:21:34 +02:00
Bartek Iwańczuk
83f53c6455
refactor: remove tsc/40_error_stack.js ( #7673 )
...
This commit removes cli/tsc/40_error_stack.js as it is not
needed in TSC host. All errors originating in TSC are terminal
and don't require source mapping hence we can rely on default
stack traces provided by deno_core.
Additionally tsc/06_util.js was removed and its code moved
to tsc/99_main_compiler.js
2020-09-25 14:04:51 +02:00
Kitson Kelly
fd1c913985
fix(cli): customInspect works on functions ( #7670 )
...
Fixes #7650
2020-09-25 21:36:26 +10:00
Casper Beyer
01147fab80
refactor(cli/inspector): make server optional ( #7656 )
...
This makes inspector registration with the server with optional and
explicit to allow for inspectors to exist without spinning up the
server.
As a side effect of the server being explicitly passed around it also
makes it possible to bind multiple servers.
2020-09-25 10:24:51 +02:00
Kitson Kelly
c489589e2b
refactor: new module graph used for no check ( #7621 )
2020-09-25 08:31:17 +10:00
Will
7726cfb932
Replaced legacy chrome-devtools:// scheme. ( #7659 )
...
The legacy chrome-devtools scheme was removed from the Chromium codebase. The new scheme is simply "devtools://"
6700d12448
2020-09-24 18:06:46 -04:00
Ryan Dahl
82db91372f
refactor: Simplify op_fetch_asset signature ( #7655 )
2020-09-24 15:29:18 +02:00
Nayeem Rahman
6a2ce3d91f
fix(lib.deno.shared_globals): Change the Console class to an interface ( #7646 )
...
Fixes #7494
2020-09-24 20:40:33 +10:00
Casper Beyer
6254bd41b7
fix(cli/coverage): print lines with no coverage to stdout ( #7640 )
2020-09-23 14:12:24 -04:00
Casper Beyer
e1b61d6794
fix(cli/console): quote non-alphanumeric symbols ( #7641 )
...
This quotes and escapes symbol descriptions that contains characters
outside of the basic alpha-numeric identifier range.
2020-09-23 14:10:35 -04:00
Casper Beyer
d68fb81342
fix(cli/console): enclose symbol keys in brackets ( #7642 )
...
This encloses symbol keys when used in objects with brackets (e.g
[Symbol("Symbol.iterator")]).
2020-09-23 13:58:28 +02:00
bartOssh
29dd62b08c
fix(watch): watch importmap file for changes ( #7580 )
2020-09-23 13:56:16 +02:00
Trivikram Kamat
8a6a390457
docs: ts upgrade instructions to exclude some .d.ts files ( #7638 )
2020-09-23 15:19:30 +10:00
Trivikram Kamat
49807ac4ac
feat: bump TypeScript to 4.0.3 ( #7637 )
2020-09-23 14:36:03 +10:00
Kitson Kelly
751bb45a0a
fix: ignore fileExists in tsc host ( #7635 )
...
Fixes #7630
2020-09-23 11:39:20 +10:00
Bartek Iwańczuk
68fd7a927b
refactor(core): support error stack, remove js_check ( #7629 )
...
This commit adds support for stack traces in "deno_core".
Implementation of "Display" trait for "JsError" has been updated
and in consequence "deno_core::js_check" became obsolete and
removed.
2020-09-22 23:30:03 +02:00
Bartek Iwańczuk
dd1cd4d952
fix: clearing timers race condition ( #7617 )
2020-09-22 19:33:29 +02:00
Nayeem Rahman
a43984c9cf
refactor(cli/fmt_errors): Color stack traces in Rust ( #7628 )
2020-09-22 19:01:30 +02:00
Casper Beyer
a33315aaa7
fix(cli/console): quote object symbol keys that are invalid identifiers ( #7553 )
2020-09-22 11:10:02 -04:00
Yusuke Tanaka
c30c782c2c
fix(logger): change log level to which prefix added ( #7582 )
2020-09-22 11:08:10 -04:00
Casper Beyer
cca8856fbf
refactor(cli/coverage): remove dependency on global state ( #7616 )
...
This removes the dependency on global state and instead relies on the
runtime's internal state to get the script sources it saw when it
collected code coverage for them.
2020-09-22 13:59:02 +10:00
Casper Beyer
9caeff3208
fix(cli/repl): interpret object literals as expressions ( #7591 )
2020-09-21 16:09:53 -04:00
Luca Casonato
5c2e499c3a
fix: Response.arrayBuffer() doesn't return promise ( #7618 )
2020-09-21 22:07:41 +02:00
Bartek Iwańczuk
92edc36442
refactor: use futures and serde_json from deno_core ( #7614 )
2020-09-21 18:36:37 +02:00
William Perron
42772845f6
fix(info): add --importmap flag ( #7424 )
2020-09-21 15:07:19 +02:00
Casper Beyer
e06875e9f7
refactor(cli/coverage): await for inspector message response ( #7584 )
2020-09-21 15:02:58 +02:00
tokiedokie
c4ed3fb7e7
chore: add copyright ( #7593 )
2020-09-21 08:26:41 -04:00
Luca Casonato
dc6571909b
fix: make --watch and --inspect conflicting args ( #7610 )
2020-09-21 14:01:54 +02:00
Bartek Iwańczuk
d1b88510cf
refactor: remove GlobalState::compile_lock ( #7598 )
2020-09-21 11:41:51 +02:00
Nayeem Rahman
0a9d7e4e39
fix(cli/installer): Don't reload by default ( #7596 )
2020-09-20 14:05:11 +02:00
Yusuke Tanaka
db5004f200
fix(fmt,lint): do not print number of checked files when --quiet
is enabled ( #7579 )
2020-09-20 13:49:22 +02:00
Nayeem Rahman
51019dc267
fix(cli/flags): Make --unstable a global flag ( #7585 )
2020-09-20 13:45:00 +02:00
Bartek Iwańczuk
b657d743a2
refactor: remove CliState, use OpState, add CliModuleLoader ( #7588 )
...
- remove "CliState.workers" and "CliState.next_worker_id", instead
store them on "OpState" using type aliases.
- remove "CliState.global_timer" and "CliState.start_time", instead
store them on "OpState" using type aliases.
- remove "CliState.is_internal", instead pass it to Worker::new
- move "CliState::permissions" to "OpState"
- move "CliState::main_module" to "OpState"
- move "CliState::global_state" to "OpState"
- move "CliState::check_unstable()" to "GlobalState"
- change "cli_state()" to "global_state()"
- change "deno_core::ModuleLoader" trait to pass "OpState" to callbacks
- rename "CliState" to "CliModuleLoader"
2020-09-20 01:17:35 +02:00
Nayeem Rahman
aaa5e6613a
fix(cli/rt): make some web API constructors illegal at runtime ( #7468 )
2020-09-19 23:30:59 +02:00
Casper Beyer
d3cce36701
refactor(cli/coverage): use json and error check protocol responses ( #7577 )
2020-09-19 14:01:56 +02:00
Bert Belder
d6f3de6feb
v1.4.1
2020-09-18 21:28:11 +02:00
Bartek Iwańczuk
f44522eac9
refactor: move fields from CliState to OpState ( #7558 )
...
- move rng to OpState
- move GlobalTimer to OpState
- move Metrics to OpState
2020-09-18 20:39:47 +02:00
Nayeem Rahman
4fcfff0393
fix(bundle, eval, repl): Add missing flags ( #7414 )
...
Restructures flag helpers and applies them consistently.
2020-09-18 13:09:11 -04:00
Ryan Dahl
526d668102
Use reqwest from deno_fetch export ( #7562 )
2020-09-18 13:07:09 -04:00
tokiedokie
4c2920ddd7
fix(cli/fmt): canonicalize files in current dir ( #7508 )
2020-09-18 13:03:37 -04:00
Casper Beyer
de95fbebc4
fix(cli/repl): format evaluation results with the object specifier ( #7561 )
2020-09-18 12:47:08 -04:00
Ryan Dahl
8edf099485
publish deno_fetch during CI ( #7557 )
2020-09-18 12:31:30 -04:00