David Sherret
ade0cd5e97
fix: upgrade deno_ast related crates ( #23187 )
...
Had to revert back swc due to
https://github.com/swc-project/swc/issues/8840
Fixes:
- https://github.com/denoland/deno_lint/pull/1262
- https://github.com/denoland/deno_doc/pull/538
- https://github.com/denoland/deno_doc/pull/537
- https://github.com/denoland/deno_graph/pull/430
- https://github.com/denoland/deno_graph/pull/425
- https://github.com/denoland/deno_graph/pull/432
2024-04-11 23:00:17 +00:00
Asher Gomez
29085895c9
chore: move tools/node_compat
to tests/node_compat/runner
( #23025 )
...
The `tools/node_compat/node` submodule has been moved to
`tests/node_compat/runner/suite` and the remaining files within
`tools/node_compat` to `tests/node_compat/runner`.
Most of the changes are of the header within `tests/node_compat/test`
files. The `setup` and `test` tasks within `tests/node_comapt` execute
successfully.
Towards #22525
CC @mmastrac
2024-04-03 09:24:55 +11:00
Aapo Alasuutari
3333d67335
chore(tests): Remove vestiges of cli/tests folder ( #22712 )
2024-03-05 13:49:21 -07:00
Asher Gomez
0022c35a23
chore: move tools/wpt
to tests/wpt/runner
( #22545 )
...
Towards #22525
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-03-05 00:41:16 +00:00
David Sherret
22cd8ebf1f
perf(fmt): reduce memory usage and improve performance ( #22570 )
...
Reduces memory usage of the fmt command and fixes a memory leak.
Also improves slightly improves performance.
2024-02-23 16:11:45 -05:00
David Sherret
190776f30d
perf: linter lsp memory leak fix and deno_graph executor ( #22519 )
...
Updates dependent crates which includes an investigation fix by @irbull
in Deno's LSP when linting code. Huge thanks to Ian for tracking down
this issue.
Also includes Divy's deno_graph executor change, which reduces memory
usage when loading jsr specifiers and makes them faster.
Co-authored-by: irbull <irbull@users.noreply.github.com>
Co-authored-by: littledivy <littledivy@users.noreply.github.com>
2024-02-21 21:58:37 +00:00
David Sherret
e06934fe77
fix(fmt): remove debug output when formatting dynamic imports ( #22433 )
...
deno fmt sometimes had stuff like:
```
NODE: Evaluation
```
...in the output.
2024-02-16 14:19:24 +00:00
Asher Gomez
5596de8081
chore: move test_util/wpt
to tests/wpt/suite
( #22412 )
...
As discussed with @mmastrac. I'll move `tools/wpt` to `tests/wpt` in a
follow-up PR.
---------
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-02-16 03:32:28 +00:00
Asher Gomez
6be389ce29
chore: move test_util/std
to tests/util/std
( #22402 )
...
Note: tests are not the only part of the codebase that uses `std`. Other
parts, like `tools/`, do too. So, it could be argued that this is a
little misleading. Either way, I'm doing this as discussed with
@mmastrac.
2024-02-13 09:22:49 -07:00
Matt Mastracci
f60720090c
chore: move test_ffi and test_nap to tests/ [WIP] ( #22394 )
...
Moving some additional NAPI and. FFI tests out of the tree root.
2024-02-12 13:46:50 -07:00
Matt Mastracci
f5e46c9bf2
chore: move cli/tests/ -> tests/ ( #22369 )
...
This looks like a massive PR, but it's only a move from cli/tests ->
tests, and updates of relative paths for files.
This is the first step towards aggregate all of the integration test
files under tests/, which will lead to a set of integration tests that
can run without the CLI binary being built.
While we could leave these tests under `cli`, it would require us to
keep a more complex directory structure for the various test runners. In
addition, we have a lot of complexity to ignore various test files in
the `cli` project itself (cargo publish exclusion rules, autotests =
false, etc).
And finally, the `tests/` folder will eventually house the `test_ffi`,
`test_napi` and other testing code, reducing the size of the root repo
directory.
For easier review, the extremely large and noisy "move" is in the first
commit (with no changes -- just a move), while the remainder of the
changes to actual files is in the second commit.
2024-02-10 20:22:13 +00:00
David Sherret
e5e2c45998
fix: upgrade to deno_ast 0.33 ( #22341 )
...
* Uses diagnostics from deno_ast
* Real fix for https://github.com/denoland/deno/pull/22310
* Moves `deno lint --json` code here
* Upgrades swc
Closes #22117
Closes #22109
Closes #21927
Closes #20993
2024-02-09 01:40:26 +00:00
David Sherret
4d8cf02500
chore: upgrade dprint-plugin-toml to 0.6.0 ( #22108 )
2024-01-25 12:31:21 -05:00
Bartek Iwańczuk
69959aa01f
fix: update deno_lint and swc ( #21718 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-01-09 23:20:52 +00:00
David Sherret
d8e8497eb3
fix(fmt): remove trailing comma for single type param in default export in jsx ( #21425 )
2023-12-01 14:50:38 -05:00
David Sherret
e52033f0f7
fix(fmt/jupyter): handle "source" property that's a string ( #21361 )
...
It was corrupting the file.
2023-11-27 23:15:50 +00:00
scarf
2b7e145e56
feat(fmt): support formatting code blocks in Jupyter notebooks ( #21310 )
2023-11-27 10:32:12 -05:00
David Sherret
c99de0493a
chore: bump jsonc-parser and dprint-core dependencies ( #21330 )
...
This is to reduce duplicate dependencies for
https://github.com/denoland/deno/pull/21310
2023-11-24 12:54:58 -05:00
David Sherret
0f2cbcf6a9
fix(fmt): maintain parens for jsx in member expr ( #21280 )
...
Fix in
0b44991bb9
Closes https://github.com/denoland/deno/issues/21279
2023-11-20 23:38:06 +00:00
David Sherret
59a5fe530f
refactor: upgrade to deno_ast 0.31 and deno_graph 0.59 ( #20965 )
2023-10-24 21:43:19 +00:00
David Sherret
8f065a60e7
fix: improved using declaration support ( #20959 )
...
Upgrades to deno_ast 0.30.
2023-10-24 09:37:02 -04:00
David Sherret
93e07fa118
fix: upgrade dprint-plugin-markdown 0.16.2 and typescript 0.88.1 ( #20879 )
...
Markdown:
* fix: hard break in list was incorrectly being converted to soft with
hard break
6678390b27
TypeScript:
* fix: multi-line string indent was broken in some cases
(https://github.com/dprint/dprint-plugin-typescript/pull/566 )
* feat: add parens around unary expressions in in/instanceof
(https://github.com/dprint/dprint-plugin-typescript/pull/564 )
2023-10-11 05:48:03 +00:00
David Sherret
1b7d5937d9
fix(fmt/markdown): improve ignore comment handling ( #20421 )
...
Two bug fixes:
* https://github.com/dprint/dprint-plugin-markdown/pull/85
* https://github.com/dprint/dprint-plugin-markdown/pull/84
2023-09-08 16:38:42 +00:00
David Sherret
3fc19dab47
feat: support import attributes ( #20342 )
2023-09-07 09:09:16 -04:00
David Sherret
ebfead1021
fix(fmt/markdown): ignore trailing words in code block info string for language detection ( #20310 )
2023-08-28 12:28:06 +00:00
David Sherret
a037ed77a2
fix(fmt): do not insert expr stmt leading semi-colon in do while stmt body ( #20093 )
...
This is for when semiColons: false
Closes #20089
2023-08-08 09:15:19 -04:00
David Sherret
6b74a6f0b6
chore: upgrade dprint-plugin-exec to 0.4.3 ( #20001 )
2023-07-31 17:09:13 +00:00
David Sherret
dfd8b54938
chore: upgrade to dprint 0.40 internally ( #19998 )
2023-07-31 17:10:10 +02:00
David Sherret
f3095b8d31
chore: upgrade to dprint 0.39 ( #19768 )
2023-07-08 18:34:08 +00:00
David Sherret
8829a1d362
fix: upgrade to deno_ast 0.27 ( #19375 )
...
Closes #19148
2023-06-05 19:03:39 -04:00
Bartek Iwańczuk
5874fc3d0a
feat: add support for globs in the config file and CLI arguments for files ( #19102 )
...
Follow up to https://github.com/denoland/deno/pull/19084 .
This commit adds support for globs in the configuration file as well
as CLI arguments for files.
With this change users can now use glob syntax for "include" and
"exclude" fields, like so:
```json
{
"lint": {
"include": [
"directory/test*.ts",
"other_dir/"
],
"exclude": [
"other_dir/foo*.ts",
"nested/nested2/*"
]
},
"test": {
"include": [
"data/test*.ts",
"nested/",
"tests/test[1-9].ts"
],
"exclude": [
"nested/foo?.ts",
"nested/nested2/*"
]
}
}
```
Or in CLI args like so:
```
// notice quotes here; these values will be passed to Deno verbatim
// and deno will perform glob expansion
$ deno fmt --ignore="data/*.ts"
$ deno lint "data/**/*.ts"
```
Closes https://github.com/denoland/deno/issues/17971
Closes https://github.com/denoland/deno/issues/6365
2023-05-23 03:39:59 +02:00
Yoshiya Hinosawa
0ccfccdcd2
chore: check node_compat config diff in CI ( #19119 )
2023-05-15 21:22:53 +09:00
David Sherret
723d4b0382
perf(fmt): faster formatting for minified object literals ( #19050 )
...
Has fix for
https://github.com/dprint/dprint-plugin-typescript/issues/520
2023-05-09 00:53:58 +02:00
Divy Srivastava
89160e7cd8
chore(ext/websocket): readd autobahn|testsuite fuzzingclient ( #18903 )
...
This reverts commit
17d1c7e444
.
The `Deno.serve` signature update in
https://github.com/denoland/deno/pull/18759 broke the testee server
right after this patch landed on `main`.
2023-05-01 14:37:32 +02:00
David Sherret
96e214d9d0
fix(fmt/json): support formatting number with exponent and no sign ( #18894 )
...
Numbers with an exponent and no sign (ex. `1e1`) would fail to parse.
2023-04-30 10:03:39 -04:00
Bartek Iwańczuk
17d1c7e444
Revert "chore(ext/websocket): Add autobahn|testsuite fuzzingclient (#… ( #18856 )
...
…18846)"
This reverts commit 036778c2e8
.
Keeps failing on `main` branch.
2023-04-26 15:48:23 +00:00
Divy Srivastava
036778c2e8
chore(ext/websocket): Add autobahn|testsuite fuzzingclient ( #18846 )
...
Closes #17242
2023-04-26 17:55:48 +05:30
Cre3per
fd0658fb42
feat(cli): --ext parameter for run, compile, and bundle ( #17172 )
...
Adds `--ext` to `deno run`, closes #5088
Additionally
- Adds `--ext` to `deno compile` and `deno bundle`
2023-03-22 10:15:53 -04:00
Bartek Iwańczuk
7e61e8f0e0
chore: update formatting configuration ( #18331 )
2023-03-21 17:01:53 -04:00
Yoshiya Hinosawa
aa729a42b4
chore(tools): restore node compat test setup script ( #18290 )
2023-03-21 22:38:07 +09:00
Yoshiya Hinosawa
6915a9b7a7
test(ext/node): more node compat tests ( #17827 )
...
This PR adds the remaining ~650 Node.js compat test cases from std/node.
Among these 650 cases, about 130 cases are now failing. These failing
cases are prefixed with `TODO:` in `tests/node_compat/config.json`.
These will be addressed in later PRs.
2023-02-20 16:35:04 +01:00
David Sherret
1803df7d3a
fix(fmt): semiColons: false - handle prop with following generator and do while with no block body ( #17567 )
...
Closes #17559
2023-01-28 10:06:37 -05:00
Divy Srivastava
d5634164cb
chore: use rustfmt imports_granularity option ( #17421 )
...
Closes https://github.com/denoland/deno/issues/2699
Closes https://github.com/denoland/deno/issues/2347
Uses unstable rustfmt features. Since dprint invokes `rustfmt` we do not
need to switch the cargo toolchain to nightly. Do we care about
formatting stability of our codebase across Rust versions? (I don't)
2023-01-14 23:18:58 -05:00
David Sherret
8c3c02354d
fix(fmt): better handling of link reference definitions when formatting markdown ( #17352 )
...
Two fixes:
- https://github.com/dprint/dprint-plugin-markdown/pull/75
- https://github.com/dprint/dprint-plugin-markdown/pull/73
2023-01-11 18:35:45 +00:00
David Sherret
0ee64ad847
fix: upgrade deno_ast to 0.23 ( #17269 )
...
Closes #17172
Closes #15669
Closes #8529
2023-01-04 18:54:54 -05:00
David Sherret
392cca87a8
fix(fmt): panic in yaml header with multi-byte characters ( #17042 )
...
Closes #17010
2022-12-13 23:36:02 +00:00
David Sherret
dac30af151
feat(fmt): improve width calculation ( #16982 )
...
Formats code according to Unicode Standard Annex #11 rules
(https://crates.io/crates/unicode-width ).
This aligns `deno fmt` more with prettier.
2022-12-07 17:32:24 -05:00
David Sherret
dcb4ffb93a
refactor: move dts files, diagnostics.rs, and tsc.rs to tsc folder ( #16820 )
2022-11-25 18:29:48 -05:00
David Sherret
f2330fcd9b
fix(fmt/markdown): scenario where whitespace was being incorrectly stripped in inline links ( #16769 )
...
https://github.com/dprint/dprint-plugin-markdown/pull/69
Closes #16730
2022-11-23 12:44:57 -05:00
David Sherret
e203bd9c5a
fix: upgrade swc_ecma_parser to 0.122.19 - deno_ast 0.20 ( #16406 )
2022-10-25 11:55:57 -04:00