summaryrefslogtreecommitdiff
path: root/src/deno_dir.rs
AgeCommit message (Collapse)Author
2019-01-15Clippy fixes (also fixes build with nightly) (#1527)Bert Belder
2019-01-14Update to rust 2018 editionAndy Hayden
2019-01-09Native ES modules (#1460)Ryan Dahl
* Native ES modules This is a major refactor of internal compiler. Before: JS and TS both were sent through the typescript compiler where their imports were parsed and handled. Both compiled to AMD JS and finally sent to V8 Now: JS is sent directly into V8. TS is sent through the typescript compiler, but tsc generates ES modules now instead of AMD. This generated JS is then dumped into V8. This should much faster for pure JS code. It may improve TS compilation speed. In the future this allows us to separate TS out of the runtime heap and into its own dedicated snapshot. This will result in a smaller runtime heap, and thus should be faster. Some tests were unfortunately disabled to ease landing this patch: 1. compiler_tests.ts which I intend to bring back in later commits. 2. Some text_encoding_test.ts tests which made the file invalid utf8. See PR for a discussion. Also worth noting that this is necessary to support WASM
2019-01-03Revert "use byte array instead of string for code fetch (#1307)" (#1455)Ryan Dahl
This reverts commit e976b3e0414dc768624b77e431ee7f55b03b76a4. There is nothing technically wrong with this commit, but it's adding complexity to a big refactor (native ES modules #975). Since it's not necessary and simply a philosophical preference, I will revert for now and try to bring it back later.
2019-01-03resolve_module: handle "." and ".." referrers (#1454)Ryan Dahl
2019-01-03Add rust binding and test for deno_execute_mod()Ryan Dahl
2019-01-02Happy new year!Ryan Dahl
2018-12-27Lazily create .mime files only with mismatch/no extension (#1417)Kevin (Kun) "Kassimo" Qian
2018-12-23Remove support for extensionless import (#1396)Ryan Dahl
2018-12-12use byte array instead of string for code fetch (#1307)F001
2018-12-12Simplify src fetch logic and auto append suffix in cache search (#1322)Kevin (Kun) "Kassimo" Qian
2018-12-11Remove dead code: ASSET_PREFIXRyan Dahl
2018-12-11deno_dir: move tests into submoduleRyan Dahl
2018-12-11Minor rename for CodeFetch parametersRyan Dahl
This bring it inline with terminology used in V8 See ResolveCallback in v8.h
2018-12-10Use stderr for exceptions (#1303)Ryan Dahl
2018-12-07Don't crash when .mime file not exist in cache (#1291)Kevin (Kun) "Kassimo" Qian
2018-12-06Process source maps in Rust instead of JS (#1280)Ryan Dahl
- Improves speed and binary size significantly. - Makes deno_last_exception() output a JSON structure. - Isolate::execute and Isolate::event_loop now return structured, mapped JSError objects on errors. - Removes libdeno functions: libdeno.setGlobalErrorHandler() libdeno.setPromiseRejectHandler() libdeno.setPromiseErrorExaminer() In collaboration with Ryan Dahl.
2018-11-30clippy fixes (#1250)Andy Hayden
2018-11-29Replace mutex by atomics (#1238)F001
2018-11-16Support shebangRyan Dahl
2018-11-16Simplify NotFound code.Ryan Dahl
2018-11-08Local filenames starting with 'http' shouldn't be remote. (#1167)Ryan Dahl
2018-11-06Fix many of the clippy::pedantic warningsAndy Hayden
2018-11-04Fix clippy warnings (#1149)Andy Hayden
Run with: cargo clippy https://github.com/rust-lang-nursery/rust-clippy
2018-10-29Separate source map from output code.Kitson Kelly
2018-10-28Add application/x-typescript mime type supportKevin (Kun) "Kassimo" Qian
2018-10-26Add separate http/https cache dirs to DENO_DIR (#971)Kevin (Kun) "Kassimo" Qian
Also change remote relative import logic.
2018-10-23Enforce media typesKitson Kelly
2018-10-10src/http.rs -> src/http_util.rsRyan Dahl
So as not to conflict with http crate.
2018-10-02Guess extensions on extension not provided (#859)Kevin (Kun) "Kassimo" Qian
Fixes #857
2018-09-25Use lazy_static for HttpsConnectorRyan Dahl
And rename net.rs to http.rs Share HTTP connection.
2018-09-16Use `dirs::home_dir` to replace deprecated `std::env::home_dir`Kevin (Kun) "Kassimo" Qian
2018-09-14[fs] Enable mode for `mkdir` on unix (#746)Kevin (Kun) "Kassimo" Qian
2018-09-11Move writeFileSync to write_file.ts, add writeFile and tests (#728)Kevin (Kun) "Kassimo" Qian
2018-09-09Better NotFound error handling in CodeFetchRyan Dahl
throwResolutionError was swallowing unrelated errors.
2018-09-05Improve module resolution.Ryan Dahl
Windows can't handle ":" in path names, so we use a special directory format .deno/deps/localhost_PORT4545/ to represent hosts with non-default ports. Fixes #645.
2018-08-30Support https imports.Ryan Dahl
Adds hyper-rustls to the build. Use ring for sha1 instead of "ssh1" crate. Fixes #528.
2018-08-26Replaced read_file_sync{_string} with std::fs::read{_to_string}Aaron Power
2018-08-23Normalize windows paths.Ryan Dahl
Add resolve_module test
2018-08-23First pass at HTTP importsRyan Dahl
Implement --reload Integrate hyper errors into DenoError In collaboration with Tommy Savaria <tommy.savaria@protonmail.ch>
2018-08-21Better error handling in src/handlers.rsRyan Dahl
Introduces error codes that are shared between JS/RS Fixes #526.
2018-08-09Add fs::read_file_sync_stringRyan Dahl
2018-08-08Organize libdeno functions.Ryan Dahl
2018-08-08Hacky error handling for Url::from_file_path.Ryan Dahl
2018-08-02Update repo links to denoland.Ryan Dahl
2018-07-29Implement CodeCacheRyan Dahl