summaryrefslogtreecommitdiff
path: root/cli/import_map.rs
AgeCommit message (Collapse)Author
2021-09-11refactor: use import_map crate (#11974)Bartek Iwańczuk
Removes ImportMap implementation from "cli/" and instead uses "import_map" crate
2021-09-11fix: Query string percent-encoded in import map (#11976)Bartek Iwańczuk
This commit fixes a problem in import map when resolving specifiers containing "?" or "#". Due to special handling of Windows specifiers required because of how "url" crate works, a regression was introduced that percent-encoded all parts of URL that were not considered "path segments". Co-authored-by: Andreu Botella <abb@randomunok.com>
2021-09-05fix(doc): fix rustdoc bare_urls warning (#11921)Feng Yu
2021-08-03chore: surface import map JSON parse error to user (#11573)David Sherret
2021-07-30chore: upgrade Rust to 1.54.0 (#11554)Yusuke Tanaka
2021-07-29fix: support windows file specifiers with import maps (#11551)David Sherret
2021-05-31fix(cli): Don't statically error on dynamic unmapped bare specifiers (#10618)Nayeem Rahman
Fixes #10168 Fixes #10615 Fixes #10616
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-03-01feat: Align import map to spec and test using WPT (#9616)Bartek Iwańczuk
This commit updates implementation of import maps to align it to current revision of the spec. Existing tests were removed in favor of using suite from WPT.
2021-02-17Make ModuleSpecifier a type alias, not wrapper struct (#9531)Ryan Dahl
2021-02-17feat: support loading import map from URL (#9519)Bartek Iwańczuk
This commit adds support for loading import maps from URLs, both remote and local. This feature is supported in CLI flag as well as in runtime compiler API.
2021-02-09fix(cli): import maps handles data URLs (#9437)Kitson Kelly
Fixes #9420
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2020-09-21refactor: use futures and serde_json from deno_core (#7614)Bartek Iwańczuk
2020-09-21chore: add copyright (#7593)tokiedokie
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-15refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)Bert Belder
2020-02-11update references to testing/mod.ts in manual (#3973)Bartek Iwańczuk
2020-02-08refactor: rename ThreadSafeState, use RefCell for mutable state (#3931)Bartek Iwańczuk
* rename ThreadSafeState to State * State stores InnerState wrapped in Rc and RefCell
2020-01-05Rename crates: 'deno' to 'deno_core' and 'deno_cli' to 'deno' (#3600)Ry Dahl
2019-12-23Upgrades rust to 1.40.0 (#3542)Axetroy
2019-08-15Fix import map panics, use import map's location as its base URL (#2770)Nayeem Rahman
2019-07-31Use system rustfmt instead of fixed binary (#2701)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-08core: replace ModuleSpecifier::to_url() by as_url()Bert Belder
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-06-12Move ModuleSpecifier to //core (#2509)Bartek Iwańczuk
2019-06-12Refactor module resolving (#2493)Bartek Iwańczuk
Adds ModuleSpecifier, which wraps a URL. This is now passed around instead of specifier and resolver strings.
2019-06-09feat: Import maps (#2360)Bartek Iwańczuk