2.2 KiB
2.2 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.1 - 2025-11-15
Changed
- Evaluate
__can__guards before business expressions when merging intov-if/v-else-ifbranches to keep short-circuit order predictable.
1.1.0 - 2025-11-15
Added
- Automatically mirror
v-canguards acrossv-else-if/v-elsebranches and surface the inferred expression in documentation and fixtures. - New
chainsplayground fixture plus SSR tests that cover guard mirroring and explicitv-cannotfallbacks.
Changed
- Enforce adjacency rules for implicit
v-cannotblocks while allowing wrapped fallbacks when the permission expression is provided. - Expand README guidance with explicit examples for guard mirroring, wrapped fallbacks, and known DX errors.
1.0.1 - 2025-11-14
Changed
- Publish as the scoped package
@eduvia-app/nuxt-canand document the scoped install steps. - Fill out package metadata (author, repository, keywords, peer dependency) for npm.
Docs
- Update README badges/links to the scoped npm package and explain why
v-canhelps existing codebases.
1.0.0 - 2025-11-14
Added
- Compile-time transformer that rewrites
v-can/v-cannotinto optimizedv-ifguards. - Global runtime plugin that injects the
canproxy,$can, and the host-provided__can__checker. - Permission-driven type generation with
types/nuxt-can.d.tsand Nuxt schema augmentation. - Playground showcasing multiple directive combinations, permission toggles, and a live summary.
- Test fixtures plus Vitest suite covering directive success paths and DX errors.
- MIT license.
Docs
- English README describing usage, playground, and contribution guide.
- Roadmap and release prep guidance.