Skip to content

Latest commit

 

History

History
68 lines (32 loc) · 2.87 KB

File metadata and controls

68 lines (32 loc) · 2.87 KB

3.0.0 (2025-12-19)

  • feat!: migrate to Bun, publish ESM-only exports, add framework integrations (#30) (#32) (31df744)

BREAKING CHANGES

  • package is ESM-only (CJS/UMD entry points removed)
  • unpackBitmasks now throws PermaskError on invalid input
  • createPermask().create now throws PermaskError for unknown groups

2.1.1 (2025-07-06)

Bug Fixes

  • add number support for access permission in hasAccess method (#29) (6d0d962)

2.1.0 (2025-07-05)

Features

  • improve API with string group names and new helpers (dc37415)=

You can now use string names for permission groups in create() and hasGroup() for an easier development experience. This change is fully backward-compatible, so numeric IDs still work.

  • The parse() method now includes groupName in its output.
  • Added hasAccess() to check group permissions in a single call.
  • Added getGroupName() to find a group's name from a bitmask.

The playground and tests have been updated to use these new features. For more details, see the project on GitHub: https://github.com/dschewchenko/permask/

2.0.1 (2025-04-01)

Bug Fixes

  • initialize result array with zeros in unpackBitmasks function (#22) (aaea417)

2.0.0 (2025-03-29)

Features

  • extend permission model to include update access - 4 bits (#16) (1a0bc02)

BREAKING CHANGES

  • size and naming changed for access part to fully match crud operations

1.1.0 (2025-03-16)

Features

  • add pack and unpack functions (cab3faf)

1.0.0 (2025-01-17)

Bug Fixes