David Sherret
0da01c0ca6
refactor: move PackageJson to deno_config ( #24348 )
2024-06-26 21:24:10 +00:00
ud2
86e0292733
perf(ext/node): improve Buffer.from(buffer)
( #24352 )
...
Benchmark code from #24341 .
```shellsession
$ deno run --allow-hrtime bench.mjs
6479.111583
$ target/release/deno run --allow-hrtime bench.mjs
962.753875
$ node bench.mjs
855.174875
```
2024-06-26 17:11:56 -04:00
David Sherret
77ba0019e7
Revert "perf: improve Buffer.from(buf) by 29x" ( #24351 )
...
https://github.com/denoland/deno/pull/24341#discussion_r1655247367
Reverts denoland/deno#24341
2024-06-26 16:23:09 -04:00
Divy Srivastava
2549e5154c
perf: optimize Buffer.from("base64") for forgiving-base64 conforming input ( #24346 )
2024-06-26 06:24:58 -07:00
Divy Srivastava
6da87450ed
perf: improve Buffer.from(buf) by 29x ( #24341 )
2024-06-26 06:24:48 -07:00
David Sherret
eb283c43f5
refactor: bump deno_graph to 0.79 ( #24337 )
...
No fixes in this to my knowledge. Just an upgrade. The functionality
here will be used in a different PR.
2024-06-26 01:42:18 +00:00
Bartek Iwańczuk
09cc473f3b
fix(node): add missing readline/promises module ( #24336 )
...
Fixes https://github.com/jsr-io/jsr-npm/issues/91
2024-06-25 19:15:54 -04:00
snek
700cd200c1
feat: add module.parent ( #24333 )
...
This field is deprecated but still used by the ecosystem, so let's just
support it.
2024-06-25 11:17:35 -07:00
Divy Srivastava
a1ff1a453c
fix(ext/websocket): drop connection when close frame not ack ( #24301 )
...
Fixes #24292
2024-06-25 19:09:02 +05:30
Satya Rohith
13aa1d70e9
fix(ext/node): ignore stream error during enqueue ( #24243 )
2024-06-25 17:02:40 +05:30
Satya Rohith
b71a859188
test(node_compat): enable more stream-writable tests ( #24328 )
2024-06-25 09:36:40 +00:00
Luca Casonato
1e8a6b94b1
fix(ext/node): rewrite crypto.Hash ( #24302 )
...
Changes in this PR:
- Added new fixed size hash algorithms (blake2b512, blake2s256,
sha512-224, sha512-256, sha3-224, sha3-256, sha3-384, sha3-512, sm3)
- Added variable size hash algorithms (the concept), with the algorithms
shake128 and shake256
- Use cppgc instead of resources for the hasher
- Enable Node's crypto.Hash tests and fix found bugs
2024-06-24 11:47:12 +02:00
Asher Gomez
ff53506107
fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_dir.ts
( #24319 )
...
Towards #24236
---------
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Satya Rohith <me@satyarohith.com>
2024-06-24 06:22:55 +00:00
Asher Gomez
0833a1617c
fix(ext/node): use primordials in ext/node/polyfills/_fs/_fs_cp.js
( #24320 )
...
Towards #24236
2024-06-24 16:17:26 +10:00
Asher Gomez
dc4a88b7a6
fix(ext/node): use primordials in ext/node/polyfills/timers.ts
( #24311 )
...
Towards #24236
2024-06-24 15:50:02 +10:00
Asher Gomez
1c7ae83ca1
fix(ext/node): use primordials in ext/node/polyfills/testing.ts
( #24310 )
...
Towards #24236
2024-06-24 15:49:32 +10:00
Luca Casonato
973d186e8f
chore: use sha1 crate, not sha-1 ( #24306 )
2024-06-23 16:39:14 +02:00
Divy Srivastava
416df1e895
fix(ext/node): add ServerResponse#appendHeader ( #24216 )
2024-06-21 19:21:59 +05:30
Divy Srivastava
fc197a7ac0
Revert #[cppgc] &mut T
usage ( #24304 )
2024-06-21 16:12:44 +05:30
Luca Casonato
e6756c3e66
fix(ext/node): don't panic on invalid utf-8 in pem ( #24303 )
2024-06-21 10:25:07 +00:00
Divy Srivastava
5683ca4070
chore(ext/node): cleanup zlib state ops ( #24300 )
2024-06-21 13:11:52 +05:30
Divy Srivastava
496428b82e
chore(ext/node): cleanup net blocklist ops ( #24299 )
2024-06-21 06:10:01 +00:00
Asher Gomez
c012c202af
docs(cli): remove trailing slash from import.meta.dirname
expected output ( #24295 )
2024-06-21 15:52:46 +10:00
Asher Gomez
9168078669
fix(ext/node): use primordials in ext/node/polyfills/string_decoder.ts
( #24296 )
2024-06-21 15:52:20 +10:00
Divy Srivastava
b4939f3379
fix: upgrade deno_core to 0.291.0 ( #24297 )
2024-06-21 10:49:39 +05:30
ud2
88e3f465d3
refactor(ext): remove use of brotli::ffi
( #24214 )
2024-06-20 20:44:24 +05:30
Asher Gomez
6ab143335a
fix(ext/node): use primordials in ext/node/polyfills/_brotli.js
( #24235 )
...
Towards #24236
2024-06-20 17:44:23 +10:00
Asher Gomez
510db0a86e
fix(ext/node): use primordials in ext/node/polyfills/_process/
( #24282 )
2024-06-20 17:26:34 +10:00
Asher Gomez
28ee0a5bdd
fix(ext/node): use primordials in ext/node/polyfills/_http_common.ts
( #24281 )
2024-06-20 17:26:14 +10:00
Divy Srivastava
a03c833839
perf(ext/websocket): avoid global interceptor overhead ( #24284 )
2024-06-20 05:02:51 +00:00
Divy Srivastava
0b65d027a1
fix(ext/node): use cppgc for node:zlib ( #24267 )
2024-06-20 10:31:53 +05:30
Luca Bruno
2cfaee0838
perf(ws): optimize fastwebsockets in release profile ( #24277 )
2024-06-20 09:05:25 +05:30
David Sherret
b62534dbf1
fix(task): do not propagate env changes outside subshells ( #24279 )
...
* https://github.com/denoland/deno_task_shell/pull/120
2024-06-20 00:57:53 +00:00
snek
293a36f98d
fix: more node-api fixes ( #24220 )
...
- add fallback impls of external string apis which always copy. after
upstream changes to rusty_v8 we can support non-copying api as well.
- `napi_get_buffer_data` needs to work on all TypedArray instances.
- Fixes: https://github.com/denoland/deno/issues/24209
- `target_defaults.default_configuration` is used by some modules to
find the corresponding node file from node-gyp
- `node_api_get_module_filename` expects the filename to be a `file:`
url.
2024-06-19 11:33:46 -07:00
denobot
6c6ee02dfd
chore: forward v1.44.4 release commit to main ( #24271 )
...
This is the release commit being forwarded back to main for 1.44.4
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-06-19 20:29:53 +02:00
Bartek Iwańczuk
b94707af7d
Revert "chore: upgrade to reqwest 0.12.4 and rustls 0.22 ( #24056 )" ( #24262 )
...
This reverts commit fb31eaa9ca
.
Reverting because users reported spurious errors when downloading
dependencies - https://github.com/denoland/deno/issues/24260 .
Closes https://github.com/denoland/deno/issues/24260
2024-06-19 16:09:17 +02:00
Asher Gomez
f4eead61eb
fix(ext/node): use primordials in ext/node/polyfills/_utils.ts
( #24253 )
2024-06-19 18:29:26 +10:00
Divy Srivastava
8dd7beb7c6
fix(ext/node): Add SIGPOLL and SIGUNUSED signals ( #24259 )
2024-06-19 13:41:09 +05:30
Divy Srivastava
209b286813
fix(ext/node): Add Dirent.path and Dirent.parentPath ( #24257 )
2024-06-19 12:51:01 +05:30
denobot
1d6b775f81
chore: forward v1.44.3 release commit to main ( #24256 )
...
This is the release commit being forwarded back to main for 1.44.3
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-06-19 03:17:32 +02:00
dependabot[bot]
cfaffe9e5b
build(deps): bump curve25519-dalek from 4.1.2 to 4.1.3 ( #24251 )
...
Bumps
[curve25519-dalek](https://github.com/dalek-cryptography/curve25519-dalek )
from 4.1.2 to 4.1.3.
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-06-18 23:31:02 +00:00
Bartek Iwańczuk
5407510791
chore: remove deno_core patch ( #24252 )
...
A PR was landed by mistake that used `[patch.crates-io]` instead
of released `deno_core` version:
https://github.com/denoland/deno/pull/23842#discussion_r1645170369
2024-06-18 23:00:13 +00:00
Nayeem Rahman
810474d8b7
fix(lsp): use import map from workspace root ( #24246 )
...
Follow up to #24206 which broke deno_std intellisense.
2024-06-19 00:00:17 +02:00
Tom Alcorn
5289c69271
fix(ext/web): fix AbortSignal.timeout()
leak ( #23842 )
...
<!--
Before submitting a PR, please read
https://docs.deno.com/runtime/manual/references/contributing
1. Give the PR a descriptive title.
Examples of good title:
- fix(std/http): Fix race condition in server
- docs(console): Update docstrings
- feat(doc): Handle nested reexports
Examples of bad title:
- fix #7123
- update docs
- fix bugs
2. Ensure there is a related issue and it is referenced in the PR text.
3. Ensure there are tests that cover the changes.
4. Ensure `cargo test` passes.
5. Ensure `./tools/format.js` passes without changing files.
6. Ensure `./tools/lint.js` passes.
7. Open as a draft PR if your work is still in progress. The CI won't
run
all steps, but you can add '[ci]' to a commit message to force it to.
8. If you would like to run the benchmarks on the CI, add the 'ci-bench'
label.
-->
Fixes #20663 .
---------
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-06-19 07:47:05 +10:00
David Sherret
cba212b9c6
perf(node): ensure cjs wrapper module has deterministic output ( #24248 )
2024-06-18 17:24:18 -04:00
Luca Casonato
7b5c514763
fix(ext/console): bump default max str lengthto 10_00 ( #24245 )
2024-06-18 19:00:16 +02:00
Divy Srivastava
10ac3bb091
fix(ext/node): make process.versions own property ( #24240 )
2024-06-18 16:33:03 +05:30
Satya Rohith
8c4b33db0d
feat(ext/node): add BlockList & SocketAddress classes ( #24229 )
...
Closes https://github.com/denoland/deno/issues/24059
2024-06-18 10:46:13 +00:00
safaa-mojahed
4b83ce8aca
fix(repl): prevent panic when deleting globalThis.closed property ( #24014 )
2024-06-17 21:34:25 -04:00
Asher Gomez
6819c3d7f6
fix(ext/node): use Deno.FsFile.statSync()
( #24234 )
2024-06-17 22:40:05 +00:00