summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2020-05-11fix: Expose ErrorEvent globally (#5222)Kitson Kelly
2020-05-11refactor: check permissions in SourceFileFetcher (#5011)Bartek Iwańczuk
This PR hot-fixes permission escapes in dynamic imports, workers and runtime compiler APIs. "permissions" parameter was added to public APIs of SourceFileFetcher and appropriate permission checks are performed during loading of local and remote files.
2020-05-10fix: remove default --allow-read perm for deno test (#5208)Bartek Iwańczuk
2020-05-10Update to dprint 0.17.2 (#5195)David Sherret
2020-05-091.0.0-rc2Bartek Iwańczuk
2020-05-09refactor(cli): unify display of errors from Rust and JS (#5183)Bartek Iwańczuk
2020-05-09fix: Allow multiple Set-Cookie headers (#5100)Kitson Kelly
2020-05-09fix(cli/installer): Fix concurrent env handling in tests (#5182)Nayeem Rahman
2020-05-09BREAKING: make Deno.hostname unstable (#5108)Ryan Dahl
2020-05-09Add support for X-Deno-Warning header (#5161)Ryan Dahl
2020-05-09BREAKING(std): reorganization (#5087)Nayeem Rahman
* Prepend underscores to private modules * Remove collectUint8Arrays() It would be a misuse of Deno.iter()'s result. * Move std/_util/async.ts to std/async * Move std/util/sha*.ts to std/hash
2020-05-09feat(upgrade): allow specifying a version (#5156)crowlKats
2020-05-09add option to lint and format only staged files (#5172)Michał Zdunek
2020-05-08Add hint on how to exit REPL (#5143)Ryan Dahl
Removes exit and help commands
2020-05-08refactor: Remove cli::compilers module (#5138)Bartek Iwańczuk
This PR removes "cli/compilers/" directory. "cli/compilers/ts.rs" has been renamed to "cli/tsc.rs"
2020-05-08feat(workers): "crypto" global accessible in Worker scope (#5121)Oliver Lenehan
2020-05-08fix: correct type error text (#5150)Chris Knight
2020-05-07BREAKING: make Worker.deno unstable (#5128)Bartek Iwańczuk
This commit makes "Worker.deno" option unstable. Added new manual entry "docs/runtime/workers.md". Removed stale workers tests.
2020-05-07BREAKING: Remove support for .wasm imports (#5135)Bartek Iwańczuk
Importing .wasm files is non-standardized therefore deciding to support current functionality past 1.0 release is risky. Besides that .wasm import posed many challenges in our codebase due to complex interactions with TS compiler which spawned thread for each encountered .wasm import. This commit removes: - cli/compilers/wasm.rs - cli/compilers/wasm_wrap.js - two integration tests related to .wasm imports
2020-05-07feat: format deno bundle output (#5139)Yoshiya Hinosawa
2020-05-07Remove REPL/Windows hack (#5136)Ryan Dahl
2020-05-07feat(bundle): add --config flag (#5130)Bartek Iwańczuk
2020-05-07fix(imports): fix panic on unsupported scheme (#5131)Bartek Iwańczuk
2020-05-07fix(deno_dir): better error message (#5120)Yoshiya Hinosawa
Add better error messages when a cache subdirectory in `DENO_DIR` cannot be created.
2020-05-07fix(docs): add missing "deno run" (#5126)zjopy
2020-05-06Upgrade to rusty_v8 0.4.2 / V8 8.4.300 (#5113)Bert Belder
2020-05-06remove target_test.py (#5112)Ryan Dahl
2020-05-06BREAKING: execPath should require allow-read (#5109)Ryan Dahl
2020-05-06Check destination length in encodeInto (#5078)Nikolai Vavilov
2020-05-06refactor(ts): make processImports logic more verbose (#5089)Bartek Iwańczuk
2020-05-06Upgrade crates (#5104)Ryan Dahl
2020-05-06feat: deno doc handles default exports (#4873)Bartek Iwańczuk
2020-05-06Clean up 'inspector_break_on_first_line' test and fix its flakiness (#5098)Bert Belder
2020-05-06refactor: merge TS compiler into single file (#5091)Bartek Iwańczuk
2020-05-05fix(cli): fix paths in internal stack traces (#5093)Bartek Iwańczuk
This commit updates "deno_typescript" crate to properly map bundle entrypoint file to internal specifier. All import specifiers were remapped from "file:///a/b/c.ts" to "$deno$/a/b/c.ts", but that was not the case for entrypoint file "main.ts" and "compiler.ts". Because of that internal stack traces were inconsistent; showing "file:///some/random/path/on/ci/machine.ts" URL in frames that originate from "main.ts" or "compiler.ts" and "$deno$/file.ts" for all other imports.
2020-05-05Simplify ProcessStdio (#5092)Ryan Dahl
2020-05-05refactor(ts): remove op_cache (#5071)Bartek Iwańczuk
This PR removes op_cache and refactors how Deno interacts with TS compiler. Ultimate goal is to completely sandbox TS compiler worker; it should operate on simple request -> response basis. With this commit TS compiler no longer caches compiled sources as they are generated but rather collects all sources and sends them back to Rust when compilation is done. Additionally "Diagnostic" and its children got refactored to use "Deserialize" trait instead of manually implementing JSON deserialization.
2020-05-05Fix inspector hanging when task budget is exceeded (#5083)Bert Belder
The issue is solved by proxying websocket messages over a pair of `futures::mpsc::unbounded` channels. As these are are implemented in the 'futures' crate, they can't participate in Tokio's cooperative task yielding.
2020-05-04v1.0.0-rc1Ryan Dahl
2020-05-04feat(fmt): Add `deno-fmt-ignore` and `deno-fmt-ignore-file` comment support ↵David Sherret
(#5075)
2020-05-04feat(URL): Support drive letters for file URLs on Windows (#5074)Nayeem Rahman
refactor: Parse URLs more sequentially. This makes it easier to change matching behaviour depending on the protocol. fix: Fail when a host isn't given for certain protocols. fix: Convert back-slashes info forward-slashes.
2020-05-04stabilize Deno.cwd and require --allow-read (#5068)Ryan Dahl
2020-05-04Rename DenoPermissions, add abs path asserts (#5076)Ryan Dahl
2020-05-04Simplify ts-compiler's normalizeString (#5072)Ryan Dahl
2020-05-04simplify unit tests: compiler_api, workers (#5073)Ryan Dahl
2020-05-04fix: URL constructor throws confusing error on invalid scheme (#5057)Daniel Lenksjö
2020-05-04Make it so ts compiler doesn't call cwd op (#5070)Ryan Dahl
Removes duplicate implementation of the module resolution algorithm
2020-05-04fix(console): formatting misalignment on console.table (#5046)木杉
2020-05-04fix(install): Propagate --unstable flag (#5061)Divya
2020-05-04BREAKING: remove CLI 'deno script.ts' hack (#5026)Bartek Iwańczuk
This PR removes the hack in CLI that allows to run scripts with shorthand: deno script.ts. Removing this functionality because it hacks around short-comings of clap our CLI parser. We agree that this shorthand syntax is desirable, but it needs to be rethinked and reimplemented. For 1.0 we should go with conservative approach that is correct.