1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-22 06:09:25 -05:00
Commit graph

12885 commits

Author SHA1 Message Date
David Sherret
30c8575715 ci: restore cargo home cache before rust install (#27356)
I think this makes more sense. We'll see if it makes it faster. It was
taking 1m 22s to install rust.
2025-01-09 15:19:08 -05:00
Nathan Whitaker
d373e2fb93 fix(outdated): support updating dependencies in external import maps (#27339)
Fixes #27331.

The support for it was already in `outdated`, but forgot to wire up the
updating part

Needs #27337
2025-01-09 15:19:08 -05:00
Nathan Whitaker
457f64a6c6 fix(lockfile): include dependencies listed in external import map in lockfile (#27337) 2025-01-09 15:19:08 -05:00
Nayeem Rahman
cb36d8a606 fix(lsp): sql and component file formatting (#27350) 2025-01-09 15:19:08 -05:00
Yusuke Tanaka
771f72f7e2 chore: bump hyper-util to 0.1.10 (#27330)
This commit upgrades hyper-util to 0.1.10, the current latest version.

This also removes exact version specifier in hyper-util to allow library
consumers (e.g. one who wants to use `deno_fetch` as a dependency) to
decide which version to use as long as its version is 0.1.z where z >=
10.

Specifically, hyper-util 0.1.10 is required by Deno Deploy to tweak
`http2_max_header_list_size` (see [hyper-util v0.1.10
changelog](https://github.com/hyperium/hyper-util/releases/tag/v0.1.10))
2025-01-09 15:19:08 -05:00
Bartek Iwańczuk
6755ca9ab3 Revert "ci: use self-hosted mac arm runner only on main branch (#27347)" (#27354)
This reverts commit 3ddbea62c2.

Looks like VMs are now slightly different than before and require
additional setup. Reverting for now to unblock `main` branch.
2025-01-09 15:19:07 -05:00
Kenta Moriuchi
a9748b2228 feat(ext/web): add [[ErrorData]] slot to DOMException (#27342) 2025-01-09 15:19:07 -05:00
Bartek Iwańczuk
7d2f888322 ci: use self-hosted mac arm runner only on main branch (#27347)
We can have 2 concurrent runs now, so
it's worth trying it out on `main`.
2025-01-09 15:19:07 -05:00
David Sherret
a61b0b75a7 ci: try fix cache (#27348) 2025-01-09 15:19:07 -05:00
Satya Rohith
793869173e fix(ext/node): support createConnection option in node:http.request() (#25470)
This commit changes "node:http" module to add support
for the "createConnection" option when the "request()"
API is called.


Closes https://github.com/denoland/deno/issues/19507

---------

Signed-off-by: Yoshiya Hinosawa <stibium121@gmail.com>
Signed-off-by: Satya Rohith <me@satyarohith.com>
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: crowlkats <crowlkats@toaxl.com>
2025-01-09 15:19:07 -05:00
David Sherret
9bd9950469 chore: mark ./tools/release/npm/build.ts as executable (#27349) 2025-01-09 15:19:07 -05:00
David Sherret
40866e3aa4 fix(npm): search node_modules folder for package matching npm specifier (#27345) 2025-01-09 15:19:07 -05:00
David Sherret
1a8ab3869c chore: add npm distribution at deno package (#27346) 2025-01-09 15:19:07 -05:00
David Sherret
8381d4a950 fix(compile): analyze modules in directory specified in --include (#27296)
I ended up changing the file system implementation to determine
its root directory as the last step of building it instead of being the
first step which makes it much more reliable.
2025-01-09 15:19:06 -05:00
snek
26266045d4 refactor(unstable): otel configuration (#27333)
split up otel config into user configurable and runtime configurable
parts. user configurable part is now set via env vars parsed according
to the otel spec. otel is now enabled via `OTEL_DENO=true`, and
`--unstable-otel` only acts as a guard.

Fixes: https://github.com/denoland/deno/issues/27273
2025-01-09 15:19:06 -05:00
David Sherret
f2034e8daa fix(compile): output contents of embedded file system (#27302) 2025-01-09 15:19:06 -05:00
denobot
b32ed7516c
2.1.4 (#27327)
Bumped versions for 2.1.4

Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-12-11 04:31:27 +01:00
Nathan Whitaker
5279eac4f4
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-11 03:37:34 +01:00
Bartek Iwańczuk
31dbe08ef8
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 03:37:34 +01:00
Bartek Iwańczuk
340bcb1ba5
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-11 03:37:34 +01:00
ingalless
1e7babaeca
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-11 03:37:34 +01:00
David Sherret
5da4db0a37
fix(lint): do not error providing --allow-import (#27321)
Closes https://github.com/denoland/deno/issues/27318
2024-12-11 03:37:34 +01:00
Bartek Iwańczuk
16c2fd8317
fix(outdated): respect --quiet flag for hints (#27317) 2024-12-11 03:37:34 +01:00
David Sherret
2403198876
perf(compile): improve FileBackedVfsFile (#27299) 2024-12-11 03:37:33 +01:00
Mohammad Sulaiman
e24d9531c1
fix: replace the @deno-types with @ts-types (#27310) 2024-12-11 03:37:33 +01:00
Bartek Iwańczuk
da81fb4a5b
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-11 03:37:33 +01:00
David Sherret
24bb69be67
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-11 03:37:33 +01:00
David Sherret
c402448061
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-11 03:37:33 +01:00
snek
d410358789
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-11 03:37:33 +01:00
David Sherret
71ee3d7f38
fix: do not error when subpath has an @ symbol (#27290)
Closes https://github.com/denoland/deno/issues/27243
2024-12-11 03:37:32 +01:00
Nathan Whitaker
d6c98c0e4b
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-11 03:37:32 +01:00
Bartek Iwańczuk
3c20dac533
fix(ext/node): handle Float16Array in node:v8 module (#27285)
Closes https://github.com/denoland/deno/issues/26580
2024-12-11 03:37:32 +01:00
Benjamin Swerdlow
ae4eeee09d
refactor: Make deno_runtime::shared module public (#27242)
Signed-off-by: Benjamin Swerdlow <Swerdlowbenjamin@gmail.com>
2024-12-11 03:37:32 +01:00
David Sherret
e7606429b0
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-11 03:37:32 +01:00
David Sherret
c4667c8ed0
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-11 03:37:32 +01:00
Yoshiya Hinosawa
b48022130c
test(ext/node): remove flaky node:dgram compat test case (#27249) 2024-12-11 03:37:32 +01:00
Yoshiya Hinosawa
c4166b5ddf
fix(ext/node): accept file descriptor in fs.readFile(Sync) (#27252)
closes #27123
2024-12-11 03:37:31 +01:00
Yoshiya Hinosawa
8534e76495
chore: add script to check remaining node compat cases (#27122) 2024-12-11 03:37:31 +01:00
denobot
7f9b1ff30f
2.1.3 (#27244)
Bumped versions for 2.1.3

Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-12-06 00:36:23 +01:00
Nathan Whitaker
79aca5c2ca
fix(install): use locked version of jsr package when fetching exports (#27237)
Fixes #27193.
2024-12-05 23:03:56 +01:00
Marvin Hagemeister
5e809f9720
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 23:03:55 +01:00
Bartek Iwańczuk
65d01262f0
fix: clear dep analysis when module loading is done (#27204)
Closes https://github.com/denoland/deno/issues/26663
2024-12-05 23:03:55 +01:00
Yoshiya Hinosawa
327f11f329
test(ext/node): fix flaky node/http2.createServer() test (#27208) 2024-12-05 23:03:55 +01:00
Luca Casonato
b732750041
chore: update hickory dns crates (#27137) 2024-12-05 23:03:55 +01:00
ud2
e41bd026bc
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 23:03:55 +01:00
Marvin Hagemeister
2a0658ad20
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 23:03:55 +01:00
David Sherret
f71fe37b81
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-05 23:03:54 +01:00
Nathan Whitaker
eae78b9b05
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-05 23:03:54 +01:00
David Sherret
a901bbcd10
fix(task): kill descendants when killing task process on Windows (#27163) 2024-12-05 23:03:54 +01:00
David Sherret
a34839e9d0
fix: improve auto-imports for npm packages (#27224)
Improves auto-imports when using `"nodeModulesDir": "auto"`
2024-12-05 23:03:54 +01:00