Commit Graph

1755 Commits

Author SHA1 Message Date
denobot
2c97831fec
1.40.5 (#22423)
Bumped versions for 1.40.5

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-02-15 10:52:42 +05:30
Florian Schwalm
24af5a2c4c fix(ext/web): Prevent (De-)CompressionStream resource leak on stream cancellation (#21199)
Based on #21074 and #20741 I was looking for further potential use cases
of `TransformStream` `cancel()` method, so here go `CompressionStream`
and `DecompressionStream`.

Fixes #14212
2024-02-15 10:32:21 +05:30
Asher Gomez
8d228ca8d6 chore: cleanup ext/net/02_tls.js (#22032)
`certFile` was being passed to `op_tls_start()` when it's unused and
undocumented.

Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-02-15 10:32:21 +05:30
Asher Gomez
bb105e4d62 chore: cleanup obsolete Datagram export (#22078)
This isn't used anywhere outside the originating file.
2024-02-15 10:32:21 +05:30
Asher Gomez
78ab022073 chore: move test_util/std to tests/util/std (#22402)
Note: tests are not the only part of the codebase that uses `std`. Other
parts, like `tools/`, do too. So, it could be argued that this is a
little misleading. Either way, I'm doing this as discussed with
@mmastrac.
2024-02-15 10:32:21 +05:30
Divy Srivastava
4a7213ea69 fix(ext/node): export process.umask (#22348)
Fixes https://github.com/denoland/deno/issues/20914
2024-02-15 10:32:21 +05:30
Matt Mastracci
de664f9a9d chore: move test_ffi and test_nap to tests/ [WIP] (#22394)
Moving some additional NAPI and. FFI tests out of the tree root.
2024-02-15 10:32:21 +05:30
Leo Kettmeir
fe18597e34 fix(console): support NO_COLOR and colors option in all scenarios (#21910)
Noticed in #21607
2024-02-15 10:32:21 +05:30
林炳权
1a26898377 chore: update to Rust 1.76 (#22376)
Update to Rust 1.76
2024-02-15 10:32:21 +05:30
Matt Mastracci
83074caed0 refactor: split integration tests from CLI (part 1) (#22308)
This PR separates integration tests from CLI tests into a new project
named `cli_tests`. This is a prerequisite for an integration test runner
that can work with either the CLI binary in the current project, or one
that is built ahead of time.

## Background

Rust does not have the concept of artifact dependencies yet
(https://github.com/rust-lang/cargo/issues/9096). Because of this, the
only way we can ensure a binary is built before running associated tests
is by hanging tests off the crate with the binary itself.

Unfortunately this means that to run those tests, you _must_ build the
binary and in the case of the deno executable that might be a 10 minute
wait in release mode.

## Implementation

To allow for tests to run with and without the requirement that the
binary is up-to-date, we split the integration tests into a project of
their own. As these tests would not require the binary to build itself
before being run as-is, we add a stub integration `[[test]]` target in
the `cli` project that invokes these tests using `cargo test`.

The stub test runner we add has `harness = false` so that we can get
access to a `main` function. This `main` function's sole job is to
`execvp` the command `cargo test -p deno_cli`, effectively "calling"
another cargo target.

This ensures that the deno executable is always correctly rebuilt before
running the stub test runner from `cli`, and gets us closer to be able
to run the entire integration test suite on arbitrary deno executables
(and therefore split the build into multiple phases).

The new `cli_tests` project lives within `cli` to avoid a large PR. In
later PRs, the test data will be split from the `cli` project. As there
are a few thousand files, it'll be better to do this as a completely
separate PR to avoid noise.
2024-02-15 10:32:20 +05:30
denobot
32fa58564e
1.40.4 (#22344)
Bumped versions for 1.40.4

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-02-08 15:48:32 +05:30
Asher Gomez
4fb0a17089 docs: point to "Deno 1.x to 2.x Migration Guide" for net APIs (#22275)
These were missed in #22199.
2024-02-08 14:56:46 +05:30
Divy Srivastava
e0ecfbf4fc fix(node): handle brotli compression end chunk sizes (#22322)
Fixes https://github.com/denoland/deno/issues/22259
2024-02-08 14:56:46 +05:30
Bartek Iwańczuk
cbc1ae8f58 chore: upgrade deno_core to 0.259.0 (#22311)
This update brings number of ops available to user code down to 45.
2024-02-08 14:56:46 +05:30
Leo Kettmeir
bcf3a96901 refactor: move ImageData to web extension (#22295)
Signed-off-by: Leo Kettmeir <crowlkats@toaxl.com>
2024-02-08 14:56:46 +05:30
Matt Mastracci
ca8d7e9623 fix(ext/node): Ensure os.cpus() works on arm64 linux (#22302)
`/proc/cpuinfo` on ARM doesn't have the model name per CPU, so we leave
those as "unknown".
2024-02-08 14:56:46 +05:30
Leo Kettmeir
9167433a56 refactor: use web utils and lazy load utils from core (#22289) 2024-02-08 14:56:46 +05:30
Bartek Iwańczuk
c7bcfaba87 fix: Support Symbol.metadata (#22282)
This commit adds support for "Symbol.metadata" which was 
omitted when adding support for the Decorators Proposal.

Closes https://github.com/denoland/deno/issues/22111
2024-02-08 14:56:46 +05:30
Divy Srivastava
2399228411 chore(ws): remove unused op_ws_send_pong (#22283) 2024-02-08 14:56:46 +05:30
Divy Srivastava
01648f5525 fix(node): add cp to fs/promises (#22263) 2024-02-08 14:56:46 +05:30
Matt Mastracci
632684da34 refactor(cli): Move op descriptions into Rust and prepare for op import (#22271)
This moves the op sanitizer descriptions into Rust code and prepares for
eventual op import from `ext:core/ops`. We cannot import these ops from
`ext:core/ops` as the testing infrastructure ops are not always present.

Changes:
- Op descriptions live in `cli` code and are currently accessible via an
op for the older sanitizer code
 - `phf` dep moved to workspace root so we can use it here
- `ops.op_XXX` changed to to `op_XXX` to prepare for op imports later
on.
2024-02-08 14:56:46 +05:30
Heyang Zhou
5e623a9e75 fix(unstable): validate kv list selector (#22265)
Check that in a `KvListSelector`, `start` and `end` are actually within
the keyspace bounds defined by `prefix`, if both are present.
2024-02-08 14:56:46 +05:30
Yoshiya Hinosawa
fc14e19909 fix(ext/node): fix timeout param validation in cp.execFile (#22262) 2024-02-08 14:56:46 +05:30
Matt Mastracci
f080e349dd chore: bump deno core (#22243)
Migrations:

- Error registration no longer required for Interrupted or BadResource
(these are core exception)
 - `include_js_files!`/`ExtensionFileSource` changes
2024-02-08 14:56:46 +05:30
Asher Gomez
1852674f84 feat(unstable): Deno.FsFile.lock[Sync]() and Deno.FsFile.unlock[Sync]() (#22235)
Closes #22178.
2024-02-08 14:56:46 +05:30
denobot
887fd59486
1.40.3 (#22217)
Bumped versions for 1.40.3

Co-authored-by: Divy Srivastava <dj.srivastava23@gmail.com>
2024-02-01 11:57:58 +05:30
Divy Srivastava
beb534fed2 fix(fs): copyFile NUL path on macOS (#22216)
Fixes https://github.com/denoland/deno/issues/22211
2024-02-01 11:19:56 +05:30
Yusuke Tanaka
0d1e5860bb fix(node): add ppid getter for node:process (#22167)
This commit adds `ppid` getter for `node:process` to improve Node
compatibility one step further.

There is one problem though, which is that `Deno.ppid`, which
`process.ppid` internally calls, is actually of type `bigint` although
it's supposed to be `number`. I filed an issue for this (#22166). For
the time being, explciit type conversion from `bigint` to `number` is
applied to match the Node.js behavior.
2024-02-01 11:19:56 +05:30
Asher Gomez
8399ed9a6c fix(ext/node): add aes256 algorithm support (#22198)
Towards #21804
2024-02-01 11:19:56 +05:30
Divy Srivastava
4cab054532 fix(node): util.callbackify (#22200)
Fixes https://github.com/denoland/deno/issues/22180

Matches the Node.js implementation more closely. Removed types, they do
not help just make it harder to debug with stack traces.
2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
f2f481ea76 refactor: migrate runtime/ and ext/canvas/ to virtual ops module (#22196) 2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
4e3882bef0 refactor: Use virtul ops module (#22175)
Follow up to #22157.

This leaves us with 4 usages of `ensureFastOps()` in `deno` itself.
There's also about 150 usages of `Deno.core.ops.<op_name>` left as well.
2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
61084e448d refactor: migrate 'ext/node' extension to virtual ops module (#22157)
Follow up to https://github.com/denoland/deno/pull/22135
2024-02-01 11:19:56 +05:30
Divy Srivastava
c258834f47 feat(unstable): implement navigator.gpu.getPreferredCanvasFormat() (#22149) 2024-02-01 11:19:56 +05:30
Matt Mastracci
2810b49bed fix(ext/node): limit OpState borrow in op_napi_open (#22151)
Fixes #22150
2024-02-01 11:19:56 +05:30
Divy Srivastava
258cdcd9f9 chore: upgrade deno_core to 0.256.0 (#22145) 2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
d9452f2525 refactor: migrate extensions to virtual ops module (#22135)
First pass of migrating away from `Deno.core.ensureFastOps()`.

A few "tricky" ones have been left for a follow up.
2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
382b98ac7c refactor: make 'rid' properties non-enumerable (#22137)
Now these props will not show up when inspecting objects in console.
2024-02-01 11:19:55 +05:30
Bartek Iwańczuk
f26d78eed5 chore: upgrade deno_core (#22124)
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-02-01 11:19:55 +05:30
denobot
9a55a72cf1
1.40.2 (#22131)
Bumped versions for 1.40.2

Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-01-26 17:36:20 +01:00
Matt Mastracci
d2643fadb9
fix(ext/http): smarter handling of Accept-Encoding (#22130) 2024-01-26 16:47:58 +01:00
Bartek Iwańczuk
616646c4c1
fix(node): remove deprecation warnings (#22120)
Closes https://github.com/denoland/deno/issues/22116
2024-01-26 16:47:57 +01:00
Bartek Iwańczuk
cd3af196e3
fix(fs): instanceof check for Deno.FsFile (#22121)
Regression caused by https://github.com/denoland/deno/pull/22072.

I added a relevant test so we don't regress again.

Fixes https://github.com/denoland/deno/issues/22115
2024-01-26 16:47:57 +01:00
denobot
b003ecec64
1.40.1 (#22103)
Bumped versions for 1.40.1

Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-01-25 16:22:10 +01:00
Bartek Iwańczuk
ac2da1e9ff
Revert "chore: bump rustls-tokio-stream and rustls (#21955)" (#22097)
This reverts commit 971eb0e5e8.

To unblock v1.40 release.
2024-01-25 04:47:45 +01:00
denobot
9e575a2862
1.40.0 (#22096)
Bumped versions for 1.40.0

Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-01-25 03:48:50 +01:00
Bartek Iwańczuk
174bb70eda
fix: don't use public rid accessors in internal APIs (#22091)
Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
2024-01-25 00:45:19 +01:00
Asher Gomez
b1230586f8
fix: use warnOnDeprecatedApi() in Deno.TlsListener.rid (#22089)
Missed in #22077
2024-01-24 22:50:33 +00:00
Bartek Iwańczuk
801ed74118
revert: Remove deprecations of file sync APIs (#22085)
- `Deno.FsFile.dataSync` -> `Deno.FsFile.syncData`
- `Deno.FsFile.dataSyncSync` -> `Deno.FsFile.syncDataSync`

Also marks these APIs as unstable
2024-01-24 23:38:18 +01:00
Luca Casonato
316093fec4
feat(publish): error on invalid external imports (#22088) 2024-01-24 21:59:18 +00:00