1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 04:52:26 -05:00
Commit graph

12908 commits

Author SHA1 Message Date
Divy Srivastava
a43ea7ae19 update comments 2024-12-16 09:47:42 +05:30
Divy Srivastava
636a6c3265 deno_core 0.326.0 2024-12-15 18:22:25 +05:30
Divy Srivastava
f0409a6122 lint 2024-12-15 12:07:19 +05:30
Divy Srivastava
574892aa02 update test 2024-12-15 12:02:50 +05:30
Divy Srivastava
e21982d159 perf 2024-12-15 12:02:03 +05:30
Divy Srivastava
a9f85a70e2 aarch64 ptr type 2024-12-15 09:12:02 +05:30
Divy Srivastava
d104b0b8b3 copyright header 2024-12-15 09:04:17 +05:30
Divy Srivastava
9e37da438c lint ks 2024-12-15 08:58:30 +05:30
Divy Srivastava
9e7306ac7f core 2024-12-15 08:50:49 +05:30
Divy Srivastava
008738058f setReadBigints 2024-12-14 13:16:15 +05:30
Divy Srivastava
95763d3f43
Merge branch 'main' into sqlite_node_cppgc
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-12-13 21:07:43 -08:00
Divy Srivastava
57c29c326e use git 2024-12-14 10:36:38 +05:30
Divy Srivastava
11c4d61b86 docs 2024-12-14 10:35:34 +05:30
Divy Srivastava
509bd954da 2024-12-14 09:59:52 +05:30
Nathan Whitaker
9d315f27ed
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
2024-12-13 12:25:05 -08:00
Nathan Whitaker
3946956b8c
fix(lockfile): include dependencies listed in external import map in lockfile (#27337) 2024-12-13 10:19:37 -08:00
Nayeem Rahman
32b57f7b82
fix(lsp): sql and component file formatting (#27350) 2024-12-13 14:14:55 +00:00
Yusuke Tanaka
369d68c848
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))
2024-12-13 13:43:03 +01:00
Bartek Iwańczuk
05de351e9a
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.
2024-12-13 12:42:10 +00:00
Kenta Moriuchi
bf888d942a
feat(ext/web): add [[ErrorData]] slot to DOMException (#27342) 2024-12-13 13:22:29 +01:00
Bartek Iwańczuk
3ddbea62c2
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`.
2024-12-13 03:31:07 +01:00
David Sherret
e46f42d052
ci: try fix cache (#27348) 2024-12-13 01:12:13 +00:00
Satya Rohith
960776cd32
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>
2024-12-13 01:44:42 +01:00
David Sherret
a63f8452e9
chore: mark ./tools/release/npm/build.ts as executable (#27349) 2024-12-13 00:30:21 +00:00
David Sherret
f4f64cbe2d
fix(npm): search node_modules folder for package matching npm specifier (#27345) 2024-12-12 23:58:14 +00:00
David Sherret
b7564636b5
chore: add npm distribution at deno package (#27346) 2024-12-12 23:43:43 +00:00
David Sherret
4cfa34052d
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.
2024-12-12 18:07:35 +00:00
Divy Srivastava
bf6825e9fa bench 2024-12-12 16:34:09 +05:30
snek
5f8be055db
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
2024-12-12 09:17:26 +01:00
Divy Srivastava
3279935647 in the mirrorrrr tsh tshh 2024-12-11 22:55:37 +05:30
David Sherret
c6fa62896d
fix(compile): output contents of embedded file system (#27302) 2024-12-11 09:40:50 -05:00
Divy Srivastava
87574d241e changes 2024-12-11 19:17:37 +05:30
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
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
David Sherret
21a9e2d42b
perf(compile): improve FileBackedVfsFile (#27299) 2024-12-10 11:13:14 -05:00
Divy Srivastava
72c96bf7d3 more 2024-12-10 20:38:06 +05:30
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
Divy Srivastava
87de65525a lets see 2024-12-10 09:32:37 +05:30
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