Skip to content

Playground#25

Merged
dschewchenko merged 2 commits intomainfrom
playground
Jul 5, 2025
Merged

Playground#25
dschewchenko merged 2 commits intomainfrom
playground

Conversation

@dschewchenko
Copy link
Owner

No description provided.

productdevbook and others added 2 commits July 4, 2025 15:05
* feat: Implement Permask Playground with group and permission management
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 has been added. For more details, see the project on GitHub: https://github.com/dschewchenko/permask/
@github-actions
Copy link

github-actions bot commented Jul 5, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 100% 219 / 219
🔵 Statements 100% 219 / 219
🔵 Functions 100% 31 / 31
🔵 Branches 100% 88 / 88
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/permask.ts 100% 100% 100% 100%
src/utils/pack.ts 100% 100% 100% 100%
Generated in workflow #61 for commit 3d85a4b by the Vitest Coverage Report Action

@dschewchenko dschewchenko merged commit 6f7278a into main Jul 5, 2025
1 check passed
@dschewchenko dschewchenko deleted the playground branch July 5, 2025 21:06
@github-actions
Copy link

github-actions bot commented Jul 5, 2025

🎉 This PR is included in version 2.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants