Nayeem Rahman
1e9e24f1f2
scoped jsx import source config
2025-01-20 18:33:17 +00:00
Nayeem Rahman
9d9a88f7c3
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2025-01-20 05:13:32 +00:00
David Sherret
9aa02769c8
perf(compile): remove swc from denort ( #27721 )
...
This is achieved by storing CJS export analysis ahead of time in the
executable, which should also improve the performance of `denort` by
this never being done anymore (I'm too lazy atm to bench this, but it
will be significant for some programs).
2025-01-19 14:23:07 -05:00
Nayeem Rahman
8d5fb5afca
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2025-01-18 06:01:12 +00:00
David Sherret
57dd66ec3d
refactor: move denort to separate crate ( #27688 )
...
This slightly degrades the performance of CJS export analysis on
subsequent runs because I changed it to no longer cache in the DENO_DIR
with this PR (denort now properly has no idea about the DENO_DIR). We'll
have to change it to embed this data in the binary and that will also
allow us to get rid of swc in denort (will do that in a follow-up PR).
2025-01-17 20:39:29 +00:00
Leo Kettmeir
054075730c
refactor: update deno_core and use more concrete errors ( #27620 )
...
waiting for https://github.com/denoland/deno_core/pull/1043
Fixes #27672
2025-01-17 09:41:52 -08:00
Bartek Iwańczuk
0050857f51
refactor: add 'deno_process' crate ( #27680 )
...
Untangled the whole `runtime/ops/process.rs` from `ext/node/` and moved
to a separate `ext/process` crate.
2025-01-17 13:30:14 +01:00
denobot
94dc5b16f5
chore: forward v2.1.6 release commit to main ( #27705 )
...
This is the release commit being forwarded back to main for 2.1.6
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2025-01-17 02:09:13 +01:00
Nayeem Rahman
8719cb7a57
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2025-01-15 22:50:05 +00:00
David Sherret
05dc69932d
refactor: create deno_lib crate ( #27673 )
...
Shifts just some code down for now. I'll do the rest of the refactor in
the next pr, but didn't want to drop a huge refactor.
2025-01-15 09:35:46 -05:00
Nayeem Rahman
6128282d6e
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2025-01-15 02:53:07 +00:00
Bartek Iwańczuk
974e2f44b2
refactor: add 'deno_os' crate ( #27655 )
...
This commit creates "deno_os" extension crate and moves
numerous ops from "runtime/" crate to the new crate.
2025-01-14 17:29:36 +01:00
David Sherret
1e95c20561
refactor: deno_config 0.45 ( #27660 )
2025-01-14 13:00:31 +01:00
Nayeem Rahman
5a1bb6b854
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2025-01-14 03:16:38 +00: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
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
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
Nayeem Rahman
b0cbae7486
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2025-01-07 17:35:47 +00:00
Bartek Iwańczuk
b7fb5a5547
Revert "perf: build denort with panic = "abort" for releases ( #27507 )" ( #27573 )
...
Also reverts #27518
The reason is that it takes too long to build these two
binaries on Mac ARM runners as it stands.
We're gonna try to reland this next week, after sorting out
situation with these runners.
2025-01-07 02:32:51 +00:00
Nayeem Rahman
f61286bf4b
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2025-01-06 13:26:51 +00: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
Nayeem Rahman
60de9fa6b1
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2025-01-01 09:58:24 +00:00
Nathan Whitaker
2965413374
perf: build denort with panic = "abort"
for releases ( #27507 )
...
This PR changes CI to build denort with a separate, new build profile
`release-slim` that disables unwinding and strips symbols. This reduces
the size of denort by about 10%
current denort:
```
FILE SIZE VM SIZE
-------------- --------------
58.1% 39.3Mi 57.9% 39.3Mi __TEXT,__text
31.5% 21.3Mi 31.4% 21.3Mi __TEXT,__const
2.5% 1.68Mi 2.5% 1.68Mi __DATA_CONST,__const
2.4% 1.62Mi 2.4% 1.62Mi __TEXT,__eh_frame
2.4% 1.60Mi 2.4% 1.60Mi __TEXT,__gcc_except_tab
0.9% 610Ki 0.9% 610Ki __TEXT,__cstring
0.8% 536Ki 0.8% 536Ki Code Signature
0.7% 507Ki 0.7% 507Ki __TEXT,__unwind_info
0.3% 207Ki 0.3% 207Ki Function Start Addresses
0.2% 165Ki 0.2% 165Ki __DATA,__data
0.0% 0 0.2% 153Ki __DATA,__bss
0.1% 51.0Ki 0.1% 51.0Ki Rebase Info
0.1% 45.3Ki 0.1% 45.3Ki __TEXT,__literals
0.0% 31.4Ki 0.1% 36.8Ki [15 Others]
0.0% 25.6Ki 0.0% 25.7Ki [__TEXT]
0.0% 19.3Ki 0.0% 20.2Ki [__DATA]
0.0% 8.11Ki 0.0% 8.11Ki Lazy Binding Info
0.0% 8 0.0% 8.08Ki [__LINKEDIT]
0.0% 6.84Ki 0.0% 6.84Ki Symbol Table
0.0% 5.55Ki 0.0% 5.55Ki String Table
0.0% 5.53Ki 0.0% 5.53Ki __TEXT,__ustring
100.0% 67.6Mi 100.0% 67.8Mi TOTAL
```
built with this PR:
```
FILE SIZE VM SIZE
-------------- --------------
59.6% 36.6Mi 59.5% 36.6Mi __TEXT,__text
34.6% 21.3Mi 34.5% 21.3Mi __TEXT,__const
2.7% 1.68Mi 2.7% 1.68Mi __DATA_CONST,__const
1.0% 610Ki 1.0% 610Ki __TEXT,__cstring
0.8% 487Ki 0.8% 487Ki Code Signature
0.3% 193Ki 0.3% 193Ki Function Start Addresses
0.3% 165Ki 0.3% 165Ki __DATA,__data
0.0% 0 0.2% 153Ki __DATA,__bss
0.2% 152Ki 0.2% 152Ki __TEXT,__unwind_info
0.1% 69.5Ki 0.1% 69.5Ki __TEXT,__eh_frame
0.1% 50.9Ki 0.1% 50.9Ki Rebase Info
0.1% 45.3Ki 0.1% 45.3Ki __TEXT,__literals
0.1% 34.1Ki 0.1% 39.5Ki [15 Others]
0.0% 19.3Ki 0.0% 20.2Ki [__DATA]
0.0% 19.6Ki 0.0% 19.7Ki [__TEXT]
0.0% 16.6Ki 0.0% 16.6Ki __TEXT,__gcc_except_tab
0.0% 8.09Ki 0.0% 8.09Ki Lazy Binding Info
0.0% 8 0.0% 7.69Ki [__LINKEDIT]
0.0% 6.83Ki 0.0% 6.83Ki Symbol Table
0.0% 5.77Ki 0.0% 5.77Ki [__DATA_CONST]
0.0% 5.53Ki 0.0% 5.53Ki __TEXT,__ustring
100.0% 61.4Mi 100.0% 61.6Mi TOTAL
```
A caveat is that this will increase release build times in CI since it
requires building twice - once with unwinding and once without
2024-12-31 11:19:00 -08:00
Kenta Moriuchi
8fb073d7b4
chore: Happy New Year 2025 ( #27509 )
2024-12-31 19:12:39 +00: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
Nayeem Rahman
03cb9732a7
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-30 18:12:34 +00:00
David Sherret
c391ad315e
refactor: use sys_traits ( #27480 )
2024-12-30 12:38:20 -05: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
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
Nayeem Rahman
1c2fb5cde1
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-19 01:47:38 +00: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
Nayeem Rahman
c7f28998d9
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-17 16:30:12 +00: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
Nayeem Rahman
f5b258cfdb
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-16 22:48:21 +00: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
Nayeem Rahman
9a6263c1ce
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-16 00:30:58 +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
Nayeem Rahman
0e2f9e7c10
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-11 13:49:55 +00: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
Nayeem Rahman
61aa023d92
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-10 01:24:22 +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