0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-10 08:02:18 -05:00
Commit graph

5788 commits

Author SHA1 Message Date
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
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
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
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
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
Luca Casonato
568ba673a8
fix(testing): add op_spawn_wait mapping in resource sanitizer (#22129) 2024-01-26 16:47:58 +01:00
Nayeem Rahman
b50cda79cf
feat(lsp): complete parameters as tab stops and placeholders (#22126) 2024-01-26 16:47:57 +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
Matt Mastracci
2072fed1ee
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-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
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
a4e64fb7da
chore: upgrade deno_lint to 0.55.0 (#22092) 2024-01-25 00:31:20 +01: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