refactor(fs)!: remove the unwatch permission (#3606)

There has been no `unwatch` command since v2.0 (`Watcher.close()` releases
the resource), so `allow-unwatch` and `deny-unwatch` never granted anything.
This commit is contained in:
Lucas Fernandes Nogueira
2026-09-22 06:05:04 -03:00
committed by GitHub
parent 5c077a3812
commit a315a07f36
4 changed files with 5 additions and 29 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"fs": major
---
**Breaking:** Removed the `allow-unwatch` and `deny-unwatch` permissions. There has been no `unwatch` command since v2.0 (`Watcher.close()` releases the resource instead), so they never granted anything.
-2
View File
@@ -97,8 +97,6 @@ const COMMANDS: &[&str] = &[
"fstat",
"exists",
"watch",
// TODO: Remove this in v3
"unwatch",
"size",
"start_accessing_security_scoped_resource",
"stop_accessing_security_scoped_resource",
@@ -564,32 +564,6 @@ Denies the truncate command without any pre-configured scope.
<tr>
<td>
`fs:allow-unwatch`
</td>
<td>
Enables the unwatch command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`fs:deny-unwatch`
</td>
<td>
Denies the unwatch command without any pre-configured scope.
</td>
</tr>
<tr>
<td>
`fs:allow-watch`
</td>
-1
View File
@@ -16,5 +16,4 @@ commands.allow = [
"fstat",
"exists",
"watch",
"unwatch",
]