Yoshiya Hinosawa
ce620cecbb
restore cares workaround for windows
2024-11-14 19:14:22 +09:00
Yoshiya Hinosawa
cc3d7b2ca8
do not set keepalive
2024-11-14 15:42:01 +09:00
Yoshiya Hinosawa
ce95e1659b
try clean up socket to prevent op leak
2024-11-13 15:13:13 +09:00
Yoshiya Hinosawa
eda4335d0e
fix lint errors
2024-11-13 14:32:16 +09:00
Yoshiya Hinosawa
be9946f331
I think we don't need this workaround anymore as we try connecting both ::1 and 127.0.0.1
2024-11-13 14:09:03 +09:00
Yoshiya Hinosawa
71cc419833
fix lint error
2024-11-13 12:51:55 +09:00
Yoshiya Hinosawa
3aad065798
revert hostname changes as we now have autoSelectFamily (aka happy eyeballs) enabled
2024-11-13 12:35:39 +09:00
Yoshiya Hinosawa
e999ae67ca
fix op leak
2024-11-13 12:33:31 +09:00
Yoshiya Hinosawa
ace7f8bbd6
modify test to avoid op leaks
2024-11-12 20:59:04 +09:00
Yoshiya Hinosawa
b276d38671
add note about _isNpmAgent
2024-11-12 20:23:35 +09:00
Yoshiya Hinosawa
bc44ae696d
Merge branch 'main' into support_create_connection
2024-11-12 20:22:30 +09:00
Yoshiya Hinosawa
c3c2b37966
fix(ext/node): add autoSelectFamily option to net.createConnection ( #26661 )
2024-11-12 19:54:47 +09:00
Satya Rohith
90236d67c5
fix(ext/http): prefer brotli for accept-encoding: gzip, deflate, br, zstd
( #26814 )
...
Closes https://github.com/denoland/deno/issues/26813
2024-11-12 12:10:41 +05:30
Yoshiya Hinosawa
b955d03740
test(ext/node): prevent running the same test cases twice ( #26812 )
2024-11-11 17:16:33 +09:00
Leo Kettmeir
bfc143a5ac
fix(ext/webstorage): use error class for sqlite error case ( #26806 )
...
Fixes #26797
2024-11-10 02:43:04 -08:00
denobot
e1b40a69c0
chore: forward v2.0.6 release commit to main ( #26804 )
...
This is the release commit being forwarded back to main for 2.0.6
Signed-off-by: Divy Srivastava <dj.srivastava23@gmail.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-11-10 13:12:18 +05:30
Divy Srivastava
ce778a947e
Revert "perf(upgrade): cache downloaded binaries in DENO_DIR" ( #26799 )
...
Reverts denoland/deno#26108
Tests are flaky on main
01de331742
2024-11-10 09:00:44 +05:30
Bartek Iwańczuk
01de331742
perf(upgrade): cache downloaded binaries in DENO_DIR ( #26108 )
...
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-11-09 15:19:46 +00:00
snek
73fbd61bd0
fix: performance.timeOrigin ( #26787 )
...
`performance.timeOrigin` was being set from when JS started executing,
but `op_now` measures from an `std::time::Instant` stored in `OpState`,
which is created at a completely different time. This caused
`performance.timeOrigin` to be very incorrect. This PR corrects the
origin and also cleans up some of the timer code.
Compared to `Date.now()`, `performance`'s time origin is now
consistently within 5us (0.005ms) of system time.
![image](https://github.com/user-attachments/assets/0a7be04a-4f6d-4816-bd25-38a2e6136926 )
2024-11-08 23:20:24 +01:00
Nathan Whitaker
d4f1bd3dac
fix(install): cache jsr deps from all workspace config files ( #26779 )
...
Fixes #26772 .
I wasn't aware that the `imports()` method only returned the workspace
root imports
2024-11-08 12:45:30 -08:00
Divy Srivastava
b482a50299
feat(ext/http): abort event when request is cancelled ( #26781 )
...
```js
Deno.serve(async (req) => {
const { promise, resolve } = Promise.withResolvers<void>();
req.signal.addEventListener("abort", () => {
resolve();
});
await promise;
return new Response("Ok");
});
```
2024-11-08 18:46:11 +05:30
Divy Srivastava
637b1d5508
fix(ext/cache): don't panic when creating cache ( #26780 )
2024-11-08 12:27:29 +05:30
Nathan Whitaker
bf82c6697a
chore: make commandWithCwdIsAsync test less flaky ( #26770 )
2024-11-07 15:02:33 -08:00
Divy Srivastava
b9262130fe
feat(ext/http): abort signal when request is cancelled ( #26761 )
...
Closes https://github.com/denoland/deno/issues/21653
2024-11-07 17:12:13 +05:30
Nathan Whitaker
742744d498
chore: serve node headers from a test server to fix flaky node-gyp
test ( #26749 )
...
Fixes https://github.com/denoland/deno/issues/24749
Runs a server that just returns the header tarball and checksum, and
sets the `NODEJS_ORG_MIRROR` env var so that `node-gyp` uses it instead
of `nodejs.org`
2024-11-06 19:52:46 -08:00
Leo Kettmeir
1cab4f07a3
refactor: use concrete error type for remaining ops ( #26746 )
2024-11-06 16:57:57 -08:00
Kaveh
db53ec230d
refactor(ext/net): Use hickory dns instead of unmaintained trust-dns ( #26741 )
...
This PR replaces the unmaintained and rebranded `trust-dns` to `hickory`
for resolver in `deno_net`.
2024-11-06 15:49:32 -08:00
Satya Rohith
b3a3d84ce2
fix(node:zlib): gzip & gzipSync should accept ArrayBuffer ( #26762 )
...
Closes https://github.com/denoland/deno/issues/26638
2024-11-06 15:12:24 +01:00
snek
700f54a13c
fix(ext/node): better inspector support ( #26471 )
...
implement local inspector
future changes:
- wire up InspectorServer to enable open/close/url
- wire up connectToMainThread
Fixes https://github.com/denoland/deno/issues/25004
2024-11-06 14:08:26 +00:00
Bartek Iwańczuk
64e887083a
fix(fmt): don't use self-closing tags in HTML ( #26754 )
...
Closes https://github.com/denoland/deno/issues/26748
2024-11-06 13:56:03 +01:00
Yoshiya Hinosawa
46f6849d58
reduce now unnecessary test changes
2024-11-06 20:33:34 +09:00
Yoshiya Hinosawa
2bd5a32da0
Merge branch 'main' into support_create_connection
2024-11-06 20:18:40 +09:00
Nayeem Rahman
5088b25f23
feat(lsp): auto-import completions from byonm dependencies ( #26680 )
2024-11-06 06:26:46 +00:00
denobot
ef7432c03f
chore: forward v2.0.5 release commit to main ( #26755 )
...
This is the release commit being forwarded back to main for 2.0.5
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-11-06 02:27:14 +01:00
Divy Srivastava
770ef14600
chore: upgrade publish workflow to ubuntu 24 ( #26731 )
2024-11-05 13:10:45 +05:30
Divy Srivastava
4861108592
fix: panic_hook hangs without procfs ( #26732 )
...
Fixes https://github.com/denoland/deno/issues/26701
Ref
69e491353f
2024-11-05 13:10:23 +05:30
Mohammad Sulaiman
89f0b796bd
chore: deprecate run itests ( #26444 )
2024-11-05 06:39:05 +00:00
Nathan Whitaker
f9a05068d6
fix(install): handle invalid function error, and fallback to junctions regardless of the error ( #26730 )
...
Fixes #26116 .
Handle the new error and treat is as lacking permission to make
symlinks, but also to make this more robust, just always fall back to
junctions no matter what the actual error is. Instead, warn if the error
isn't one we've handled, but go on to attempt creating the junction
2024-11-05 04:16:53 +00:00
Divy Srivastava
383cb85a73
fix: op_run_microtasks crash ( #26718 )
...
Upgrade deno_core to 0.318.0
Fixes https://github.com/denoland/deno_core/issues/951
Fixes https://github.com/denoland/deno/issues/26468
2024-11-05 09:13:54 +05:30
Nathan Whitaker
706b1dfcea
fix(add): better error message when adding package that only has pre-release versions ( #26724 )
...
Fixes https://github.com/denoland/deno/issues/26597
A small refactor as well to reduce some code duplication
2024-11-05 02:45:00 +00:00
Nathan Whitaker
44eca0505c
chore: fix serve_watch_all test ( #26725 )
...
It's been failing a ton lately, it looks like the test is just
incorrectly using TS syntax in a JS file
https://github.com/denoland/deno/actions/runs/11672972415/job/32502710624?pr=26724#step:43:2791
I'm not really sure how this ever passes
2024-11-05 01:09:17 +00:00
Bartek Iwańczuk
25ed90baae
ci: use self-hosted mac arm runner for building on tags ( #26727 )
2024-11-05 00:56:09 +01:00
Bartek Iwańczuk
051552172c
fix(workspace): support wildcard packages ( #26568 )
...
This commit adds support for wildcard packages in `workspace`
configuration option in `deno.json`. This is now supported:
```
{
"workspace": [
"./packages/*"
]
}
```
Closes https://github.com/denoland/deno/issues/25783
2024-11-05 00:42:18 +01:00
Nathan Whitaker
84aee0be9a
fix(ext/node): add findSourceMap
to the default export of node:module
( #26720 )
...
Next.js 15.0.2 tries to use this and errors out
2024-11-04 21:08:29 +00:00
David Sherret
bb3ca84e6d
fix(fmt): do not panic for jsx ignore container followed by jsx text ( #26723 )
2024-11-04 21:40:05 +01:00
Nayeem Rahman
d67765b0b4
fix(lsp): scope attribution for lazily loaded assets ( #26699 )
2024-11-04 20:01:31 +00:00
Scott Twiname
d55e30f418
fix(types): missing import
permission on PermissionOptionsObject
( #26627 )
2024-11-04 18:20:34 +00:00
Bartek Iwańczuk
9a39a98b57
fix(fmt): ignore file directive for YAML files ( #26717 )
...
Closes https://github.com/denoland/deno/issues/26712
Support `# deno-fmt-ignore-file` directive for YAML files.
Also added tests for single line ignores.
2024-11-04 17:57:29 +00:00
Leo Kettmeir
fe9f0ee593
refactor(runtime/permissions): use concrete error types ( #26464 )
2024-11-04 09:17:21 -08:00
Kenta Moriuchi
fb1d33a711
chore: update dlint to v0.68.0 for internal ( #26711 )
2024-11-04 12:17:11 -05:00