Bartek Iwańczuk
cb638dbad8
maybe cleanup
2025-01-10 23:45:01 +01:00
Bartek Iwańczuk
67f77579e8
Merge branch 'main' into lint_plugins
2025-01-10 13:51:22 +01:00
Bartek Iwańczuk
aa145fd378
log -> debug
2025-01-10 02:26:39 +01:00
Bartek Iwańczuk
0486303c59
lsp
2025-01-10 02:02:55 +01:00
Bartek Iwańczuk
ebaf18e8ef
fix printer
2025-01-10 02:00:55 +01:00
Bartek Iwańczuk
31473ca292
validate range
2025-01-10 01:44:42 +01:00
Bartek Iwańczuk
714ed55473
show errors with cause raised in JS
2025-01-10 01:28:29 +01:00
David Sherret
475793f94d
refactor: implement NpmPackageFolderResolver
in deno_resolver ( #27614 )
2025-01-10 00:01:47 +00:00
David Sherret
34beeb7703
refactor(npm): move SloppyImportsCachedFs
to deno_resolver ( #27610 )
2025-01-09 18:30:48 -05: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
Ryan Dahl
1d64670f9c
docs: added jsdoc for window.close() ( #27608 )
2025-01-09 15:05:39 -05:00
David Sherret
966370c908
refactor(npm): move InNpmPackageChecker
code to deno_resolver ( #27609 )
...
As title. Will allow consumers to create this struct and use our
behaviour.
Closes #27409
2025-01-09 14:04:52 -05:00
Nayeem Rahman
318f524c5c
fix(lsp): use verbatim specifier for URL auto-imports ( #27605 )
2025-01-09 17:54:14 +00: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
Bartek Iwańczuk
89af19da97
fix after merge
2025-01-09 15:18:03 +01:00
Bartek Iwańczuk
807cf19157
Merge branch 'main' into lint_plugins
2025-01-09 15:13:39 +01:00
Bartek Iwańczuk
0db8db2aa7
add todos
2025-01-09 15:12:05 +01:00
Bartek Iwańczuk
900ef00c94
fix print functions
2025-01-09 14:11:54 +01:00
Bartek Iwańczuk
f7b5ee2fda
run in tc_scope
2025-01-09 14:07:10 +01:00
David Sherret
ce0968ef3a
refactor(npm): split some resolution from installation ( #27595 )
...
This splits away some npm resolution code from installation. It will
allow for more easily extracting out resolution code in the future.
2025-01-08 23:46:37 +00: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
Divy Srivastava
fffa3804aa
fix(ext/node): Fix os.cpus()
on Linux ( #27592 )
...
Populate `speed` using current scaling frequency and fix times
multiplier.
Fixes https://github.com/denoland/deno/issues/27555
<table>
<tr>
<th>Node.js</th>
<th>Deno</th>
</tr>
<tr>
<td>
```
> os.cpus()
[
{
model: 'AMD Ryzen 5 7530U with Radeon Graphics',
speed: 1396,
times: {
user: 1769930,
nice: 20,
sys: 525630,
idle: 41325700,
irq: 110060
}
},
```
</td>
<td>
```
> os.cpus()
[
{
model: "AMD Ryzen 5 7530U with Radeon Graphics",
speed: 1630,
times: [Object: null prototype] {
user: 1795620,
nice: 20,
sys: 537840,
idle: 41589390,
irq: 111230
}
},
```
</td>
</tr>
</table>
2025-01-08 22:09:55 +05:30
Divy Srivastava
e233173653
fix(ext/websocket): Fix close code without reason ( #27578 )
...
Fixes https://github.com/denoland/deno/issues/27566
The close code wasn't sent if reason was None, defaulting to 1005. This
patch allows sending close code without reason.
2025-01-08 20:07:47 +05:30
Yusuke Tanaka
1661ddd9ca
fix(ext/node): have process
global available in Node context ( #27562 )
...
This commit makes `process` global always available in Node context.
`process` global was previously available explicitly in `deno_node`, but then
got removed in #25291 and made globally available regardless of whether it's in
Deno or Node context, so this commit does not have any effect on Deno CLI.
However, for users who want to use `deno_node` ext only, it makes sense to have
`process` available to simulate the Node environment individually.
This change may bring some negative performance impact. To measure how large the
impact would be, a very simple benchmark was performed whose results can be
found at https://github.com/magurotuna/process_global_bench .
2025-01-08 13:14:57 +09:00
Marvin Hagemeister
cabdfa8c2d
fix(lint): fix single char selectors being ignored ( #27576 )
...
The selector splitting code that's used for JS linting plugins didn't
properly account for selectors being a single character. This can happen
in the case of `*`.
Instead of comparing against the length, we'll now check if the
remaining string portion is not empty, which is more robust. It also
allows us to detect trailing whitespace, which we didn't before.
2025-01-08 00:21:50 +01: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
Nayeem Rahman
b5e4a303d5
fix(lsp): don't skip dirs with enabled subdirs ( #27580 )
2025-01-07 19:04:06 +00:00
Nikolay Karadzhov
8cda4cf53d
feat(node/fs): Add a chmod method to the FileHandle class ( #27522 )
...
Add the chmod method to the FileHandle class in node compat as part of
#25554
2025-01-07 14:58:14 +01: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
Bartek Iwańczuk
2fddd68d41
lint
2025-01-07 01:05:48 +01:00
Bartek Iwańczuk
ec745bd2a6
Merge branch 'main' into lint_plugins
2025-01-07 01:02:52 +01:00
Bartek Iwańczuk
b6f2646c1c
refactor: make IncrementalCache
accept a CacheDBHash
( #27570 )
2025-01-06 23:56:36 +00:00
Bartek Iwańczuk
f7051e2058
install all plugins in one go
2025-01-07 00:47:43 +01:00
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
6750aa61eb
ci: increase timeout to 240 minutes ( #27571 )
...
With https://github.com/denoland/deno/pull/27507 landed we need to do
two builds that don't really share much codegen units.
This should be reverted once we move to self-hosted runner on `main`
(https://github.com/denoland/deno/pull/27568 )
2025-01-06 22:33:52 +00:00
Yoshiya Hinosawa
888ab9f4f7
test(ext/node): disable flaky dgram tests ( #27549 )
...
Closes #27316
2025-01-06 23:18:45 +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