Skip to content

Release v2.0.9 - Added Chrome 142+ local-network-access permission support

Latest

Choose a tag to compare

@djkepa djkepa released this 11 Dec 07:42
0f8cf98

What's Changed

  • Added support for the new Chrome 142+ local-network-access permission to the usePermission hook.
  • 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