Mohammad Sulaiman
59dd5d21d4
fix: replace the @deno-types with @ts-types ( #27310 )
2024-12-10 09:52:13 -05:00
Bartek Iwańczuk
c3af09821a
fix(outdated): show a suggestion for updating ( #27304 )
...
Show command to update dependencies based on the output
of "deno outdated" command.
Closes https://github.com/denoland/deno/issues/27256
2024-12-10 14:41:16 +01:00
Marvin Hagemeister
99b9e726d4
WIP
2024-12-10 05:34:12 +01:00
Marvin Hagemeister
280d10e801
WIP
2024-12-10 04:33:33 +01:00
David Sherret
94c7653d0e
fix(compile): correct read length for transpiled typescript files ( #27301 )
...
Extracted out of https://github.com/denoland/deno/pull/27296/files
It's hard to test for this, but a test for this is in that other PR.
2024-12-09 20:11:52 -05: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
snek
1c0f236923
fix(unstable): don't unwrap optional state in otel ( #27292 )
...
otel global state may not be initialized if otel is not enabled, so bail
out instead of panicking.
Fixes: https://github.com/denoland/deno/issues/27272
2024-12-09 22:33:07 +01:00
David Sherret
da3a676d1c
fix: do not error when subpath has an @ symbol ( #27290 )
...
Closes https://github.com/denoland/deno/issues/27243
2024-12-09 13:19:08 -08:00
Nathan Whitaker
44d76975d5
fix(node): update list of builtin node modules, add missing export to _http_common ( #27294 )
...
Fixes https://github.com/denoland/deno/issues/27289
We exported these but forgot to add them to the list of builtins used by
the resolver, so we weren't resolving bare imports of some modules (e.g.
`"_http_common"`)
Also adds a missing export of `HTTPParser` from `_http_common`
2024-12-09 13:01:09 -08:00
Bartek Iwańczuk
883abfa1bf
fix(ext/node): handle Float16Array in node:v8 module ( #27285 )
...
Closes https://github.com/denoland/deno/issues/26580
2024-12-09 19:04:47 +00:00
Benjamin Swerdlow
d7dfd4b540
refactor: Make deno_runtime::shared
module public ( #27242 )
...
Signed-off-by: Benjamin Swerdlow <Swerdlowbenjamin@gmail.com>
2024-12-09 18:52:13 +00:00
David Sherret
56035f34a2
fix(task): do not always kill child on ctrl+c on windows ( #27269 )
...
We don't need to forward the kill signal because ctrl+c events are sent
to the process group.
Closes https://github.com/denoland/deno/issues/27266
2024-12-09 11:01:57 -05:00
Marvin Hagemeister
19baadf319
WIP
2024-12-09 10:10:45 +01:00
Marvin Hagemeister
ccf7009dfd
WIP
2024-12-07 00:24:36 +01:00
Marvin Hagemeister
83da570caa
WIP
2024-12-06 23:26:11 +01:00
Marvin Hagemeister
4365959f0c
WIP
2024-12-06 21:31:28 +01:00
Marvin Hagemeister
4d3767bdb0
WIP
2024-12-06 21:31:28 +01:00
Marvin Hagemeister
d8897bdd3e
WIP
2024-12-06 21:31:28 +01:00
Marvin Hagemeister
f0a2614304
WIP
2024-12-06 21:31:28 +01:00
Marvin Hagemeister
c734214c41
WIP
2024-12-06 21:31:28 +01:00
David Sherret
9fe52b1e8d
fix: do not panic when fetching invalid file url on Windows ( #27259 )
...
I tried adding a test, but it's not possible due to a debug assertion in
the url crate (https://github.com/servo/rust-url/issues/505 )
Closes https://github.com/denoland/deno/issues/27258
2024-12-06 17:39:31 +00:00
Marvin Hagemeister
54f002fc2a
chore: ignore lint type errors for now
2024-12-06 17:08:16 +01:00
Marvin Hagemeister
58e7c2d163
more types
2024-12-06 17:06:12 +01:00
Marvin Hagemeister
1fc41dcb3e
add visitor types
2024-12-06 16:56:45 +01:00
Yoshiya Hinosawa
796749c807
test(ext/node): remove flaky node:dgram compat test case ( #27249 )
2024-12-07 00:30:04 +09:00
Yoshiya Hinosawa
07737b03bc
fix(ext/node): accept file descriptor in fs.readFile(Sync) ( #27252 )
...
closes #27123
2024-12-06 20:18:08 +09:00
Yoshiya Hinosawa
1ee13a3544
chore: add script to check remaining node compat cases ( #27122 )
2024-12-06 15:22:33 +09:00
denobot
2e2d3173d1
chore: forward v2.1.3 release commit to main ( #27248 )
...
This is the release commit being forwarded back to main for 2.1.3
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-12-06 02:12:57 +01:00
Nathan Whitaker
ffac282805
fix(install): use locked version of jsr package when fetching exports ( #27237 )
...
Fixes #27193 .
2024-12-05 18:55:35 +00:00
Marvin Hagemeister
f098dd02f7
fix(task): --recursive
option not working ( #27183 )
...
We didn't handle the `--recursive` option properly in `deno task`. This
PR addresses that.
Fixes https://github.com/denoland/deno/issues/27174
2024-12-05 19:00:35 +01:00
Bartek Iwańczuk
ab4568a03d
fix: clear dep analysis when module loading is done ( #27204 )
...
Closes https://github.com/denoland/deno/issues/26663
2024-12-05 15:48:50 +00:00
Yoshiya Hinosawa
3bae68eda6
test(ext/node): fix flaky node/http2.createServer() test ( #27208 )
2024-12-06 00:25:16 +09:00
Luca Casonato
ae5c743f33
chore: update hickory dns crates ( #27137 )
2024-12-05 14:11:35 +00:00
ud2
25aed5071f
fix(unstable/temporal): respect locale in Duration.prototype.toLocaleString
( #27000 )
...
Adds a temporary polyfill for `Duration.prototype.toLocaleString()`
that will be removed once native support in V8 lands.
2024-12-05 13:55:50 +00:00
Marvin Hagemeister
e8d731c05f
fix(node/worker_threads): data url not encoded properly with eval ( #27184 )
...
When using the `eval` option on Node's `worker_threads` the code is
passed as a `data:` URL. But we didn't encode the actual code for that,
which lead to syntax errors when including characters not allowed in an
URL.
Fixes a part of https://github.com/denoland/deno/issues/27167
2024-12-05 14:30:43 +01:00
David Sherret
a26b873a7d
refactor: remove usages of deno_core::resolve_import
for resolving redirects ( #27234 )
...
This was doing an allocation for reparsing the specifier. Might as well
do `.join` here and it means I can extract out this file fetcher code to
deno_cache_dir more easily.
2024-12-04 17:39:58 -05:00
Nathan Whitaker
e718e3f471
fix(outdated): allow --latest
without --update
( #27227 )
...
Ref #27025 .
it does nothing (it's the default behavior) but it doesn't hurt to allow
it
2024-12-04 18:32:48 +00:00
David Sherret
f0586238fc
fix(task): kill descendants when killing task process on Windows ( #27163 )
2024-12-04 12:19:06 -05:00
David Sherret
f863a623c9
fix: improve auto-imports for npm packages ( #27224 )
...
Improves auto-imports when using `"nodeModulesDir": "auto"`
2024-12-04 12:05:34 -05:00
snek
5c17bb4287
fix(unstable): otel context with multiple keys ( #27230 )
...
`SafeMap` treats its argument as an object with a "length" and index
properties, rather than a generic iterator, so every time we cloned it,
it was dropping all the data.
2024-12-04 13:14:37 +00:00
Marvin Hagemeister
120b3811eb
fix(task): don't panic with filter on missing task argument ( #27180 )
...
We were panicing when running `deno task --filter foo` without a task
argument.
Fixes https://github.com/denoland/deno/issues/27177
2024-12-04 13:06:09 +01:00
Marvin Hagemeister
2dba36e6ec
feat: merge lint plugin visitors
2024-12-04 12:44:32 +01:00
Marvin Hagemeister
a14820586f
fix: only invoke lint plugin runner when there are plugins
2024-12-04 12:08:19 +01:00
Bartek Iwańczuk
78dc5b8fe9
remove dead code
2024-12-04 04:33:13 +01:00
Bartek Iwańczuk
026a5d952a
optimize callign to js
2024-12-04 04:30:32 +01:00
Yoshiya Hinosawa
fb24fd37c9
test: add node compat test cases ( #27134 )
...
This PR enables node compat test cases found passing by using the tool
added in #27122
The percentage of passing test case increases from 16.16% to 30.43% by
this change.
2024-12-04 11:37:20 +09:00
Yoshiya Hinosawa
32b4c37c05
test(ext/node): reduce race condition in test case ( #27207 )
2024-12-04 11:29:31 +09:00
Bartek Iwańczuk
3588e75c6c
comment out type decls, capture more fns
2024-12-04 03:29:05 +01:00
Bartek Iwańczuk
a1e590dc66
add basic type decl
2024-12-04 03:02:55 +01:00
Bartek Iwańczuk
052a035c23
plugins can be authored in TS
2024-12-04 02:59:39 +01:00