Yoshiya Hinosawa
6b482d7392
feat(coverage): add default coverage include dir ( #21625 )
2023-12-18 19:48:45 +09:00
Bartek Iwańczuk
5b2caed7fd
fix(coverage): error if no files found ( #21615 )
...
This commit fixes a panic in `deno coverage` command if the file
to be covered doesn't produce any coverage data.
Fixes https://github.com/denoland/deno/issues/21580
2023-12-18 11:43:27 +01:00
Bartek Iwańczuk
a44a5de430
refactor: factor out cdp::ExceptionThrown notification ( #21623 )
...
Just removing some duplicated code.
2023-12-18 11:43:02 +01:00
Raashid Anwar
9ede8d7b69
fix(bench): added group banner to bench output. ( #21551 )
...
Added group banner to bench output.
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-12-17 22:57:14 +00:00
Bartek Iwańczuk
4c2c053afe
fix: urls for publishing ( #21613 )
2023-12-17 10:50:11 +00:00
Bartek Iwańczuk
ceaa646a34
fix(jupyter): Deno.test() panic ( #21606 )
...
Fixes https://github.com/denoland/deno/issues/21594
I verified locally that this fixes the problem. I'm working on testing
harness for Jupyter kernel to catch regressions like this and will
add it in a follow up PR.
2023-12-17 11:11:07 +01:00
Nayeem Rahman
cd480b481e
fix(lsp): apply specifier rewrite to CompletionItem::text_edit ( #21564 )
2023-12-15 15:24:38 +00:00
Bartek Iwańczuk
fd6044dfec
fix: prompts when publishing ( #21596 )
2023-12-15 13:52:51 +00:00
Bartek Iwańczuk
cf1ba2f7e8
refactor: update reg url ( #21595 )
2023-12-15 14:14:28 +01:00
Divy Srivastava
81a6504e67
refactor: setup child process pipe in Rust ( #21579 )
...
Avoid passing the fd into JS and back into Rust. Instead we setup the
child's end of the pipe directly using a special Rust op.
2023-12-15 11:50:05 +01:00
Bartek Iwańczuk
62e3f5060e
refactor: check if scope and package exist before publish ( #21575 )
...
Signed-off-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Luca Casonato <lucacasonato@yahoo.com>
2023-12-15 10:27:10 +00:00
dependabot[bot]
a1870c70a1
chore(deps): bump zerocopy from 0.7.29 to 0.7.31 ( #21591 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-15 10:48:06 +01:00
Divy Srivastava
28048e7c12
fix(net): remove unstable check for unix socket listen ( #21592 )
...
Fixes https://github.com/denoland/deno/issues/21587
It seems this was missed in https://github.com/denoland/deno/pull/21463 .
cc @bartlomieju
2023-12-15 10:22:40 +01:00
Divy Srivastava
94c70fd719
chore(node-api): reuse SendPtr ( #21567 )
...
Pending review items from https://github.com/denoland/deno/pull/21406
2023-12-14 15:46:57 -07:00
Bartek Iwańczuk
c481ff7d81
refactor(ext/http): fork fly_accept_encodings crate ( #21586 )
...
Blocks update to Hyper 1.0. It's a really small library, no need to pull
it as a dependency.
Blocker for #21583
2023-12-14 18:43:33 +00:00
Bartek Iwańczuk
8d269efbc2
refactor(test_util): move servers to a separate module ( #21577 )
...
This commit has no functional changes, just moves all the testing
servers to "test_util::servers" module to make "test_util/src/lib.rs"
shorter.
2023-12-14 16:52:12 +00:00
David Sherret
ac04787c30
fix(node): support resolving a package.json import to a builtin node module ( #21576 )
...
Closes https://github.com/denoland/deno/issues/21501
2023-12-14 15:09:05 +00:00
Bartek Iwańczuk
19d52b9a55
refactor: split registry into multiple modules ( #21572 )
...
Co-authored-by: David Sherret <dsherret@gmail.com>
Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-12-14 12:05:59 +01:00
Divy Srivastava
f2c56dc3d8
chore(node): remove process.on("disconnect") not implemented warning ( #21569 )
2023-12-14 11:28:23 +01:00
Divy Srivastava
5ace65485f
fix(node): return false from vm.isContext ( #21568 )
...
https://github.com/denoland/deno/issues/20851#issuecomment-1779226106
for `jsdom`
2023-12-14 10:19:50 +00:00
David Sherret
4b6fc64646
chore(unstable/publish): ordered publish of packages in workspace ( #21550 )
...
Co-authored-by: Luca Casonato <hello@lcas.dev>
2023-12-14 10:55:56 +01:00
Matt Mastracci
5b96f7bf21
chore(runtime): fix build ( #21563 )
2023-12-13 21:52:23 +00:00
denobot
04ba8df711
1.39.0 ( #21560 )
...
Bumped versions for 1.39.0
Please ensure:
- [x] Target branch is correct (`vX.XX` if a patch release, `main` if
minor)
- [x] Crate versions are bumped correctly
- [x] deno_std version is incremented in the code (see
`cli/deno_std.rs`)
- [x] Releases.md is updated correctly (think relevancy and remove
reverts)
To make edits to this PR:
```shell
git fetch upstream release_1_39.0 && git checkout -b release_1_39.0 upstream/release_1_39.0
```
cc @mmastrac
---------
Co-authored-by: mmastrac <mmastrac@users.noreply.github.com>
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2023-12-13 13:24:13 -07:00
Asher Gomez
a3fc93a4cb
chore: deprecate Deno.Reader
, Deno.ReaderSync
, Deno.Writer
, Deno.WriterSync
and Deno.Closer
( #21465 )
...
This change deprecates `Deno.Reader`, `Deno.ReaderSync`, `Deno.Writer`,
`Deno.WriterSync` and `Deno.Closer` in favour of the [Web Streams
API](https://developer.mozilla.org/en-US/docs/Web/API/Streams_API ).
After discussing with Yoshiya, we both thought now might be the right
time to deprecate these interfaces with v2 getting closer.
2023-12-13 10:55:39 -07:00
pk
6ebe4c2997
fix (doc): Typo in runtime/README.md
( #20020 )
2023-12-13 17:24:32 +00:00
Divy Srivastava
38002ffdd7
fix(zlib): handle no flush flag in handle_.write ( #21432 )
...
Fixes https://github.com/denoland/deno/issues/21096
2023-12-13 09:58:56 -07:00
Heyang Zhou
10ab8c1ef1
feat(unstable): append commit versionstamp to key ( #21556 )
2023-12-14 00:58:20 +08:00
Matt Mastracci
76a6ea5775
refactor(cli): update to new deno_core promise/call methods ( #21519 )
2023-12-13 08:07:26 -07:00
Divy Srivastava
461ef6bdd8
fix(websockets): server socket field initialization ( #21433 )
2023-12-13 14:21:34 +00:00
lionel-rowe
346d812709
fix(runtime): Make native modal keyboard interaction consistent with browsers ( #18453 )
...
Fixes https://github.com/denoland/deno/issues/18223 .
Fixes https://github.com/denoland/deno/issues/21477
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-12-13 11:31:12 +01:00
Divy Srivastava
5a91a065b8
fix: implement child_process IPC ( #21490 )
...
This PR implements the Node child_process IPC functionality in Deno on
Unix systems.
For `fd > 2` a duplex unix pipe is set up between the parent and child
processes. Currently implements data passing via the channel in the JSON
serialization format.
2023-12-13 11:14:16 +01:00
Bartek Iwańczuk
bbf8f69cb9
test: integration tests for tarring/unfurling ( #21544 )
2023-12-13 11:00:45 +01:00
Igor Zinkovsky
86769b0d1c
feat(ext/kv) add backoffSchedule to enqueue ( #21474 )
...
Also reduces the time to run `kv_queue_undelivered_test.ts` test from
100 seconds down to 3 seconds.
closes #21437
2023-12-12 22:51:23 -08:00
Bartek Iwańczuk
0ceae7a490
refactor: suggest entrypoint on missing 'exports' ( #21549 )
2023-12-12 19:18:02 +01:00
Bartek Iwańczuk
ece78cfb8a
refactor: nicer warning display ( #21547 )
2023-12-12 23:45:45 +09:00
Bartek Iwańczuk
06c5f99a01
refactor: better handling for registry urls ( #21545 )
2023-12-12 23:45:20 +09:00
Yoshiya Hinosawa
93ea46b31d
fix(coverage): rename --pretty to --detailed ( #21543 )
2023-12-12 20:53:41 +09:00
Nayeem Rahman
7d88e48296
perf(lsp): use null types instead of stub modules ( #21541 )
2023-12-12 10:26:27 +00:00
Bartek Iwańczuk
49a6daaa83
perf(lsp): collect counts and durations of all requests ( #21540 )
...
In addition to collecting details per-request metrics of the last 3000
request this commit adds aggregate metrics for all requests.
2023-12-12 08:18:10 +01:00
Yoshiya Hinosawa
8ea35de158
chore: modify editorconfig settings ( #21533 )
2023-12-12 12:43:41 +09:00
Yoshiya Hinosawa
5ddf8732f0
feat(coverage): add summary reporter ( #21535 )
2023-12-12 12:42:57 +09:00
Matt Mastracci
a4f45f7092
perf(ext/ffi): switch from middleware to tasks ( #21239 )
...
Deno-side changes for https://github.com/denoland/deno_core/pull/350
---------
Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
2023-12-12 03:10:33 +00:00
Matt Mastracci
d13e45f2b3
perf(ext/napi): port NAPI to v8 tasks ( #21406 )
...
Part 2 of removing middleware.
This is somewhat awkward because `V8CrossThreadTaskSpawner` requires
tasks to be `Send`, but NAPI makes heavy use of `!Send` pointers. In
addition, Rust causes a closure to be `!Send` if you pull a `!Send`
value out of a struct.
---------
Signed-off-by: Matt Mastracci <matthew@mastracci.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2023-12-11 10:52:55 -07:00
David Sherret
a272bc1bd0
fix: ignore more paths in dynamic arg module search ( #21539 )
...
Upgrades deno_doc for https://github.com/denoland/deno_graph/pull/344
2023-12-11 10:46:24 -07:00
Bartek Iwańczuk
88566cee72
perf(lsp): instrument all ops with performance marks ( #21536 )
...
Adds performance measurements for all ops used by the LSP. Also changes
output of "Language server status" page to include more precise
information.
Current suspicion is that computing "script version" takes a long time
for some users.
2023-12-11 17:33:56 +01:00
Ryan Dahl
98121de5be
fix: allow reserved word 'mod' in exports ( #21537 )
...
This problem occurred trying to load tensorflow.js
```
> import * as tf from 'npm:@tensorflow/tfjs';
Uncaught SyntaxError: Identifier 'mod' has already been declared at file:///Users/ry/Library/Caches/deno/npm/registry.npmjs.org/@tensorflow/tfjs/4.14.0/dist/tf.node.js:167:14
at async <anonymous>:1:33
```
2023-12-11 17:23:50 +01:00
Bartek Iwańczuk
7bf267c197
perf(lsp): simplify some of the startup code ( #21538 )
...
Remove some dead code in "99_main_compiler.js". Eagerly start the LSP
TSC host, it was adding some not needed complexity around the TSC thread code.
2023-12-11 16:59:09 +01:00
David Sherret
6bdf2388da
fix(doc): ambient namespaces should have members as exports ( #21483 )
2023-12-11 14:09:52 +01:00
Yoshiya Hinosawa
073e341faf
fix(coverage): escape source code in html coverage report ( #21531 )
2023-12-11 19:24:20 +09:00
Yoshiya Hinosawa
e9ab9ba9f0
test(ext/node): enable some compat test cases ( #21532 )
...
This change uncomments Node.js compat test cases which was enabled by the
addition of `vm.runInNewContext`
https://github.com/denoland/deno/pull/21527
2023-12-11 19:17:36 +09:00