Bartek Iwańczuk
b7f2bff5e3
fix(node): support nested tests in "node:test" ( #21717 )
...
Closes https://github.com/denoland/deno/issues/21679
2024-01-04 20:34:50 +01:00
Bartek Iwańczuk
53d33490b4
fix: allow npm: specifiers in import.meta.resolve ( #21716 )
...
Closes https://github.com/denoland/deno/issues/21298 .
"npm:" specifiers are matched against import map entries
and if no match is found they are passed through.
2024-01-04 20:34:50 +01:00
Bartek Iwańczuk
38fa2dbc1e
chore: update deno_core to 0.240.0 ( #21726 )
2024-01-04 20:34:49 +01:00
Divy Srivastava
2df2cd10d2
fix(node): Implement os.cpus() ( #21697 )
...
Fixes https://github.com/denoland/deno/issues/21666
Zero added dependency and tries to match the libuv implementation
2024-01-04 20:34:49 +01:00
Nayeem Rahman
730835498c
perf(lsp): use LanguageServiceHost::getProjectVersion() ( #21719 )
2024-01-04 20:34:49 +01:00
Bartek Iwańczuk
69cc117015
refactor: simplify hyper, http, h2 deps ( #21715 )
...
Main change is that:
- "hyper" has been renamed to "hyper_v014" to signal that it's legacy
- "hyper1" has been renamed to "hyper" and should be the default
2024-01-04 20:34:49 +01:00
Bartek Iwańczuk
c73abff4af
refactor: finish test_util server cleanup, simplify dependencies ( #21714 )
...
Closes https://github.com/denoland/deno/issues/21578
2024-01-04 20:34:49 +01:00
Lino Le Van
5efae447a4
fix(ext/node): Implement aes-192-ecb
and aes-256-ecb
( #21710 )
2024-01-04 20:34:49 +01:00
Bartek Iwańczuk
7a90ea3053
refactor: rewrite remaining test server to Hyper 1.1 ( #21708 )
...
Ref https://github.com/denoland/deno/issues/21578
2024-01-04 20:34:48 +01:00
Matt Mastracci
936d265f8a
perf: remove opAsync ( #21690 )
...
`opAsync` requires a lookup by name on each async call. This is a
mechanical translation of all opAsync calls to ensureFastOps.
The `opAsync` API on Deno.core will be removed at a later time.
2024-01-04 20:34:48 +01:00
Bartek Iwańczuk
0f9056974f
refactor: fastwebsockets renames ( #21707 )
...
We now use only a single version of "fastwebsockets" crate, so we no
longer need to have an alias.
2024-01-04 20:34:48 +01:00
Bartek Iwańczuk
69bb85ce0d
refactor: change cli/ to use hyper 1.1 ( #21705 )
2024-01-04 20:34:48 +01:00
Bartek Iwańczuk
0533ae4380
refactor: migrate ext/websocket to hyper 1.1 ( #21699 )
2024-01-04 20:34:48 +01:00
Bartek Iwańczuk
e7dedb8036
refactor: use hyper 1.0 in WS test server ( #21698 )
2024-01-04 20:34:48 +01:00
Divy Srivastava
1149ec8848
fix(ext/node): add ClientRequest#setNoDelay ( #21694 )
...
Fixes https://github.com/denoland/deno/issues/18316
2024-01-04 20:34:47 +01:00
Matt Mastracci
375164c51b
chore: bump deno_core ( #21675 )
2024-01-04 20:34:47 +01:00
Bartek Iwańczuk
3123634e91
refactor: use hyper 1.0 in grpc test server ( #21584 )
...
Ref https://github.com/denoland/deno/issues/21578
2024-01-04 20:34:47 +01:00
Matt Mastracci
841b758d0d
chore: ensure that each op provided to ensureFastOps is only used once ( #21689 )
...
When we migrate to op-import-per-extension, we will want to ensure that
ops have one and only one place where they are imported. This tackles
the ops that are imported via `ensureFastOps`, but does not yet tackle
direct `ops` imports.
Landing ahead of https://github.com/denoland/deno_core/pull/393
2024-01-04 20:34:47 +01:00
Matt Mastracci
2b4307af35
chore(ext/node): use BufView natively in http2 ( #21688 )
...
Node HTTP/2 was using the default h2 `Bytes` datatype when we can be
making using of `BufView` like we do in `Deno.serve`.
`fetch` and `Deno.serverHttp` can't make use of `BufView` because they
are using `reqwest` which is stuck on hyper 0.x at this time.
2024-01-04 20:34:47 +01:00
Bartek Iwańczuk
ff8abc50f9
refactor: upgrade inspector server to Hyper 1.1 ( #21599 )
...
This commit rewrites "runtime/inspector_server.rs" to use Hyper 1.1.
Now "deno_runtime" crate depends on both Hyper 1.x and 0.y versions.
2024-01-04 20:34:47 +01:00
Heyang Zhou
16550f0825
feat(unstable): only allow http2 for kv remote backend ( #21616 )
2024-01-04 20:34:46 +01:00
Bartek Iwańczuk
fa60ed1a8d
feat(lsp): allow to connect V8 inspector ( #21482 )
...
This commit adds a way to connect to the TS compiler host that is run
as part of the "deno lsp" subcommand. This can be done by specifying
"DENO_LSP_INSPECTOR" variable.
---------
Co-authored-by: Nayeem Rahman <nayeemrmn99@gmail.com>
2024-01-04 20:34:46 +01:00
Bartek Iwańczuk
c2446697f8
chore: update ext/http to hyper 1.0.1 and http 1.0 ( #21588 )
...
Closes https://github.com/denoland/deno/issues/21583 .
2024-01-04 20:34:46 +01:00
Heyang Zhou
b30dc11c4f
fix(unstable): kv watch should stop when db is closed ( #21665 )
...
Fixes #21634 .
2024-01-04 20:34:46 +01:00
denobot
68254ddc20
1.39.1 ( #21667 )
...
Bumped versions for 1.39.1
---------
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-12-21 16:46:13 +01:00
Divy Srivastava
26cf06ed9f
fix(node): child_process kill cancel pending IPC reads ( #21647 )
2023-12-20 07:55:09 +05:30
Divy Srivastava
5aa27c45f1
fix(node): add crypto.pseudoRandomBytes ( #21649 )
2023-12-20 07:54:55 +05:30
Divy Srivastava
55fac9f5ea
fix(node): child_process IPC on Windows ( #21597 )
...
This PR implements the child_process IPC pipe between parent and child.
The implementation uses Windows named pipes created by parent and passes
the inheritable file handle to the child.
I've also replace parts of the initial implementation which passed the
raw parent fd to JS with resource ids instead. This way no file handle
is exposed to the JS land (both parent and child).
`IpcJsonStreamResource` can stream upto 800MB/s of JSON data on Win 11
AMD Ryzen 7 16GB (without `memchr` vectorization)
2023-12-19 13:37:22 +01:00
Julien Cayzac
aefa205f63
fix(devcontainer): moved settings to customizations/vscode ( #21512 )
...
The current configuration use the deprecated top-level `settings` and
`extensions` keys. Those are now under `customizations/vscode`.
2023-12-19 13:29:39 +01:00
Kenta Moriuchi
68241234fa
fix(console): inspect for {Set,Map}Iterator
and Weak{Set,Map}
( #21554 )
2023-12-19 15:05:49 +09:00
Bartek Iwańczuk
476f5d3deb
fix(repl): remove stray debug log ( #21635 )
...
Left behind in #21623 by mistake.
2023-12-18 18:52:43 -07:00
Matt Mastracci
d51fda9e14
fix(ext/napi): don't close handle scopes in NAPI as the pointers are invalid ( #21629 )
...
`napi_open_handle_scope` was returning a bogus handle_scope and we were
trying to close it in `napi_close_handle_scope`.
This is a bit of a challenge to test, but the following testcase comes
from #21601 and appears to be fixed by this.
```
import { decode } from "https://deno.land/std@0.209.0/encoding/base64.ts ";
import sharp from "npm:sharp";
const img = 'iVBORw0KGgoAAAANSUhEUgAAAQAAAAEAAQMAAABmvDolAAAAA1BMVEWq09/P7Lz1AAAAH0lEQVRoge3BAQ0AAADCoPdPbQ43oAAAAAAAAAAAvg0hAAABmmDh1QAAAABJRU5ErkJggg==';
Deno.test("async", async () => {
const id = setTimeout(() => Deno.exit(1), 1000);
await sharp(decode(img)).toBuffer();
await sharp(decode(img)).toBuffer();
clearTimeout(id);
});
```
2023-12-18 08:48:52 -07:00
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