summaryrefslogtreecommitdiff
path: root/cli
AgeCommit message (Collapse)Author
2019-08-09Fix dynamic import base path problem for REPL and eval (#2757)Kevin (Kun) "Kassimo" Qian
2019-08-09v0.14.0Bert Belder
2019-08-09Dynamic import (#2516)Bert Belder
2019-08-08Resolve worker specifiers relative to main module of host. (#2751)andy finch
2019-08-08Fix repl crash when deno dir doesn't exist (#2727)Daniel Buckmaster
2019-08-07Add op_id throughout op API (#2734)Ryan Dahl
Removes the magic number hack to switch between flatbuffers and the minimal dispatcher. Adds machinery to pass the op_id through the shared_queue.
2019-08-06Make Deno.execPath a function (#2743)Kevin (Kun) "Kassimo" Qian
And throws without allow-env
2019-08-06Implement Blob url support for worker (#2729)Kevin (Kun) "Kassimo" Qian
2019-08-06Enforce permissions on kill(), homeDir() and execPath (#2723)Nayeem Rahman
2019-08-05Remove Deno.build.args feature (#2728)Ryan Dahl
This is a minor feature which complicates the build signifigantly. Removing to ease refactoring the build system: https://github.com/denoland/deno/issues/2608
2019-08-05Provide option to delete Deno namespace in worker (#2717)Kevin (Kun) "Kassimo" Qian
2019-08-04use BTreeMap for ResourceTable (#2721)Bartek Iwańczuk
2019-08-03Enforce env permission on homeDir() and execPath (#2714)Kevin (Kun) "Kassimo" Qian
2019-08-02third_party: upgrade rust cratesBert Belder
2019-07-31Use system rustfmt instead of fixed binary (#2701)Ryan Dahl
2019-07-31v0.13.0Ryan Dahl
2019-07-31refactor: cleanup compiler pipeline (#2686)Bartek Iwańczuk
* remove fetch_source_file_and_maybe_compile_async and replace it with State.fetch_compiled_module * remove SourceFile.js_source() * introduce CompiledModule which is basically the same as deno::SourceInfo and represents arbitrary file that has been compiled to JS module * introduce //cli/compilers module containing all compilers * introduce JsCompiler which is a no-op compiler - output is the same as input, no compilation takes place - it is used for MediaType::JavaScript and MediaType::Unknown * introduce JsonCompiler that wraps JSON in default export * support JS-to-JS compilation using checkJs
2019-07-31Add --current-thread flag (#2702)Bartek Iwańczuk
2019-07-31factor out FileFetcher to separate module (#2683)Bartek Iwańczuk
* merge SourceFileFetcher trait and FileFetcher struct * move logic related to source file fetching to //cli/file_fetcher.rs * use Result when creating new ThreadSafeState
2019-07-30feat: add debug info to ModuleResolutionError (#2697)Bartek Iwańczuk
2019-07-29Remap stack traces of unthrown errors. (#2693)Kitson Kelly
2019-07-27make importmap flag global (#2687)Bartek Iwańczuk
2019-07-27cli: handle deno -v and deno --version (#2684)Bartek Iwańczuk
2019-07-26cli: unify deno -h options (#2682)Bartek Iwańczuk
2019-07-22save headers for all intermediate redirects (#2677)Bartek Iwańczuk
2019-07-20removed unnecessary implementation from SourceFileFetcher (#2670)andy finch
2019-07-20fix: bring back --no-fetch flag (#2671)Bartek Iwańczuk
2019-07-18Remove hacky normalize_path (#2660)Ryan Dahl
2019-07-18REPL shouldn't panic when it gets SIGINT (#2662)Ryan Dahl
2019-07-17Refactor DenoDir (#2636)Bartek Iwańczuk
* rename `ModuleMetaData` to `SourceFile` and remove TS specific functionality * add `TsCompiler` struct encapsulating processing of TypeScript files * move `SourceMapGetter` trait implementation to `//cli/compiler.rs` * add low-level `DiskCache` API for general purpose caches and use it in `DenoDir` and `TsCompiler` for filesystem access * don't use hash-like filenames for compiled modules, instead use metadata file for storing compilation hash * add `SourceFileCache` for in-process caching of loaded files for fast subsequent access * define `SourceFileFetcher` trait encapsulating loading of local and remote files and implement it for `DenoDir` * define `use_cache` and `no_fetch` flags on `DenoDir` instead of using in fetch methods
2019-07-16v0.12.0Ryan Dahl
2019-07-16Support window.onload (#2643)Yoshiya Hinosawa
2019-07-12Fix REPL when it receives EOF (#2638)Ryan Dahl
2019-07-11Refactor error to use dynamic dispatch and traitsBert Belder
This is in preperation for dynamic import (#1789), which is more easily implemented when errors are dynamic.
2019-07-10fix for '-' arg after script name (#2631)Bartek Iwańczuk
2019-07-09Update deno.land links v0.11 (#2628)Ryan Dahl
2019-07-08Rewrite snapshot_creator in RustBartek Iwańczuk
2019-07-08cli: generate default file name for bundle when URL ends in a slashBert Belder
2019-07-08core: replace ModuleSpecifier::to_url() by as_url()Bert Belder
2019-07-08cli: refactor deno_dir to use Url instead of StringBartek Iwańczuk
2019-07-08core: clearly define when module lookup is path-based vs URL-basedBert Belder
The rules are now as follows: * In `import` statements, as mandated by the WHATWG specification, the import specifier is always treated as a URL. If it is a relative URL, it must start with either / or ./ or ../ * A script name passed to deno as a command line argument may be either an absolute URL or a local path. - If the name starts with a valid URI scheme followed by a colon, e.g. 'http:', 'https:', 'file:', 'foo+bar:', it always interpreted as a URL (even if Deno doesn't support the indicated protocol). - Otherwise, the script name is interpreted as a local path. The local path may be relative, and operating system semantics determine how it is resolved. Prefixing a relative path with ./ is not required.
2019-07-07v0.11.0Ryan Dahl
2019-06-30core: return useful error when import path has no prefix like ./Bert Belder
2019-06-30fix: normalize Deno.execPath (#2598)Bartek Iwańczuk
2019-06-29fix: test output for completions (#2597)Bartek Iwańczuk
2019-06-29feat: parse flags after script name (#2596)Bartek Iwańczuk
2019-06-27Fix multiple error messages for a missing file (#2587)Gurwinder Singh
2019-06-26fix: run blocking function on a different task (#2570)Jimmy Cao
This avoids freezing the current task if the fn blocks indefinitely
2019-06-26feat: deno completions command (#2577)Bartek Iwańczuk
2019-06-25Add homeDir to Deno namespace (#2578)Evgeniy Karagodin