David Sherret
ec0a6864b6
avoid boxing for the default case
2025-01-10 18:12:27 -05:00
Benjamin Swerdlow
f39faeb6c8
Merge remote-tracking branch 'refs/remotes/origin/conditions_from_resolution_mode' into conditions_from_resolution_mode
2025-01-10 14:15:53 -08:00
Benjamin Swerdlow
1706cabae6
fix lint issue
2025-01-10 14:15:41 -08:00
Benjamin Swerdlow
2a1baad7a2
Merge branch 'main' into conditions_from_resolution_mode
2025-01-10 14:15:10 -08:00
Benjamin Swerdlow
12f061a860
default
2025-01-10 14:13:28 -08:00
Benjamin Swerdlow
f51353879b
ok, made requested changes
2025-01-10 14:11:16 -08:00
David Sherret
c27248a8f3
refactor: remove CliNpmReqResolver
trait in deno_resolver ( #27616 )
2025-01-10 14:48:43 -05:00
Rajhans Jadhao
1dd5bd667c
fix(ext/node): use primordials in ext/node/polyfills/_fs_common.ts
( #27589 )
...
Related to #24236
2025-01-10 13:51:50 +01:00
Benjamin Swerdlow
ee8aae705b
Merge branch 'main' into conditions_from_resolution_mode
2025-01-09 16:45:17 -08:00
David Sherret
475793f94d
refactor: implement NpmPackageFolderResolver
in deno_resolver ( #27614 )
2025-01-10 00:01:47 +00:00
Benjamin Swerdlow
8797417318
ok we're going well
2025-01-09 15:36:16 -08:00
David Sherret
34beeb7703
refactor(npm): move SloppyImportsCachedFs
to deno_resolver ( #27610 )
2025-01-09 18:30:48 -05:00
Benjamin Swerdlow
deb26e295d
ooops lint fix
2025-01-09 15:27:03 -08: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
Benjamin Swerdlow
ec8447c919
ok made the change
2025-01-09 12:43:20 -08: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
Benjamin Swerdlow
0a2fda4f0b
re-forcing ci
2025-01-09 00:18:42 -08:00
Benjamin Swerdlow
fbd4b63aa4
ooof again
2025-01-08 23:56:28 -08:00
Benjamin Swerdlow
a686645970
ooof baboof
2025-01-08 23:52:03 -08:00
Benjamin Swerdlow
ba4f7b2e7d
ok now its send and sync
2025-01-08 23:47:57 -08:00
Benjamin Swerdlow
3a06e2c60e
arc maybe
2025-01-08 23:40:59 -08:00
Benjamin Swerdlow
6d491b63c7
resolution
2025-01-08 23:35:55 -08:00
Benjamin Swerdlow
91fef5521e
ok this could be it please dear lord
2025-01-08 23:33:12 -08:00
Benjamin Swerdlow
bc1fcd11e7
ok its formatted will it work now please dear lord
2025-01-08 23:29:34 -08:00
Benjamin Swerdlow
656da92786
ok could this work
2025-01-08 23:26:42 -08:00
Benjamin Swerdlow
86ca5459b9
ooops
2025-01-08 23:20:50 -08:00
Benjamin Swerdlow
a081d2c4f8
resolution arc fix
2025-01-08 23:13:55 -08:00
Benjamin Swerdlow
56edca4228
how about htis
2025-01-08 23:08:30 -08:00
Benjamin Swerdlow
555fae362b
function pub
2025-01-08 23:04:48 -08:00
Benjamin Swerdlow
fdf915af50
force debug
2025-01-08 23:02:47 -08:00
Benjamin Swerdlow
0188efc961
ok now we have a struct with debug so that fixes that + its arced so no more memory issues
2025-01-08 22:59:10 -08:00
Benjamin Swerdlow
460fcaaba1
will this work maybe?
2025-01-08 22:48:04 -08:00
Benjamin Swerdlow
7b2530712b
ooop slight syntax sugar
2025-01-08 22:43:33 -08:00
Benjamin Swerdlow
fc0f5d6364
re-forcing ci
2025-01-08 22:38:33 -08:00
Benjamin Swerdlow
d21a902920
re-forcing ci
2025-01-08 22:30:27 -08:00
Benjamin Swerdlow
b9252281bf
made conditions_from_resolution_mode configurable
2025-01-08 22:23:58 -08:00
Benjamin Swerdlow
d7ffef8d9a
Merge branch 'main' of https://github.com/freestyle-sh/deno
2025-01-08 17:48:49 -08: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