Bartek Iwańczuk
ab8802f49b
feat(permissions): link to docs in permission prompt ( #24948 )
...
This commit updates permission prompt to add a link
to the documentation for particular flag.
Additionally the box drawings around the prompt have been slightly
altered for better visibility.
<img width="737" alt="Screenshot 2024-08-08 at 12 42 32"
src="https://github.com/user-attachments/assets/6ae748cd-4f29-439d-b0ee-f28f565f211a ">
2024-08-08 15:39:31 +02:00
David Sherret
e9e3ab4628
feat: deno clean ( #24950 )
...
Co-authored-by: Satya Rohith <me@satyarohith.com>
2024-08-08 13:22:18 +00:00
Divy Srivastava
0d1beed2e3
fix(ext/node): add CipherIv.setAutoPadding()
( #24940 )
...
Co-Authored-By: Luca Casonato <hello@lcas.dev>
Fixes https://github.com/denoland/deno/issues/21804
Ref https://github.com/denoland/deno/issues/20924
---------
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2024-08-08 18:34:10 +05:30
David Sherret
2f6da40bd6
fix: cache bust jsr meta file when version not found in dynamic branches ( #24928 )
...
Test and code change in deno_graph.
* https://github.com/denoland/deno_graph/pull/511
Closes https://github.com/denoland/deno/issues/23965
2024-08-08 14:54:30 +02:00
Marvin Hagemeister
f50d38869d
fix(node/util): add missing debug
alias of debuglog
( #24944 )
...
Add the missing `node:util.debug` export which is an alias of
`node:util.debuglog`, see
https://nodejs.org/api/util.html#utildebugsection
2024-08-08 13:52:14 +02:00
Satya Rohith
65224786d2
fix(ext/node): client closing streaming request shouldn't terminate http server ( #24946 )
...
Closes https://github.com/denoland/deno/issues/22820
2024-08-08 10:22:58 +00:00
Birk Skyum
733162a83e
fix(node/crypto): Assign publicKey and privateKey with let instead of const ( #24943 )
...
Because public/private key are reassigned, they should be `let` instead
of `const`.
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-08-08 15:50:16 +05:30
David Sherret
6fce23c54e
perf: skip saving to emit cache after first failure ( #24896 )
2024-08-08 09:41:30 +00:00
Luca Casonato
93d479252b
fix(ext/node): add crypto.diffieHellman ( #24938 )
...
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
Closes #21806
2024-08-08 15:05:29 +05:30
Nathan Whitaker
507e5b74ff
fix: Don't shell out to unzip
in deno upgrade/compile ( #24926 )
...
Use the `zip` crate instead
Fixes #23988 .
2024-08-08 00:19:05 -07:00
Yusuke Tanaka
4e4c96bf66
fix(ext/fetch): include URL and error details on fetch failures ( #24910 )
...
This commit improves error messages that `fetch` generates on failure.
Fixes #24835
2024-08-07 23:18:33 -07:00
Marvin Hagemeister
9d6da1036d
fix: rename
watch event missing ( #24893 )
...
This PR ensures that we forward a `rename` event in our file watcher.
The rust lib we use combines that with the `modify` event.
This fixes a compatibility issue with Node too, which sends the `rename`
event as well.
Fixes https://github.com/denoland/deno/issues/24880
2024-08-07 18:15:57 +02:00
David Sherret
59c9bd0800
chore(progress): handle position greater than total size ( #24924 )
2024-08-07 14:01:16 +02:00
Bartek Iwańczuk
f150a9c2d9
feat(upgrade): refresh output ( #24911 )
...
This commit updates the output of "deno upgrade" subcommand.
2024-08-07 13:59:12 +02:00
Kenta Moriuchi
fade3136ba
fix(webgpu): Fix GPUAdapter#isFallbackAdapter
and GPUAdapter#info
properties ( #24914 )
...
Fixed `GPUAdapter` bugs:
* `GPUAdapter#isFallbackAdapter` being `undefined`
* `GPUAdapter#info` throwing `TypeError`
* introduced by #24783
* `GPUAdapter#info` closing adapter resources
* introduced by #23752
2024-08-07 02:17:33 -07:00
Bartek Iwańczuk
fe64cbd88b
fix(upgrade): fallback to Content-Length header for progress bar ( #24923 )
...
If the "size hint" does not provide a value, fall back to using a
"Content-Length" header.
2024-08-07 09:16:27 +00:00
Bartek Iwańczuk
d1b2a9822d
refactor(upgrade): make fetching latest version async ( #24919 )
...
Additionally some renames in preparation to support "LTS" and "RC"
channels.
2024-08-07 10:29:23 +02:00
David Sherret
04473c04ed
fix(compile): support workspace members importing other members ( #24909 )
2024-08-07 07:43:05 +00:00
Luca Casonato
4fa8869f24
feat(ext/node): rewrite crypto keys ( #24463 )
...
This completely rewrites how we handle key material in ext/node. Changes
in this
PR:
- **Signing**
- RSA
- RSA-PSS 🆕
- DSA 🆕
- EC
- ED25519 🆕
- **Verifying**
- RSA
- RSA-PSS 🆕
- DSA 🆕
- EC 🆕
- ED25519 🆕
- **Private key import**
- Passphrase encrypted private keys 🆕
- RSA
- PEM
- DER (PKCS#1) 🆕
- DER (PKCS#8) 🆕
- RSA-PSS
- PEM
- DER (PKCS#1) 🆕
- DER (PKCS#8) 🆕
- DSA 🆕
- EC
- PEM
- DER (SEC1) 🆕
- DER (PKCS#8) 🆕
- X25519 🆕
- ED25519 🆕
- DH
- **Public key import**
- RSA
- PEM
- DER (PKCS#1) 🆕
- DER (PKCS#8) 🆕
- RSA-PSS 🆕
- DSA 🆕
- EC 🆕
- X25519 🆕
- ED25519 🆕
- DH 🆕
- **Private key export**
- RSA 🆕
- DSA 🆕
- EC 🆕
- X25519 🆕
- ED25519 🆕
- DH 🆕
- **Public key export**
- RSA
- DSA 🆕
- EC 🆕
- X25519 🆕
- ED25519 🆕
- DH 🆕
- **Key pair generation**
- Overhauled, but supported APIs unchanged
This PR adds a lot of new individual functionality. But most importantly
because
of the new key material representation, it is now trivial to add new
algorithms
(as shown by this PR).
Now, when adding a new algorithm, it is also widely supported - for
example
previously we supported ED25519 key pair generation, but we could not
import,
export, sign or verify with ED25519. We can now do all of those things.
2024-08-07 08:43:58 +02:00
Nayeem Rahman
9a83efa04b
feat(lsp): node specifier completions ( #24904 )
2024-08-06 16:30:34 +01:00
Satya Rohith
b3f1f3ba04
feat: deno run <task> ( #24891 )
...
This PR updates `deno run` to fallback to executing tasks when there is
no script with the specified name. If there are both script and a task
with the same name then `deno run` will prioritise executing the script.
2024-08-06 20:35:30 +05:30
snek
897159dc6e
feat: vm rewrite ( #24596 )
...
rewrite vm implementation to increase compat.
vm.Module+importModuleDynamically callbacks should be added in a
followup.
2024-08-06 12:52:53 +00:00
Divy Srivastava
c0e9512b39
BREAKING(webgpu/unstable): Replace async .requestAdapterInfo() with sync .info ( #24783 )
...
Closes https://github.com/denoland/deno/issues/24779
Ref https://github.com/gpuweb/gpuweb/pull/4662
2024-08-06 15:30:32 +05:30
Marvin Hagemeister
7f6b484684
fix: errors with CallSite methods ( #24907 )
...
Fixes https://github.com/denoland/deno/issues/24898
2024-08-06 09:20:09 +00:00
HasanAlrimawi
bbf23190d4
fix: update dry run success message ( #24885 )
2024-08-06 08:14:06 +00:00
Ryan Dahl
6995bd5bcc
docs: improve TextDecoder and TextEncoder jsdoc ( #24890 )
2024-08-06 09:56:54 +02:00
Divy Srivastava
696d528641
fix(ext/web): make TextDecoderResource use cppgc ( #24888 )
...
Fixes https://github.com/denoland/deno/issues/24878
2024-08-06 07:40:17 +00:00
Leo Kettmeir
ba40347a35
feat(fetch): accept async iterables for body ( #24623 )
...
Implements https://github.com/whatwg/webidl/pull/1397
Fixes #21454
Closes #24849
2024-08-06 00:13:02 -07:00
Divy Srivastava
f0cd2c45fc
fix(ext/web): make CompressionResource garbage collectable ( #24884 )
2024-08-06 12:31:11 +05:30
Yoshiya Hinosawa
646de0f7e2
docs(ext/canvas): document public Canvas APIs ( #24895 )
2024-08-06 13:45:16 +09:00
Nayeem Rahman
30a97d1e51
perf(lsp): remove fallback config scopes for workspace folders ( #24868 )
2024-08-06 01:10:02 +01:00
Bartek Iwańczuk
3e1f98236f
feat: Add Deno.ServeDefaultExport type ( #24879 )
...
Closes https://github.com/denoland/deno/issues/23725
2024-08-05 23:19:09 +02:00
Nathan Whitaker
ae8d048b6c
fix(node): Fix node IPC serialization for objects with undefined values ( #24894 )
...
We were serializing `{ a: undefined }` to `{ a: null }` instead of `{}`
2024-08-05 09:42:26 -07:00
snek
649725442a
feat: upgrade deno_core ( #24886 )
...
Fixes: https://github.com/denoland/deno/issues/24869
Includes changes for `node:vm` rewrite.
2024-08-05 08:28:12 -07:00
Leo Kettmeir
e97764e7ec
fix(urlpattern): correct typings for added APIs ( #24881 )
2024-08-05 07:21:57 -07:00
Leo Kettmeir
27ea23ea69
feat(urlpattern): add ignoreCase option & hasRegExpGroups property, and fix spec discrepancies ( #24741 )
...
Fixes #20906
Fixes #24266
Closes #21073
---------
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2024-08-05 01:49:28 -07:00
David Sherret
3f79db1486
fix(unstable): panic when running deno install with DENO_FUTURE=1 ( #24866 )
...
Not bothering to add a test for this because we're going to change this
to be the default in a couple weeks.
2024-08-05 10:36:09 +02:00
snek
71ca61e189
Revert "feat: async context" ( #24856 )
...
Reverts denoland/deno#24402
deno_web can't depend on code in runtime
2024-08-02 18:16:59 +00:00
snek
3a1a1cc030
feat: async context ( #24402 )
...
We are switching to ContinuationPreservedEmbedderData. This allows
adding async context tracking to the various async operations that deno
provides.
Fixes: https://github.com/denoland/deno/issues/7010
Fixes: https://github.com/denoland/deno/issues/22886
Fixes: https://github.com/denoland/deno/issues/24368
2024-08-02 08:14:35 -07:00
Bartek Iwańczuk
b82a2f114c
fix(ext/node): node:zlib coerces quality 10 to 9.5 ( #24850 )
...
Fixes https://github.com/denoland/deno/issues/24572
2024-08-02 16:44:32 +02:00
Luca Casonato
7495bcbf77
Revert "perf(ext/node): improve Buffer
from string performance" ( #24851 )
2024-08-02 16:23:21 +02:00
Ryan Dahl
e24aa6bbec
docs: category should be 'Subprocess', not 'Sub Process' ( #24852 )
2024-08-02 14:19:47 +00:00
David Sherret
0da81205d5
feat(unstable/fmt): move yaml formatting behind unstable flag ( #24848 )
...
This moves YAML formatting behind an unstable flag for Deno 1.46. This
will make it opt-in to start and then we can remove the flag to make it
on by default in version of Deno after that.
This can be specified by doing `deno fmt --unstable-yaml` or by
specifying the following in a deno.json file:
```json
{
"unstable": ["fmt-yaml"]
}
```
2024-08-02 13:52:48 +00:00
i-api
2aad92c30b
fix(cli): shorten examples in help text ( #24374 )
2024-08-02 13:38:15 +00:00
Luca Casonato
84ff418265
feat(test): rename --allow-none to --permit-no-files ( #24809 )
2024-08-02 13:18:59 +00:00
Pig Fang
124a13280e
feat(fmt): support YAML ( #24717 )
2024-08-02 12:12:51 +00:00
Andreas Deininger
ea121c9a0e
docs: fix typos ( #24820 )
...
This PR fixes various typos I spotted in the project.
2024-08-02 13:26:54 +02:00
David Sherret
bcdf600ae4
fix(fmt): handle using stmt in for of stmt ( #24834 )
...
Closes #24406
2024-08-02 06:29:29 -04:00
David Sherret
2ca9940f00
chore: mark upgrade_invalid_canary_version as flaky ( #24833 )
2024-08-02 12:28:21 +02:00
Kenta Moriuchi
d2b66e50fd
BREAKING(temporal/unstable): Remove obsoleted Temporal APIs ( #24836 )
2024-08-02 10:56:14 +02:00