summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2021-05-02refactor(core): convert core.print() to a builtin op (#10436)Aaron O'Mullan
2021-05-02cleanup(bench/deno_http_native): don't use Deno.core funcs (#10460)Aaron O'Mullan
`Deno.core.*` is unstable and not fit for public consumption, although this is a somewhat internal bench some people may use it as reference code and start using `Deno.core.encode()` in their own code
2021-05-02fix(test): change inflection depending on number of pending tests (#10466)Casper Beyer
2021-05-02clean(cli): prefix all op functions with op_ (#10463)Aaron O'Mullan
Makes the codebase more searchable and helps distinguish op functions from helper functions Besides tests/examples/benches this pattern appears to be used everywhere else in the codebase
2021-05-01fix(test): re-enable "compile_windows_ext" test (#10131)Divy Srivastava
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2021-05-01fix(console): Remove `console.timeStamp` from types (#10455)Liam Murphy
Fixes #10444
2021-04-30Rename crate_ops to extensions (#10431)Andy Hayden
2021-04-30fix(cli/tools/test): print module tests originate from (#10428)Casper Beyer
2021-04-30fix(test): default to num cpus when no value is given (#10443)Casper Beyer
2021-04-29fix(op_crate/fetch): infinite loop on fill headers (#10406)William Perron
Fixes a pesky bug in the fetch implementation where if the init part is specified in `fetch` instead of the `Request` constructor, the fillHeaders function receives two references to the same object, causing it to append to the same list being iterated over.
2021-04-29chore: remove unused keys from TsConfigJson (#10417)Kitson Kelly
2021-04-29refactor(cli): move test reporting into trait (#10408)Casper Beyer
2021-04-28chore(lsp): remove dead code (#10409)Satya Rohith
2021-04-28feat(test): run test modules in parallel (#9815)Casper Beyer
This commit adds support for running test in parallel. Entire test runner functionality has been rewritten from JavaScript to Rust and a set of ops was added to support reporting in Rust. A new "--jobs" flag was added to "deno test" that allows to configure how many threads will be used. When given no value it defaults to 2.
2021-04-28core: introduce extensions (#9800)Aaron O'Mullan
Extensions allow declarative extensions to "JsRuntime" (ops, state, JS or middleware). This allows for: - `op_crates` to be plug-and-play & self-contained, reducing complexity leaked to consumers - op middleware (like metrics_op) to be opt-in and for new middleware (unstable, tracing,...) - `MainWorker` and `WebWorker` to be composable, allowing users to extend workers with their ops whilst benefiting from the other infrastructure (inspector, etc...) In short extensions improve deno's modularity, reducing complexity and leaky abstractions for embedders and the internal codebase.
2021-04-28refactor(core): simplify module loading code (#10385)Bartek Iwańczuk
General cleanup of module loading code, tried to reduce indentation in various methods on "JsRuntime" to improve readability. Added "JsRuntime::handle_scope" helper function, which returns a "v8::HandleScope". This was done to reduce a code pattern that happens all over the "deno_core". Additionally if event loop hangs during loading of dynamic modules a list of currently pending dynamic imports is printed.
2021-04-28chore: upgrade dprint plugins (#10397)Satya Rohith
2021-04-28docs: document how to stop file watcher (#10403)Yoshiya Hinosawa
2021-04-27test(cli): run unit tests using Deno.test (#10330)Casper Beyer
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-04-27remove --unstable flag from CLI features (#10190)Bartek Iwańczuk
2021-04-27fix(console): circular customInspect (#10338)Aaron O'Mullan
2021-04-27docs: fix ftruncateSync example (#10393)Yoshiya Hinosawa
2021-04-26fix(tls): throw meaningful error when hostname is invalid (#10387)Bert Belder
`InvalidDNSNameError` is thrown when a string is not a valid hostname, e.g. it contains invalid characters, or starts with a numeric digit. It does not involve a (failed) DNS lookup.
2021-04-26Remove denort optimization (#10350)Ryan Dahl
denort is an optimization to "deno compile" to produce slightly smaller output. It's a decent idea, but causes a lot of negative side-effects: - Deno's link time is a source of constant agony both locally and in CI, denort doubles link time. - The release process is a long and arduous undertaking with many manual steps. denort necessitates an additional manual zip + upload from M1 apple computers. - The "deno compile" interface is complicated with the "--lite" option. This is confusing for uses ("why wouldn't you want lite?"). The benefits of this feature do not outweigh the negatives. We must find a different approach to optimizing "deno compile" output.
2021-04-26feat(core): enable wasm threading support (#10116)Casper Beyer
2021-04-26feat: Support deno-fmt-ignore-file for markdown formatting (#10191)David Sherret
2021-04-26fix: invalid types for asynchronous and synchronous `File#truncate` (#10353)Carter Snook
2021-04-26remove #![deny(warnings)] (#10376)Ryan Dahl
Prefer RUSTFLAGS="-D warnings" to prevent warnings, but cannot enable yet due to #10378.
2021-04-26fix(#10360): clarify JSDoc for `Deno.noColor` (#10373)Carter Snook
Fixes #10360 Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2021-04-25feat(cli): add test permissions to Deno.test (#10188)Casper Beyer
This commits adds adds "permissions" option to the test definitions which allows tests to run with different permission sets than the process's permission. The change will only be in effect within the test function, once the test has completed the original process permission set is restored. Test permissions cannot exceed the process's permission. You can only narrow or drop permissions, failure to acquire a permission results in an error being thrown and the test case will fail.
2021-04-26fix(#10362): include range for export statements (#10369)Satya Rohith
Fixes #10362
2021-04-26refactor(cli): rename Deno.emit() bundle options to "module" and "classic" ↵Nayeem Rahman
(#10332)
2021-04-25refactor(core): move op cache sync responsibility to rust space (#10340)Aaron O'Mullan
Even if bootstrapping the JS runtime is low level, it's an abstraction leak of core to require users to call `Deno.core.ops()` in JS space. So instead we're introducing a `JsRuntime::sync_ops_cache()` method, once we have runtime extensions a new runtime will ensure the ops cache is setup (for the provided extensions) and then loading/unloading plugins should be the only operations that require op cache syncs
2021-04-25fix(cli/dts): sleepSync doesn't return a Promise (#10358)Aaron O'Mullan
Per its name its synchronous for the current thread
2021-04-24feat(cli/upgrade): add download progress (#10343)crowlKats
2021-04-23refactor: use 'data-url' crate to process data URLs in lsp & file_fetcher ↵Satya Rohith
(#10196) Closes: #10118
2021-04-23fix(op_crates/fetch): Prevent throwing when inspecting a request (#10335)Jesse Jackson
Fixes: #10334
2021-04-23Use ubuntu-latest-xl on more CI jobs (#10322)Ryan Dahl
2021-04-23refactor(core): rename send() to opcall() (#10307)Aaron O'Mullan
I think it's a better fit since recv() was killed and opcall <> syscall (send/recv was too reminiscent of request/response and custom payloads)
2021-04-231.9.2Luca Casonato
2021-04-23chore: release crates (#10327)Luca Casonato
Release crates for the cli 1.9.2 release.
2021-04-23chore: update dependencies (#10325)Luca Casonato
This updates swc_* crates to latest, and various other deps.
2021-04-23fix(runtime/js/http): cancel body on response failure (#10225)Nayeem Rahman
2021-04-23fix(cli): standalone bin corruption on M1 (#10311)Aaron O'Mullan
2021-04-22fix(#10292): Don't gray-out internal frames (#10293)Ryan Dahl
2021-04-21fix(#10302): flaky worker test (#10303)Ryan Dahl
2021-04-21refactor(core): simplify error handling (#10297)Aaron O'Mullan
- register builtin v8 errors in core.js so consumers don't have to - remove complexity of error args handling (consumers must provide a constructor with custom args, core simply provides msg arg)
2021-04-21fix(fetch): Response inspect regression (#10295)Aaron O'Mullan
2021-04-21fix: do not panic on not found cwd (#10238)Satya Rohith
2021-04-21fix(installer): Remove double '.' from temporary archive extension on ↵Nicholas Rodrigues Lordello
upgrade (#10289)