1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-14 16:33:45 -05:00
Commit graph

8324 commits

Author SHA1 Message Date
Ryan Dahl
a37bc0088f
Remove hacky normalize_path (#2660) 2019-07-18 15:01:44 -04:00
Ryan Dahl
55ca0f09cb
REPL shouldn't panic when it gets SIGINT (#2662) 2019-07-18 15:01:15 -04:00
Ryan Dahl
bc12a3ba56
Reorder tools/format.py so slowest are last (#2661) 2019-07-18 15:00:50 -04:00
迷渡
ac98bd8a7c fix timer's params length (#2655) 2019-07-18 06:09:32 -04:00
迷渡
a0b8f13f18 Rename powershell highlighting to shell (#2654) 2019-07-18 05:03:02 -04:00
Bartek Iwańczuk
8214b686ce Refactor DenoDir (#2636)
* 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-17 18:15:30 -04:00
Ryan Dahl
faf2cd92fc Bump CI to v0.12.0 (denoland/deno_std#541)
Original: 86675d2634
2019-07-17 16:49:09 -04:00
Ryan Dahl
481a82c983
Edits to manual (#2646) 2019-07-17 10:23:07 -04:00
迷渡
181cfc9fb5 Adjust console constructor (#2649)
https://github.com/denoland/deno/pull/2073#discussion_r303401539
2019-07-17 09:42:04 -04:00
Ryan Dahl
4e248ecda9 v0.12.0 2019-07-16 16:08:50 -04:00
Yoshiya Hinosawa
9c45499864 Support window.onload (#2643) 2019-07-16 00:19:26 -04:00
Ryan Dahl
bd6ebb32df
hyper_hello should be in its own crate (#2641)
So that "cargo build" will build it when the gn frontend is eventually
removed.
2019-07-15 14:00:27 -04:00
Ryan Dahl
1fde15c0bc
Fix REPL when it receives EOF (#2638) 2019-07-12 10:23:08 -04:00
Bert Belder
abe8a113ad Refactor error to use dynamic dispatch and traits
This is in preperation for dynamic import (#1789), which is more easily
implemented when errors are dynamic.
2019-07-11 14:37:00 -04:00
Bert Belder
db5c66a638 Upgrade rust to v1.36.0 2019-07-11 14:37:00 -04:00
Lucas Caro
0d5d949887 add link to uuid in README (denoland/deno_std#536)
Original: 14fefcba15
2019-07-11 10:23:14 -04:00
Bartek Iwańczuk
f549392fb6 Rename catjson.ts to catj.ts (denoland/deno_std#533)
Original: 2f4846fc3e
2019-07-11 05:58:18 -04:00
Bartek Iwańczuk
963d56fc5e fix for '-' arg after script name (#2631) 2019-07-10 20:26:01 -04:00
Ryan Dahl
d7fa8c3207
Update deno.land links v0.11 (#2628) 2019-07-09 18:59:13 -04:00
Mark Tiedemann
953a5a31db Adjust powershell installer commands (#2627) 2019-07-09 14:48:15 -04:00
Ryan Dahl
52c0764e4f
Upgrade v8 to 7.7.200 (#2624) 2019-07-09 14:03:06 -04:00
Bartek Iwańczuk
d641782c82 Rewrite snapshot_creator in Rust 2019-07-08 18:18:28 -04:00
Bert Belder
79c3439f26 Pass env vars through in build_extra/rust/run.py
This fixes an appveyor issue that arrises when implementing
snapshot_creator in Rust.
2019-07-08 18:18:28 -04:00
Bert Belder
958a80e6db
rustfmt: disable format_macro_bodies
It doesn't work since we're not using rustfmt-nightly.
2019-07-08 23:06:30 +02:00
Bert Belder
afd66bb010
cli: generate default file name for bundle when URL ends in a slash 2019-07-08 23:05:00 +02:00
Bert Belder
f4c9b31405
core: replace ModuleSpecifier::to_url() by as_url() 2019-07-08 23:04:07 +02:00
Vincent LE GOFF
1a42695beb fix emptydir on windows (denoland/deno_std#531)
Original: 67641b8ea5
2019-07-08 11:09:23 -04:00
Bartek Iwańczuk
72d9045528
cli: refactor deno_dir to use Url instead of String 2019-07-08 13:07:32 +02:00
Bert Belder
9b1997b8b6
core: clearly define when module lookup is path-based vs URL-based
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-08 13:07:32 +02:00
Evgeniy Karagodin
c08a27de9a Remove os.userHomeDir in favor of Deno.homeDir (denoland/deno_std#523)
Original: 88b4894579
2019-07-07 15:41:09 -04:00
Yoshiya Hinosawa
9a01d6455e Upgrade to v0.11.0 (update Reader interface) (denoland/deno_std#527)
Original: 3ea90d54f6
2019-07-07 15:20:41 -04:00
Ryan Dahl
92ac616708 v0.11.0 2019-07-07 12:17:46 -04:00
Yoshiya Hinosawa
a948f9ff54 io: change Reader interface (#2591)
Instead of returning { nread: number, eof: bool }, read() returns EOF | number.
2019-07-06 10:16:03 -04:00
Ryan Dahl
33cb79d24c
Fix links (#2614) 2019-07-05 07:37:11 -04:00
Lucas Caro
6a0858bd5d add UUID module (denoland/deno_std#479)
Original: f52b3ec002
2019-07-03 11:13:22 -04:00
Bert Belder
32cde32e54 core: return useful error when import path has no prefix like ./ 2019-06-30 19:46:32 +02:00
Bartek Iwańczuk
9d18f97327 fix: normalize Deno.execPath (#2598) 2019-06-30 13:32:24 -04:00
Axetroy
78a9a27e6f prettier: support reading code from stdin (denoland/deno_std#498)
Original: 85db520b60
2019-06-30 11:10:00 -04:00
Yoshiya Hinosawa
1068b4848c ts_library_builder: update README (#2604) 2019-06-30 10:52:28 -04:00
Bartek Iwańczuk
5a4bebb770 fix: test output for completions (#2597) 2019-06-29 18:35:56 -04:00
Bartek Iwańczuk
38cf346d5c feat: parse flags after script name (#2596) 2019-06-29 18:32:54 -04:00
Ryan Dahl
cde81c6a53
manual: adjust windows build instructions (#2601) 2019-06-29 14:30:21 -04:00
Phil Rukin
6d4473324f Update instructions to install file server (denoland/deno_std#526)
Original: 9e5473a502
2019-06-29 10:30:01 -04:00
matzkoh
1b48d67fbb docs(style_guide): fix typoFixes a small syntax error (#2567) 2019-06-28 18:49:03 -04:00
andy finch
83fe397016 update rust version for ci (#2599) 2019-06-28 16:26:54 -04:00
迷渡
a5441003fe rename shellsession to shell (#2583) 2019-06-27 11:30:59 -04:00
Gurwinder Singh
d7d3e9f9de Fix multiple error messages for a missing file (#2587) 2019-06-27 09:34:12 -04:00
Jimmy Cao
fb6d57a281 fix: run blocking function on a different task (#2570)
This avoids freezing the current task if the fn blocks indefinitely
2019-06-26 19:12:11 -04:00
Bartek Iwańczuk
6906a2f75e feat: deno completions command (#2577) 2019-06-26 03:02:13 -07:00
Ryan Dahl
5bf765b1b4 ci: bump deno to v0.10.0
Original: 53949c1eb6
2019-06-26 02:47:35 -07:00