Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-02-20 | feat: auto-discover package.json for npm dependencies (#17272) | Bartek Iwańczuk | |
This commits adds auto-discovery of "package.json" file when running "deno run" and "deno task" subcommands. In case of "deno run" the "package.json" is being looked up starting from the directory of the script that is being run, stopping early if "deno.json(c)" file is found (ie. FS tree won't be traversed "up" from "deno.json"). When "package.json" is discovered the "--node-modules-dir" flag is implied, leading to creation of local "node_modules/" directory - we did that, because most tools relying on "package.json" will expect "node_modules/" directory to be present (eg. Vite). Additionally "dependencies" and "devDependencies" specified in the "package.json" are downloaded on startup. This is a stepping stone to supporting bare specifier imports, but the actual integration will be done in a follow up commit. --------- Co-authored-by: David Sherret <dsherret@gmail.com> | |||
2023-02-15 | refactor: make resolver required (#17783) | David Sherret | |
Makes the resolver required and prints a warning when vendoring and a dynamic import can't be resolved. Closes #16522 | |||
2023-02-11 | fix(cli/graph_util): don't append referrer info for root module errors (#17730) | Nayeem Rahman | |
2023-02-09 | refactor: deno_graph 0.43 upgrade (#17692) | David Sherret | |
2023-02-03 | refactor: remove old cjs_esm_translations in graph_util (#17643) | David Sherret | |
This isn't used. | |||
2023-02-03 | refactor: reland "preserve ProcState::file_fetcher between restarts" (#17636) | Nayeem Rahman | |
Just some watcher init step that I thought would be "cloned over" but needs to be done again on reset. | |||
2023-01-30 | Revert "fix(watch): preserve `ProcState::file_fetcher` between restarts ↵ | Bartek Iwańczuk | |
(#15466) (#17591) This reverts commit 3545bff678f20c3fdf17fe6b26f96cf1b74f917c. | |||
2023-01-27 | fix: ensure "fs" -> "node:fs" error/quick fix works when user has import map ↵ | David Sherret | |
(#17566) Closes #17563 | |||
2023-01-27 | chore: upgrade to Rust 1.67 (#17548) | David Sherret | |
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2023-01-24 | feat: suggest adding a "node:" prefix for bare specifiers that look like ↵ | David Sherret | |
built-in Node modules (#17519) | |||
2023-01-24 | feat: support node built-in module imports (#17264) | Bartek Iwańczuk | |
Co-authored-by: David Sherret <dsherret@gmail.com> | |||
2023-01-24 | refactor(deno_graph): remove unused Resolved::Ok#kind usage (#17504) | David Sherret | |
See https://github.com/denoland/deno_graph/pull/205 for more details. | |||
2023-01-10 | fix(watch): preserve `ProcState::file_fetcher` between restarts (#15466) | Nayeem Rahman | |
This commit changes "ProcState" to store "file_fetcher" field in an "Arc", allowing it to be preserved between restarts and thus keeping the state alive between the restarts. File watchers for "deno test" and "deno bench" now reset "ProcState" between restarts. | |||
2023-01-07 | refactor(permissions): add PermissionsContainer struct for internal ↵ | Bartek Iwańczuk | |
mutability (#17134) Turns out we were cloning permissions which after prompting were discarded, so the state of permissions was never preserved. To handle that we need to store all permissions behind "Arc<Mutex<>>" (because there are situations where we need to send them to other thread). Testing and benching code still uses "Permissions" in most places - it's undesirable to share the same permission set between various test/bench files - otherwise granting or revoking permissions in one file would influence behavior of other test files. | |||
2023-01-05 | refactor(cli,core,ext,rt): remove some unnecessary `clone` or `malloc` (#17274) | Yiyu Lin | |
2023-01-05 | refactor(cli): clean up clones (#17268) | Geert-Jan Zwiers | |
2023-01-02 | chore: update copyright year to 2023 (#17247) | David Sherret | |
Yearly tradition of creating extra noise in git. | |||
2022-12-09 | fix: respect the `--quiet` flag in more cases (#16998) | David Sherret | |
2022-12-09 | refactor: cleanup main.rs (#16996) | David Sherret | |
1. Extracts out some code from main.rs 2. Inlines all the `x_command` functions in main.rs | |||
2022-12-06 | refactor: remove `deno_graph::Locker` usage (#16877) | David Sherret | |
This is just a straight refactor and doesn't make any improvements to the code that could now be made. Closes #16493 | |||
2022-11-25 | refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder (#16820) | David Sherret | |
2022-11-13 | feat(npm): require --unstable for npm specifiers in remote modules (#16612) | David Sherret | |
2022-11-11 | feat(unstable/npm): module graph derived npm specifier resolution order (#16602) | David Sherret | |
2022-11-10 | chore: update crates (#16588) | Bartek Iwańczuk | |
2022-10-03 | fix(npm): panic on invalid package name (#16123) | Bartek Iwańczuk | |
2022-09-03 | BREAKING(unstable): remove --compat mode (#15678) | Bartek Iwańczuk | |
This commit removes "compat" mode. We shipped support for "npm:" specifier support in v1.25 and that is preferred way to interact with Node code that we will iterate and improve upon. | |||
2022-08-22 | perf: cache swc dependency analysis and don't hold onto `ParsedSource`s in ↵ | David Sherret | |
memory (#15502) | |||
2022-08-20 | feat(unstable): initial support for npm specifiers (#15484) | David Sherret | |
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2022-08-11 | fix(cli): allow configurations files to also be json modules (#15444) | Nayeem Rahman | |
Closes #15440 | |||
2022-08-10 | fix: update deno_graph to fix importing config as JSON module (#15388) | Kitson Kelly | |
Ref: denoland/deno_graph#166 | |||
2022-07-19 | feat: emit files on demand and fix racy emit (#15220) | David Sherret | |
2022-07-12 | perf: use emit from swc instead of tsc (#15118) | David Sherret | |
2022-06-28 | refactor: add `RootConfig` (#14985) | David Sherret | |
2022-05-20 | refactor: upgrade to deno_ast 0.15 (#14680) | David Sherret | |
2022-04-18 | fix(cli/emit): Check JS roots with // @ts-check (#14090) | Nayeem Rahman | |
2022-03-23 | chore: remove all `pub(crate)`s from the cli crate (#14083) | David Sherret | |
2022-02-27 | feat(compat): CJS/ESM interoperability (#13553) | Bartek Iwańczuk | |
This commit adds CJS/ESM interoperability when running in --compat mode. Before executing files, they are analyzed and all CommonJS modules are transformed on the fly to a ES modules. This is done by utilizing analyze_cjs() functionality from deno_ast. After discovering exports and reexports, an ES module is rendered and saved in memory for later use. There's a caveat that all files ending with ".js" extension are considered as CommonJS modules (unless there's a related "package.json" with "type": "module"). | |||
2022-02-01 | refactor: integrate deno_graph breaking changes (#13495) | Kitson Kelly | |
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2022-01-15 | chore: upgrade to rust 1.58 (#13377) | David Sherret | |
2022-01-07 | chore: update copyright to 2022 (#13306) | Ryan Dahl | |
Co-authored-by: Erfan Safari <erfanshield@outlook.com> | |||
2021-12-22 | chore: update deno_graph and deno_doc (#13173) | Kitson Kelly | |
2021-12-16 | refactor(cli): use GraphData for check and emit (#12960) | Nayeem Rahman | |