Age | Commit message (Collapse) | Author | |
---|---|---|---|
2022-12-09 | fix: respect the `--quiet` flag in more cases (#16998) | David Sherret | |
2022-12-08 | fix(compile): ensure import map is used when specified in deno config file ↵ | David Sherret | |
(#16990) Closes #14246 | |||
2022-12-08 | feat(cli): support configuring the lock file in the config file (#16781) | Roj | |
This allows the user to completely opt out from the lock file or rename it without having to use `--no-lock` and/or `--lock` in all commands. ## Don’t Use Lock File ```json { "lock": false } ``` ## Use Lock File With a Different Name ```json { "lock": "deno2.lock" } ``` The CLI args `--no-lock` and `--lock` will always override what is in the config file. Co-authored-by: David Sherret <dsherret@users.noreply.github.com> | |||
2022-12-07 | feat(npm): add support for `NPM_CONFIG_REGISTRY` (#16980) | David Sherret | |
2022-12-07 | feat(repl): run "deno repl" with no permissions (#16795) | Bartek Iwańczuk | |
This commit changes "deno repl" command to run with no permissions by default and accept "--allow-*" flags. This change is dictated by the fact that currently there is no way to run REPL with limited permissions. Technically it's a breaking change in the CLI command, but there's agreement in the team that it has merit and it's a good solution. Running just "deno" command still starts the REPL with full permissions allowed, but now a banner is printed to inform users about that: | |||
2022-12-07 | feat(flags): add `deno check --all` as new preferred alias for `--remote` ↵ | David Sherret | |
(#16702) Closes #16374 | |||
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-30 | fix(repl): respect --quiet flag (#16875) | Bartek Iwańczuk | |
This commit changes REPL behavior to respect --quiet flag. Once this flag is present REPL will not print a banner at the start. | |||
2022-11-28 | refactor: create util folder, move nap_sym to napi/sym, move http_cache to ↵ | David Sherret | |
cache folder (#16857) | |||
2022-11-26 | refactor: `DenoDir` - move to cache folder and make `root_dir` private (#16823) | David Sherret | |
2022-11-25 | refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder (#16820) | David Sherret | |
2022-11-25 | refactor: move lockfile.rs to args module (#16818) | David Sherret | |
This should be in the `args` folder as it's similar to `config_file`. | |||
2022-11-24 | feat(cli): add warning for incorrectly ordered flags (#16734) | Asher Gomez | |
This code checks if permission flags are incorrectly defined after the module name (e.g. `deno run mod.ts --allow-read` instead of the correct `deno run --allow-read mod.ts`). If so, a simple warning is displayed. | |||
2022-11-18 | chore: use Rust 1.65.0 (#16688) | Aaron O'Mullan | |
2022-11-03 | fix(lock): add --no-lock flag to disable auto discovery of lock file (#16526) | Bartek Iwańczuk | |
2022-11-02 | fix(lock): autodiscovery of lockfile (#16498) | Bartek Iwańczuk | |
This commit adds autodiscovery of lockfile. This only happens if Deno discovers the configuration file (either "deno.json" or "deno.jsonc"). In such case Deno tries to load "deno.lock" file that sits next to the configuration file, or creates one for user if the lockfile doesn't exist yet. As a consequence, "--lock" and "--lock-write" flags had been updated. "--lock" no longer requires a value, if one is not provided, it defaults to "./deno.lock" resolved from the current working directory. "--lock-write" description was updated to say that it forces to overwrite a lockfile. Autodiscovery is currently not handled by the LSP. | |||
2022-10-28 | feat: support npm specifiers in `deno info` for display text output only ↵ | David Sherret | |
(#16470) | |||
2022-10-25 | feat(lint): add a report lint config setting (#16045) | Brenley Dueck | |
Builds off this PR to add a "report" setting to deno.json which can be "pretty", "compact", or "json". | |||
2022-10-22 | refactor: testable update checker code (#16386) | David Sherret | |
2022-10-20 | feat(cli): check for updates in background (#15974) | Bert Belder | |
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com> | |||
2022-10-13 | fix(cli): allow importMap to be an absolute URL within the deno config file ↵ | Mark Gibson | |
(#16234) | |||
2022-09-29 | refactor(cli): use shared sys kind parser in flags.rs (#16087) | Yoshiya Hinosawa | |
2022-09-28 | feat(lint): add --compact flag for terse output (#15926) | Brenley Dueck | |
2022-09-28 | feat: add --allow-sys permission flag (#16028) | Yoshiya Hinosawa | |
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-19 | perf(cli): avoid `canonicalize_path` if config file does not exist (#15957) | Divy Srivastava | |
2022-09-19 | perf(cli): avoid `clap::App::clone` (#15951) | Divy Srivastava | |
2022-09-19 | chore: fix clippy warnings (#15944) | Ben Noordhuis | |
Stop allowing clippy::derive-partial-eq-without-eq and fix warnings about deriving PartialEq without also deriving Eq. In one case I removed the PartialEq because it a) wasn't necessary, and b) sketchy because it was comparing floating point numbers. IMO, that's a good argument for enforcing the lint rule, because it would most likely have been caught during review if it had been enabled. | |||
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 | fix(cli): Fix panic when providing invalid urls to --reload (#15784) | Alexander Sage | |
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 | fix(init): suppress info logs when using quiet mode (#15741) | Geert-Jan Zwiers | |
2022-09-01 | fix(check): --remote and --no-remote should be mutually exclusive (#14964) | Geert-Jan Zwiers | |
2022-08-29 | fix: config file errors should not print specifier with debug formatting ↵ | David Sherret | |
(#15648) | |||
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-20 | feat: add "deno init" subcommand (#15469) | Leo Kettmeir | |
This adds an init subcommand to that creates a project starter similar to cargo init. ``` $ deno init my_project Project initialized Run these commands to get started: cd my_project deno run main.ts deno run main_test.ts $ deno run main.ts Add 2 + 3 5 $ cat main.ts export function add(a: number, b: number): number { return a + b; } if (import.meta.main) { console.log("Add 2 + 3", add(2, 3)); } $ cat main_test.ts import { assertEquals } from "https://deno.land/std@0.151.0/testing/asserts.ts"; import { add } from "./main.ts"; Deno.test(function addTest() { assertEquals(add(2, 3), 5); }); ``` Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2022-08-15 | chore(bench,test): list `.mts` under supported file extensions in cli docs ↵ | Geert-Jan Zwiers | |
(#15477) | |||
2022-08-12 | fix(coverage): ensure coverage is only collected in certain situations (#15467) | David Sherret | |
2022-08-11 | refactor(cli): consolidate most MainWorker related code to the same place ↵ | David Sherret | |
(#15459) | |||
2022-08-10 | fix(task): subcommand parser skips global args (#15297) | Cre3per | |
2022-07-26 | chore: update jsonc_parser to 0.20 (#15316) | David Sherret | |
2022-07-20 | feat(test): add `--parallel` flag, soft deprecate `--jobs` (#15259) | David Sherret | |
Co-authored-by: mrkldshv <markladyshev@gmail.com> | |||
2022-07-20 | chore(cli): Ignore "experimentalDecorators" and "moduleDetection" options ↵ | Nayeem Rahman | |
(#15202) | |||
2022-07-20 | fix(task): resolve deno configuration file first from specified `--cwd` arg ↵ | David Sherret | |
(#15257) | |||
2022-07-19 | feat: emit files on demand and fix racy emit (#15220) | David Sherret | |
2022-07-18 | feat(cli): support configuring the test tool in the config file (#15079) | Roj | |
2022-07-15 | feat(cli/test): add `DENO_JOBS` env variable for `test` subcommand (#14929) | Mark Ladyshau | |
2022-07-13 | chore(cli): remove dead code related to previous tsc emit (#15196) | Nayeem Rahman | |
2022-07-01 | refactor: extract `deno_graph::create_graph` use to common function (#15009) | David Sherret | |