3 Commits

Author SHA1 Message Date
stanig2106
2c4fe3f353 docs: update changelog for 1.0.1 2025-11-14 06:41:32 +01:00
stanig2106
08beeb66a5 chore: bump version to 1.0.1 2025-11-14 06:40:38 +01:00
stanig2106
b944c8e654 docs: update README for scoped package 2025-11-14 06:39:17 +01:00
3 changed files with 20 additions and 11 deletions

View File

@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.0.1] - 2025-11-14
### Changed
- Publish as the scoped package `@eduvia-app/nuxt-can` and 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-can` helps existing codebases.
## [1.0.0] - 2025-11-14 ## [1.0.0] - 2025-11-14
### Added ### Added
- Compile-time transformer that rewrites `v-can` / `v-cannot` into optimized `v-if` guards. - Compile-time transformer that rewrites `v-can` / `v-cannot` into optimized `v-if` guards.
@@ -18,4 +26,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- English README describing usage, playground, and contribution guide. - English README describing usage, playground, and contribution guide.
- Roadmap and release prep guidance. - Roadmap and release prep guidance.
[1.0.0]: https://github.com/your-org/nuxt-can/releases/tag/v1.0.0 [1.0.1]: https://github.com/eduvia-app/nuxt-can/releases/tag/v1.0.1
[1.0.0]: https://github.com/eduvia-app/nuxt-can/releases/tag/v1.0.0

View File

@@ -23,16 +23,16 @@
Install the module in your Nuxt app: Install the module in your Nuxt app:
```bash ```bash
npm install nuxt-can npm install @eduvia-app/nuxt-can
# or # or
npx nuxi module add nuxt-can npx nuxi module add @eduvia-app/nuxt-can
``` ```
Enable it inside `nuxt.config.ts` and describe the permissions tree: Enable it inside `nuxt.config.ts` and describe the permissions tree:
```ts ```ts
// nuxt.config.ts // nuxt.config.ts
import NuxtCan from 'nuxt-can' import NuxtCan from '@eduvia-app/nuxt-can'
export default defineNuxtConfig({ export default defineNuxtConfig({
modules: [NuxtCan], modules: [NuxtCan],
@@ -150,14 +150,14 @@ npm run release
--- ---
<!-- Badges --> <!-- Badges -->
[npm-version-src]: https://img.shields.io/npm/v/nuxt-can/latest.svg?style=flat&colorA=020420&colorB=00DC82 [npm-version-src]: https://img.shields.io/npm/v/%40eduvia-app%2Fnuxt-can/latest.svg?style=flat&colorA=020420&colorB=00DC82
[npm-version-href]: https://npmjs.com/package/nuxt-can [npm-version-href]: https://npmjs.com/package/@eduvia-app/nuxt-can
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-can.svg?style=flat&colorA=020420&colorB=00DC82 [npm-downloads-src]: https://img.shields.io/npm/dm/%40eduvia-app%2Fnuxt-can.svg?style=flat&colorA=020420&colorB=00DC82
[npm-downloads-href]: https://npm.chart.dev/nuxt-can [npm-downloads-href]: https://npm.chart.dev/@eduvia-app/nuxt-can
[license-src]: https://img.shields.io/npm/l/nuxt-can.svg?style=flat&colorA=020420&colorB=00DC82 [license-src]: https://img.shields.io/npm/l/%40eduvia-app%2Fnuxt-can.svg?style=flat&colorA=020420&colorB=00DC82
[license-href]: https://npmjs.com/package/nuxt-can [license-href]: https://npmjs.com/package/@eduvia-app/nuxt-can
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js [nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
[nuxt-href]: https://nuxt.com [nuxt-href]: https://nuxt.com

View File

@@ -1,6 +1,6 @@
{ {
"name": "@eduvia-app/nuxt-can", "name": "@eduvia-app/nuxt-can",
"version": "1.0.0", "version": "1.0.1",
"description": "Nuxt directives (`v-can`, `v-cannot`) to layer permissions without touching business v-ifs.", "description": "Nuxt directives (`v-can`, `v-cannot`) to layer permissions without touching business v-ifs.",
"author": "Eduvia <engineering@eduvia.app>", "author": "Eduvia <engineering@eduvia.app>",
"homepage": "https://github.com/eduvia-app/nuxt-can#readme", "homepage": "https://github.com/eduvia-app/nuxt-can#readme",