Bartek Iwańczuk
7c111da5f6
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-06 14:57:25 +01:00
Divy Srivastava
e568cb8bf8
chore(ws): remove unused op_ws_send_pong ( #22283 )
2024-02-06 13:37:20 +01:00
Divy Srivastava
428266c06a
fix(node): add cp
to fs/promises ( #22263 )
2024-02-06 12:32:58 +05:30
Bartek Iwańczuk
28576db10e
refactor: don't expose some ops ( #22281 )
...
This commit brings down the number of ops exposed to user
code to 51.
2024-02-06 02:47:10 +01:00
Bartek Iwańczuk
1fd4b46dd0
bench: fix benchmark ( #22279 )
...
Missed in https://github.com/denoland/deno/pull/22277
2024-02-06 00:36:17 +00:00
Bartek Iwańczuk
838f7c257f
chore: remove benchmarks for ops ( #22277 )
...
These are not useful, as we bench them in `deno_core` already.
2024-02-06 00:05:05 +00:00
Bartek Iwańczuk
6853633f7d
refactor: don't expose worker ops to user code ( #22276 )
2024-02-06 00:58:06 +01:00
Bartek Iwańczuk
b94dabdb81
refactor: don't expose ops to user code ( #22273 )
...
Brings the number of ops exposed to user code down to 58.
2024-02-06 00:26:36 +01:00
Matt Mastracci
2c621f5894
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-05 20:26:59 +00:00
Matt Mastracci
0a3d329dd8
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-05 12:21:29 -07:00
Matt Mastracci
aecad7f353
refactor(cli): Add TestFailureDescription ( #22267 )
...
Extract zero-risk changes from #22226
2024-02-05 17:27:17 +00:00
Alessandro Cosentino
cb407bb546
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-05 09:30:14 -07:00
Heyang Zhou
e53ced0b8d
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-06 00:27:03 +08:00
Divy Srivastava
d13094c821
fix(os): total and free memory in bytes ( #22247 )
2024-02-05 18:41:24 +05:30
Yoshiya Hinosawa
961fa27c76
fix(ext/node): fix timeout param validation in cp.execFile ( #22262 )
2024-02-05 14:28:28 +09:00
Matt Mastracci
56f58a047e
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-04 17:03:14 -07:00
Asher Gomez
0f7f987951
feat(unstable): Deno.FsFile.lock[Sync]()
and Deno.FsFile.unlock[Sync]()
( #22235 )
...
Closes #22178 .
2024-02-05 00:11:54 +01:00
Bartek Iwańczuk
07a94984e1
chore: remove opcall_test.ts ( #22227 )
...
This test should be in `deno_core`.
Ref https://github.com/denoland/deno_core/issues/533
2024-02-04 12:10:24 -07:00
David Sherret
a284f50732
perf: remove duplicate env::current_dir
call in package.json search ( #22255 )
...
Micro-optimization.
2024-02-04 00:11:12 -05:00
David Sherret
0bfa0cc027
fix(test/regression): handle CLI arg directory using ../
in path ( #22244 )
...
Closes #22239
2024-02-03 00:02:12 +00:00
Dan Rose
6c6e49629c
chore: fix typo in docs ( #22232 )
...
Signed-off-by: Dan Rose <danoftheroses@gmail.com>
2024-02-02 21:50:58 +01:00
Bartek Iwańczuk
8edb36fea4
fix(jupyter): ensure op is available ( #22240 )
...
Closes https://github.com/denoland/deno/issues/22231
2024-02-02 20:20:18 +00:00
Asher Gomez
3f4639c330
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-02 02:32:46 +01:00
Bartek Iwańczuk
fa91ad91c1
chore: upgrade deno_core 0.257.0 ( #22225 )
...
This upgrade includes all the necessary APIs for WASM imports
2024-02-01 13:21:55 -05:00
Bartek Iwańczuk
aba91490d6
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-01 16:25:56 +01:00
Divy Srivastava
ca11536f3f
chore: forward v1.40.3 release commit to main ( #22220 )
...
This is the release commit being forwarded back to main for 1.40.3
Ref https://github.com/denoland/deno/pull/22219
2024-02-01 18:11:35 +09:00
Divy Srivastava
4f914dd161
fix(fs): copyFile NUL path on macOS ( #22216 )
...
Fixes https://github.com/denoland/deno/issues/22211
2024-02-01 10:06:09 +05:30
Leo Kettmeir
e58b1900a7
fix(publish): add node specifiers ( #22213 )
2024-02-01 05:18:44 +01:00
Yusuke Tanaka
66e6ed65e9
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 09:18:27 +05:30
Bartek Iwańczuk
cfb57b1855
fix(install): forward granular --unstable-* flags ( #22164 )
...
Closes https://github.com/denoland/deno/issues/22154
2024-02-01 09:16:37 +05:30
Asher Gomez
6512be458f
fix(ext/node): add aes256
algorithm support ( #22198 )
...
Towards #21804
2024-02-01 09:13:24 +05:30
Divy Srivastava
02c65fad45
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 08:51:10 +05:30
David Sherret
4b7c6049ef
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 03:15:22 +00:00
Bartek Iwańczuk
830d096b66
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 02:16:52 +00:00
Bartek Iwańczuk
fddbb018c1
chore: temporarily disable deprecation warnings ( #22204 )
2024-01-31 23:18:14 +01:00
Bartek Iwańczuk
95e4741f00
refactor: migrate runtime/ and ext/canvas/ to virtual ops module ( #22196 )
2024-01-31 23:17:49 +01:00
Bartek Iwańczuk
13a91a69f8
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-01-31 22:39:56 +01:00
Bartek Iwańczuk
163491f237
chore(publish): try to automatically open the web browser ( #22208 )
2024-01-31 22:38:57 +01:00
Leo Kettmeir
b91ae88860
chore: update deno_doc ( #22174 )
2024-01-31 17:34:15 +00:00
Luca Casonato
a82eb3fb3d
ci: upload canary latest to correct path ( #22210 )
...
Also don't always upload cache - this was a bug I introduced in the CI
refactor.
2024-01-31 18:32:37 +01:00
Bartek Iwańczuk
54d18f3d28
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-01-31 17:01:14 +00:00
Bartek Iwańczuk
560390c93c
chore(publish): add --no-fast-check flag ( #22203 )
2024-01-31 16:10:31 +01:00
Luca Casonato
81042fb875
ci: fix canary uploads for unix ( #22206 )
2024-01-31 15:09:17 +00:00
Luca Casonato
1b83b84454
ci: run macos aarch64 builds on PRs and main ( #22201 )
...
We run these on the free machines now.
Also cleans up some of our os and arch conditional step handling by
introducing a new `matrix.os` and `matrix.arch`.
2024-01-31 14:59:47 +01:00
David Sherret
99493c5aef
ci: actually fix main for linux-gnu ( #22195 )
2024-01-30 22:28:21 +00:00
David Sherret
93c8e7c821
ci: fix failing upgrade_prompt test on main ( #22193 )
...
Understandably accidentally caused by
https://github.com/denoland/deno/pull/22187
2024-01-30 21:13:07 +00:00
Luca Casonato
d923705d9d
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-01-30 20:50:54 +01:00
Nayeem Rahman
d730956f49
fix(lsp): don't normalize urls in cache command params ( #22182 )
2024-01-30 17:17:34 +00:00
David Sherret
0e1cae32b3
fix(lockfile): only consider package.json beside lockfile in workspace property ( #22179 )
...
Closes https://github.com/denoland/deno/issues/22176 (see detail there)
2024-01-30 09:26:30 -05:00
zhanghengxin
b0bd4f379c
chore(bench_util): fix syntax error in README.md ( #21492 )
2024-01-30 15:58:18 +09:00