Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-03-03 | fix: lazily surface errors in package.json deps parsing (#17974) | David Sherret | |
Closes #17941 | |||
2023-02-24 | fix(npm): lazily install package.json dependencies only when necessary (#17931) | David Sherret | |
This lazily does an "npm install" when any package name matches what's found in the package.json or when running a script from package.json with deno task. Part of #17916 Closes #17928 | |||
2023-02-23 | fix(npm): support bare specifiers in package.json having a path (#17903) | David Sherret | |
For example `import * as test from "package/path.js"` | |||
2023-02-23 | feat(npm): support bare specifiers from package.json in more subcommands and ↵ | David Sherret | |
language server (#17891) | |||
2023-02-22 | refactor: use deno_graph for npm specifiers (#17858) | David Sherret | |
This changes npm specifiers to be handled by deno_graph and resolved to an npm package name and version when the specifier is encountered. It also slightly changes how npm specifier resolution occurs—previously it would collect all the npm specifiers and resolve them all at once, but now it resolves them on the fly as they are encountered in the module graph. https://github.com/denoland/deno_graph/pull/232 --------- Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2023-02-21 | fix(npm): improve peer dependency resolution (#17835) | David Sherret | |
This PR fixes peer dependency resolution to only resolve peers based on the current graph traversal path. Previously, it would resolve a peers by looking at a graph node's ancestors, which is not correct because graph nodes are shared by different resolutions. It also stores more information about peer dependency resolution in the lockfile. | |||
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: use deno_graph's semver and npm structs (#17791) | David Sherret | |
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-09 | refactor: deno_graph 0.43 upgrade (#17692) | David Sherret | |
2023-02-03 | fix(lsp): prevent crash analyzing module (#17642) | David Sherret | |
Closes #17640 | |||
2023-01-28 | fix(lsp): update document dependencies on configuration change (#17556) | David Sherret | |
2023-01-27 | chore: upgrade to Rust 1.67 (#17548) | David Sherret | |
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2023-01-26 | refactor(lsp): fewer clones (#17551) | Geert-Jan Zwiers | |
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-16 | refactor(cli): fewer clones (#17450) | Geert-Jan Zwiers | |
2023-01-10 | fix(npm): allow to read package.json if permissions are granted (#17209) | Bartek Iwańczuk | |
This commit changes signature of "deno_core::ModuleLoader::resolve" to pass an enum indicating whether or not we're resolving a specifier for dynamic import. Additionally "CliModuleLoader" was changes to store both "parent permissions" (or "root permissions") as well as "dynamic permissions" that allow to check for permissions in top-level module load an dynamic imports. Then all code paths that have anything to do with Node/npm compat are now checking for permissions which are passed from module loader instance associated with given worker. | |||
2023-01-02 | chore: update copyright year to 2023 (#17247) | David Sherret | |
Yearly tradition of creating extra noise in git. | |||
2022-12-20 | fix(lsp/format): language formatter used should be based on language id (#17148) | David Sherret | |
Closes #11897 | |||
2022-12-19 | perf(lsp): concurrent reads and exclusive writes (#17135) | David Sherret | |
2022-12-17 | chore: update to Rust 1.66.0 (#17078) | linbingquan | |
2022-12-13 | feat(repl): support npm packages (#16770) | Bartek Iwańczuk | |
Co-authored-by: David Sherret <dsherret@gmail.com> | |||
2022-12-05 | fix(npm): dependency types were sometimes not being resolved when package ↵ | David Sherret | |
had no types entry (#16958) Closes #16957 | |||
2022-11-30 | fix(npm): improve package.json exports support for types (#16880) | David Sherret | |
2022-11-30 | chore: remove unnecessary lifetimes (#16878) | David Sherret | |
It seems we don't really need to allow these clippy rules. | |||
2022-11-30 | fix(lsp): analyze fs dependencies of dependencies to find npm package ↵ | David Sherret | |
requirements (#16866) Closes #16867 | |||
2022-11-28 | refactor: create util folder, move nap_sym to napi/sym, move http_cache to ↵ | David Sherret | |
cache folder (#16857) | |||
2022-11-02 | refactor: Combine ImportMapResolver and JsxResolver (#16508) | Bartek Iwańczuk | |
These resolvers are used in `deno_graph` APIs. Combining them removes a lot of code and unblocks me on https://github.com/denoland/deno/pull/16157 | |||
2022-10-21 | feat(unstable/npm): initial type checking of npm specifiers (#16332) | David Sherret | |
2022-10-20 | fix(lsp): allow caching deps in non-saved files (#16353) | David Sherret | |
2022-09-07 | fix: upgrade deno_ast to 0.19 (#15808) | David Sherret | |
2022-08-24 | fix: resolve `jsxImportSource` relative to module (#15561) | Luca Casonato | |
Previously `jsxImportSource` was resolved relative to the config file during graph building, and relative to the emitted module during runtime. This is now fixed so that the JSX import source is resolved relative to the module both during graph building and at runtime. | |||
2022-08-22 | perf: cache swc dependency analysis and don't hold onto `ParsedSource`s in ↵ | David Sherret | |
memory (#15502) | |||
2022-08-10 | fix: update deno_graph to fix importing config as JSON module (#15388) | Kitson Kelly | |
Ref: denoland/deno_graph#166 | |||
2022-06-27 | refactor: create `args` folder (#14982) | David Sherret | |
2022-05-20 | refactor: upgrade to deno_ast 0.15 (#14680) | David Sherret | |
2022-05-15 | fix(lsp): correct positions in some scenarios (#14359) | David Sherret | |
2022-04-03 | refactor(lsp): migrate from lspower back to tower-lsp (#14163) | Jason | |
2022-04-01 | chore(tests): use custom temp dir creation for the tests (#14153) | David Sherret | |
2022-03-23 | chore: remove all `pub(crate)`s from the cli crate (#14083) | David Sherret | |
2022-03-03 | chore(lsp): log more for "unexpected positions" lsp error (#13815) | David Sherret | |
Ref #13657 | |||
2022-02-24 | chore: upgrade to Rust 1.59 (#13767) | David Sherret | |
2022-02-24 | refactor: remove dead code from lsp (#13743) | Kitson Kelly | |
2022-02-02 | fix(lsp): properly display x-deno-warning with redirects (#13554) | Kitson Kelly | |
Fixes: #13472 | |||
2022-02-01 | refactor: integrate deno_graph breaking changes (#13495) | Kitson Kelly | |
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2022-01-25 | refactor(lsp): Documents - combine duplicate exists methods (#13479) | David Sherret | |
2022-01-24 | perf(lsp): improve some tsc op hot paths (#13473) | Kitson Kelly | |
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> |