1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
Commit graph

8486 commits

Author SHA1 Message Date
Geert-Jan Zwiers
3888162cfa
refactor(coverage): use FileFlags struct (#17388) 2023-01-16 21:33:11 +01:00
Geert-Jan Zwiers
3c53c4b049
refactor(cli/tools): reduce cloning (#17309) 2023-01-16 21:32:01 +01:00
Bartek Iwańczuk
d464df3a25
fix(napi): allow cleanup hook to remove itself (#17402)
This commit fixes "cleanup hooks" in NAPI integration in two ways:
- don't hold to RefCell's borrow while iterating over hooks
- allow a hook to remove itself when being called
2023-01-16 21:32:01 +01:00
Lino Le Van
1b207796aa
fix(napi): update node version to lts (#17399) 2023-01-16 21:32:01 +01:00
David Sherret
69a84a6a2b
chore(ci): use windows-2022 runner on skipped release job on PRs (#17398) 2023-01-16 21:32:01 +01:00
David Sherret
0eb68246da
chore: small cleanup of scripts in ./tools and run copyright checker in lint.js (#17393) 2023-01-16 21:32:01 +01:00
denobot
9806dcc914
1.29.3 (#17395)
Co-authored-by: David Sherret <dsherret@users.noreply.github.com>
2023-01-13 12:17:13 -05:00
Bartek Iwańczuk
0e5c7404f2 fix(permissions): lock stdio streams when prompt is shown (#17392)
This commit changes permission prompt to lock stdio streams when prompt
is shown.
2023-01-13 11:20:20 -05:00
Bartek Iwańczuk
9c4327f9d1 tests: Disable flaky flash_shutdown test (#17390) 2023-01-13 11:20:20 -05:00
Bartek Iwańczuk
7ed2c13827 fix(napi): date and unwrap handling (#17369) 2023-01-13 11:20:20 -05:00
Yiyu Lin
3f270c1760 chore: add copyright_checker tool and add the missing copyright (#17285) 2023-01-13 11:20:20 -05:00
David Sherret
369f1d6e01 chore(ci): try to make sysroot step more reliable (#17383)
Main is failing a lot because of:

```
Err:8 http://azure.archive.ubuntu.com/ubuntu focal-updates/main amd64 debootstrap all 1.0.118ubuntu1.8
  Connection failed [IP: 40.81.13.82 80]
Fetched 44.1 MB in 60s (734 kB/s)
E: Failed to fetch http://azure.archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.118ubuntu1.8_all.deb  Connection failed [IP: 40.81.13.82 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
```
2023-01-13 11:20:19 -05:00
Bartek Iwańczuk
78364f3816 tests: move integration tests to a single module (#17380)
Effectively reverts changes done in
https://github.com/denoland/deno/pull/16816
2023-01-13 11:20:19 -05:00
Leo Kettmeir
257471f586 fix: make self and window getters only & make getterOnly ignore setting (#17362) 2023-01-13 11:20:19 -05:00
David Sherret
0003cf756e chore(ci): only run doc tests on linux (#17379)
Doc tests were observed to take over 100s on the Mac CI in one instance.
2023-01-13 11:20:18 -05:00
Leo Kettmeir
95d4fb624f fix(webidl): properly implement setlike (#17363) 2023-01-13 11:20:18 -05:00
David Sherret
c4be3a0ce7 chore(ci): try some wpt parallelism (#17375) 2023-01-13 11:20:18 -05:00
David Sherret
918a19d8f2 chore(ci): skip running the benchmarks on a PR except when a label is added (#17377) 2023-01-13 11:20:18 -05:00
David Sherret
09c183f4a0 chore(ci): fix canary publish on main (#17374)
Ref #17358
2023-01-13 11:20:18 -05:00
David Sherret
23dea8e89a chore(ci): use mtime cache for fastci (#17373) 2023-01-13 11:20:18 -05:00
David Sherret
fd74c16bdd chore(ci): do not clone submodule ./test_util/wpt unnecessarily (#17372) 2023-01-13 11:20:17 -05:00
David Sherret
3d95d1c723 chore(ci): only install node for the benchmarks (#17371) 2023-01-13 11:20:17 -05:00
Bartek Iwańczuk
9e5949fa52 ci: update Windows runner, update Google Cloud integration, update Node (#17358)
This commit rolls up following PRs into a single one:
- https://github.com/denoland/deno/pull/16672
- https://github.com/denoland/deno/pull/16674
- https://github.com/denoland/deno/pull/16972

Generation script was updated to take into account these changes.

Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com>
Co-authored-by: Geert-Jan Zwiers <geertjanzwiers@protonmail.com>
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-01-13 11:20:17 -05:00
Bartek Iwańczuk
92a4ecd938 Revert "test: fix flaky deno_land_unsafe_ssl test (#17357)" (#17368)
This reverts commit ee2c6cb04a.

Closes https://github.com/denoland/deno/issues/17359
2023-01-13 11:20:17 -05:00
Divy Srivastava
5a01dbf43f fix(napi): Implement napi_threadsafe_function ref and unref (#17304)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2023-01-13 11:20:17 -05:00
Leo Kettmeir
b851b3ab74 fix: check if BroadcastChannel is open before sending (#17366)
Fixes #16978
2023-01-13 11:20:17 -05:00
Leo Kettmeir
658fac6e86 fix: don't unwrap in test pipe handling logic (#17341)
Fixes #14746
2023-01-13 11:20:16 -05:00
David Sherret
779a108a8f chore(ci): skip non-ubuntu test release jobs on PRs (#17353) 2023-01-13 11:20:16 -05:00
Bartek Iwańczuk
8a040952cb test: fix flaky deno_land_unsafe_ssl test (#17357) 2023-01-13 11:20:16 -05:00
Asher Gomez
95e098c82b fix(ci): use Node 18 (#17355) 2023-01-13 11:20:16 -05:00
David Sherret
35eaf1b7b7 chore(ci): save cache on main at end of workflow (#17354)
Seems like our caching was totally broken. We need to save the cache
after building and not before.

```
Warning: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.
Warning: Cache save failed.
```
2023-01-13 11:20:16 -05:00
Leo Kettmeir
32e9299e32 fix: don't panic on resolveDns if unsupported record type is specified (#17336)
Fixes #14373
2023-01-13 11:20:15 -05:00
David Sherret
f74c44efd6 chore(ci): do not run CI on draft PRs unless explicitly run via commit message (#17350)
This will help us reduce CI time during development. The CI can be
explicitly run on draft PRs by adding `[ci]` to the commit message.
2023-01-13 11:20:15 -05:00
David Sherret
f2126d3d25 fix(fmt): better handling of link reference definitions when formatting markdown (#17352)
Two fixes:

- https://github.com/dprint/dprint-plugin-markdown/pull/75
- https://github.com/dprint/dprint-plugin-markdown/pull/73
2023-01-13 11:20:15 -05:00
Bartek Iwańczuk
d5a758c0e1 refactor(napi): Cleanup tests (#17347) 2023-01-13 11:20:15 -05:00
David Sherret
e49f0bee57 chore(ci): checkout less submodules based on job (#17343)
Co-authored-by: Luca Casonato <lucacasonato@users.noreply.github.com>
2023-01-13 11:20:15 -05:00
David Sherret
42325d0fb6 chore(ci): ci refactor - Part 1 - Generate ci yaml by js (#17335) 2023-01-13 11:20:15 -05:00
Bartek Iwańczuk
b34a87a110 fix(napi): support for env cleanup hooks (#17324)
This commit adds support for "napi_add_env_cleanup_hook" and
"napi_remove_env_cleanup_hook" function for Node-API.
2023-01-13 11:20:14 -05:00
Nayeem Rahman
3545bff678 fix(watch): preserve ProcState::file_fetcher between restarts (#15466)
This commit changes "ProcState" to store "file_fetcher" field in an "Arc",
allowing it to be preserved between restarts and thus keeping the state
alive between the restarts. File watchers for "deno test" and "deno bench"
now reset "ProcState" between restarts.
2023-01-13 11:20:14 -05:00
Bartek Iwańczuk
aa79603674 fix(napi): handle static properties in classes (#17320)
Adds support for static properties when using "napi_define_class".
2023-01-13 11:20:14 -05:00
Bartek Iwańczuk
1c2db072b5 fix(npm): allow to read package.json if permissions are granted (#17209)
This commit changes signature of "deno_core::ModuleLoader::resolve" to pass
an enum indicating whether or not we're resolving a specifier for dynamic import.

Additionally "CliModuleLoader" was changes to store both "parent permissions" (or
"root permissions") as well as "dynamic permissions" that allow to check for permissions
in top-level module load an dynamic imports.

Then all code paths that have anything to do with Node/npm compat are now checking
for permissions which are passed from module loader instance associated with given
worker.
2023-01-13 11:20:14 -05:00
Marcos Casagrande
49b5ac947f fix(ext/web/streams): fix ReadableStream asyncIterator (#16276) 2023-01-13 11:20:14 -05:00
Geert-Jan Zwiers
fab10ea3e0 fix(cli/args): update value_name of inspect args to resolve broken completions (#17287)
This PR updates the name used in `clap::Arg::value_name` for the
`--inspect*` flags from `HOST:PORT` to `HOST_AND_PORT` because the
former causes an arguments error when using shell completions in the
`zsh` shell.
2023-01-13 11:20:13 -05:00
Leo Kettmeir
deefb3b40b feat(core): allow specifying name and dependencies of an Extension (#17301) 2023-01-13 11:20:13 -05:00
David Sherret
1640f984fa fix(install): should always include --no-config in shim unless --config is specified (#17300)
Closes #17294
2023-01-13 11:20:13 -05:00
Dj
11b1e901ad feat(ext/ffi): structs by value (#15060)
Adds support for passing and returning structs as buffers to FFI. This does not implement fastapi support for structs. Needed for certain system APIs such as AppKit on macOS.
2023-01-13 11:20:13 -05:00
Geert-Jan Zwiers
941e28792c refactor(cli/tools): move flag and config logic to CliOptions (#17008)
Co-authored-by: David Sherret <dsherret@gmail.com>
2023-01-13 11:20:13 -05:00
Bartek Iwańczuk
ce8acee44d refactor(permissions): add PermissionsContainer struct for internal mutability (#17134)
Turns out we were cloning permissions which after prompting were discarded,
so the state of permissions was never preserved. To handle that we need to store
all permissions behind "Arc<Mutex<>>" (because there are situations where we
need to send them to other thread).

Testing and benching code still uses "Permissions" in most places - it's undesirable
to share the same permission set between various test/bench files - otherwise
granting or revoking permissions in one file would influence behavior of other test
files.
2023-01-13 11:20:12 -05:00
Chengzhong Wu
f7613eac84 fix(core): get v8 console from context extra bindings (#17243)
Explicitly get `console` object from V8 instead of relying on `console`
defined on the global object.
2023-01-13 11:20:12 -05:00
David Sherret
ab07129ee7 fix(npm): handle declaration file resolution where packages incorrectly define "types" last in "exports" (#17290)
Closes #17279
2023-01-13 11:20:12 -05:00