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
Asher Gomez
6f53ee69cb
chore: update WPT ( #25250 )
...
Co-authored-by: crowlkats <crowlkats@toaxl.com>
2024-09-04 12:41:24 +02:00
Coty
063a726af2
fix(cli/tools): correct deno init --serve
template behavior ( #25318 )
2024-09-04 12:41:08 +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
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
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
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
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
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
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
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
Nayeem Rahman
5e0836d4d8
refactor(lsp): changes for lsp_types 0.97.0 ( #25169 )
2024-08-29 15:34:31 +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
Nathan Whitaker
1a1a7afbff
fix(install): Use relative symlinks in deno install ( #25164 )
...
Fixes https://github.com/denoland/deno/issues/25161
2024-08-29 15:33:59 +02:00
Leo Kettmeir
9c23c52e4f
fix(urlpattern): fallback to empty string for undefined group values ( #25151 )
...
This change was introduced in #24741 , but due to the change in
behaviour, we will revert it and re-introduce it in 2.0
(cherry picked from commit 9bc7de9b13
)
2024-08-22 15:29:50 +02:00
Divy Srivastava
1bafcf538e
fix(ext/node): register node:wasi
built-in ( #25134 )
...
Fixes https://github.com/denoland/deno/issues/23531
(cherry picked from commit 2531204a34
)
2024-08-22 15:29:42 +02:00
Nathan Whitaker
48da3c17ea
fix(add): Handle packages without root exports ( #25102 )
...
Fixes #24607 .
This PR makes the logic that caches top level dependencies (things
present in import map) smarter, so we handle JSR dependencies without
root exports.
2024-08-21 15:23:32 -07:00
Nayeem Rahman
c22ff197db
fix(lsp): resolve jsx import source with types mode ( #25064 )
2024-08-21 20:00:23 +01:00
David Sherret
1d4169204c
fix: warn about import assertions when using typescript ( #25135 )
...
1. On emit, checks for the prescence of import assertions.
1. Warns and doesn't store the parsed source in the emit cache in this
case.
2024-08-21 17:12:56 +00:00
Nayeem Rahman
76990df6fa
chore(lsp): use 'install' terminology for jsr and npm packages ( #25119 )
2024-08-21 15:10:28 +01:00
Satya Rohith
e920835417
fix(ext/node): pass content-disposition header as string instead of bytes ( #25128 )
...
Closes https://github.com/denoland/deno/issues/25117
2024-08-21 10:13:17 +00:00
seb
a3a54bc747
fix(ext/net): validate port in Deno.{connect,serve,listen} ( #24399 )
...
Co-authored-by: Will Leach <4619280+melbourne2991@users.noreply.github.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-08-20 21:25:41 +00:00
David Sherret
37279e0b0a
fix(add): error when config file contains importMap field ( #25115 )
...
The "imports" field has higher precedence than "importMap", so we should
error when `deno add` goes to add an `"imports"` field.
Closes https://github.com/denoland/deno/issues/24264
Closes https://github.com/denoland/deno/pull/24478
2024-08-20 16:32:01 -04:00
David Sherret
a7c002ae63
chore: enable no-console dlint rule ( #25113 )
2024-08-20 15:14:37 -04:00
Nayeem Rahman
acba2cd48c
fix(lsp): include scoped import map keys in completions ( #25047 )
2024-08-20 19:38:47 +01:00
Yazan AbdAl-Rahman
a7c8bb1596
feat: glob and directory support for deno check
and deno cache
cli arg paths ( #25001 )
...
Closes #24668
Closes #20813
---------
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-08-20 18:38:06 +00:00
Bartek Iwańczuk
1f47248143
fix: adjust suggestion for lockfile regeneration ( #25107 )
...
Ref https://github.com/denoland/deno/pull/24436#issuecomment-2288568645
2024-08-20 20:13:17 +02:00
HasanAlrimawi
0704454755
feat: Print deprecation message for npm packages ( #24992 )
...
This commit adds ability to print deprecation notices
for npm packages that have been marked as deprecated.
Closes #24013
2024-08-20 19:53:53 +02:00
Nathan Whitaker
5168700be6
feat(config): Support frozen lockfile config option in deno.json ( #25100 )
...
Closes #24544
2024-08-20 14:55:47 +00:00
David Sherret
f1c58ec041
feat(unstable): ability to use a local copy of jsr packages ( #25068 )
2024-08-20 14:11:43 +00:00
Hajime-san
19bcb40059
feat(cli/tools): add a subcommand --hide-stacktraces
for test ( #24095 )
2024-08-20 01:27:36 +00:00
Yazan AbdAl-Rahman
4f49f703c1
fix(cli): update permission prompt message for compiled binaries ( #24081 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
2024-08-20 01:20:06 +00:00
melbourne2991
0eba180fdb
fix(repl): Prevent panic on broken pipe ( #21945 )
2024-08-20 00:21:12 +00:00
Yazan AbdAl-Rahman
4285cb339d
fix(lint): support linting tsx/jsx from stdin ( #24955 )
...
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2024-08-19 20:42:13 +00:00
Bartek Iwańczuk
b5051e25c2
feat: Deprecate "import assertions" with a warning ( #24743 )
...
This commit deprecates "import assertions" proposal that has been
replaced with "import attributes".
Any time an import assertion is encountered a warning will be printed
to the terminal. This warning will be printed for both local and
remote files (ie. user code and dependencies).
Import assertions support will be removed in Deno 2.
2024-08-19 22:36:35 +02:00
David Sherret
bf510544ef
chore: improve accessing special file test ( #25099 )
2024-08-19 16:21:27 -04:00
Bedis Nbiba
ee2b6899a1
fix: add permission name when accessing a special file errors ( #25085 )
2024-08-19 17:45:10 +00:00