David Sherret
0b033140c0
refactor: move CliNpmResolver
to deno_resolver::npm::NpmResolver
( #27659 )
...
As title. After this PR all npm resolution will be out of the CLI crate.
2025-01-14 10:01:05 -05:00
David Sherret
1e95c20561
refactor: deno_config 0.45 ( #27660 )
2025-01-14 13:00:31 +01:00
David Sherret
9dbb99a83c
refactor: create NpmInstaller
( #27626 )
...
This separates npm resolution code from npm installation (more work
towards moving resolution code out of the CLI and cleaning up this
code).
2025-01-13 17:35:18 -05:00
David Sherret
c27248a8f3
refactor: remove CliNpmReqResolver
trait in deno_resolver ( #27616 )
2025-01-10 14:48:43 -05:00
David Sherret
475793f94d
refactor: implement NpmPackageFolderResolver
in deno_resolver ( #27614 )
2025-01-10 00:01:47 +00:00
denobot
8bafb182ef
chore: forward v2.1.5 release commit to main ( #27613 )
...
Co-authored-by: dsherret <dsherret@users.noreply.github.com>
2025-01-09 17:38:18 -05:00
David Sherret
093f3ba565
refactor(npm): extract out some npm fs resolution code from the cli ( #27607 )
...
Moves the npm fs resolvers into the deno_resolution crate.
This does not entirely move things out, but is a step in that direction.
2025-01-09 12:10:07 -05:00
Leo Kettmeir
ea30e188a8
refactor: update deno_core for error refactor ( #26867 )
...
Closes #26171
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
2025-01-08 14:52:32 -08:00
Tatsuya Kawano
814da49dff
fix(ext/net): update moka cache to avoid potential panic in Deno.resolveDns
on some laptops with Ryzen CPU ( #27572 )
2025-01-08 16:48:23 -05:00
David Sherret
fc2788bfd7
fix(jsr): Wasm imports fail to load ( #27594 )
...
* https://github.com/denoland/deno_graph/pull/562
Closes https://github.com/denoland/deno/issues/27593
2025-01-08 19:46:15 +00:00
David Sherret
3f5cad38aa
fix(no-slow-types): handle rest param with internal assignments ( #27581 )
...
Closes #27575
2025-01-07 12:34:34 -08:00
David Sherret
89c92b84fa
fix(check): move module not found errors to typescript diagnostics ( #27533 )
...
Instead of hard erroring, we now surface module not found errors as
TypeScript diagnostics (we have yet to show the source code of the
error, but something we can improve over time).
2025-01-03 21:49:56 +00:00
David Sherret
0457c38d4f
refactor: remove use of home crate ( #27516 )
...
The two places mentioned in the issue are now consolidated.
Closes https://github.com/denoland/deno/issues/24385
2025-01-02 10:06:35 -05:00
David Sherret
225c3dea87
refactor: update some fs_util functions to use sys_traits ( #27515 )
...
This is in preparation for extracting out these functions from the CLI
crate.
A side benefit is these functions will now work in Wasm.
2025-01-02 10:06:12 -05:00
David Sherret
4638caa740
refactor: do not use deno_fs::FileSystem
everywhere ( #27508 )
...
This changes the cli to mostly use `std::fs` via `sys_traits` instead of
the implemention of `deno_fs::FileSystem`.
2024-12-31 11:29:07 -05:00
David Sherret
c391ad315e
refactor: use sys_traits ( #27480 )
2024-12-30 12:38:20 -05:00
Yoshiya Hinosawa
c45d0dadb3
fix(ext/node): add support of any length IV for aes-(128|256)-gcm ciphers ( #27476 )
2024-12-27 17:46:01 +09:00
David Sherret
ece718eb3e
perf: upgrade to deno_semver 0.7 ( #27426 )
2024-12-20 21:14:37 +00:00
Bartek Iwańczuk
c30f3450c6
perf: don't store duplicate info for ops in the snapshot ( #27430 )
...
Mostly for changes from https://github.com/denoland/deno_core/pull/1010
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-12-20 17:43:03 +00:00
snek
65b647909d
feat(unstable): Implement QUIC ( #21942 )
...
Implements a QUIC interface, loosely based on the WebTransport API (a
future change could add the WebTransport API, built on top of this one).
[quinn](https://docs.rs/quinn/latest/quinn/ ) is used for the underlying
QUIC implementation, for a few reasons:
- A cloneable "handle" api which fits quite nicely into deno resources.
- Good collaboration with the rust ecosystem, especially rustls.
- I like it.
<!--
Before submitting a PR, please read https://deno.com/manual/contributing
1. Give the PR a descriptive title.
Examples of good title:
- fix(std/http): Fix race condition in server
- docs(console): Update docstrings
- feat(doc): Handle nested reexports
Examples of bad title:
- fix #7123
- update docs
- fix bugs
2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't
run
all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench'
label.
-->
2024-12-20 13:48:48 +01:00
David Sherret
3c147d6be1
fix(publish): infer literal types in const contexts ( #27425 )
...
* https://github.com/denoland/deno_graph/pull/555
2024-12-19 18:53:33 +00:00
Marvin Hagemeister
351e79642a
fix(task): support tasks without commands ( #27191 )
...
Support running tasks that have no command and only dependencies. This
is useful for when you want to group tasks only.
2024-12-19 18:10:58 +00:00
denobot
55d345baed
chore: release ext/ crates ( #27419 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-12-19 03:39:02 +01:00
Sean McArthur
b1c685f4b7
fix(ext/fetch): retry some http/2 errors ( #27417 )
...
This brings some of the HTTP/2 retry behavior from reqwest to
`ext/fetch`. It will retry very specific HTTP/2 errors once, if the body
is able to be used again.
Closes #27332
2024-12-18 23:04:29 +01:00
snek
ae74407412
chore: upgrade libc ( #27414 )
...
need to do this for quic and they deprecated this method in libc without
actually providing an alternative so :/
2024-12-18 14:47:21 +01:00
Bartek Iwańczuk
8590aa9cee
fix(ext/node): sort list of built-in modules alphabetically ( #27410 )
2024-12-18 14:44:53 +01:00
denobot
ee9f24cdcd
chore: release "deno_*" crates ( #27402 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-12-17 17:03:58 +01:00
David Sherret
59f263409e
refactor: use capacity_builder for writing deno compile data section ( #27393 )
2024-12-16 19:20:53 -05:00
David Sherret
95928c46eb
refactor: extract out FileFetcher
to deno_cache_dir
( #27263 )
2024-12-16 23:39:40 +00:00
Divy Srivastava
f9f5a12a16
fix: upgrade deno_doc to 0.161.3 ( #27377 )
...
upgrades itoa requirement to `1.0.14`. needed for #27308
2024-12-16 10:12:07 -05:00
Divy Srivastava
50871b2aa3
fix: FastString v8_string() should error when cannot allocated ( #27375 )
...
Upgrades deno_core to 0.326.0
2024-12-16 13:51:49 +00:00
Yusuke Tanaka
369d68c848
chore: bump hyper-util to 0.1.10 ( #27330 )
...
This commit upgrades hyper-util to 0.1.10, the current latest version.
This also removes exact version specifier in hyper-util to allow library
consumers (e.g. one who wants to use `deno_fetch` as a dependency) to
decide which version to use as long as its version is 0.1.z where z >=
10.
Specifically, hyper-util 0.1.10 is required by Deno Deploy to tweak
`http2_max_header_list_size` (see [hyper-util v0.1.10
changelog](https://github.com/hyperium/hyper-util/releases/tag/v0.1.10 ))
2024-12-13 13:43:03 +01:00
denobot
9df6be8916
chore: forward v2.1.4 release commit to main ( #27329 )
...
This is the release commit being forwarded back to main for 2.1.4
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-12-11 12:47:31 +00:00
David Sherret
d99b2d6f7d
chore: reduce allocations in a few places ( #27288 )
...
Probably doesn't have much impact. I didn't measure any of these, but
reducing allocations should always be good.
2024-12-09 19:28:53 -05:00
David Sherret
da3a676d1c
fix: do not error when subpath has an @ symbol ( #27290 )
...
Closes https://github.com/denoland/deno/issues/27243
2024-12-09 13:19:08 -08:00
David Sherret
9fe52b1e8d
fix: do not panic when fetching invalid file url on Windows ( #27259 )
...
I tried adding a test, but it's not possible due to a debug assertion in
the url crate (https://github.com/servo/rust-url/issues/505 )
Closes https://github.com/denoland/deno/issues/27258
2024-12-06 17:39:31 +00:00
denobot
2e2d3173d1
chore: forward v2.1.3 release commit to main ( #27248 )
...
This is the release commit being forwarded back to main for 2.1.3
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-12-06 02:12:57 +01:00
Bartek Iwańczuk
ab4568a03d
fix: clear dep analysis when module loading is done ( #27204 )
...
Closes https://github.com/denoland/deno/issues/26663
2024-12-05 15:48:50 +00:00
Luca Casonato
ae5c743f33
chore: update hickory dns crates ( #27137 )
2024-12-05 14:11:35 +00:00
David Sherret
f0586238fc
fix(task): kill descendants when killing task process on Windows ( #27163 )
2024-12-04 12:19:06 -05:00
David Sherret
c1dcf1b618
refactor: add deno_npm_cache crate ( #27200 )
...
Extracting out more code from the CLI for reuse elsewhere (still more
work to do, but this is a start).
This is the code for extracting npm tarballs and saving information in
the npm cache in the global deno_dir.
2024-12-03 02:10:16 +00:00
Bartek Iwańczuk
53936eda11
fix(fmt): stable formatting of HTML files with JS ( #27164 )
...
Closes https://github.com/denoland/deno/issues/26407
Closes https://github.com/denoland/deno/issues/26763
Closes https://github.com/denoland/deno/issues/26560
Closes https://github.com/denoland/deno/issues/26744
Closes https://github.com/denoland/deno/issues/27030
2024-12-03 02:04:55 +01:00
Bartek Iwańczuk
76571fd5a5
chore: upgrade deno_lint to 0.68.2 ( #27197 )
2024-12-02 21:53:00 +00:00
David Sherret
6dd2d5e49e
refactor: upgrade to deno_npm 0.26 ( #27194 )
2024-12-02 16:00:31 +00:00
Bartek Iwańczuk
1d49b3cb0f
fix: support workspace:^
and workspace:~
version constraints ( #27096 )
...
This commit adds support for understanding "workpace:^"
and "workspace:~" version constraints in npm/pnpm workspaces.
This is done by upgrading various crates to their latest versions.
Closes https://github.com/denoland/deno/issues/26726
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-11-30 00:54:26 +01:00
David Sherret
f6248601f4
fix(task): forward signals to spawned sub-processes on unix ( #27141 )
...
Closes https://github.com/denoland/deno/issues/18445
2024-11-29 17:36:43 -05:00
denobot
12aea2014a
chore: forward v2.1.2 release commit to main ( #27136 )
...
This is the release commit being forwarded back to main for 2.1.2
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-11-28 17:00:24 +00:00
Divy Srivastava
1e51b650be
perf(ext/webstorage): use object wrap for Storage
( #26931 )
...
![image](https://github.com/user-attachments/assets/3f86e2fd-9026-4965-8f3b-512423362f1e )
Depends on:
- https://github.com/denoland/deno_core/pull/970
- https://github.com/denoland/deno_core/pull/976
- https://github.com/denoland/deno_core/pull/980
- https://github.com/denoland/deno_core/pull/981
---------
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-11-27 16:11:57 +05:30
David Sherret
115a306656
fix(node): correct resolution of dynamic import of esm from cjs ( #27071 )
...
Ensures a dynamic import in a CJS file will consider the referrer as an import for node resolution.
Also adds fixes (adds) support for `"resolution-mode"` in TypeScript.
2024-11-26 14:38:24 -05:00
snek
e61cf8d7d6
refactor(unstable): move telemetry to own ext ( #27067 )
...
Move telemetry to its own ext to clean up some code and resolve circular
deps.
2024-11-26 11:22:18 +00:00