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
Casper Beyer
93e8e59a7e
fix(cli/console): surround non alpha-numeric object keys with quotes ( #7550 )
2020-09-18 11:25:09 -04:00
Bartek Iwańczuk
ec174170ba
refactor: move FileReader to op_crates/web ( #7554 )
2020-09-18 16:01:50 +02:00
Casper Beyer
38196f7850
fix(cli/console): always quote and escape inspected strings ( #7546 )
2020-09-18 09:28:30 -04:00
Bartek Iwańczuk
7845740637
refactor: deno_fetch op crate ( #7524 )
2020-09-18 09:20:55 -04:00
Pig Fang
e4188f7dfb
fix(cli/fmt): make fmt output more readable ( #7534 )
2020-09-17 21:48:08 -04:00
Bartek Iwańczuk
d245ececb6
fix: disable rustyline logs ( #7535 )
2020-09-17 20:38:57 +02:00
Bartek Iwańczuk
6453cb7567
refactor: Move URL to op_crates/web ( #7544 )
2020-09-17 19:13:20 +02:00
Casper Beyer
a6f4559174
fix(cli/console): escape non printable characters in object entries ( #7533 )
2020-09-17 13:07:57 -04:00
Bartek Iwańczuk
c307e3e4be
refactor: use Symbol.for instead of Symbol in cli/rt/ ( #7537 )
2020-09-17 18:42:36 +02:00
Bartek Iwańczuk
bda9379385
refactor: move op_resources and op_close to deno_core ( #7539 )
...
Moves op_close and op_resources to deno_core::ops and exports them.
Adds serde dependency to deno_core and reexports it.
Moves JS implementation of those ops to Deno.core and reexports them in Deno.
2020-09-17 18:09:50 +02:00
Bartek Iwańczuk
3421f4dbbd
refactor: disable URL.createObjectUrl ( #7543 )
2020-09-17 17:35:05 +02:00
Ryan Dahl
3e98d9091f
fix: Use Buffer.writeSync in MultipartBuilder ( #7542 )
2020-09-17 17:03:05 +02:00
Ryan Dahl
46bf660e36
refactor: make fetch use op_fetch_read instead of op_read ( #7529 )
2020-09-17 16:11:55 +02:00
Bartek Iwańczuk
6c4da0e429
refactor: remove dispatch_json.js from cli/rt and cli/tsc ( #7521 )
...
Instead use Deno.core.jsonOpSync and Deno.core.jsonOpAsync
2020-09-16 22:22:43 +02:00
Ryan Dahl
104aebdfb5
Re-export deno_core::url ( #7525 )
...
Also re-exports deno_core::futures and deno_core::serde_json but these are not yet used in the CLI.
2020-09-16 14:28:07 -04:00
Ryan Dahl
c3ef358c01
Remove unnecessary extern statements
2020-09-16 13:29:42 -04:00
Ryan Dahl
0cb64cef76
Remove unnecessary serde_derive dependency
2020-09-16 13:29:42 -04:00
Bert Belder
21f2e45b0d
Revert "feat(install): bundle before installation" ( #7522 )
...
This reverts the changes introduced by PR #5276 , which made
`deno install «script»` automatically bundle the script's dependencies.
It broke the `deno install` command for a large number of scripts.
This reverts commit 34e98fa59c
.
Closes: #7492
2020-09-16 18:41:58 +02:00
Ryan Dahl
f58b10ec64
simplify global properties ( #7502 )
2020-09-16 12:41:01 -04:00
bartOssh
81ca7096c5
refactor(unstable): deno info --json output ( #7417 )
...
Provide flat JSON structured output.
Fix BrokenPipe error when piping out to "head".
2020-09-16 15:38:38 +02:00
Bartek Iwańczuk
d4a24c870e
Revert "fix(cli/http_utils): accept a single key-multiple values headers ( #7375 )" ( #7515 )
...
This reverts commit f5c84920c2
.
2020-09-16 13:34:16 +02:00
Ryan Dahl
0715803b7f
Remove http_client from CliState, store in OpState directly ( #7497 )
2020-09-15 16:15:01 -04:00
Ryan Dahl
b2fa903d64
cli/msg.rs -> cli/media_type.rs
2020-09-15 11:55:51 -04:00
Ryan Dahl
68099acbc6
Don't expose ErrWithV8Handle from deno_core
2020-09-15 11:55:51 -04:00
tokiedokie
f5c84920c2
fix(cli/http_utils): accept a single key-multiple values headers ( #7375 )
2020-09-15 07:18:48 +02:00
tokiedokie
04d3472257
refactor(cli/tests): change std_path to root_path in std_tests() ( #7438 )
2020-09-15 06:26:57 +02:00
Ryan Dahl
055dfe2ff4
Make JsRuntimeState private ( #7484 )
2020-09-14 23:49:12 -04:00
Bartek Iwańczuk
7023263b30
refactor(core): remove JsRuntime::set_js_error_create_fn ( #7478 )
...
Instead use RuntimeOptions.js_error_create_fn
2020-09-14 21:23:48 -04:00
Ryan Dahl
70f070706d
Rename deno::state::State to deno::state::CliState ( #7480 )
2020-09-14 21:22:32 -04:00
Ryan Dahl
192b8f4b99
Remove unnecessary wildcard from ts_decorators test ( #7485 )
2020-09-14 21:22:03 -04:00
Bert Belder
f5b40c918c
refactor: use the 'anyhow' crate instead of 'ErrBox' ( #7476 )
2020-09-15 01:50:52 +02:00
Bert Belder
3da20d19a1
chore: fix clippy warnings ( #7476 )
2020-09-15 00:11:20 +02:00
Kitson Kelly
5248a711ff
chore: add some traits to ast.rs ( #7479 )
2020-09-14 23:59:49 +02:00
Bartek Iwańczuk
a65bcadcf2
test: reenable TS decorator test ( #7471 )
2020-09-14 18:59:54 +02:00
Kitson Kelly
a6f34d4722
refactor: use ParsedModule and improve MediaTypes enum ( #7456 )
2020-09-14 14:27:44 +02:00
tokiedokie
e688a701e2
test(cli/tests/https_import): use ts file in localhost instead of remote ( #7431 )
2020-09-14 13:18:00 +02:00
Nayeem Rahman
f874b83aa0
test(cli/tests/unit): Enable color for js_unit_tests ( #7443 )
2020-09-14 12:46:50 +02:00
Kitson Kelly
4baf61993c
chore: add no_check_hello benchmark ( #7458 )
2020-09-14 12:25:06 +02:00
Bert Belder
530f48d2fd
Upgrade Rust crates, pin 'webpki-roots' to version 0.19.0 ( #7454 )
2020-09-14 00:20:56 +02:00
Bartek Iwańczuk
b3fa81f867
v1.4.0
2020-09-13 16:35:31 +02:00
Casper Beyer
755cfa98eb
feat(unstable): deno test --coverage ( #6901 )
...
This commit adds basic support for collecting coverage
data using "deno test".
Currently the report is only a text added to the end
of output from "deno test".
2020-09-13 15:01:30 +02:00
Bartek Iwańczuk
b216d48e5f
upgrade: deno_doc, deno_lint, dprint, swc ( #7434 )
...
upgrades:
- swc_ecmascript 0.7.7
- dprint-plugin-typescript 0.31.3
- deno_lint 0.2.0
- deno_doc 0.1.9
Split std_lint test into std_lint and unit_test_lint.
Added lint ignores to CommonJS files in std/node.
2020-09-13 14:15:38 +02:00
Bert Belder
bf70442b08
upgrade: rusty_v8 0.10.0 / V8 8.7.75 ( #7429 )
2020-09-13 13:43:50 +02:00
Luca Casonato
daa780e2cf
fix(WebSocket): no panic on failed connect + handle promise rejection via error event ( #7437 )
2020-09-13 11:52:20 +02:00
Luca Casonato
82d0f7ec84
chore: remove --no-check from deno info ( #7439 )
2020-09-12 23:34:54 +02:00
Luca Casonato
d048f58f05
chore: add systemMemoryInfo unstable diagnostic ( #7435 )
2020-09-12 16:12:14 +02:00
Kitson Kelly
10fbfcbc79
refactor: improve tsc diagnostics ( #7420 )
2020-09-12 11:53:57 +02:00
Nayeem Rahman
5276cc8592
refactor: Improve placeholder module names ( #7430 )
2020-09-12 11:33:51 +02:00
Bartek Iwańczuk
60dbc6b294
Revert "feat(unstable): Support data: urls ( #5157 )" ( #7432 )
...
This reverts commit e3319f34a6
.
2020-09-12 11:08:00 +02:00
Valentin Anger
e3319f34a6
feat(unstable): Support data: urls ( #5157 )
2020-09-11 22:40:48 +02:00
Bartek Iwańczuk
a3282aa9ed
feat(unstable): deno run --watch ( #7382 )
...
Co-authored-by: Sebastian Seedorf <mail@sebse.de>
2020-09-11 18:19:49 +02:00
Luca Casonato
fbb18d40d3
feat(unstable): enable importsNotUsedAsValues by default ( #7413 )
2020-09-11 16:22:10 +02:00
Bartek Iwańczuk
0d1f626edd
refactor(core): JsRuntime initialization ( #7415 )
...
Removes:
- "deno_core::StartupData"
- "deno_core::Script"
- "deno_core::OwnedScript"
Changes to "JsRuntime":
- remove "new_with_loader()"
- remove "with_heap_limits()"
- rename "IsolateOptions" to "RuntimeOptions" and make public
- "JsRuntime::new()" takes "RuntimeOptions" as a single param
2020-09-11 15:18:49 +02:00
Ryan Dahl
7c2e7c6608
Use gotham-like state for ops ( #7385 )
...
Provides a concrete state type that can be dynamically added. This is necessary for op crates.
* renames BasicState to OpState
* async ops take `Rc<RefCell<OpState>>`
* sync ops take `&mut OpState`
* removes `OpRegistry`, `OpRouter` traits
* `get_error_class_fn` moved to OpState
* ResourceTable moved to OpState
2020-09-10 09:57:45 -04:00
Nayeem Rahman
6f70e6e72b
feat(console): support CSS styling with "%c" ( #7357 )
2020-09-10 12:49:47 +02:00
Akshat Agarwal
c1b4ff61c9
feat(unstable): Add Deno.systemMemoryInfo() ( #7350 )
...
Co-authored-by: marcopacini <pacinim88@gmail.com>
Co-authored-by: Casper Beyer <caspervonb@pm.me>
2020-09-10 10:38:17 +02:00
Bartek Iwańczuk
2423a867c0
fix: panic on process.kill() after run ( #7405 )
...
This commit fixes panic caused by "unimplemented!()"
calls for some variants of "nix::errno::Errno".
Catch-all variant now returns "Error" class name
instead of panicking.
Co-authored-by: Bert Belder <bertbelder@gmail.com>
2020-09-09 22:40:16 +02:00
Bert Belder
839c59b14f
fix(cli): suppress 'WSANOTINITIALIZED' error on Deno exit ( #7408 )
...
Unblocks: #6901
2020-09-09 21:37:59 +02:00
Yusuke Tanaka
857f9b32e0
feat(fmt, lint): show number of checked files ( #7312 )
2020-09-09 16:45:31 +02:00
Bartek Iwańczuk
1fcbf9cb8a
upgrade: swc, deno_doc, deno_lint, dprint ( #7402 )
...
- deno_doc - 0.1.6
- deno_lint - 0.1.29
- dprint-plugin-typescript 0.31.1
- swc_ecmascript 0.7.3
2020-09-09 15:35:40 +02:00
Nayeem Rahman
b17a5fbcfa
fix(op_crates/web): Use "deno:" URLs for internal script specifiers ( #7383 )
2020-09-09 14:23:57 +02:00
Bartek Iwańczuk
c14436a424
fix(tsc): config resolution using relative paths ( #7392 )
2020-09-09 13:37:22 +02:00
uki00a
ac455050ee
feat(console): print proxy details ( #7139 )
2020-09-08 16:06:26 +02:00
Luca Casonato
6ff9395532
feat(unstable): enable isolatedModules by default ( #7327 )
2020-09-08 15:28:42 +02:00
Bartek Iwańczuk
241d228104
upgrade: deno_doc to 0.1.5 ( #7391 )
2020-09-08 13:02:14 +02:00
EathonYe
05c46f5969
fix(cli): colors mismatch ( #7367 )
2020-09-08 12:04:02 +02:00
David Sherret
ab7f93caf1
upgrade: dprint-plugin-typescript 0.31.0 ( #7381 )
2020-09-08 11:58:17 +02:00
Casper Beyer
1d0f1ed446
fix: Empty Response body returns 0-byte array ( #7387 )
2020-09-08 11:46:15 +02:00
KrisChambers
1cd2267500
feat(info): Dependency count and sizes ( #6786 )
...
This commit changes "deno info" subcommand logic.
- Modules are no longer loaded into V8 isolate - analysis
is done using ModuleGraph.
- Removed deno_core::Deps structure.
- Modules are no longer type-checked and transpiled -
"compiled" file is shown only if it is already available.
- Added number of unique dependencies for root module.
- Changed tree output:
- file size is shown next to the dependency
- repeated dependencies are marked with "*"
- used less spaces in prefix to save terminal width
2020-09-07 15:59:47 +02:00
Bartek Iwańczuk
f57a2c1e85
refactor(core): rename CoreIsolate to JsRuntime ( #7373 )
...
deno_core/
- rename core_isolate.rs to runtime.rs
- rename CoreIsolate to JsRuntime
- rename JSError to JsError
- rename JSStackFrame to JsStackFrame
cli/
- update references from deno_core::CoreIsolate to deno_core::JsRuntime
- rename deno_core::JSError to deno_core::JsError
- rename fmt_errors::JSError to fmt_errors::JsError
2020-09-06 21:44:29 +02:00
Bartek Iwańczuk
803bdd37c7
refactor(core): merge CoreIsolate and EsIsolate ( #7370 )
2020-09-06 16:50:49 +02:00
Bert Belder
c821e8f2f1
Move JSON ops to deno_core ( #7336 )
2020-09-06 02:34:02 +02:00
crowlKats
8c880d3261
feat: Implement WebSocket API ( #7051 )
2020-09-05 10:39:25 -04:00
Yoshiya Hinosawa
34e98fa59c
feat(install): bundle before installation ( #5276 )
2020-09-05 13:31:14 +02:00
Bartek Iwańczuk
a14b3c9e30
v1.3.3
2020-09-04 18:15:24 +02:00
Ryan Dahl
e7147786f4
run cargo update ( #7348 )
2020-09-04 11:24:23 -04:00
Kitson Kelly
9e50b3ee61
fix: don't expose globalThis.__bootstrap ( #7344 )
2020-09-04 07:52:19 -04:00
迷渡
c44c45a334
docs: fix anchor link ( #7346 )
2020-09-04 06:43:51 -04:00
Ryan Dahl
a10339cb20
fix: Handle bad redirects more gracefully ( #7342 )
2020-09-04 06:43:20 -04:00
Bartek Iwańczuk
2b43ce65ae
fix: regex for TS refereces and deno-types ( #7333 )
2020-09-04 10:44:31 +02:00