David Sherret
e47606a554
fix(lockfile): use loose deserialization for version constraints ( #25660 )
...
* https://github.com/denoland/deno_lockfile/pull/39
Closes https://github.com/denoland/deno/issues/25649
2024-09-16 15:29:21 +00:00
David Sherret
af2d992ecd
feat: TypeScript 5.6 and npm:@types/node@22
( #25614 )
2024-09-14 11:58:47 +01:00
Bartek Iwańczuk
57556ade8c
v2.0.0-rc.2 ( #25583 )
2024-09-12 03:20:45 +02:00
Luca Casonato
7bfcb4dd10
feat(cli): use NotCapable error for permission errors ( #25431 )
...
Closes #7394
---------
Co-authored-by: snek <snek@deno.com>
2024-09-10 11:12:24 -07:00
HasanAlrimawi
3f6afd1947
fix: update malva in deno to support astro css comments ( #25553 )
...
This PR addresses issue #25534
**Code Changes**
- Updated malva version to the latest in cli/Cargo.toml.
- Updated LanguageOptions to match new Malva config.
- Added test case same as the issue to assure changes success.
2024-09-10 12:54:43 +02:00
David Sherret
1e0ac609b5
BREAKING: remove deprecated files config ( #25535 )
...
The long form "files" config has been flattened into the parent.
Old:
```json
{
"test": {
"files": {
"include": ["**/*.ts"],
"exclude": ["ignore.ts"]
}
}
}
```
New:
```json
{
"test": {
"include": ["**/*.ts"],
"exclude": ["ignore.ts"]
}
}
```
This was deprecated some time ago, but we're removing it now in Deno
2.0.
Closes #25415
2024-09-09 16:33:09 +00:00
Pig Fang
3daab54612
fix(fmt): fix tabs in YAML ( #25536 )
...
Fixes #25176
2024-09-09 15:45:17 +00:00
Bartek Iwańczuk
30687c786c
feat: Update no-window lint rule ( #25486 )
...
Closes https://github.com/denoland/deno/issues/25323
2024-09-07 09:35:27 +00:00
Nathan Whitaker
51f5f5789b
feat(add): Add npm packages to package.json if present ( #25477 )
...
Closes https://github.com/denoland/deno/issues/25321
Ended up being a larger refactoring, since we're now juggling
(potentially) two config files in the same `add`, instead of choosing
one. I don't love the shape of the code, but I think it's good enough
Some smaller side improvements:
- `deno remove` supports `jsonc`
- `deno install --dev` will be a really simple change
- if `deno remove` removes the last import/dependency in the
`imports`/`dependencies`/`devDependencies` field, it removes the field
instead of leaving an empty object
2024-09-06 17:18:13 +00:00
Bartek Iwańczuk
6919f33216
2.0.0-rc.1 ( #25467 )
2024-09-05 18:34:42 +02:00
David Sherret
c678550a17
BREAKING: remove "emit" and "map" from deno info output ( #25468 )
...
The map field has been empty for years now and we don't want the emit
file to be exposed so it allows us to iterate on making the cache
faster. Additionally, it's racy/unreliable to rely on this information.
Instead, people should emit the TS files themselves using tools like
deno_emit, typescript, esbuild, etc.
Closes https://github.com/denoland/deno/issues/17703
2024-09-05 14:22:13 +00:00
David Sherret
15fce5b290
feat(check): turn on useUnknownInCatchVariables ( #25465 )
...
Part of #25162
Closes #11826
2024-09-05 15:22:31 +02:00
denobot
e27a19c02c
chore: forward v1.46.3 release commit to main ( #25425 )
...
This is the release commit being forwarded back to main for 1.46.3
2024-09-04 17:16:24 +00:00
David Sherret
07ad47da53
BREAKING(config): make supported compilerOptions an allow list ( #25432 )
...
Deno has been using a deny list, which doesn't make sense because a lot
of these options don't even work.
Closes #25363
2024-09-04 17:39:30 +02:00
Luca Casonato
13911eb8ef
chore(cli): remove deno_emit dependency ( #25427 )
2024-09-04 13:43:32 +00:00
dependabot[bot]
1ec911f173
build(deps): bump quinn-proto from 0.11.3 to 0.11.8 ( #25400 )
2024-09-04 09:20:46 +02:00
Leo Kettmeir
9a36b6fb04
fix(flags): require global flag for permission flags in install subcommand ( #25391 )
...
Also rewrites some of the subcommands help text
Closes https://github.com/denoland/deno/issues/25362
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-09-03 12:40:50 -07:00
Bartek Iwańczuk
b9da6d0d00
v2.0.0-rc.0 ( #25316 )
...
Not strictly necessary, but bumping for good measure :))
2024-08-31 00:00:21 +02:00
David Sherret
f891e73bbf
refactor: remove DENO_FUTURE ( #25314 )
2024-08-30 21:58:24 +00:00
David Sherret
4a5642779e
fix: upgrade deno_ast 0.42 ( #25313 )
2024-08-30 17:12:13 -04:00
Nathan Whitaker
86d5b919d8
feat(config): Node modules option for 2.0 ( #25299 )
2024-08-29 15:57:43 -07:00
denobot
0fb8df6c0c
chore: forward v1.46.2 release commit to main ( #25296 )
...
This is the release commit being forwarded back to main for 1.46.2
2024-08-29 22:13:28 +02:00
Arnau Orriols
a4707f7f3a
chore: upgrade rusqlite ( #25289 )
2024-08-29 11:39:25 +02:00
Leo Kettmeir
055cdd00f7
fix: update deno_doc ( #25290 )
2024-08-29 02:34:43 -07:00
snek
01eb017ed4
fix: upgrade deno_core to 0.307.0 ( #25287 )
...
- fix for https://github.com/denoland/deno/issues/25160
- changes needed to land https://github.com/denoland/deno/pull/25140
2024-08-29 01:17:26 +00:00
David Sherret
3afa3db4d3
fix: delete old Deno 1.x headers file when loading cache ( #25283 )
2024-08-28 23:47:15 +00:00
David Sherret
b708a13eb0
feat: improve lockfile v4 to store normalized version constraints and be more terse ( #25247 )
...
Stores normalized version constraints in the lockfile, which will
improve reproducibility and will fix a bug with duplicate specifiers
ending up in the lockfile. Also, gets rid of some duplicate data in the
specifiers area of the lockfile.
2024-08-28 14:17:47 -04:00
Divy Srivastava
553bd7dec3
fix(ext/node): import EC JWK keys ( #25266 )
2024-08-28 19:54:49 +05:30
Divy Srivastava
3394c4df75
fix(ext/node): update aead-gcm-stream to 0.3 ( #25261 )
...
Fixes https://github.com/denoland/deno/issues/25260
Fixes https://github.com/denoland/deno/issues/25254
Fixes https://github.com/denoland/deno/issues/23693
Verified that `web-push` GCM decryption works in the browser. See
`aead-gcm-stream` changes
[here](a9ffd0c07c
)
2024-08-28 18:34:18 +05:30
David Sherret
c89a20b428
perf(cache): single cache file for remote modules ( #24983 )
...
This changes the global cache to store the cache file for remote modules
in one file instead of two.
2024-08-26 23:59:17 +00:00
David Sherret
e13230226f
feat: lockfile v4 by default ( #25165 )
...
This won't be fully stabilized until 2.0 is released.
2024-08-26 23:01:50 +00:00
David Sherret
631d931973
fix(fmt/markdown): fix regression with multi-line footnotes and inline math ( #25222 )
...
What happened in this specific case was the parser used to actually
treat these as code block. Now it treats it as a multi-paragraph
footnote and that caused the issue
- https://github.com/dprint/dprint-plugin-markdown/pull/121/files
2024-08-26 18:36:24 +00:00
Nayeem Rahman
2ab4afc6b8
refactor(lsp): changes for lsp_types 0.97.0 ( #25169 )
2024-08-24 01:21:21 +01:00
Yusuke Tanaka
d54d29662f
chore: enable log
feature for tracing crate ( #25078 )
...
This commit enables the `log` feature for the `tracing` crate.
This allows us to examine additional detailed logs emitted by third party crates
that use `tracing` crate for logging by setting `RUST_LOG` env var or passing
`-L` option in command line.
Closes #25045
2024-08-22 19:15:10 -07:00
David Sherret
641b52bac7
chore(build): deno_kv - remove dep on deno_node ( #25158 )
...
This will help with build perf a bit.
2024-08-22 14:45:20 -04:00
denobot
716ae4d8cb
chore: forward v1.46.1 release commit to main ( #25155 )
2024-08-22 10:44:53 -07:00
denobot
3314a0ceb8
1.46.0 ( #25139 )
...
Bumped versions for 1.46.0
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-08-22 02:16:45 +02:00
David Sherret
32a579d418
fix(fmt/markdown): metadata header sometimes missing trailing blank line ( #25141 )
...
* https://github.com/dprint/dprint-plugin-markdown/pull/119
2024-08-22 02:16:00 +02:00
Bartek Iwańczuk
777e7eaa81
feat: Upgrade V8 to 12.9 ( #25138 )
2024-08-21 22:33:21 +00:00
Nayeem Rahman
c22ff197db
fix(lsp): resolve jsx import source with types mode ( #25064 )
2024-08-21 20:00:23 +01:00
Leo Kettmeir
7139337083
feat(flags): improve help output and make deno run
list tasks ( #25108 )
...
- rewrite flag help
- use gray for indentation
- reorganize permission flags and split them up
- make help subcommand act like help flag
- `deno run` outputs list of tasks
- Fixes #25120
error handling for `deno run` in case of no config file being found
needs to be improved
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-08-21 06:54:59 -07:00
Nathan Whitaker
dd8a9c509f
fix: Don't panic if fail to handle JS stack frame ( #25122 )
2024-08-20 22:47:20 +00:00
David Sherret
f2668b3a0d
fix: deserialize lockfile v3 straight ( #25121 )
...
v4 is a somewhat lossy format and so we can't actually work with v3 by
upgrading to v4 and then downgrading.
2024-08-20 22:36:53 +00:00
Bartek Iwańczuk
7bfb93135d
chore(release): Release Deno v1.46.0-rc.3 ( #25112 )
2024-08-20 21:02:26 +02:00
Yazan AbdAl-Rahman
a7c8bb1596
feat: glob and directory support for deno check
and deno cache
cli arg paths ( #25001 )
...
Closes #24668
Closes #20813
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-08-20 18:38:06 +00:00
Bartek Iwańczuk
1f47248143
fix: adjust suggestion for lockfile regeneration ( #25107 )
...
Ref https://github.com/denoland/deno/pull/24436#issuecomment-2288568645
2024-08-20 20:13:17 +02:00
David Sherret
f1c58ec041
feat(unstable): ability to use a local copy of jsr packages ( #25068 )
2024-08-20 14:11:43 +00:00
Yazan AbdAl-Rahman
4f49f703c1
fix(cli): update permission prompt message for compiled binaries ( #24081 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-08-20 01:20:06 +00:00
Bartek Iwańczuk
1c4db2aca9
chore(release): Release Deno v1.46.0-rc.2 ( #25101 )
2024-08-19 21:13:04 +00:00
David Sherret
c9edb15f15
fix(compile): make output more deterministic ( #25092 )
...
Closes https://github.com/denoland/deno/issues/25084
2024-08-19 16:41:11 +00:00