What's Changed
- Added support for the new Chrome 142+
local-network-accesspermission to theusePermissionhook. - Updated TypeScript definitions with the new permission type for improved DX and autocomplete.
- Added a dedicated unit test for validating the new permission behavior.
- Updated documentation with a full list of supported permissions and example usage.
- Bumped package versions:
- @custom-react-hooks/use-permission → v1.5.2
- @custom-react-hooks/all → v2.0.9
Why This Matters
Chrome introduced a new permission type (local-network-access), and without this update TypeScript users would receive errors when querying this permission.
This release ensures the hook stays fully aligned with the latest browser API changes.
New Contributors
- No new contributors in this release.
Full Changelog
v2.0.7...v2.0.9