Bartek Iwańczuk
1f9a5c19b0
use structs instead
2025-01-06 23:45:34 +01:00
Bartek Iwańczuk
ad41ab7c65
foo
2025-01-06 23:38:54 +01:00
Bartek Iwańczuk
08482b04c8
lint
2025-01-06 23:18:07 +01:00
Bartek Iwańczuk
64df2cef75
revert changes to permissions
2025-01-06 23:14:34 +01:00
Bartek Iwańczuk
37207e5914
Merge branch 'main' into lint_plugins
2025-01-06 23:14:19 +01:00
Luca Casonato
f483996658
feat(unstable): no config npm:@opentelemetry/api integration ( #27541 )
...
After this PR, one does not need to import `jsr:@deno/otel` anymore.
2025-01-06 17:00:32 +01:00
snek
ccd375802a
refactor(quic): introduce endpoint, 0rtt, cleanup ( #27444 )
...
A QUIC endpoint is a UDP socket which multiplexes QUIC sessions, which
may be initiated in either direction. This PR exposes endpoints and
moves things around as needed.
Now that endpoints can be reused between client connections, we have a
way to share tls tickets between them and allow 0rtt. This interface
currently works by conditionally returning a promise.
Also cleaned up the rust op names, fixed some lingering problems in the
data transmission, and switched to explicit error types.
2025-01-06 15:24:59 +01:00
Luca Casonato
4b35ba6b13
feat(unstable): replace SpanExporter with TracerProvider ( #27473 )
2025-01-06 14:28:29 +01:00
Yoshiya Hinosawa
9ad0d4c3db
fix(ext/http): improve error message when underlying resource of request body unavailable ( #27463 )
...
The error message is currently `Bad Resource ID`. This commit changes it to
`Cannot read request body as underlying resource unavailable`
closes #27133
2025-01-06 16:12:21 +09:00
Kitson Kelly
7cabd02c59
fix(kv): improve backoff error message and inline documentation ( #27537 )
...
Ref: #27536
2025-01-04 00:04:14 +01:00
Bartek Iwańczuk
7b3cdf1322
wire up CancellationToken
2025-01-03 23:52:51 +01:00
Bartek Iwańczuk
ebb6b60012
lint
2025-01-03 23:25:31 +01: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
Nayeem Rahman
18b813b93f
fix(check): line-break between diagnostic message chain entries ( #27543 )
2025-01-03 18:30:41 +00:00
Bartek Iwańczuk
5af9453f0c
testing helpers
2025-01-03 18:20:29 +01:00
Marvin Hagemeister
9124e0a0df
chore: support more nodes
2025-01-03 14:22:24 +01:00
Marvin Hagemeister
b972fc996b
fix: add missing null check
2025-01-03 12:18:44 +01:00
Marvin Hagemeister
0c1f93e6ee
chore: remove cancellation branch
2025-01-03 12:16:29 +01:00
Marvin Hagemeister
6cf3a274d1
fix: missing argument
2025-01-03 11:31:26 +01:00
Marvin Hagemeister
b85974b2db
feat: add missing fixer methods
2025-01-03 11:29:05 +01:00
Marvin Hagemeister
adc25f85a1
feat: support excluding rules from lint plugins
2025-01-03 11:03:28 +01:00
Bartek Iwańczuk
e9af7f8ebd
refactor: Use 'await using' in serve_test ( #27532 )
...
To make sure the servers are torn down when they throw an error during
test execution.
2025-01-02 23:56:36 +00:00
Bartek Iwańczuk
9685d713fc
use git deno_lint
2025-01-02 23:09:06 +01:00
David Sherret
2092f0c697
fix(permissions): implicit --allow-import
when using --cached-only
( #27530 )
...
`--cached-only` cannot communicate with a remote server
Closes https://github.com/denoland/deno/issues/27498
2025-01-02 16:55:03 -05:00
Bartek Iwańczuk
2edd30904a
update for deno_lint changes
2025-01-02 19:07:55 +01:00
Marvin Hagemeister
321e37bf2e
feat: support js lint plugins fixes
2025-01-02 16:28:13 +01: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
9215aa60a6
refactor(node/npm): separate out permission check from npm resolvers ( #27511 )
...
Decouples permissions from the npm resolvers (towards moving the
resolvers out of the cli crate)
2025-01-02 10:05:52 -05:00
Nayeem Rahman
79c0b2ce73
fix(lsp): css preprocessor formatting ( #27526 )
2025-01-02 13:31:47 +00:00
Bartek Iwańczuk
554bce98b5
Merge branch 'main' into lint_plugins
2025-01-02 10:35:12 +01:00
Nathan Whitaker
7d66018874
chore: fix windows pre release CI job ( #27518 )
...
See
https://github.com/denoland/deno/actions/runs/12563186693/job/35024695065 .
Broke in #27507 .
2024-12-31 23:08:15 +00:00
David Sherret
8e618e1b2a
fix(npm): deterministically output tags to initialized file ( #27514 )
...
The tags were being sorted in a random order due to the package_reqs
hashmap
2024-12-31 20:36:57 +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
ac7b33a340
chore: cargo fmt - turn on group_imports=StdExternalCrate ( #26646 )
2024-12-31 12:13:39 -05:00
David Sherret
88bd5f09f7
perf(fs/windows): stat - only open file once ( #27487 )
2024-12-31 11:29:51 -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
Bartek Iwańczuk
1cd36009b0
fix(ext/node): support private key export in JWK format ( #27325 )
...
Closes https://github.com/denoland/deno/issues/26643
---------
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-12-31 13:49:02 +01:00
Je Xia
7b491a28df
fix(node): Add missing inspector/promises
( #27491 )
...
Add missing `inspector/promises` in node builtin module list, that
causes types checking error.
2024-12-31 11:06:21 +01:00
Marvin Hagemeister
a844d96ee9
chore(lint): remove manual AST field counter ( #27449 )
...
Addresses the review feedback in
https://github.com/denoland/deno/pull/27416 .
- Hoist the buffer max size variable to make it less confusing
- Remove manual AST field counter in favour of an explicit "commit
schema" step which writes the actual field count.
2024-12-31 08:59:41 +01:00
David Sherret
c391ad315e
refactor: use sys_traits ( #27480 )
2024-12-30 12:38:20 -05:00
David Sherret
fd8400eaec
perf(node/fs/copy): reduce metadata lookups copying directory ( #27495 )
2024-12-30 00:36:29 -05:00
Divy Srivastava
5194222e02
fix(ext/node): convert brotli chunks with proper byte offset ( #27455 )
...
Fixes https://github.com/denoland/deno/issues/27029
Fixes https://github.com/denoland/deno/issues/26086
2024-12-28 12:44:37 +05:30
Marvin Hagemeister
fdd0edf23c
fix(unstable): don't error on non-existing attrs or type attr ( #27456 )
...
When running selectors for JS linting plugins we would error when
encountering an unknown attribute name:
```js
// selector
Foo[non-existant]
// error
Error: Missing string id: <number>
```
This was caused by using `0` as the invalid marker, but also overloading
`0` with an actual node type. So the fix is to reserve `0` as the
invalid marker and move the property type to the next index.
2024-12-27 22:46:29 +01: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
Divy Srivastava
6061f22abd
fix(ext/node): RangeError timingSafeEqual with different byteLength ( #27470 )
...
Fixes https://github.com/denoland/deno/issues/27214
2024-12-27 11:20:49 +05:30
Bartek Iwańczuk
a6d1f1116f
add support for hint
2024-12-26 13:38:52 +01:00
Bartek Iwańczuk
c3ac6031f6
renames
2024-12-26 13:33:47 +01:00
Bartek Iwańczuk
f283a0fd73
put fns into Rc
2024-12-26 12:26:44 +01:00