This release includes 1 breaking change for platform teams planning a safe upgrade.
Published 1mo
Secrets & Credentials
✓ No known CVEs patched
✓ No known CVEs patched in this version
Topics
authorization
javascript
security
typescript
Affected surfaces
breaking_upgrade
Summary
AI summaryBroad release touches 🩹 Fixes, 🚀 Enhancements, 🏡 Chore, and 📖 Documentation.
Full changelog
🚀 Enhancements
- Export GuantrOptions and ConditionOperator (10bfd2c)
- Add can.abstract and cannot.abstract methods (ef7e9f1)
- ⚠️ Throw error on circuit breaker trip (fc89b40)
- Add strict validation mode for conditions (3805f38)
- Support async callbacks in setRules (d0e51b9)
- Export utility functions (2007ef1)
🔥 Performance
- Add caching to getRules and early deny in can() (6da6a3c)
🩹 Fixes
- Deduplicate getContext() calls in can() path (05a3a43)
- Cache lookup ambiguity for adapters without
hasmethod (995d494) - Ambiguity on
validateValueTypeerror messaging (c0827d9) - Misleading test in
some.test.ts(0bd2227) - .editorconfig missing target for other file types rule (920e338)
commitlint.config.tsmodule format (371ced6)- Lint severity (cbeb8d1)
tsconfig.jsonmissing test include (67d27cd)- Add missing
noneoperator test file (72d7841) - Missing await in some test (81a6125)
- Apply CodeRabbit auto-fixes (a4a6701)
- Apply CodeRabbit auto-fixes (216f4de)
- Add 'cannot' to string-mode deprecation warning (0eb673e)
- Add 'cannot' to string-mode deprecation warning (aafaa26)
- Handle async callbacks and validate maxRuleIterations (a729a7f)
💅 Refactors
- Move GuantrCircuitBreakerError to errors module (04a24e1)
📖 Documentation
- Fix import path, return types, and context examples (b627373)
- Cache optionality and get rules method return (c99c1b5)
- storage: Clarify setRules appends rules (967cda2)
- Add constructor/utilities docs and update condition guides (d466b2c)
🏡 Chore
- Adopt oxc for linting and formatting, deps update (e19dc13)
- Update lint-staged config and automd trigger (4d619ac)
- ci: Update actions to latest major versions (a2d20ec)
- ci: Replace pnpm fmt with pnpm fmt:check in ci.yml (8622435)
- ci: Consistent pnpm setup, frozen lockfile install (2952f19)
- release: V1.0.2 (835b2c2)
✅ Tests
- Add and update tests for core features and edge cases (8512a6e)
🤖 CI
- Use latest checkout and configure-pages (97c828e)
- Fix indentation for checkout step in deploy workflow (e50300b)
⚠️ Breaking Changes
- ⚠️ Throw error on circuit breaker trip (fc89b40)
❤️ Contributors
- Herdi Tr. (@Hrdtr)
Breaking Changes
- Throw error when circuit breaker trips
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About Hrdtr/guantr
All releases →Related context
Related tools
Beta — feedback welcome: [email protected]