Age | Commit message (Collapse) | Author | |
---|---|---|---|
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-11-01 | fix(lock): Additive lock file (#16500) | Bartek Iwańczuk | |
This commit changes lockfile to be "additive" - ie. integrity check only fails if file/package is already specified in the lockfile, but its integrity doesn't match. If file/package is not present in the lockfile, it will be added to the lockfile and the lockfile will be written to disk. | |||
2022-10-31 | chore: remove stale comments (#16491) | Bartek Iwańczuk | |
Just a drive-by, noticed some stale comments that haven't been removed earlier. | |||
2022-10-28 | refactor(npm): reorganize initialization of compat layer (#16471) | Bartek Iwańczuk | |
Ensures that "std/node" graph is analyzed only once. | |||
2022-10-25 | fix(npm): add support for npm packages in lock files (#15938) | Bartek Iwańczuk | |
This commit adds support for npm packages in the lock file. | |||
2022-10-25 | fix: upgrade swc_ecma_parser to 0.122.19 - deno_ast 0.20 (#16406) | David Sherret | |
2022-10-24 | fix(cli): Fixed bug where the progress bar did not clear (#16401) | nasa | |
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-10-04 | refactor: remove old Node compat code (#16142) | Bartek Iwańczuk | |
This code was introduced in 808f797633ba82c0e9198481ddd742284a03cb9c and was needed for "compat mode". Since "compat mode" was removed in v1.26, this code is no longer needed. | |||
2022-10-01 | perf: node cjs & esm analysis cache (#16097) | David Sherret | |
This commit adds a cache for CJS and ESM analysis that is backed by an SQLite file. The connection to the DB is lazily created on first use, so shouldn't have impact on the startup time. Benched with running Vite Deno v1.26: ``` $ deno task dev Warning deno task is unstable and may drastically change in the future Task dev deno run -A --unstable --node-modules-dir npm:vite VITE v3.1.4 ready in 961 ms ➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ``` This branch: ``` ../deno/target/release/deno task dev Warning deno task is unstable and may drastically change in the future Task dev deno run -A --unstable --node-modules-dir npm:vite VITE v3.1.4 ready in 330 ms ➜ Local: http://localhost:5173/ ➜ Network: use --host to expose ``` Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2022-09-22 | feat(npm): add flag for creating and resolving npm packages to a local ↵ | David Sherret | |
node_modules folder (#15971) | |||
2022-09-22 | feat(npm): add support for --reload=npm: and --reload=npm:<package> (#15972) | Bartek Iwańczuk | |
2022-09-13 | refactor(npm): create general use `NpmPackageResolver` (#15882) | David Sherret | |
2022-09-09 | feat: download progress bar (#15814) | Bartek Iwańczuk | |
2022-09-07 | fix: upgrade deno_ast to 0.19 (#15808) | David Sherret | |
2022-09-07 | feat: add --no-npm flag to disable npm: imports (#15673) | Bartek Iwańczuk | |
This commit adds "--no-npm" flag, it's similar to "--no-remote" flag. This flag makes Deno error out if "npm:" specifier is encountered. | |||
2022-09-06 | refactor(npm): reorganize remapping built-in Node modules to remote URLs ↵ | Bartek Iwańczuk | |
(#15755) Changes how built-in Node modules are mapped to polyfills from "deno_std". Instead of intertwining this logic into Node resolution logic, we map them to "NodeResolution::BuiltIn" which are remapped to "deno_std" URLs in ProcState. | |||
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-09-02 | refactor: extract out check code from emit (#15729) | David Sherret | |
Closes #15535 | |||
2022-09-01 | fix(npm): ignore npm cache directory creation errors (#15728) | David Sherret | |
2022-09-01 | fix(npm): ignore the unstable error in the lsp (#15727) | David Sherret | |
2022-08-29 | refactor(cli): Remove cli/node dependency on cli/compat (#15654) | Bartek Iwańczuk | |
2022-08-24 | fix(npm): always require --unstable flag even for esm (#15583) | 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-23 | feat: binary npm commands (#15542) | David Sherret | |
2022-08-23 | fix(cache): do not attempt to emit non-emitable files (#15562) | David Sherret | |
2022-08-22 | perf: cache swc dependency analysis and don't hold onto `ParsedSource`s in ↵ | David Sherret | |
memory (#15502) | |||
2022-08-22 | feat(unstable): Respect --cached-only flags for npm: specifiers (#15512) | Bartek Iwańczuk | |
This commit changes "npm:" specifier handling to respect "--cached-only" flags and adds "Download" messages for npm registry api calls. Co-authored-by: David Sherret <dsherret@gmail.com> | |||
2022-08-20 | feat(unstable): initial support for npm specifiers (#15484) | David Sherret | |
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2022-08-12 | fix(coverage): ensure coverage is only collected in certain situations (#15467) | David Sherret | |
2022-07-19 | feat: emit files on demand and fix racy emit (#15220) | David Sherret | |
2022-07-15 | refactor: remove redundant qualification of symbols in Rust (#15201) | orvit | |
2022-07-13 | chore(cli): remove dead code related to previous tsc emit (#15196) | Nayeem Rahman | |
2022-07-12 | fix: fallback to no type checking cache when db file can't be created (#15180) | David Sherret | |
2022-07-12 | perf: use emit from swc instead of tsc (#15118) | David Sherret | |
2022-07-11 | perf(cli/proc_state): Get error source lines from memory (#15031) | Nayeem Rahman | |
2022-07-01 | refactor: extract `deno_graph::create_graph` use to common function (#15009) | David Sherret | |
2022-06-29 | fix(vendor): ignore import map in output directory instead of erroring (#14998) | David Sherret | |
2022-06-29 | refactor: rename `RootConfig` to `CliOptions` (#15007) | David Sherret | |
2022-06-28 | refactor: add `RootConfig` (#14985) | David Sherret | |
2022-06-27 | refactor: create `args` folder (#14982) | David Sherret | |
2022-06-20 | refactor: add `EmitCache` trait (#14925) | David Sherret | |
2022-06-20 | fix: do not panic running .d.cts and .d.mts files (#14917) | David Sherret | |
2022-06-20 | perf(core): Cache source lookups (#14816) | Nayeem Rahman | |
Keep a cache for source maps and source lines. We sort of already had a cache argument for source map lookup functions but we just passed an empty map instead of storing it. Extended it to cache source line lookups as well and plugged it into runtime state. | |||
2022-06-14 | feat(vendor): support using an existing import map (#14836) | David Sherret | |
2022-06-08 | fix: watch dynamic imports in --watch (#14775) | Bartek Iwańczuk | |
Fix dynamic imports being watched in the watcher when using `--watch`. | |||
2022-05-20 | refactor: upgrade to deno_ast 0.15 (#14680) | David Sherret | |
2022-05-05 | refactor(core): use Box<u8> for ModuleSource.code instead of a String (#14487) | Bartek Iwańczuk | |
2022-04-15 | refactor: Move source map lookups to core (#14274) | Nayeem Rahman | |
The following transformations gradually faced by "JsError" have all been moved up front to "JsError::from_v8_exception()": - finding the first non-"deno:" source line; - moving "JsError::script_resource_name" etc. into the first error stack in case of syntax errors; - source mapping "JsError::script_resource_name" etc. when wrapping the error even though the frame locations are source mapped earlier; - removing "JsError::{script_resource_name,line_number,start_column,end_column}" entirely in favour of "js_error.frames.get(0)". We also no longer pass a js-side callback to "core/02_error.js" from cli. I avoided doing this on previous occasions because the source map lookups were in an awkward place. |