Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c4fe3f353 | ||
|
|
08beeb66a5 | ||
|
|
b944c8e654 |
11
CHANGELOG.md
11
CHANGELOG.md
@@ -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/),
|
||||
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
|
||||
### Added
|
||||
- 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.
|
||||
- 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
|
||||
|
||||
18
README.md
18
README.md
@@ -23,16 +23,16 @@
|
||||
Install the module in your Nuxt app:
|
||||
|
||||
```bash
|
||||
npm install nuxt-can
|
||||
npm install @eduvia-app/nuxt-can
|
||||
# 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:
|
||||
|
||||
```ts
|
||||
// nuxt.config.ts
|
||||
import NuxtCan from 'nuxt-can'
|
||||
import NuxtCan from '@eduvia-app/nuxt-can'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
modules: [NuxtCan],
|
||||
@@ -150,14 +150,14 @@ npm run release
|
||||
---
|
||||
|
||||
<!-- Badges -->
|
||||
[npm-version-src]: https://img.shields.io/npm/v/nuxt-can/latest.svg?style=flat&colorA=020420&colorB=00DC82
|
||||
[npm-version-href]: https://npmjs.com/package/nuxt-can
|
||||
[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/@eduvia-app/nuxt-can
|
||||
|
||||
[npm-downloads-src]: https://img.shields.io/npm/dm/nuxt-can.svg?style=flat&colorA=020420&colorB=00DC82
|
||||
[npm-downloads-href]: https://npm.chart.dev/nuxt-can
|
||||
[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/@eduvia-app/nuxt-can
|
||||
|
||||
[license-src]: https://img.shields.io/npm/l/nuxt-can.svg?style=flat&colorA=020420&colorB=00DC82
|
||||
[license-href]: https://npmjs.com/package/nuxt-can
|
||||
[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/@eduvia-app/nuxt-can
|
||||
|
||||
[nuxt-src]: https://img.shields.io/badge/Nuxt-020420?logo=nuxt.js
|
||||
[nuxt-href]: https://nuxt.com
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"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.",
|
||||
"author": "Eduvia <engineering@eduvia.app>",
|
||||
"homepage": "https://github.com/eduvia-app/nuxt-can#readme",
|
||||
|
||||
Reference in New Issue
Block a user