Yoshiya Hinosawa
fa9e7aab6d
feat: add --allow-sys permission flag ( #16028 )
2022-09-28 21:46:50 +09:00
Sylvain Cau
9bb3ccbab2
fix(cli/vendor): handle assert type json during vendoring ( #16059 )
2022-09-27 14:01:43 -04:00
Mathias Lafeldt
4b01ef5c23
chore: use Rust 1.64.0 ( #16035 )
2022-09-26 21:52:16 +02:00
David Sherret
0eda3fcd12
fix(compile): keep non-exe extension in output name on Windows ( #15994 )
2022-09-22 11:49:27 -04:00
David Sherret
716005a0d4
feat(npm): add flag for creating and resolving npm packages to a local node_modules folder ( #15971 )
2022-09-22 11:17:02 -04:00
Kayla Washburn
1ef96343a1
feat: allow exiting on two consecutive ctrl+c presses ( #15981 )
2022-09-22 04:42:09 -04:00
David Sherret
1464b756a4
refactor: move out test files from root testdata directory into sub directories ( #15949 )
2022-09-19 10:32:21 -04:00
Ben Noordhuis
b1b418b81a
chore: fix clippy warnings ( #15944 )
...
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-19 10:25:03 +02:00
David Sherret
a4a894fa1e
fix(doc): deno doc should parse modules if they haven't been parsed before ( #15941 )
2022-09-18 13:59:33 -04:00
David Sherret
9e6917426a
fix: upgrade deno_ast to 0.19 ( #15808 )
2022-09-07 15:06:18 -04:00
Bartek Iwańczuk
4a250b2f25
feat: add --no-npm flag to disable npm: imports ( #15673 )
...
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-07 15:33:51 +02:00
Bartek Iwańczuk
e324151520
BREAKING(unstable): remove --compat mode ( #15678 )
...
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-03 18:19:30 +02:00
Christian Dürr
63b8089bda
refactor: move JsError formatting to deno_runtime ( #15345 )
...
This takes the existing `fmt_error` module from cli and puts it as a
public module into `deno_runtime`.
2022-09-02 22:53:23 +02:00
Geert-Jan Zwiers
7d622a6643
fix(init): suppress info logs when using quiet mode ( #15741 )
2022-09-02 17:59:36 +02:00
David Sherret
387300aed0
refactor: extract out check code from emit ( #15729 )
...
Closes #15535
2022-09-02 10:54:40 -04:00
Jason
8178665bd1
fix(cli/repl): await Promise.any([])... ( #15623 )
2022-09-02 13:38:06 +02:00
David Sherret
79fe8ffff8
fix(fmt): add the file path to the panic messages when formatting is unstable ( #15693 )
2022-08-30 14:46:03 -04:00
Bartek Iwańczuk
b62ef4d37b
refactor(cli): Remove cli/node dependency on cli/compat ( #15654 )
2022-08-29 20:19:54 +02:00
cuobiezi
dbfaaddb4f
fix(cli): deno upgrade --canary
always downloaded latest version even if it was already latest ( #15639 )
...
Closes #15570
2022-08-27 13:46:38 -04:00
David Sherret
e7367044d9
feat: binary npm commands ( #15542 )
2022-08-23 10:39:19 -04:00
David Sherret
7a1a082876
perf: cache swc dependency analysis and don't hold onto ParsedSource
s in memory ( #15502 )
2022-08-22 12:14:59 -04:00
Mathias Lafeldt
e96933bc16
chore: use Rust 1.63.0 ( #15464 )
2022-08-21 19:31:14 +02:00
Leo Kettmeir
1ffbd56164
feat: add "deno init" subcommand ( #15469 )
...
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-20 01:37:05 +02:00
David Sherret
c3b04683c5
refactor(cli): consolidate most MainWorker related code to the same place ( #15459 )
2022-08-11 16:59:12 -04:00
David Sherret
d9fae38d1e
feat: add initial internal npm client and dependency resolver ( #15446 )
2022-08-10 15:23:58 -04:00
Leo Kettmeir
d0ffa0beb5
fix(permissions): ignore empty values ( #15447 )
2022-08-10 21:13:53 +02:00
sigmaSd
5b2ae25f13
feat(repl): add color to functions for syntax highlighting ( #15434 )
2022-08-10 12:39:16 -04:00
Nayeem Rahman
34328690dc
fix(test): output parallel test results independently ( #15399 )
2022-08-04 12:38:40 -04:00
David Sherret
8f102e49c1
fix(vendor): existing import map with bare specifier in remote ( #15390 )
2022-08-04 09:39:14 -04:00
David Sherret
8b03c1e6cc
fix(vendor): error on dynamic imports that fail to load instead of panicking ( #15391 )
2022-08-03 21:23:45 -04:00
Nayeem Rahman
2e2c623882
fix(test): race condition for cancelled tests ( #15233 )
2022-08-02 10:55:11 -04:00
David Sherret
ffd74cb1a1
chore: update jsonc_parser to 0.20 ( #15316 )
2022-07-26 21:24:56 -04:00
David Sherret
5f5bbd597a
fix(coverage): do not verify emit source hash for coverage ( #15260 )
2022-07-20 16:30:57 -04:00
David Sherret
0ab262b901
feat: emit files on demand and fix racy emit ( #15220 )
2022-07-19 11:58:18 -04:00
Roj
70d1ecaeaa
feat(cli): support configuring the test tool in the config file ( #15079 )
2022-07-18 15:12:19 -04:00
sigmaSd
1f04cea160
chore(repl): update rustyline to 10.0.0 ( #15232 )
2022-07-18 20:47:00 +02:00
Nayeem Rahman
22a4998e29
refactor: allocate IDs for tests ( #14729 )
2022-07-15 13:09:22 -04:00
David Sherret
0c87dd1e98
perf: use emit from swc instead of tsc ( #15118 )
2022-07-12 18:58:39 -04:00
David Sherret
82431062fa
fix(coverage): better handling of multi-byte characters ( #15159 )
2022-07-11 19:02:11 -04:00
cuobiezi
83818c914b
refactor: rename run_basic to run_local ( #15068 )
2022-07-11 19:02:23 +02:00
David Sherret
95d2f206fc
refactor: extract deno_graph::create_graph
use to common function ( #15009 )
2022-07-01 11:50:16 -04:00
Bartek Iwańczuk
b8b82c3ea4
chore: use Rust 1.62.0 ( #15028 )
2022-07-01 15:28:06 +02:00
David Sherret
e46584a75a
fix(vendor): ignore import map in output directory instead of erroring ( #14998 )
2022-06-29 20:41:48 -04:00
David Sherret
8c4420c005
refactor: rename RootConfig
to CliOptions
( #15007 )
2022-06-29 11:51:11 -04:00
David Sherret
01adbb1efb
refactor: add RootConfig
( #14985 )
2022-06-28 16:45:55 -04:00
Colin Ihrig
0f6a5c5fc2
feat(web): add beforeunload event ( #14830 )
...
This commit adds the 'beforeunload' event.
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2022-06-28 10:49:30 -04:00
David Sherret
e1c90963fb
refactor: create args
folder ( #14982 )
2022-06-27 16:54:09 -04:00
Bartek Iwańczuk
d39094913e
fix: don't error if Deno.bench() or Deno.test() are used in run subcommand ( #14946 )
2022-06-24 12:00:53 +02:00
Bartek Iwańczuk
1e3713c3bc
fix(fmt): ignore node_modules directory ( #14943 )
2022-06-23 01:17:49 +02:00
sigmaSd
efaa149819
fix(repl): use spaces for tab handler on windows ( #14931 )
...
There is a bug in rustyline with tabs on Windows, so we insert spaces for now.
2022-06-22 10:28:28 -04:00