Nayeem Rahman
ff1f921c1d
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-11 21:37:53 +00:00
David Sherret
c6fa62896d
fix(compile): output contents of embedded file system ( #27302 )
2024-12-11 09:40:50 -05:00
Nayeem Rahman
f45d39b20b
move -c handling to CliOptions methods
2024-12-11 14:34:15 +00:00
Nayeem Rahman
0e2f9e7c10
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-11 13:49:55 +00:00
Nayeem Rahman
8f5d50c787
private CliOptions::flags again
2024-12-11 13:48:22 +00:00
denobot
9df6be8916
chore: forward v2.1.4 release commit to main ( #27329 )
...
This is the release commit being forwarded back to main for 2.1.4
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-12-11 12:47:31 +00:00
Nayeem Rahman
f8be309def
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-11 09:54:01 +00:00
Nathan Whitaker
6f506208f6
feat(unstable): support caching npm dependencies only as they're needed ( #27300 )
...
Currently deno eagerly caches all npm packages in the workspace's npm
resolution. So, for instance, running a file `foo.ts` that imports
`npm:chalk` will also install all dependencies listed in `package.json`
and all `npm` dependencies listed in the lockfile.
This PR refactors things to give more control over when and what npm
packages are automatically cached while building the module graph.
After this PR, by default the current behavior is unchanged _except_ for
`deno install --entrypoint`, which will only cache npm packages used by
the given entrypoint. For the other subcommands, this behavior can be
enabled with `--unstable-npm-lazy-caching`
Fixes #25782 .
---------
Signed-off-by: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-12-10 18:24:23 -08:00
Bartek Iwańczuk
dd42a64c43
refactor(lint): manage schema files for linter in Deno repo ( #27324 )
...
This commit provides schema files for lint rules and lint tags
in this repo instead of pulling them from `deno_lint` repository.
A unit test was added to ensure all available rules are listed
in the schema file. A unit test for tags can be done once
https://github.com/denoland/deno/pull/27162 lands.
2024-12-11 02:06:04 +01:00
Bartek Iwańczuk
7c8b55b584
fix(outdated): error when there are no config files ( #27306 )
...
This commit changes "deno outdated" subcommand to
error out if run in a directory that has no config file
(including parent directories). This matches
"pnpm" behavior.
Also added tests for filtering that yields no results,
to ensure that it exists cleanly, that also matches "pnpm"
behavior.
Closes https://github.com/denoland/deno/issues/27287
---------
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2024-12-10 23:25:29 +00:00
ingalless
fe1be715d8
chore(tests): Deprecate remaining usages of itest in check tests ( #26962 )
...
This PR progresses #22907 by deprecating the usage of `itest` in
`tests/integration/check_tests.rs`
2024-12-10 23:41:24 +01:00
David Sherret
4ab668ed06
fix(lint): do not error providing --allow-import ( #27321 )
...
Closes https://github.com/denoland/deno/issues/27318
2024-12-10 20:55:28 +00:00
Bartek Iwańczuk
7bab83d6c0
fix(outdated): respect --quiet flag for hints ( #27317 )
2024-12-10 18:22:42 +00:00
Nayeem Rahman
de37f41e13
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-10 17:02:02 +00:00
David Sherret
21a9e2d42b
perf(compile): improve FileBackedVfsFile ( #27299 )
2024-12-10 11:13:14 -05:00
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
Nayeem Rahman
83ee4c9a73
lint
2024-12-10 10:10:31 +00:00
Nayeem Rahman
37d45d0e84
use WorkspaceFileContainer for bench --watch
2024-12-10 09:51:25 +00:00
Nayeem Rahman
b8b9eea548
restore checking to test --watch
2024-12-10 09:42:41 +00:00
Nayeem Rahman
0c188ebab9
restore test --watch=... support
2024-12-10 09:34:55 +00:00
Nayeem Rahman
1af0cdee0a
use single workspace dir for test -c and bench -c
2024-12-10 09:31:52 +00:00
Nayeem Rahman
78de1fb248
use WorkspaceFileContainer for bench
2024-12-10 09:06:42 +00:00
Nayeem Rahman
0c44814e21
use WorkspaceFileContainer for test --watch
2024-12-10 08:42:33 +00:00
Nayeem Rahman
61aa023d92
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-10 01:24:22 +00: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
Nayeem Rahman
42eb554edf
fix fixture
2024-12-09 20:27:24 +00:00
Nayeem Rahman
c22b0e4954
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-09 19:30:45 +00:00
Nayeem Rahman
655190e82b
fix ext flag
2024-12-09 19:30:38 +00: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
Nayeem Rahman
dab83524b8
use WorkspaceFileContainer in deno test
2024-12-09 11:56:15 +00:00
Nayeem Rahman
4d081d2cfc
dedup discovered/specified config
2024-12-07 02:31:48 +00:00
Nayeem Rahman
7ceeb0ba20
fix --doc-only
2024-12-07 02:14:20 +00:00
Nayeem Rahman
59511cba6a
cleanup
2024-12-07 01:34:20 +00:00
Nayeem Rahman
e33d51dea9
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-07 01:19:52 +00:00
Nayeem Rahman
f36d70d194
move remote specifier handling to deno_config
2024-12-07 01:19:38 +00: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
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
Nayeem Rahman
871750aaae
Merge remote-tracking branch 'upstream/main' into check-workspace-member-compiler-options
2024-12-06 02:28:36 +00: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