Commit graph

13524 commits

Author SHA1 Message Date
Luca Casonato
310de6e250
refactor: clean up telemetry span ops 2025-05-04 12:33:18 +00:00
Lach
ec8e683de9
fix(otel): support attributes on links and events (#28584) 2025-04-25 18:26:33 +02:00
David Sherret
3de24862ee
chore: stop deno_features rebuilding on each cargo build (#29051)
Prevents the files having its modification date changed.
2025-04-25 16:11:43 +00:00
Bartek Iwańczuk
094b1f82db
feat(cache): add DENO_EMIT_CACHE_MODE (#29025)
This commit adds support for `DENO_EMIT_CACHE_MODE` env var that accepts
either `normal` or `disable` values, allowing to disable caching of
transpiled sources - ie. transpilation will happen on each run.
2025-04-25 16:01:10 +00:00
Bartek Iwańczuk
5c3bb07460
chore: update "version_bump" action to allow for RC bumps (#29048)
Also fixes the script for other version updates that was missed in
https://github.com/denoland/deno/pull/29018.
2025-04-25 15:15:16 +00:00
ctrl+d
f9a024a748
feat(ext/net): add signal option to Deno.connect() (#27113)
Ref #26819

An optional **timeout** parameter has been added to the
**Deno.connect()** interface. This parameter allows specifying a timeout
(in milliseconds) within which the application must establish a
connection. If the timeout is exceeded without successfully connecting,
the operation is automatically aborted with an error. If the parameter
is not provided, the default behavior remains unchanged (no timeout).
Currently, the timeout functionality is implemented only for TCP
connections. Other connection types are not affected by this change.

---------

Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2025-04-25 20:25:50 +05:30
David Sherret
1c6a2445c3
feat: TypeScript 5.8 (#29041)
* https://github.com/denoland/TypeScript/pull/18

Closes https://github.com/denoland/deno/issues/28711
2025-04-25 10:09:31 -04:00
Divy Srivastava
6f4472c5dc
feat(ext/fetch): support localAddress option in custom HTTP client (#28781)
Fixes https://github.com/denoland/deno/issues/27376
Fixes https://github.com/denoland/deno/issues/23373

Example usage:

```js
const client = Deno.createHttpClient({
  localAddress: "127.0.0.2",
});
const response = await fetch("http://localhost:4545/local_addr", {
  client,
});
```
2025-04-25 18:03:24 +05:30
Yoshiya Hinosawa
a44ed9bbe4
chore(ext/node): pass v8 flags (--expose-gc and --expose-externalize-string) to node test script (#29046) 2025-04-25 21:22:25 +09:00
Lucas Wasilewski
9ed2fad9ed
feat(ext/http): Show that is also listening on localhost (#28171)
Closes #27722

This will show `Listening on http://0.0.0.0:8000 (http://localhost:8000)`

---------

Co-authored-by: David Sherret <dsherret@gmail.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2025-04-25 08:36:20 +00:00
Bartek Iwańczuk
189ccffdb9
feat: Codegen feature flags (#28920)
This commit adds "deno_features" crate that contains definitions of all
unstable features in Deno.

Based on these definitions, both Rust and JS code is generated ensuring
that the two are always in sync.

In addition some of flag handling was rewritten to use the generated
definitions, instead of hand rolling these flag definitions.

---------

Co-authored-by: snek <snek@deno.com>
2025-04-25 08:33:45 +00:00
Bartek Iwańczuk
4924731ac3
chore: align crates versions (#29018)
Aligns version between `deno`, `denort` and `deno_lib` crates.

Removes `cli/lib/version.txt` and some build-script shenanigans to
override crate version.
2025-04-25 07:15:09 +00:00
Bert Belder
90e90cda34
feat: code sign deno.exe (#28963)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2025-04-25 08:27:12 +02:00
ctrl+d
cf02f770aa
fix(ext/node): fix handling of abort signal in readFile (#29028)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2025-04-25 14:48:12 +09:00
denobot
6e86063c03
chore: forward v2.2.12 release commit to main (#29044)
Co-authored-by: dsherret <dsherret@users.noreply.github.com>
2025-04-24 20:22:57 -04:00
Luca Casonato
7b908e5873
fix: correctly style rust logs with colors (#29040)
We upgraded `env_logger`, which uses a new color detection backend that
is backwards incompatible with the old backend and does not detect
GitHub Actions as a terminal that supports color. We now force
env_logger to respect the color decision that `deno_terminal` has
already made.
2025-04-24 15:06:14 -04:00
Nathan Whitaker
79f9b30428
chore: don't build dev profile with packed debug info (#29042)
When you build with "packed", on macOS rustc does an extra invocation of
`dsymutil` which slows down dev builds by a fair bit. This restores
cargo's default setting, which speeds up dev builds. Since we aren't
doing anything with the debug info in dev builds we don't need the
.dSYM.
2025-04-24 18:55:17 +00:00
Dan
e612d572f8
fix(deno_os): allow running WebWorker without snapshots (#28975)
This addresses [#28680](https://github.com/denoland/deno/issues/28680)
where the esm modules are not found when instantiating a WebWorker with
snapshots disabled.

This is an alternative solution to another PR,
https://github.com/denoland/deno/pull/28693
2025-04-24 10:39:38 -07:00
David Sherret
2eeccf1045
fix(compile): use a memory mapped file for fallback (#29039) 2025-04-24 17:19:52 +00:00
Divy Srivastava
e1329df448
v2.3.0-rc.3 (#29032) 2025-04-24 09:16:26 +05:30
David Sherret
3d16eb8ff3
fix(compile): temporarily fallback to reading resource data from file on windows (#29024)
Temp hacky fix for https://github.com/denoland/deno/issues/28982
2025-04-23 22:08:15 -04:00
Nayeem Rahman
74425ddb0b
fix(lsp): discard completions from non-exported npm files (#28962) 2025-04-23 21:34:57 +01:00
David Sherret
bbe24337b9
fix: remove warnings for bare node builtins (#29000) 2025-04-23 15:30:59 -04:00
Divy Srivastava
326fd3a20b
fix(compile): downgrade editpe to 0.1.0 (#29011) 2025-04-23 10:38:56 +00:00
snek
d843a93e65
fix: fix bugs with rendering of authority in serve urls (#29009)
- preserve authority from protocol
- reject some invalid combinations of request lines (e.g. `GET *`)
- modify rendering of OPTIONS and CONNECT so that they don't cause `new
URL` to raise.
2025-04-23 11:23:15 +02:00
0hm☘️🏳️‍⚧️
c26b39a0aa
fix(cli): Display error on invalid OTEL_EXPORTER_OTLP_PROTOCOL value (#28796)
#28646

Edit:

Hi apologies for the delayed explanation @marvinhagemeister.

The reason the error message wasn't appearing was due to the
initialization order. The logging system was being initialized after the
telemetry system. This created a problem: if telemetry failed during its
own initialization, the logging system wasn't yet ready to capture and
report the error.

My solution was to simply move the log initialization to occur before
the telemetry initialization. This resolves the issue, ensuring any
telemetry setup errors are correctly logged.
2025-04-23 11:15:29 +02:00
Divy Srivastava
e23822a9b4
fix(compile): don't rebuild resource table on Windows (#29010) 2025-04-23 08:55:13 +00:00
Divy Srivastava
4f5ac0acfc
v2.3.0-rc.2 (#29006) 2025-04-23 11:22:59 +05:30
David Sherret
edba5ff3c8
fix(compile): read resource name in executable as uppercase on Windows (#29005)
* https://github.com/denoland/sui/pull/40 (this is the fix)
* https://github.com/denoland/sui/pull/39
* https://github.com/denoland/sui/pull/38

Closes https://github.com/denoland/deno/issues/28982

---------

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2025-04-23 04:59:59 +00:00
Sebastien Guillemot
40c5dff82f
fix(ext/node): update node version in process object (#27044)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2025-04-23 10:55:32 +09:00
Bartek Iwańczuk
ff6fe8254c
v2.3.0-rc.1 (#28998) 2025-04-22 16:45:41 +02:00
Divy Srivastava
762adb51b2
fix(compile): revert multi-icon support in compile (#28997) 2025-04-22 14:23:30 +00:00
Jim Buzbee
1feb2b6421
fix(ext/node): honor flags with respect to reuseAddress when binding to a UDP socket (#28156)
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2025-04-22 17:49:14 +09:00
Leo Kettmeir
b77871e0c8
fix(publish): support virtual: and cloudflare: schemes (#28922)
For https://github.com/jsr-io/jsr/pull/1035
2025-04-22 01:41:32 -07:00
Asher Gomez
66185e0d1d
fix(coverage): improve responsiveness of HTML reporter on small screens (#28993) 2025-04-22 13:23:27 +09:00
Nathan Whitaker
de3ce49f29
perf(lockfile): slightly terser lockfile formatting, remove old lockfile code (#28992)
Basically just update deno_lockfile, deno_npm, and eszip, and then adapt
to those changes. The main changes were the removal of the lockfile v4
resolution snapshot loading, and a terser formatting for the `os` and
`cpu` fields in the lockfile.
2025-04-22 01:12:16 +00:00
Nayeem Rahman
e7c8870010
fix(lsp): use markup content variant for hover response (#28987) 2025-04-22 00:41:36 +01:00
Nayeem Rahman
74fd529219
fix(lsp): show a diagnostic for managed npm non-existent subpaths (#28981) 2025-04-22 00:41:22 +01:00
Nathan Whitaker
713bf3266b
fix(npm): only print deprecation warnings on first install (#28990)
Fixes https://github.com/denoland/deno/issues/28933.

This was a regression from the packument refactor.
2025-04-21 20:18:38 +00:00
Leo Kettmeir
79e36b0ccd
feat(doc): add darkmode for HTML output (#28989) 2025-04-21 13:02:50 -07:00
Nayeem Rahman
d26be98377
fix(lsp): remove redirect diagnostic (#28988) 2025-04-21 19:14:00 +01:00
David Sherret
104514b06d
fix(compile): error when cannot extract binary section (#28986)
We were silently failing on failure here.
2025-04-21 15:21:37 +00:00
Bartek Iwańczuk
5bee29223d
fix: use proper version for v2.3.0-rc.0 (#28967)
Unfortunately
c1e037b816
built as v2.1.11 because I missed that this file needs to be updated as
well.
2025-04-19 09:29:30 +00:00
Bartek Iwańczuk
c1e037b816
v2.3.0-rc.0 (#28955) 2025-04-19 09:09:41 +02:00
Nathan Whitaker
dbb5373eab
fix(lockfile): re-fetch packuments if version not found, properly pass patch packages (#28964)
Fixes two issues:
- If a cached packument was out of date and missing a version from the
lockfile, we would fail. Instead we should try again with a forced
re-fetch
- We weren't threading through the workspace patch packages correctly
2025-04-18 23:08:15 +00:00
Nathan Whitaker
6ce1e9b7f7
fix(install): error gracefully if user passes --no-config to deno install <package> (#28965)
Fixes #28090. Fixes #28961.
2025-04-18 22:13:20 +00:00
Divy Srivastava
750476486a
fix: don't show panic traces for non-official builds (#28931)
Don't show panic trace URLs during development. `panic-trace` feature is
only enabled in CI.
2025-04-18 17:37:48 +02:00
denobot
9591c11633
chore: forward v2.2.11 release commit to main (#28958)
This is the release commit being forwarded back to main for 2.2.11

---------

Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2025-04-18 17:21:06 +02:00
Bartek Iwańczuk
33b4d3a6eb
test: temporarily ignore specs::install::package_extra_nmd test (#28954)
These tests are failing randomly on Windows at the moment. The PR that
added them was released in Deno v2.2.10 and users haven't reported any
problems so far. So temporarily ignoring these tests to unblock another
patch release.
2025-04-18 12:48:30 +02:00
Yoshiya Hinosawa
83f15ece09
feat(test): create coverage reports when --coverage specified in deno test (#28260)
This PR updates the behavior of `deno test --coverage` option. Now if
`--coverage` option is specified, `deno test` command automatically
shows summary report in the terminal, and generates the lcov report in
`$coverage_dir/lcov.info` and html report in `$coverage_dir/html/`

This change also adds `--coverage-raw-data-only` flag, which prevents
the above reports generated, instead only generates the raw json
coverage data (which is the same as current behavior)
2025-04-18 18:56:14 +09:00