Bartek Iwańczuk
0e10efb834
chore: remove op_spawn_child test ( #22314 )
...
This test is not needed because the op is not available to user code
anymore.
This brings number of ops exposed to user code down to 15.
2024-02-08 14:56:46 +05:30
Bartek Iwańczuk
a2e5ff7348
chore: don't expose FFI ops to user code ( #22313 )
...
This commit removes some not really necessary FFI tests and in effect
removes them from being accessible from the user code.
This lowers the number of ops accessible to user code to 16.
2024-02-08 14:56:46 +05:30
David Sherret
7aa47f565e
chore: use same test server for jsr tests ( #22303 )
...
We had two test servers.
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
David Sherret
2ad7e70d88
fix(publish): handle diagnostic outside graph ( #22310 )
...
Hacky quick fix. The real fix is a lot more work to do (move the
`SourceTextInfo` into all the diagnostics in order to make this less
error pone). I've already started on it, but it will require a lot of
downstream create changes.
Closes #22288
2024-02-08 14:56:46 +05:30
Bartek Iwańczuk
a744d5b9c8
chore: remove unneeded benchmark ( #22300 )
...
Brings down the number of ops available to user code to 49.
2024-02-08 14:56:46 +05:30
John Spurlock
fa3d530d18
fix(publish): 'explit' typo ( #22296 )
2024-02-08 14:56:46 +05:30
David Sherret
6d2d376c24
fix(publish): lazily parse sources ( #22301 )
...
Closes #22290
2024-02-08 14:56:46 +05:30
Matt Mastracci
de23e3b60b
fix(cli): Add IP address support to DENO_AUTH_TOKEN ( #22297 )
...
Auth tokens may be specified for one of the following:
- `abc123@deno.land`: `deno.land`, `www.deno.land`, etc
- `abc123@deno.land:8080`: `deno.land:8080`, `www.deno.land:8080`, etc
- `abc123@1.1.1.1`: IP `1.1.1.1` only
- `abc123@1.1.1.1:8080`: IP `1.1.1.1`, port 8080 only
- `abc123@[ipv6]`: IPv6 `[ipv6]` only
- `abc123@[ipv6]:8080`: IPv6 `[ipv6]`, port 8080 only
Leading dots are ignored, so `.deno.dev` is equivalent to `deno.dev`.
2024-02-08 14:56:46 +05:30
Nayeem Rahman
3d0b1ec7e5
fix(lsp): disable no-cache diagnostics for jsr specifiers ( #22284 )
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
Bartek Iwańczuk
3a92576760
refactor: don't expose some ops ( #22281 )
...
This commit brings down the number of ops exposed to user
code to 51.
2024-02-08 14:56:46 +05:30
Bartek Iwańczuk
84c003ce2c
bench: fix benchmark ( #22279 )
...
Missed in https://github.com/denoland/deno/pull/22277
2024-02-08 14:56:46 +05:30
Bartek Iwańczuk
91c3acb354
chore: remove benchmarks for ops ( #22277 )
...
These are not useful, as we bench them in `deno_core` already.
2024-02-08 14:56:46 +05:30
Bartek Iwańczuk
e8989a3a22
refactor: don't expose ops to user code ( #22273 )
...
Brings the number of ops exposed to user code down to 58.
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
Matt Mastracci
d809999c72
Reland refactor(cli): use new sanitizer for resources ( #22226 )
...
Originally in #22125
Reverted in #22153 because of #22148
Fixed in deno_core https://github.com/denoland/deno_core/pull/538
Test plan:
1. Check out: https://github.com/poolifier/poolifier-deno.git
2. `PATH=.../deno/target/release/:$PATH deno task test`
3. `ok | 13 passed (188 steps) | 0 failed (18s)`
2024-02-08 14:56:46 +05:30
Matt Mastracci
fbe8f0daf2
refactor(cli): Add TestFailureDescription ( #22267 )
...
Extract zero-risk changes from #22226
2024-02-08 14:56:46 +05:30
Alessandro Cosentino
966d9b0d62
fix: Fix segmentation fault in tests on CPUs with PKU support ( #22152 )
...
This is a followup on denoland/deno_core#471.
Fixes #21439 .
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
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
Bartek Iwańczuk
e70eece558
chore: remove opcall_test.ts ( #22227 )
...
This test should be in `deno_core`.
Ref https://github.com/denoland/deno_core/issues/533
2024-02-08 14:56:46 +05:30
David Sherret
932cd1dd79
perf: remove duplicate env::current_dir
call in package.json search ( #22255 )
...
Micro-optimization.
2024-02-08 14:56:46 +05:30
David Sherret
f3b860f66b
fix(test/regression): handle CLI arg directory using ../
in path ( #22244 )
...
Closes #22239
2024-02-08 14:56:46 +05:30
Dan Rose
173a723786
chore: fix typo in docs ( #22232 )
...
Signed-off-by: Dan Rose <danoftheroses@gmail.com>
2024-02-08 14:56:46 +05:30
Asher Gomez
19c04cbcce
docs: point to new "Deno 1.x to 2.x Migration Guide" ( #22199 )
...
Signed-off-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2024-02-08 14:56:46 +05:30
Bartek Iwańczuk
3b8d7bc1b3
fix(publish): use lighter crate for opening browser ( #22224 )
...
Alternative to https://github.com/denoland/deno/pull/22223 which
switches `webbrowser` crate to `open` (https://crates.io/crates/open )
which is lighterweight.
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
Leo Kettmeir
d9f3608803
fix(publish): add node specifiers ( #22213 )
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
Bartek Iwańczuk
5c7bb34c0c
fix(install): forward granular --unstable-* flags ( #22164 )
...
Closes https://github.com/denoland/deno/issues/22154
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
David Sherret
e2f30ef5c6
refactor: load bytes in deno_graph ( #22212 )
...
Upgrades deno_graph to 0.64 where deno_graph is now responsible for
turning bytes into a string. This is in preparation for Wasm modules.
2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
4bd8d9505c
fix(publish): rename --no-fast-check to --no-zap ( #22214 )
...
Also prints an information about the flag when there are `zap` errors.
2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
d857b62365
chore: temporarily disable deprecation warnings ( #22204 )
2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
ec36e9ffb2
refactor: remove imported ops from Deno.core.ops ( #22194 )
...
This commit adds a list of ops to `runtime/99_main.js` that are
currently relying on getting them from `Deno.core.ops`. All ops that are not
present in the list are removed from `Deno.core.ops` on startup (they are
imported from "virtual op module" - `ext:core/ops`) making them effectively
inaccessible to user code.
This change lowers the number of ops exposed to user code from 650 to
around 260. This number should be gradually decreased in follow-up PRs.
2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
7b74dde2cd
chore(publish): try to automatically open the web browser ( #22208 )
2024-02-01 11:19:56 +05:30
Leo Kettmeir
efd1e76c57
chore: update deno_doc ( #22174 )
2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
9d12ea7d47
chore: disable test-fs-watchfile.js on Mac ARM ( #22209 )
...
This is super flaky on new Mac ARM runner. Disabling for now to unblock
main branch.
2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
2ee6f042aa
chore(publish): add --no-fast-check flag ( #22203 )
2024-02-01 11:19:56 +05:30
Luca Casonato
9fabdb739a
fix: canary for arm64 macos ( #22187 )
...
This doesn't actually trigger the arm64 build job nightly yet. I'll do
that in a follow up.
2024-02-01 11:19:56 +05:30
Nayeem Rahman
220cfc0f3c
fix(lsp): don't normalize urls in cache command params ( #22182 )
2024-02-01 11:19:56 +05:30
David Sherret
a3595799f3
fix(lockfile): only consider package.json beside lockfile in workspace property ( #22179 )
...
Closes https://github.com/denoland/deno/issues/22176 (see detail there)
2024-02-01 11:19:56 +05:30
Yusuke Tanaka
b99ec10d61
fix(runtime): return number from op_ppid
instead of bigint ( #22169 )
...
Fixes #22166
2024-02-01 11:19:56 +05:30
Nayeem Rahman
802ee9c443
chore(lsp): rename client-side command invocations ( #22140 )
2024-02-01 11:19:56 +05:30