Age | Commit message (Collapse) | Author |
|
* 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
|
|
Original: https://github.com/denoland/deno_std/commit/86675d263441f405af0981c661e838f1ec192004
|
|
|
|
https://github.com/denoland/deno/pull/2073#discussion_r303401539
|
|
|
|
|
|
So that "cargo build" will build it when the gn frontend is eventually
removed.
|
|
|
|
This is in preperation for dynamic import (#1789), which is more easily
implemented when errors are dynamic.
|
|
|
|
Original: https://github.com/denoland/deno_std/commit/14fefcba1593fbcb053c9445534f8ba942f9ff9d
|
|
Original: https://github.com/denoland/deno_std/commit/2f4846fc3e163ed1d82845140f5d3cc8adbde26e
|
|
|
|
|
|
|
|
|
|
|
|
This fixes an appveyor issue that arrises when implementing
snapshot_creator in Rust.
|
|
It doesn't work since we're not using rustfmt-nightly.
|
|
|
|
|
|
Original: https://github.com/denoland/deno_std/commit/67641b8ea5ba869854ca042e11b200b90da5fc4b
|
|
|
|
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.
|
|
Original: https://github.com/denoland/deno_std/commit/88b48945799322c0bc2f34134eed538759de4174
|
|
Original: https://github.com/denoland/deno_std/commit/3ea90d54f6dad4bcc3d32e63601096a6c0ff3ce4
|
|
|
|
Instead of returning { nread: number, eof: bool }, read() returns EOF | number.
|
|
|
|
Original: https://github.com/denoland/deno_std/commit/f52b3ec002ac38aa9146695283aa491bc2d115b6
|
|
|
|
|
|
Original: https://github.com/denoland/deno_std/commit/85db520b60053db5dc9b56972bfb6bee506dc158
|
|
|
|
|
|
|
|
|
|
Original: https://github.com/denoland/deno_std/commit/9e5473a5020d3769a5bcdda497815321690e06ca
|
|
|
|
|
|
|
|
|
|
This avoids freezing the current task if the fn blocks indefinitely
|
|
|
|
Original: https://github.com/denoland/deno_std/commit/53949c1eb6aedb68af6a9301cd49d28db204b885
|
|
|
|
|
|
A lot of its functionality is unused still, but the goal it to slowly
migrate logging functionality to it. There is also a useful progress bar
which can be ported over later - it depends on this module.
https://github.com/rust-lang/cargo/blob/4c1fa54d10f58d69ac9ff55be68e1b1c25ecb816/src/cargo/util/progress.rs
|
|
|
|
|