David Sherret
10e4b2e140
chore: update copyright year to 2023 ( #17247 )
...
Yearly tradition of creating extra noise in git.
2023-01-02 21:00:42 +00:00
Kamil Ogórek
7ce2b58bcf
feat(unstable): Add "Deno.osUptime()" API ( #17179 )
...
This PR adds support for `Deno.osUptime` which reports number of seconds
since os was booted. It will allow us to be compatible with Node's `os.uptime` -
https://nodejs.org/api/os.html#osuptime
Partially based on
https://docs.rs/uptime_lib/latest/src/uptime_lib/lib.rs.html
2022-12-27 00:16:12 +01:00
Colin Ihrig
37340e2386
chore(unstable): rename Deno.getUid() and Deno.getGid() ( #16432 )
...
This commit renames `Deno.getUid()` to `Deno.uid()` and renames
`Deno.getGid()` to `Deno.gid()`.
2022-10-26 16:37:48 -04:00
Yoshiya Hinosawa
fa9e7aab6d
feat: add --allow-sys permission flag ( #16028 )
2022-09-28 21:46:50 +09:00
Nayeem Rahman
38280990da
fix(runtime): fix permission status cache keys ( #15899 )
2022-09-16 20:46:38 +09:00
Colin Ihrig
0a96cb62a8
fix(runtime): improve permission descriptor validation ( #14676 )
...
This commit improves the permission descriptor validation by
explicitly checking for object types and using optional
chaining when creating error messages in case the descriptor
is not an object.
Fixes: https://github.com/denoland/deno/issues/14675
2022-05-19 17:45:09 -04:00
Yoshiya Hinosawa
4c1053ad33
chore: update copyright year ( #13434 )
2022-01-20 16:10:16 +09:00
Bartek Iwańczuk
bedb2adfb0
refactor: remove "unitTest" wrapper from cli/tests/unit ( #12750 )
2021-11-23 17:45:18 +01:00
Casper Beyer
20692f3e84
chore: replace calls to assertThrowsAsync with assertRejects ( #12176 )
2021-09-22 09:21:11 -04:00
Bartek Iwańczuk
0d1a522a03
revert: allow URL for permissions ( #11600 )
...
Revert changes to "net" permissions in regards to handling URLs
introduced in 15b0e61de
.
2021-08-06 21:10:04 +02:00
Leo K
15b0e61de5
feat(runtime): allow URL for permissions ( #11578 )
2021-08-06 15:04:00 +02:00
Leo K
3f0cf9619f
refactor(cli/tests): remove unnecessary void return types ( #11577 )
2021-08-05 13:08:58 +02:00
Kitson Kelly
097e9c44f4
feat(runtime): stabilise permissions and add event target capabilities ( #9573 )
2021-02-25 14:33:09 +11:00
Yusuke Tanaka
d8fd71afdf
chore: update copyright to 2021 ( #9092 )
2021-01-11 18:13:41 +01:00
Nayeem Rahman
22e0ee92a6
BREAKING(unstable): Use hosts for net allowlists ( #8845 )
...
Allowlist checking already uses hosts but for some reason
requests, revokes and the runtime permissions API use URLs.
- BREAKING(lib.deno.unstable.d.ts): Change
NetPermissionDescriptor::url to NetPermissionDescriptor::host
- fix(runtime/permissions): Don't add whole URLs to the
allowlist on request
- fix(runtime/permissions): Harden strength semantics:
({ name: "net", host: "127.0.0.1" } is stronger than
{ name: "net", host: "127.0.0.1:8000" }) for blocklisting
- refactor(runtime/permissions): Use tuples for hosts, make
the host optional in Permissions::{query_net, request_net, revoke_net}()
2020-12-30 23:35:28 +01:00
Benjamin Gruenbaum
3d65e57d7c
fix: fix various global objects constructor length ( #8373 )
...
This commit changes various Web APIs constructors to
match their signature in the browser.
2020-11-14 13:10:23 +01:00
Bartek Iwańczuk
8e914be742
build: migrate to dlint ( #8176 )
...
This commit migrates repository from using "eslint"
to "dlint" for linting JavaScript code.
2020-11-03 16:19:29 +01:00
David Sherret
df02e31507
feat(fmt): Sort named import and export specifiers ( #7711 )
2020-09-27 12:22:32 +02:00
Nayeem Rahman
aaa5e6613a
fix(cli/rt): make some web API constructors illegal at runtime ( #7468 )
2020-09-19 23:30:59 +02:00
Casper Beyer
3c986ca524
test(cli): use assertThrowsAsync for permission tests ( #7092 )
2020-08-18 11:05:51 -04:00
Bartek Iwańczuk
11560387bb
Revert "feat: move unstable Deno.permissions to navigator.permissions… ( #6729 )
...
* Revert "feat: move unstable Deno.permissions to navigator.permissions (#6244 )"
This reverts commit 202e7fa6ad
.
2020-07-13 18:23:24 +02:00
Kitson Kelly
202e7fa6ad
feat: move unstable Deno.permissions to navigator.permissions ( #6244 )
2020-07-09 05:00:18 -04:00
Ryan Dahl
30702e2678
move js unit tests to cli/tests ( #5678 )
2020-05-20 17:52:51 -04:00