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
Yusuke Tanaka
ab8b1b11d7
fix(runtime): return number from op_ppid
instead of bigint ( #22169 )
...
Fixes #22166
2024-01-30 15:34:31 +09:00
Bartek Iwańczuk
345423cf76
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-01-29 22:02:26 +01:00
Bartek Iwańczuk
909986fa6e
refactor: migrate 'ext/node' extension to virtual ops module ( #22157 )
...
Follow up to https://github.com/denoland/deno/pull/22135
2024-01-29 14:58:08 +01:00
Nayeem Rahman
aed5e4997d
chore(lsp): rename client-side command invocations ( #22140 )
2024-01-28 21:56:45 +00:00
Bartek Iwańczuk
7281775381
Revert "refactor(cli): use new sanitizer for resources ( #22125 )" ( #22153 )
2024-01-27 20:37:36 +01:00
Divy Srivastava
cc0a372127
feat(unstable): implement navigator.gpu.getPreferredCanvasFormat()
( #22149 )
2024-01-27 23:10:09 +05:30
Matt Mastracci
bde2028d83
fix(ext/node): limit OpState borrow in op_napi_open ( #22151 )
...
Fixes #22150
2024-01-27 10:17:15 -07:00
Divy Srivastava
ed65bc6abc
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-01-27 09:10:36 -08:00
Divy Srivastava
d9191db0ce
chore: upgrade deno_core to 0.256.0 ( #22145 )
2024-01-27 12:27:41 +05:30
Bartek Iwańczuk
462ce14a78
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-01-26 23:46:46 +01:00
Bartek Iwańczuk
d889f99657
chore: use granular unstable flags in tools/ ( #22138 )
2024-01-26 22:35:43 +00:00
Matt Mastracci
84fb2ad71b
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-01-26 17:24:16 -05:00
Bartek Iwańczuk
6109717c4a
refactor: make 'rid' properties non-enumerable ( #22137 )
...
Now these props will not show up when inspecting objects in console.
2024-01-26 23:19:00 +01:00
Bartek Iwańczuk
942fb5e038
chore: upgrade deno_core ( #22124 )
...
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
2024-01-26 14:04:07 -05:00
Bartek Iwańczuk
9ed713153c
chore: forward v1.40.2 commit to main ( #22133 )
...
Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-01-26 18:59:16 +00:00
Bartek Iwańczuk
9e0495baa7
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:41:16 +01:00
Matt Mastracci
c66f7b6d8d
fix(ext/http): smarter handling of Accept-Encoding ( #22130 )
2024-01-26 15:33:55 +00:00
Luca Casonato
98c537726e
fix(testing): add op_spawn_wait mapping in resource sanitizer ( #22129 )
2024-01-26 15:06:27 +00:00
Nayeem Rahman
9a5b4b0395
feat(lsp): complete parameters as tab stops and placeholders ( #22126 )
2024-01-26 13:41:12 +00:00
Bartek Iwańczuk
9951506506
fix(node): remove deprecation warnings ( #22120 )
...
Closes https://github.com/denoland/deno/issues/22116
2024-01-26 00:36:03 +01:00
Bartek Iwańczuk
0b0fb94ce2
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-25 23:51:29 +01:00
Matt Mastracci
7038074c85
chore(cli): split 40_testing ( #22112 )
...
No code changes -- just splitting 40_testing into three files and
removing a couple of unused lines of code.
2024-01-25 14:54:35 -05:00
Matt Mastracci
e06be89143
chore: bump deno_core ( #22110 )
2024-01-25 20:50:49 +01:00
David Sherret
4d8cf02500
chore: upgrade dprint-plugin-toml to 0.6.0 ( #22108 )
2024-01-25 12:31:21 -05:00
Bartek Iwańczuk
d4153bb117
chore: forward v1.40.1 commit to main ( #22107 )
...
Co-authored-by: denobot <33910674+denobot@users.noreply.github.com>
Co-authored-by: bartlomieju <bartlomieju@users.noreply.github.com>
2024-01-25 16:24:11 +00:00
Bartek Iwańczuk
2fd26de396
fix(lsp): disable experimentalDecorators by default ( #22101 )
...
Follow up to https://github.com/denoland/deno/pull/22040 .
By mistake I forgot to disable "experimental decorators" in the LSP.
2024-01-25 14:39:21 +00:00
Luca Casonato
414320d46b
chore: update deno_graph ( #22099 )
2024-01-25 13:37:15 +00: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
Bartek Iwańczuk
a4e64fb7da
chore: upgrade deno_lint to 0.55.0 ( #22092 )
2024-01-25 00:31:20 +01:00
Asher Gomez
8dd71b6f1d
fix: don't call .rid
in Deno.FsWatcher.close()
( #22090 )
...
Otherwise, a deprecation warning will be printed.
2024-01-24 23:05:22 +00: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
44f8b05f5b
feat: Expand 'imports' section of deno.json ( #22087 )
...
This commit adds automatic expansion of "imports" field in "deno.json"
file.
If "npm:" or "jsr:" imports are encountered we automatically try to add
a "directory" remapping.
Previously users had to specify entries for both `foo` and `foo/` to be
able to import like
`import { symbol1 } from "foo";` and `import { symbol2 } from
"foo/some_file.js"`:
```
{
"imports": {
"foo": "npm:@foo/bar",
"foo/": "npm:/@foo/bar/",
}
```
With this change users can only add entry for `foo`:
```
{
"imports": {
"foo": "npm:@foo/bar",
}
```
The entry for `foo/` will be provided automatically.
Similarly if user provides "directory" remapping explicitly, we will not
overwrite it.
2024-01-24 23:44:06 +01:00