David Sherret
a14e9f55b4
feat(fmt): sort type-only named import/exports last ( #25690 )
...
Closes #22583
2024-09-17 18:26:23 +01:00
David Sherret
b0525edd6f
feat: warn when using --allow-run
with no allow list ( #25215 )
2024-09-16 23:08:02 +00:00
Asher Gomez
51d926ac30
chore(fs): undeprecate Deno.FsWatcher.prototype.return()
( #25623 )
2024-09-17 07:57:53 +10:00
David Sherret
8fe90d2861
fix(npm): better error handling for remote npm deps ( #25670 )
...
* https://github.com/denoland/deno_npm/pull/68
2024-09-16 21:23:40 +00:00
Nathan Whitaker
e81c67ba22
feat(permissions): Deno.mainModule
doesn't require permissions ( #25667 )
...
Closes https://github.com/denoland/deno/issues/7315 .
2024-09-16 13:43:52 -07:00
David Sherret
62e952559f
refactor(permissions): split up Descriptor into Allow, Deny, and Query ( #25508 )
...
This makes the permission system more versatile.
2024-09-16 21:39:37 +01:00
HasanAlrimawi
e0b9c745c1
chore: deprecate test itests ( #25512 )
...
This PR is part of #22907
---------
Signed-off-by: HasanAlrimawi <141642411+HasanAlrimawi@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-09-16 19:38:40 +00:00
David Sherret
6ce16145dd
chore: maybe fix flaky serve_parallel test ( #25668 )
2024-09-16 18:55:49 +00:00
HasanAlrimawi
36a1a79f17
chore: deprecate lint itests ( #25655 )
2024-09-16 17:45:25 +00:00
Mohammad Sulaiman
acc32e1cee
chore: move info itests ( #25659 )
2024-09-16 17:08:00 +00:00
Bartek Iwańczuk
968f441da3
test: rewrite some ignored tests to spec tests ( #25652 )
...
Ref https://github.com/denoland/deno/issues/25241
Rewritten these tests:
- check::package_json_basic
- check::package_json_fail_check
- check::package_json_with_deno_json
- info::package_json_basic
- test::package_json_basic
- run::package_json_auto_discovered_for_npm_binary
- run::package_json_with_deno_json
2024-09-16 15:39:58 +02:00
Luca Casonato
74069add3f
fix(runtime): don't error child.output()
on consumed stream ( #25657 )
...
This fixes the fast path for `readableStreamCollectIntoUint8Array` to
only trigger if the readable stream has not yet been disturbed -
because otherwise we may not be able to close it if the
read errors.
2024-09-16 14:23:40 +02:00
Aapo Alasuutari
f8547e2617
BREAKING(ext/ffi): remove deprecated UnsafeFnPointer
constructor type with untyped Deno.PointerObject
parameter ( #25577 )
2024-09-16 22:08:36 +10:00
Luca Casonato
81c9e0ba25
fix(ext/crypto): support md4 digest algorithm ( #25656 )
...
Fixes #25646
2024-09-16 11:04:40 +00:00
Mohammad Sulaiman
eb8ee95f08
chore: deprecate node compat itests ( #25573 )
2024-09-16 09:53:20 +01:00
Asher Gomez
e4ea9be874
chore: cleanup remaining internals.future
code ( #25624 )
2024-09-16 09:28:35 +10:00
Divy Srivastava
a666c8c9f9
fix(cli): deno task
exit with status 0 ( #25637 )
...
Fixes https://github.com/denoland/deno/issues/25632
Exit code 1 indiciates some sort of failure but `deno task` (without
arguments) is used to list available commands.
---------
Co-authored-by: Yoshiya Hinosawa <stibium121@gmail.com>
2024-09-15 11:29:24 +05:30
Marvin Hagemeister
597f2d8d4d
feat: print Listening on
messages on stderr instead of stdout ( #25491 )
...
Fixes https://github.com/denoland/deno/issues/25114
---------
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: crowlkats <crowlkats@toaxl.com>
Co-authored-by: Nathan Whitaker <17734409+nathanwhit@users.noreply.github.com>
2024-09-14 23:30:06 +02:00
David Sherret
af2d992ecd
feat: TypeScript 5.6 and npm:@types/node@22
( #25614 )
2024-09-14 11:58:47 +01:00
David Sherret
8539cacbbe
chore: update more registry.json files ( #25615 )
...
Extracted out of https://github.com/denoland/deno/pull/25614
It's better for these to be non-minified because then diffs are better
when adding new versions.
2024-09-13 15:27:20 +01:00
Asher Gomez
394a620da3
chore: enable specs::run::workspaces::explicit_import_map
test ( #25611 )
...
Towards #25241
2024-09-13 11:52:48 +02:00
Ian Bull
606b7b17c6
refactor(runtime): align error messages ( #25563 )
...
Aligns the error messages in the runtime folder to be in-line with the
Deno style guide.
https://github.com/denoland/deno/issues/25269
2024-09-13 11:38:45 +02:00
Nathan Whitaker
7477c2d706
feat(serve): Support second parameter in deno serve ( #25606 )
...
Closes #24099
2024-09-12 23:32:28 +00:00
Nathan Whitaker
18b89d948d
fix(ext/node): Implement detached option in child_process
( #25218 )
...
Fixes https://github.com/denoland/deno/issues/25193 .
2024-09-12 19:24:58 +00:00
Yoshiya Hinosawa
3f15e30062
fix(ext/node): fix Decipheriv when autoPadding disabled ( #25598 )
...
This change fixes Decipheriv behavior when autoPadding disabled and enabled.
By this change, the example given in
https://github.com/denoland/deno/issues/20924#issuecomment-2345931295
works in the same way as Node.
closes #20924
2024-09-13 01:13:56 +09:00
Asher Gomez
d656a26862
chore: update std
submodule ( #25595 )
...
Unblocks #25551
2024-09-12 22:32:09 +10:00
David Sherret
b0265eaf8f
chore(test): add script for pruning registry.json files ( #25594 )
2024-09-12 12:15:38 +00:00
MujahedSafaa
4983f763d4
fix(ext/console): prevent duplicate error printing when the cause is assigned ( #25327 )
...
This commit fixes the error format when the cause is assigned
separately, ensuring that the cause is only printed once instead of
twice.
The fix addresses issue
[#21651 ](https://github.com/denoland/deno/issues/21651 ).
2024-09-12 05:02:32 -07:00
snek
c9065103b8
fix: add test ensuring als works across dynamic import ( #25593 )
...
The fix is in https://github.com/denoland/deno_core/pull/888
Fixes: https://github.com/denoland/deno/issues/25275
Signed-off-by: snek <snek@deno.com>
2024-09-12 05:42:26 +00:00
Bartek Iwańczuk
46d5f38a0f
fix(ext/node): export request and response clases from http2
module ( #25592 )
...
Closes https://github.com/denoland/deno/issues/20612
Closes https://github.com/denoland/deno/issues/23326
This makes `qwik` work.
2024-09-12 02:03:57 +00:00
Asher Gomez
3285801429
test: remove DENO_FUTURE
( #25587 )
2024-09-12 11:30:12 +10:00
Asher Gomez
8476bbff9a
feat: stabilize Deno.createHttpClient()
( #25569 )
...
Closes #25518
2024-09-12 10:46:48 +10:00
HasanAlrimawi
1463a4ad58
chore: deprecate task itests ( #25558 )
...
This PR is part of #22907
2024-09-11 17:39:47 +02:00
Bartek Iwańczuk
c64aa50c0e
feat(upgrade): better error message on failure ( #25503 )
...
Co-authored-by: crowlkats <crowlkats@toaxl.com>
2024-09-11 17:19:45 +02:00
Yoshiya Hinosawa
aae3a6bcb4
fix(ext/node): fix Cipheriv#update(string, undefined)
( #25571 )
2024-09-11 19:24:17 +09:00
Yoshiya Hinosawa
200145a09a
fix(ext/node): avoid showing UNKNOWN
error from TCP handle ( #25550 )
2024-09-11 19:19:02 +09:00
Nayeem Rahman
ad30703e8e
fix(lsp): encode url parts before parsing as uri ( #25509 )
2024-09-11 11:11:39 +01:00
Yoshiya Hinosawa
8bdd364dd5
fix(ext/node): add FileHandle#writeFile
( #25555 )
...
This PR adds `writeFile` methods of `FileHandle` class
https://nodejs.org/api/fs.html#filehandlewritefiledata-options
2024-09-11 11:08:40 +02:00
Yoshiya Hinosawa
ef2d98fe11
fix(ext/node): validate input lengths in Cipheriv
and Decipheriv
( #25570 )
...
addresses the first part of #25279
2024-09-11 13:27:07 +09:00
Nayeem Rahman
f959297dcd
feat(lsp): unstable setting as list ( #25552 )
2024-09-11 00:20:03 +01:00
Asher Gomez
4865ae13e1
BREAKING(net): remove Deno.[Tls]Listener.prototype.rid
( #25556 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-11 01:14:50 +02:00
Asher Gomez
ace1202227
BREAKING(net): remove Deno.ConnectTlsOptions.{certChain,certFile,privateKey}
and Deno.ListenTlsOptions.certChain,certFile,keyFile}
( #25525 )
...
Towards #22079
2024-09-10 21:55:42 +00:00
Nathan Whitaker
be0ba6d84f
fix(ext/node): Rewrite node:v8
serialize/deserialize ( #25439 )
...
Closes #20613 .
Reimplements the serialization on top of the v8 APIs instead of
deno_core. Implements `v8.Serializer`, `v8.DefaultSerializer`,
`v8.Deserializer`, and `v8.DefaultSerializer`.
2024-09-10 21:50:21 +00:00
Kenta Moriuchi
e522f4b65a
BREAKING(temporal/unstable): Remove obsoleted Temporal APIs part 2 ( #25505 )
...
Mainly I removed `Temporal.Calendar` and `Temporal.TimeZone` and
replaced them to APIs that handle calendar and timezone as strings.
https://github.com/tc39/proposal-temporal/pull/2925
Related #24836
2024-09-10 21:36:43 +00:00
Asher Gomez
a69b1e699e
BREAKING(fs): remove Deno.FsFile.prototype.rid
( #25499 )
...
Towards #22079
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-09-11 07:19:34 +10:00
snek
f9007d3386
feat: require(esm) ( #25501 )
...
implement require(esm) using `op_import_sync` from deno_core.
possible future changes:
- cts and mts
- replace Deno.core.evalContext to optimize esm syntax detection
Fixes: https://github.com/denoland/deno/issues/25487
2024-09-10 20:12:36 +00:00
Luca Casonato
7bfcb4dd10
feat(cli): use NotCapable error for permission errors ( #25431 )
...
Closes #7394
---------
Co-authored-by: snek <snek@deno.com>
2024-09-10 11:12:24 -07:00
Leo Kettmeir
c2f97494f7
refactor: move WebGPU, FFI and FS typings from unstable to stable ( #25488 )
...
Closes #25377
2024-09-10 05:04:59 -07:00
Bartek Iwańczuk
9a169e3cf1
test: remove usage of --unstable
flag ( #25549 )
...
This commit removes all occurrences of `--unstable` flag
from all the tests that are run in CI.
Turns out none of the tests actually required that flag
anymore.
2024-09-10 11:28:59 +00:00
HasanAlrimawi
3f6afd1947
fix: update malva in deno to support astro css comments ( #25553 )
...
This PR addresses issue #25534
**Code Changes**
- Updated malva version to the latest in cli/Cargo.toml.
- Updated LanguageOptions to match new Malva config.
- Added test case same as the issue to assure changes success.
2024-09-10 12:54:43 +02:00