summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-11-26update deno_core_http_bench to Tokio 0.2 (#3408)Bartek Iwańczuk
2019-11-26v0.25.0Ryan Dahl
2019-11-26better error messages for 'relative import path not prefixed with / or ./ or ↵Bartek Iwańczuk
../' (#3405)
2019-11-26feat: add ignore parser for std/prettier (#3399)Axetroy
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-19std/node: add some Node.js polyfill to require() (#3382)Kevin (Kun) "Kassimo" Qian
2019-11-19fix: use AF_INET6 in ./tools/http_server.py (#3374)Bartek Iwańczuk
2019-11-19feat(std/node) add CommonJS require (#3380)Kevin (Kun) "Kassimo" Qian
2019-11-18chore: improve examples (#3377)Ry Dahl
2019-11-18support load yaml/yml prettier config (#3370)罗文
2019-11-18feat: op registration during calls (#3375)Andy Finch
2019-11-18chore: remove unneeded tokio deps (#3376)Bartek Iwańczuk
2019-11-18feat: std/node/process (#3368)Rafał Pocztarski
2019-11-18feat: add --check for deno fmt (#3369)罗文
2019-11-18feat: Add std/encoding/yaml module (#3361)Lilian Saget-Lethias
2019-11-17fix deno_core_http_bench (#3364)Bartek Iwańczuk
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-16fix: std/datetime toIMF bug (#3357)Leo Chandra
2019-11-15run std test with cargo test (#3344)Bartek Iwańczuk
Removes three CI jobs
2019-11-15Add wasm example to manual (#3353)Andy Hayden
2019-11-15Fix remote .wasm import content type issue (#3351)Kevin (Kun) "Kassimo" Qian
2019-11-14v0.24.0Ryan Dahl
2019-11-14fix: error handling in std/fs/walk() (#3318)Nayeem Rahman
- Make assertThrows() return the Error - Remove WalkOptions::onError()
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-14add RUST_BACKTRACE to ciBartek Iwańczuk
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-13Ignore some files that facilitate editors. (#3337)Kitson Kelly
Using an editor, such as VSCode, some of the plugins require some files locally to provide a good editing experience. These were removed from the repo, but allowing people to add them back locally but ensure they don't end up committed by accident would be helpful.
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-12feat: std/node (#3319)Vincent LE GOFF
2019-11-12fix url parse bug (#3316)木杉