0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-11 00:22:34 -05:00
Commit graph

10721 commits

Author SHA1 Message Date
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
Bartek Iwańczuk
0ed4037288 fix(jupyter): ensure op is available (#22240)
Closes https://github.com/denoland/deno/issues/22231
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
0faf802a4a chore: upgrade deno_core 0.257.0 (#22225)
This upgrade includes all the necessary APIs for WASM imports
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
f2f481ea76 refactor: migrate runtime/ and ext/canvas/ to virtual ops module (#22196) 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
Luca Casonato
e0447cd273 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-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
093ad9bac8 ci: fix canary uploads for unix (#22206) 2024-02-01 11:19:56 +05:30
Luca Casonato
a924f69f07 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-02-01 11:19:56 +05:30
David Sherret
e4c8a9f4e8 ci: actually fix main for linux-gnu (#22195) 2024-02-01 11:19:56 +05:30
David Sherret
5455842aeb ci: fix failing upgrade_prompt test on main (#22193)
Understandably accidentally caused by
https://github.com/denoland/deno/pull/22187
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
zhanghengxin
d1d5b4144b chore(bench_util): fix syntax error in README.md (#21492) 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
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
Nayeem Rahman
802ee9c443 chore(lsp): rename client-side command invocations (#22140) 2024-02-01 11:19:56 +05:30
Bartek Iwańczuk
8625a36e98 Revert "refactor(cli): use new sanitizer for resources (#22125)" (#22153) 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
ef1198b0e3 refactor(cli): decouple resolvers from module_loader.rs for standalone use (#22147)
It makes it easier to write a standalone bin target for `deno compile`
without pulling a lot of the tooling and tsc loader logic
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
1ffbb47059 chore: use granular unstable flags in tools/ (#22138) 2024-02-01 11:19:55 +05:30
Matt Mastracci
026fd49927 refactor(cli): use new sanitizer for resources (#22125)
Step 1 of the Rustification of sanitizers, which unblocks the faster
timers.

This replaces the resource sanitizer with a Rust one, using the new APIs
in deno_core.
2024-02-01 11:19:55 +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
Bartek Iwańczuk
69fe906f65
fix: make deprecation warnings less verbose (#22128)
This commit makes deprecation warnings less verbose by default.

Only a single warnings is issued per deprecated API use.

`DENO_VERBOSE_WARNINGS` env var can be provided to enable more detailed
logging for each use of API including a stack trace.

https://github.com/denoland/deno/assets/13602871/9c036c84-0044-4cb6-9c8e-deb641f43712
2024-01-26 16:47:58 +01:00
Matt Mastracci
d2643fadb9
fix(ext/http): smarter handling of Accept-Encoding (#22130) 2024-01-26 16:47:58 +01:00