-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add sync APIs for "Deno.permissions" #17019
feat: Add sync APIs for "Deno.permissions" #17019
Conversation
If we are to add |
I'm happy to do so in a couple follow up PRs if you're sure 🤙🏾 |
Great, I think they should all be added in this PR |
Deno.permissions.querySync()
querySync()
, revokeSync()
and requestSync()
#17094 is a prerequisite for this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixing conflicts |
LGTM |
cli/tsc/dts/lib.deno.ns.d.ts
Outdated
* assertEquals(status.state, "granted"); | ||
* }, | ||
* }); | ||
* ``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicating all the examples and adding sync versions for these properties seems to add a bit too much noise. Maybe we should only document the async versions and remove these additions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM to me too. Thanks @iuioiua, I'll update the commit message and land this.
querySync()
, revokeSync()
and requestSync()
…0.0+) - `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
- `Deno.permissions.querySync()` added in Deno v1.30.0 (on 2023-01-25) - see [suggest: Deno.permissions.querySync](denoland/deno#15576) - see [feat: Add sync APIs for "Deno.permissions"](denoland/deno#17019) - see [v1.30.0](https://github.com/denoland/deno/releases/tag/v1.30.0) released on 2023-01-25
This commit adds sync versions of async APIs to "Deno.permissions"
namespace.
Following APIs were added:
Closes #15576.