Matt Mastracci
15c4edb0bf
fix(ext/http): Quietly ignore invalid status codes ( #19936 )
2023-07-26 08:55:08 -04:00
Bartek Iwańczuk
dee1514e19
perf: cache node resolution when accesing a global ( #19930 )
...
Reclaims some of the performance hit introduced by
https://github.com/denoland/deno/pull/19307 .
2023-07-26 08:55:04 -04:00
Martin Fischer
abdea44f3a
refactor: simplify signature of diagnose_resolution ( #19753 )
...
This commit makes the data flow in the
`diagnose_dependency` function more obvious.
2023-07-26 08:55:00 -04:00
Bartek Iwańczuk
4f8f258851
fix(lint): allow to use --rules with --rules-tags ( #19754 )
2023-07-26 08:54:56 -04:00
Vedant Pandey
2b73ea9b16
fix: deno info should respect import map ( #19781 )
...
Closes #19742
2023-07-26 08:54:50 -04:00
Bartek Iwańczuk
49b99b5dfe
fix(node): add writable and readable fields to FakeSocket ( #19931 )
...
Closes https://github.com/denoland/deno/issues/19927
2023-07-26 08:54:45 -04:00
Yoshiya Hinosawa
303680d09f
fix(ext/net): fix string port number handling in listen ( #19921 )
...
While string `port` is not allowed in typing, it seems we used to
support that and now it's broken. ref:
https://github.com/denoland/deno/issues/10064#issuecomment-1637427260
This PR restores the support of string port number in `listen` and
`listenTls`
2023-07-26 08:54:41 -04:00
Roj
abfeb4eef9
docs: nitpick README ( #19912 )
2023-07-26 08:54:37 -04:00
李瑞丰
2b8fe5d482
fix(cli/test): fix clear screen behavior when run deno test --watch
( #19888 )
...
fix #19725
2023-07-26 08:54:33 -04:00
sitogi
1cd1a63bdd
fix(cli/init): update to assert/mod.ts
( #19924 )
2023-07-26 08:54:29 -04:00
David Sherret
36cce3f287
refactor(ext/node): CjsCodeAnalyzer - analyze_cjs optionally pass source text ( #19896 )
2023-07-26 08:54:26 -04:00
Vedant Pandey
e14281cf51
fix(node_compat): Wrap require resolve exports in try catch block ( #19592 )
...
Potentially closes #19499
2023-07-26 08:54:20 -04:00
Jakub Jirutka
5f9c4a3ef4
fix(cli): build script panics on musl due to glibc_version check ( #19913 )
...
musl supports dynamic list.
This patch comes from
cb58b125ad/dev-lang/deno/files/glibc.patch
.
Resolves #17739
Note: This patch is already used in Alpine Linux’s
[deno](https://pkgs.alpinelinux.org/packages?name=deno ) package.
Co-authored-by: 12101111 <w12101111@gmail.com>
2023-07-26 08:54:16 -04:00
Luca Casonato
16c422ce43
fix(ext/node): inspector with seggregated globals ( #19917 )
...
V8 doesn't like having internal slots on the "real" globalThis object.
This commit works around this limitation by storing the inner globalThis
objects for segregated globals in a context slot.
2023-07-26 08:54:12 -04:00
Bartek Iwańczuk
bedf495cde
chore: update deno_core to 0.196.0 ( #19897 )
...
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2023-07-26 08:54:08 -04:00
Jakub Jirutka
c72e549f70
chore(deps): bump getrandom to 0.2.10 ( #19914 )
...
This version fixes compatibility with musl libc
(https://github.com/rust-random/getrandom/pull/326 ).
2023-07-26 08:54:04 -04:00
VlkrS
d72ee82565
feat(runtime): sys_info.rs - Use KERN_OSRELEASE on {Free,Open}BSD ( #19849 )
...
os_release() can use the same API as apple on FreeBSD and OpenBSD. Ports
for both systems contain a patch to that effect.
See:
https://github.com/freebsd/freebsd-ports/blob/main/www/deno/files/patch-runtime_ops_os_sys__info.rs
https://cvsweb.openbsd.org/ports/lang/deno/patches/patch-runtime_ops_os_sys_info_rs?rev=1.2
2023-07-26 08:53:49 -04:00
sigmaSd
cc305178d2
chore: update commonjs loading docs ( #19904 )
2023-07-26 08:53:45 -04:00
David Sherret
b0695aee6e
fix(lsp): handle watched files events from symlinked config files ( #19898 )
...
Related to https://github.com/denoland/vscode_deno/issues/784
2023-07-26 08:53:40 -04:00
Leo Kettmeir
fe75ca8797
fix(node/http): add encrypted field to FakeSocket ( #19886 )
...
Fixes #19557
2023-07-26 08:53:33 -04:00
solach
443b840e5e
fix(cli): output file handling in deno upgrade ( #18994 )
2023-07-26 08:53:29 -04:00
David Sherret
12767305cf
fix(lsp): auto-discover deno.json in more cases ( #19894 )
...
We weren't auto-discovering the deno.json in two cases:
1. A project that didn't have a deno.json and just added one.
2. After a syntax error in the deno.json.
This now rediscovers it in both these cases.
Closes https://github.com/denoland/vscode_deno/issues/867
2023-07-26 08:53:24 -04:00
Matt Mastracci
cb690b7ce3
refactor(ext/http): Use const thread-local initializer for slightly better perf ( #19881 )
...
Benchmarking shows numbers are pretty close, however this is recommended
for the best possible thread-local performance and may improve in future
Rust compiler revisions.
2023-07-26 08:53:19 -04:00
David Sherret
9ae87f46ed
perf(lsp): format in a blocking task ( #19883 )
2023-07-26 08:53:15 -04:00
Matt Mastracci
107ba10626
fix(ext/http): Error on deprecated/unavailable features ( #19880 )
...
Throws an error when user code attempts to use unsupported options (may
help reduce confusion when migrating to Deno.serve)
2023-07-26 08:53:09 -04:00
denobot
60fe8aa532
1.35.2 ( #19885 )
...
Bumped versions for 1.35.2
---------
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-07-20 03:29:23 +02:00
Bartek Iwańczuk
c00556b9d7
fix(napi): update env_test.js ( #19876 )
2023-07-20 01:53:37 +02:00
Luca Casonato
b8021744b3
feat(ext/node): properly segregate node globals ( #19307 )
...
Code run within Deno-mode and Node-mode should have access to a
slightly different set of globals. Previously this was done through a
compile time code-transform for Node-mode, but this is not ideal and has
many edge cases, for example Node's globalThis having a different
identity than Deno's globalThis.
This commit makes the `globalThis` of the entire runtime a semi-proxy.
This proxy returns a different set of globals depending on the caller's
mode. This is not a full proxy, because it is shadowed by "real"
properties on globalThis. This is done to avoid the overhead of a full
proxy for all globalThis operations.
The globals between Deno-mode and Node-mode are now properly segregated.
This means that code running in Deno-mode will not have access to Node's
globals, and vice versa. Deleting a managed global in Deno-mode will
NOT delete the corresponding global in Node-mode, and vice versa.
---------
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Aapo Alasuutari <aapo.alasuutari@gmail.com>
2023-07-20 01:53:37 +02:00
Leo Kettmeir
30feee81e1
fix(node/http): call callback after request is sent ( #19871 )
...
Fixes #19762
2023-07-20 01:53:36 +02:00
sigmaSd
624526ae85
fix(runtime): print process name in case of spawn error ( #19855 )
...
Fix https://github.com/denoland/deno/issues/19400
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2023-07-20 01:53:36 +02:00
Leo Kettmeir
7892655d61
fix(node/net): Server connection callback include socket value ( #19779 )
2023-07-20 01:53:36 +02:00
Divy Srivastava
176a0c7161
fix(ext/node): check if resource can be used with write_vectored ( #19868 )
...
Fixes https://github.com/denoland/deno/issues/19766
Fixes https://github.com/denoland/deno/issues/19846
2023-07-20 01:53:36 +02:00
Bartek Iwańczuk
0154a12bc4
fix(node): add process.dlopen API ( #19860 )
...
Fixes https://github.com/denoland/deno/issues/19830
2023-07-20 01:53:36 +02:00
Bartek Iwańczuk
bda38c10a7
chore: disable rustls logging ( #19859 )
...
This commit disables internal logging coming from `rustls` crate.
So messages like:
```
TLS alert received: AlertMessagePayload {
level: Fatal,
description: UnknownCA,
}
```
will no longer appear unconditionally.
2023-07-20 01:53:36 +02:00
David Sherret
e771bff44b
fix(npm): support dynamic import of Deno TS from npm package ( #19858 )
...
Closes #19843
2023-07-20 01:53:36 +02:00
Bartek Iwańczuk
d267eaa3b9
fix(bench): run warmup benchmark to break JIT bias ( #19844 )
...
Closes https://github.com/denoland/deno/issues/15277
This commit adds a single "warmup" run of empty function when running
`deno bench`.
This change will break so-called "JIT bias" which makes V8 optimize the
first function
and then bail out of optimization on second function. In essence the
"warmup" function
is getting optimized and then all user benches are bailed out of
optimization.
2023-07-20 01:53:35 +02:00
David Sherret
bbaab3b21c
fix(node): improve error message requiring non-npm es module ( #19856 )
...
Closes #19842
Closes #16913
2023-07-20 01:53:35 +02:00
David Sherret
3f523f07b1
fix(node): improve require esm error messages ( #19853 )
...
Part of #19842 .
Closes #19583
Closes #16913
2023-07-20 01:53:35 +02:00
await-ovo
efda7fa5eb
fix(ext/node): fix stream/promises export ( #19820 )
2023-07-20 01:53:35 +02:00
David Sherret
690e02268d
fix(vendor): do not panic vendoring with jsxImportSource and no jsx files ( #19837 )
...
Closes #19833
2023-07-20 01:53:35 +02:00
David Sherret
33ba31b390
fix(npm): improve error message importing non-existent file in a node_modules npm package ( #19835 )
2023-07-20 01:53:35 +02:00
Elian Cordoba
2bf2438f38
fix(npm): improve error message on directory import in npm package ( #19538 )
...
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2023-07-20 01:53:34 +02:00
puffyCid
2799e9d5ac
chore: update log, percent-encoding, and rusqlite ( #19815 )
2023-07-20 01:53:34 +02:00
David Sherret
533ee83fde
fix(tsc): more informative diagnostic when Deno
does not exist ( #19825 )
...
Also improved the diagnostic when using something like `Deno.openKv` and
it doesn't exist.
2023-07-20 01:53:34 +02:00
Matt Mastracci
ae2fecf45d
chore: update to Rust 1.71 ( #19822 )
2023-07-20 01:53:34 +02:00
idanran
be9576ccc6
docs: use Deno.serve
in README ( #19805 )
2023-07-20 01:53:34 +02:00
Bartek Iwańczuk
ef06ed28d8
chore: pin hyper dependency ( #19813 )
2023-07-13 00:46:34 +02:00
denobot
b4824bf45f
1.35.1 ( #19812 )
...
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2023-07-12 23:49:48 +02:00
Bartek Iwańczuk
5bc24c8a20
chore: disable failing node compat test ( #19811 )
2023-07-12 19:30:37 +00:00
David Sherret
80331d1fe5
fix(lsp): stop diagnostics flickering ( #19803 )
...
Closes https://github.com/denoland/vscode_deno/issues/835
2023-07-11 17:10:43 -04:00