1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00
Commit graph

12076 commits

Author SHA1 Message Date
denobot
a98e146a55
1.46.3 (#25422)
Co-authored-by: littledivy <littledivy@users.noreply.github.com>
2024-09-04 17:42:16 +05:30
Bartek Iwańczuk
8ff98b41b8 test: fix info::info_import_map test (#25389)
esm.sh provided a fix for `window` not existing in Deno anymore.
2024-09-04 17:03:30 +05:30
dependabot[bot]
40c47e558a
build(deps): bump quinn-proto from 0.11.3 to 0.11.8 (#25400) 2024-09-04 12:43:58 +02:00
Asher Gomez
6f53ee69cb
chore: update WPT (#25250)
Co-authored-by: crowlkats <crowlkats@toaxl.com>
2024-09-04 12:41:24 +02:00
Nathan Whitaker
8f864ad73d
fix(cli): Map error kind to PermissionDenied when symlinking fails due to permissions (#25398)
Fixes https://github.com/denoland/deno/issues/25333.

We fall back to junctions if the error kind is `PermissionDenied` but
the std library actually sets the kind to `Uncategorized` if the symlink
fails due to insufficient privileges. This was causing the fallback to
not actually fall back in this case.
2024-09-04 12:41:21 +02:00
Caleb Cox
2287238811
docs(serve): fix default Deno.serve hostname (#25392)
Update the docs for `Deno.serve` to reflect that the default hostname is
`0.0.0.0`, not `127.0.0.1`.
2024-09-04 12:41:16 +02:00
Bedis Nbiba
047887c573
fix: fix jupyter display function type (#25326) 2024-09-04 12:41:12 +02:00
Coty
063a726af2
fix(cli/tools): correct deno init --serve template behavior (#25318) 2024-09-04 12:41:08 +02:00
Bob Callaway
6034b8dd51
fix(publish): ensure provenance is spec compliant (#25200)
Fixes: #25199 

Ensures that for the SLSA provenance document generated on publishing,
`subject` is an array of ResourceDescriptor objects per the in-toto
specification
[requirements](https://github.com/in-toto/attestation/blob/main/spec/v1/statement.md#fields).

---------

Signed-off-by: Bob Callaway <bcallaway@google.com>
2024-09-04 12:40:58 +02:00
Bartek Iwańczuk
0b627bfe32
fix(upgrade): more informative information on invalid version (#25319)
Before:
```
$ deno upgrade v1.xx
error: Invalid version passed
```

After:
```
$ deno upgrade v1.xx
error: Invalid version passed (v1.xx)

Example usage:
  deno upgrade | deno upgrade 1.46 | deno upgrade canary
```

Also updates help text to use "shorthand version" without flags, but a
positional arg.
2024-09-04 12:40:55 +02:00
Caleb Lloyd
74ea800bd1
fix(ext/node): session close during stream setup (#25170)
Signed-off-by: Caleb Lloyd <caleblloyd@gmail.com>
2024-09-04 12:38:57 +02:00
Yoshiya Hinosawa
f3e0d98b1f
test(ext/node): check hostname option has precedence over host option (#25292) 2024-09-04 12:38:54 +02:00
Bartek Iwańczuk
34b58949b2
feat(upgrade): print info links for Deno 2 RC releases (#25225)
In addition to printing a blog post information (if it's available),
this will also print a link to migration guide and the bug tracker.

---------

Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-04 12:38:50 +02:00
denobot
1b62d42631
1.46.2 (#25294) 2024-08-29 09:07:49 -07:00
Asher Gomez
d0d3688d73
docs: refer to globalThis instead of window in declaration files (#25286) 2024-08-29 15:39:00 +02:00
Arnau Orriols
6ccca7836d
chore: upgrade rusqlite (#25289) 2024-08-29 15:38:45 +02:00
Leo Kettmeir
7f8f84ffcd
fix: update deno_doc (#25290) 2024-08-29 15:38:43 +02:00
snek
af9a6fb350
fix: reland async context (#25140)
This reverts commit 71ca61e189.

Now uses a shared implementation from deno_core.
2024-08-29 15:38:39 +02:00
Sʜɪᴍᴜʀᴀ Yū
23383e5a91
fix(runtime/web_worker): populate SnapshotOptions for WebWorker when instantiated without snapshot (#25280)
Fixes #25277
2024-08-29 15:38:35 +02:00
snek
7e142f0167
fix: upgrade deno_core to 0.307.0 (#25287)
- fix for https://github.com/denoland/deno/issues/25160
- changes needed to land https://github.com/denoland/deno/pull/25140
2024-08-29 15:38:30 +02:00
Nathan Whitaker
834371a592
fix(napi): Don't run microtasks in napi_resolve_deferred (#25246)
Fixes an incredibly obscure bug that causes parcel's file watcher to not
get any file update notifications on macOS.

The issue was that the native addon was calling `napi_resolve_deferred`,
but when we resolved the promise, v8 was running microtasks
automatically. That executed JS, which called back into the native addon
and broke the addon's assumption that the call wouldn't be reentrant.
2024-08-29 15:38:06 +02:00
Ian Bull
4431dc8f63
refactor(ext): throw new error instead of throw error (#25272)
To ensure consistency across the codebase, this commit refactors the
code in the `ext` folder to use `throw new Error`` instead of `throw`
for throwing errors.

Fixes https://github.com/denoland/deno/issues/25270
2024-08-29 15:38:02 +02:00
Luca Casonato
b167219bd7
refactor: don't virtualize the console global for node mode (#25263)
Turns out we only virtualized it so one could have a `Console` property,
and the other one not. We can just make this `console.Console` available
everywhere.
2024-08-29 15:37:50 +02:00
Nathan Whitaker
8ed659d2e3
fix(napi): Fix worker threads importing already-loaded NAPI addon (#25245)
Part of #20613.

If a node addon is using the legacy `napi_module_register` on ctor
approach to module registration, we have to store the registered module
so that other threads can load the addon (because `napi_module_register`
will only be called once per process).
2024-08-29 15:37:38 +02:00
Divy Srivastava
13d7777a6a
fix(ext/node): import RSA JWK keys (#25267)
Fixes https://github.com/denoland/deno/issues/24129
2024-08-29 15:37:33 +02:00
Divy Srivastava
00c8a89547
fix(ext/node): export JWK public key (#25239)
Fixes https://github.com/denoland/deno/issues/18928

Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-08-29 15:37:29 +02:00
Divy Srivastava
567b4967a9
fix(ext/node): import EC JWK keys (#25266) 2024-08-29 15:37:23 +02:00
Luca Casonato
5dbf1af591
tests: fix wpt_epoch job (#25264) 2024-08-29 15:37:18 +02:00
Pig Fang
103265f8a2
fix(fmt): fix incorrect quotes in components (#25249)
Unlike in dprint, `single_quote` option is shared between all
formatters, so we shouldn't change this option when formatting
attributes in components. This PR fixes this.

This problem doesn't affect formatting HTML.
2024-08-29 15:37:13 +02:00
Divy Srivastava
a025475b3f
fix(ext/node): update aead-gcm-stream to 0.3 (#25261)
Fixes https://github.com/denoland/deno/issues/25260
Fixes https://github.com/denoland/deno/issues/25254
Fixes https://github.com/denoland/deno/issues/23693

Verified that `web-push` GCM decryption works in the browser. See
`aead-gcm-stream` changes
[here](a9ffd0c07c)
2024-08-29 15:37:09 +02:00
Divy Srivastava
14e9b5049d
fix(ext/node): throw when loading cpu-features module (#25257)
It crashes because of NAN usage, we want to trigger the fallback case in
ssh2 by throwing an error.

Fixes https://github.com/denoland/deno/issues/25236
2024-08-29 15:37:04 +02:00
Nayeem Rahman
8db5e9bbe1
fix(lsp): panic on url_to_uri() (#25238) 2024-08-29 15:36:58 +02:00
Nathan Whitaker
cb0c23a7f1
fix(ext/node): emit online event after worker thread is initialized (#25243)
Fixes #23281. Part of #20613.

We were emitting the `online` event in the constructor, so the caller
could never receive it (since there was no time for them to add a
listener). Instead, emit the event where it's intended – after the
worker is initialized.

---

After this parcel no longer freezes, but still will fail due to other
bugs (which will be fixed in other PRs)
2024-08-29 15:36:50 +02:00
Bartek Iwańczuk
e3c4651676
fix: replace npm install hint with deno install hint (#25244)
Needed for https://github.com/denoland/deno/pull/25213.

With Deno 2, we should suggest using `deno install` instead of `npm
install`.
2024-08-29 15:36:41 +02:00
Bartek Iwańczuk
6a3471e157
test: add supporting for ignoring spec tests (#25242)
You can now specify `"ignore": true` for either the whole file,
concrete test, or concrete step.
2024-08-29 15:36:27 +02:00
Sean McArthur
27edafa2fe
fix(ext/fetch): percent decode userinfo when parsing proxies (#25229)
Fixes #24691
2024-08-29 15:36:22 +02:00
HasanAlrimawi
9fad717c29
fix: removed unstable-htttp from deno help (#25216)
Closes #25210 .

Removed --unstable-http from being displayed on deno run --help=unstable

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-08-29 15:36:17 +02:00
Marvin Hagemeister
1d2116d94a
fix(task): support tasks with colons in name in deno run (#25233)
Fix task names containing a colon not being found with `deno run`. We
were only checking for a `module not found` error message, but strings
containing a colon throw a different error.

Fixes https://github.com/denoland/deno/issues/25232
2024-08-29 15:36:11 +02:00
David Sherret
bb5d7d9ed6
fix(fmt/markdown): fix regression with multi-line footnotes and inline math (#25222)
What happened in this specific case was the parser used to actually
treat these as code block. Now it treats it as a multi-paragraph
footnote and that caused the issue

- https://github.com/dprint/dprint-plugin-markdown/pull/121/files
2024-08-29 15:35:12 +02:00
David Sherret
6e54959bb2
perf(ext/node): reduce some allocations in require (#25197) 2024-08-29 15:35:04 +02:00
Luca Casonato
824ee13d57
Revert "feat(fetch): accept async iterables for body" (#25207)
Unfortunately this caused a regression:
https://github.com/denoland/deno/issues/25203.

Need to do some more upstream spec work to fix this before this can be
re-landed.

Reverts denoland/deno#24623
2024-08-29 15:34:58 +02:00
Armaan Salam
b5ea8a3ffb
fix(bench): Fix table column alignments and NO_COLOR=1 (#25190)
Fix table layout for `deno bench` command with and without color
(`NO_COLOR=1`).

Fixes issue in #25156
2024-08-29 15:34:53 +02:00
Marvin Hagemeister
4cb7acb5ba
fix(node/cluster): improve stubs to make log4js work (#25146)
- Add missing exports to `node:cluster`
- Fix default export not being an instance of `EventEmitter`
- Fix aliasing of properties
- Fix `disconnected` -> `disconnect` export naming

This makes `log4js` work in Deno. `karma` starts too, but somehow the
server isn't responding. That looks like a different issue.

Fixes https://github.com/denoland/deno/issues/24858
2024-08-29 15:34:49 +02:00
cions
7eaa395113
fix(ext/webgpu): allow to build on unsupported platforms (#25202) 2024-08-29 15:34:44 +02:00
Yusuke Tanaka
ac341d4aba
chore(ext/node): use array instead of Vec to avoid wrong capacity allocation (#25183)
This commit gets deno_node's customizer to use fixed-length array
instead of `Vec` to avoid wrong capacity allocation.

In the previous code we reserve a capacity of 14 for
`external_references`. However, after pushing all the necessary
`ExternalReference`s, it ends up with a length of 21, not 14. This means
another allocation happens even though we reserve some space.

To make sure that there will no longer be extra allocation, it should be
a good idea to use fixed-length array here.
2024-08-29 15:34:41 +02:00
Nayeem Rahman
5e0836d4d8
refactor(lsp): changes for lsp_types 0.97.0 (#25169) 2024-08-29 15:34:31 +02:00
David Sherret
8309e8b725
fix: handle showing warnings while the progress bar is shown (#25187) 2024-08-29 15:34:26 +02:00
Divy Srivastava
58edc634f9
fix(ext/crypto): throw DataError for invalid EC key import (#25181)
Fixes https://github.com/denoland/deno/issues/20931
2024-08-29 15:34:21 +02:00
Divy Srivastava
37fa0e0f48
fix(ext/node): import JWK octet key pairs (#25180)
Ref https://github.com/denoland/deno/issues/24129

`kty: "okp"` is defined in
[rfc8037](https://www.rfc-editor.org/rfc/rfc8037.html)
2024-08-29 15:34:14 +02:00
Yusuke Tanaka
5b0d5b2e6b
chore: enable log feature for tracing crate (#25078)
This commit enables the `log` feature for the `tracing` crate.

This allows us to examine additional detailed logs emitted by third party crates
that use `tracing` crate for logging by setting `RUST_LOG` env var or passing
`-L` option in command line.

Closes #25045
2024-08-29 15:34:09 +02:00