summaryrefslogtreecommitdiff
path: root/cli/file_fetcher.rs
AgeCommit message (Collapse)Author
2021-01-06feat(cli): support data urls (#8866)Kitson Kelly
Closes: #5059 Co-authored-by: Valentin Anger <syrupthinker@gryphno.de>
2021-01-05feat(cli/standalone): support runtime flags for deno compile (#8738)Nayeem Rahman
2021-01-04BREAKING(unstable): remove CreateHttpClientOptions.caFile (#8928)Mo
2020-12-30feat(lsp): add cache command (#8911)Kitson Kelly
2020-12-13refactor: deno_runtime crate (#8640)Bartek Iwańczuk
This commit moves Deno JS runtime, ops, permissions and inspector implementation to new "deno_runtime" crate located in "runtime/" directory. Details in "runtime/README.md". Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-12-12refactor(cli): more options on Worker (#8724)Bartek Iwańczuk
2020-12-10fix(lsp): only resolve sources with supported schemas (#8696)Kitson Kelly
Fixes #8695
2020-12-07feat: add mvp language server (#8515)Kitson Kelly
Resolves #8400
2020-11-16fix(cli): local sources are not cached in memory (#8328)Kitson Kelly
Fixes #4743 Closes #5253 Fixes #5631 Fixes #6116 Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2020-11-13refactor(cli+core): various cleanups in Rust (#8336)KNnut
2020-11-06refactor(cli): refactor file_fetcher (#8245)Kitson Kelly
2020-10-23refactor(cli): migrate run and cache to new infrastructure (#7996)Kitson Kelly
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-10-16fix(cli): ModuleGraph2 properly handles redirects (#7981)Kitson Kelly
2020-10-07refactor(cli): remove TextDocument (#7850)Kitson Kelly
2020-09-25refactor: new module graph used for no check (#7621)Kitson Kelly
2020-09-21refactor: use futures and serde_json from deno_core (#7614)Bartek Iwańczuk
2020-09-18Use reqwest from deno_fetch export (#7562)Ryan Dahl
2020-09-16Re-export deno_core::url (#7525)Ryan Dahl
Also re-exports deno_core::futures and deno_core::serde_json but these are not yet used in the CLI.
2020-09-16Revert "fix(cli/http_utils): accept a single key-multiple values headers ↵Bartek Iwańczuk
(#7375)" (#7515) This reverts commit f5c84920c225579af9c249bdac4a59a046ef8683.
2020-09-15cli/msg.rs -> cli/media_type.rsRyan Dahl
2020-09-15fix(cli/http_utils): accept a single key-multiple values headers (#7375)tokiedokie
2020-09-15refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)Bert Belder
2020-09-14refactor: use ParsedModule and improve MediaTypes enum (#7456)Kitson Kelly
2020-09-12Revert "feat(unstable): Support data: urls (#5157)" (#7432)Bartek Iwańczuk
This reverts commit e3319f34a6ece36eab3138eae83c8d0e18fcc07c.
2020-09-11feat(unstable): Support data: urls (#5157)Valentin Anger
2020-09-06Move JSON ops to deno_core (#7336)Bert Belder
2020-08-26refactor: remove OpError, use ErrBox everywhere (#7187)Bert Belder
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-08-19Make Rc/Arc wrapper around State/GlobalState visible (#7104)Bert Belder
2020-08-10Remove unnecessary drop calls (#7007)Ryan Dahl
2020-08-03fix(cli): add support for non-UTF8 source files (#6789)Maayan Hanin
Fixes: #5542
2020-07-23Rename cli/js2 to cli/rt (#6857)Ryan Dahl
2020-07-19Port internal TS code to JS (#6793)Bartek Iwańczuk
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
2020-06-29refactor: util functions take slices instead of heap values (#6547)Valentin Anger
2020-06-24Clean up some fetch_remote_source tets (#6446)Ryan Dahl
2020-06-19refactor(compiler): split code paths for compile and bundle (#6304)Bartek Iwańczuk
* refactor "compile" and "runtimeCompile" in "compiler.ts" and factor out separate methods for "compile" and "bundle" operations * remove noisy debug output from "compiler.ts" * provide "Serialize" implementations for enums in "msg.rs" * rename "analyze_dependencies_and_references" to "pre_process_file" and move it to "tsc.rs" * refactor ModuleGraph to use more concrete types and properly annotate locations where errors occur * remove dead code from "file_fetcher.rs" - "SourceFile.types_url" is no longer needed, as type reference parsing is done in "ModuleGraph" * remove unneeded field "source_path" from ".meta" files stored for compiled source file (towards #6080)
2020-06-18chore(test): move testing utilities to test_util crate (#6360)Bartek Iwańczuk
2020-06-15fix(cache): apply redirection limit for cached files (#6308)Bartek Iwańczuk
2020-06-13Move to allowlist and blocklist (#6282)Luca Casonato
2020-06-10fix: handle @deno-types in export {} (#6202)Bartek Iwańczuk
* fix: handle @deno-types in export {} * lint * fix tests * fmt * fix test
2020-05-31fix: media type for .cjs and application/node (#6005)Bartek Iwańczuk
2020-05-20refactor: reorganize TS compiler (#5603)Bartek Iwańczuk
2020-05-18refactor: rewrite TS dependency analysis in Rust (#5029)Bartek Iwańczuk
This commit completely overhauls how module analysis is performed in TS compiler by moving the logic to Rust. In the current setup module analysis is performed using "ts.preProcessFile" API in a special TS compiler worker running on a separate thread. "ts.preProcessFile" allowed us to build a lot of functionality in CLI including X-TypeScript-Types header support and @deno-types directive support. Unfortunately at the same time complexity of the ops required to perform supporting tasks exploded and caused some hidden permission escapes. This PR introduces "ModuleGraphLoader" which can parse source and load recursively all dependent source files; as well as declaration files. All dependencies used in TS compiler and now fetched and collected upfront in Rust before spinning up TS compiler. To achieve feature parity with existing APIs this commit includes a lot of changes: * add "ModuleGraphLoader" - can fetch local and remote sources - parses source code using SWC and extracts imports, exports, file references, special headers - this struct inherited all of the hidden complexity and cruft from TS version and requires several follow up PRs * rewrite cli/tsc.rs to perform module analysis upfront and send all required source code to TS worker in one message * remove op_resolve_modules and op_fetch_source_files from cli/ops/compiler.rs * run TS worker on the same thread
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-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-04-15remove calls to futures::executor::block_on (#4760)Bartek Iwańczuk
2020-04-03clippy (#4618)Kitson Kelly
2020-03-10Add global "quiet" flag (#4135)Florian Häglsperger
2020-03-06Add content type for wasm, fix encoding in wasm test fixture (#4269)Aurélien Bertron
2020-02-28http_cache: change .headers.json to .metadata.json (#4175)Ryan Dahl
Add original URL to metadata. This is so the VS Code Plugin can reverse look up the URL for cache entries. Ref #4069.