summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2019-11-26better error messages for 'relative import path not prefixed with / or ./ or ↵Bartek Iwańczuk
../' (#3405)
2019-11-26refactor: reorganize flags (#3389)Ry Dahl
- Remove ability to specify run arguments like `--allow-net` after the script argument. It's too hacky to make work with clap. - Remove `--v8-options`, instead use `--v8-flags=--help` - Give more descriptive names to unit tests in flags.rs - Assume argv and subcommand into DenoFlags struct so the output of flags module is only DenoFlags rather than the tuple (subcommand, flags, argv). - Improve CLI help text - Make `deno run` specific args like `--allow-net` only show up in 'deno help run' instead of as global flags in `deno help`. - Removes `deno version` to simplify our implementation and be closer to clap defaults. `deno -V` now only shows Deno's version and not V8's nor TypeScript. `Deno.versions` can be used to see that information. - Prevent clap from auto-detecting terminal width and attempting to wrap text.
2019-11-26Add Deno.realpath (#3404)Kevin (Kun) "Kassimo" Qian
2019-11-25better error message for missing module (#3402)Bartek Iwańczuk
2019-11-24refactor: Elevate DenoPermissions lock to top level (#3398)Kevin (Kun) "Kassimo" Qian
2019-11-24Make private namespaces in lib.deno_runtime.d.ts more private (#3400)Kitson Kelly
2019-11-22remove tokio_util::block_on (#3388)Bartek Iwańczuk
This PR removes tokio_util::block_on - refactored compiler and file fetcher slightly so that we can safely block there - that's because only blocking path consist of only synchronous operations. Additionally I removed excessive use of tokio_util::panic_on_error and tokio_util::run_in_task and moved both functions to cli/worker.rs, to tests module. Closes #2960
2019-11-22minor clean ups in TS compiler (#3394)Bartek Iwańczuk
2019-11-20feat: Support named exports on bundles. (#3352)Kitson Kelly
2019-11-19remove tokio_util::block_on from ops/workers.rs (#3381)Bartek Iwańczuk
2019-11-19fix: use AF_INET6 in ./tools/http_server.py (#3374)Bartek Iwańczuk
2019-11-18chore: remove unneeded tokio deps (#3376)Bartek Iwańczuk
2019-11-18feat: add --check for deno fmt (#3369)罗文
2019-11-17refactor: fixes for futures (#3363)Bartek Iwańczuk
After landing #3358 the benchmarks exploded indicating problems with workers and deno_core_http_bench. This PR dramatically fixes thread/syscall count that showed up on benchmarks. Thread count is not back to previous levels but difference went from hundreds/thousands to about ~50.
2019-11-16Use async to replace FutureExt in lib.rs (#3359)Kevin (Kun) "Kassimo" Qian
2019-11-16Use futures 0.3 API (#3358)Bartek Iwańczuk
2019-11-16fmt: respect prettierrc and prettierignore (#3346)罗文
2019-11-15run std test with cargo test (#3344)Bartek Iwańczuk
Removes three CI jobs
2019-11-15Fix remote .wasm import content type issue (#3351)Kevin (Kun) "Kassimo" Qian
2019-11-14v0.24.0Ryan Dahl
2019-11-14Turn on TS strict mode for deno_typescript (#3330)Ry Dahl
2019-11-14refactor: per-worker resource table, take 2 (#3342)Bartek Iwańczuk
- removes global `RESOURCE_TABLE` - resource tables are now created per `Worker` in `State` - renames `CliResource` to `StreamResource` and moves all logic related to it to `cli/ops/io.rs` - removes `cli/resources.rs` - adds `state` argument to `op_read` and `op_write` and consequently adds `stateful_minimal_op` to `State` - IMPORTANT NOTE: workers don't have access to process stdio - this is caused by fact that dropping worker would close stdout for process (because it's constructed from raw handle, which closes underlying file descriptor on drop)
2019-11-14Loader: support .wasm imports (#3328)Kevin (Kun) "Kassimo" Qian
* loader: support .wasm imports * http_server: true * Support named exports * Clippy
2019-11-13Revert "refactor: per-worker resource table (#3306)"Ryan Dahl
This patch does not work with the recent bundler changes (#3325). Unfortunately I didn't merge master before landing this patch. It has something to do with console.log not working inside the compiler worker. This reverts commit fd62379eafde6571f126df5650b80cfda9f74229.
2019-11-13refactor: per-worker resource table (#3306)Bartek Iwańczuk
- removes global `RESOURCE_TABLE` - resource tables are now created per `Worker` in `State` - renames `CliResource` to `StreamResource` and moves all logic related to it to `cli/ops/io.rs` - removes `cli/resources.rs` - adds `state` argument to `op_read` and `op_write` and consequently adds `stateful_minimal_op` to `State` - IMPORTANT NOTE: workers don't have access to process stdio - this is caused by fact that dropping worker would close stdout for process (because it's constructed from raw handle, which closes underlying file descriptor on drop)
2019-11-13Revert "tests: share http server between tests (#3336)"Ryan Dahl
This reverts commit dbf861f8a02f4a90ef68a4e2741b973becc53438.
2019-11-13tests: share http server between tests (#3336)Bartek Iwańczuk
Re-enable flaky tests
2019-11-13Disable flaky tests lock_check_ok2 again (#3334)Ry Dahl
Mistakenly re-enabled in #3275.
2019-11-13Update to TypeScript 3.7 (#3275)Kitson Kelly
and update to prettier 1.19 Also, update `assert()` and remove not null assertions where possibly in `cli`. Closes #3273
2019-11-13Disable flaky tests lock_check_ok2 and lock_check_err2 (#3331)Ry Dahl
2019-11-13fmt: allow configuration of Prettier options (#3314)罗文
2019-11-13Make bundles fully standalone (#3325)Kitson Kelly
- Bundles are fully standalone. They now include the shared loader with `deno_typescript`. - Refactor of the loader in `deno_typescript` to perform module instantiation in a more - Change of behaviour when an output file is not specified on the CLI. Previously a default name was determined and the bundle written to that file, now the bundle will be sent to `stdout`. - Refactors in the TypeScript compiler to be able to support the concept of a request type. This provides a cleaner abstraction and makes it easier to support things like single module transpiles to the userland. - Remove a "dangerous" circular dependency between `os.ts` and `deno.ts`, and define `pid` and `noColor` in a better way. - Don't bind early to `console` in `repl.ts`. - Add an integration test for generating a bundle.
2019-11-12fix url parse bug (#3316)木杉
2019-11-12flags: bump deno_std to v0.23.0 (#3322)罗文
2019-11-11Add permissions.request (#3296)Yoshiya Hinosawa
2019-11-09refactor: worker is no longer a resource (#3290)Bartek Iwańczuk
2019-11-09net: Check for closing status when iterating Listener (#3309)Nayeem Rahman
std/http/server.ts: Use listener.next() instead of listener.accept()
2019-11-08test: re-enable integration test 045 (#3300)Yoshiya Hinosawa
This test was improved in #3185.
2019-11-08disable flaky testRyan Dahl
2019-11-07Upgrade rust crates (#3292)Bert Belder
2019-11-07refactor: move Child resource to ops/process.rs (#3291)Bartek Iwańczuk
2019-11-07disable flaky testRyan Dahl
2019-11-07upgrade: Rust 1.39.0 (#3286)Ry Dahl
2019-11-07refactor: remove cli::resources::Resource (#3285)Bartek Iwańczuk
2019-11-07refactor: rewrite accept resources (#3271)Bartek Iwańczuk
2019-11-06Remove CoreResource::inspect_repr method (#3274)Ry Dahl
Towards simplifying (or better removing entirely) the CoreResource trait. Resources should be any bit of privileged heap allocated memory that needs to be referenced from JS, not very specific trait implementations. Therefore CoreResource should be pushed towards being as general as possible.
2019-11-05Disable flaky tests (#3270)Ry Dahl
2019-11-04v0.23.0Ryan Dahl
2019-11-04Revert "reduce redundancies in the fetch code (#3249)" (#3264)Ry Dahl
Max latency benchmark went to zero for deno_proxy. This reverts commit 65e91796720ea68d69ac7f925a8f239aee8fb19e
2019-11-04Remove tsconfig files - they are not part of build process (#3262)Ry Dahl