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
Bartek Iwańczuk
3e1e46d4b1
almost working with regular cli worker
2024-12-04 02:37:04 +01:00
David Sherret
8cd257de3d
refactor: remove CliNpmRegistryApi
( #27222 )
...
Extracts more code out of the CLI.
2024-12-03 19:44:56 -05:00
Bartek Iwańczuk
106b1f135c
load plugins from a config file
2024-12-04 01:43:19 +01:00
Bartek Iwańczuk
c2ac42485f
Merge branch 'main' into lint_plugins
2024-12-04 01:04:37 +01:00
Bartek Iwańczuk
42d9936ef8
wip
2024-12-04 00:31:58 +01:00
Marvin Hagemeister
d5b63bb642
fix(task): only pass args to root task ( #27213 )
...
When we run `deno task` with args like `deno task foo arg` the argument
should only be passed to the root task, not to its dependencies.
Fixes https://github.com/denoland/deno/issues/27206
2024-12-03 16:35:46 +01:00
Marvin Hagemeister
5a950e5cf0
drop!: temporary disable lint cache
2024-12-03 15:34:39 +01:00
Marvin Hagemeister
77526ca036
fix: show correct specifier in error output
2024-12-03 15:34:27 +01:00
Bartek Iwańczuk
37bafdc66a
remove debug log, lint
2024-12-03 13:56:47 +01:00
Bartek Iwańczuk
a1dfea67ec
remove unneeded files
2024-12-03 13:56:30 +01:00
Bartek Iwańczuk
1217314cc7
build on stable rust
2024-12-03 13:56:30 +01:00
Marvin Hagemeister
46766438f8
chore: add more lint rules
2024-12-03 13:45:44 +01:00
Marvin Hagemeister
f3745f95f4
feat: add source() method
2024-12-03 13:45:31 +01:00
Marvin Hagemeister
008e24937f
drop!: vue demo rule
2024-12-03 11:36:27 +01:00
Marvin Hagemeister
2fbc5fea83
fix(node/fs): support recursive
option in readdir ( #27179 )
...
We didn't support the `recursive` option of
`fs.readdir()/fs.readdirSync()`.
Fixes https://github.com/denoland/deno/issues/27175
2024-12-03 10:28:20 +01:00
Ian Bull
b78c851a94
refactor(ext/web): align error messages ( #25871 )
...
Aligns the error messages in the ext/web folder to be in-line with the
Deno style guide.
2024-12-03 03:30:39 +00:00
Bartek Iwańczuk
a15c1165d6
remove some prints
2024-12-03 03:38:43 +01:00
Bartek Iwańczuk
fb47288f90
correctly report
2024-12-03 03:11:26 +01:00
David Sherret
c1dcf1b618
refactor: add deno_npm_cache crate ( #27200 )
...
Extracting out more code from the CLI for reuse elsewhere (still more
work to do, but this is a start).
This is the code for extracting npm tarballs and saving information in
the npm cache in the global deno_dir.
2024-12-03 02:10:16 +00:00
Bartek Iwańczuk
5a6c12861f
add basic traversal
2024-12-03 02:51:29 +01:00
David Sherret
70d69a8828
chore: fix cjs_with_deps test to use a temp dir ( #27199 )
...
It was creating a node_modules directory.
2024-12-03 02:37:40 +01:00
Bartek Iwańczuk
c3208dff2b
Merge branch 'main' into lint_plugins
2024-12-03 02:07:45 +01:00
Bartek Iwańczuk
53936eda11
fix(fmt): stable formatting of HTML files with JS ( #27164 )
...
Closes https://github.com/denoland/deno/issues/26407
Closes https://github.com/denoland/deno/issues/26763
Closes https://github.com/denoland/deno/issues/26560
Closes https://github.com/denoland/deno/issues/26744
Closes https://github.com/denoland/deno/issues/27030
2024-12-03 02:04:55 +01:00
Bartek Iwańczuk
76571fd5a5
chore: upgrade deno_lint to 0.68.2 ( #27197 )
2024-12-02 21:53:00 +00:00
Bartek Iwańczuk
439d43e5fb
don't dump ast
2024-12-02 22:04:45 +01:00
snek
7c036772df
feat(unstable): add metrics to otel ( #27143 )
...
Refs: https://github.com/denoland/deno/issues/26852
Initial support for exporting metrics.
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-12-02 20:45:41 +01:00
Bartek Iwańczuk
dea3219dbe
measure how long i takes to run
2024-12-02 19:20:12 +01:00
Bartek Iwańczuk
f9291e419f
basic range
2024-12-02 18:29:30 +01:00
Bartek Iwańczuk
0b3697148b
cleanup
2024-12-02 18:16:58 +01:00
Bartek Iwańczuk
5639379e45
declarative
2024-12-02 17:00:49 +01:00
David Sherret
6dd2d5e49e
refactor: upgrade to deno_npm 0.26 ( #27194 )
2024-12-02 16:00:31 +00:00
Mathias Lykkegaard Lorenzen
f9a6cc3f03
chore: export variables from node compat tools script ( #27189 )
2024-12-03 00:05:59 +09:00
Bartek Iwańczuk
c9fa293b9d
load plugins from a flag
2024-12-02 15:34:53 +01:00