nuxt-users 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/dist/cli.mjs +3 -2
- package/dist/module.d.mts +1 -0
- package/dist/module.d.ts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -0
- package/dist/types.d.mts +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v1.8.0
|
|
5
|
+
|
|
6
|
+
[compare changes](https://github.com/rrd108/nuxt-users/compare/v1.6.7...v1.8.0)
|
|
7
|
+
|
|
8
|
+
### 🚀 Enhancements
|
|
9
|
+
|
|
10
|
+
- Implement RBAC closes #55 ([#55](https://github.com/rrd108/nuxt-users/issues/55))
|
|
11
|
+
|
|
12
|
+
### 🩹 Fixes
|
|
13
|
+
|
|
14
|
+
- Type errors ([c403645](https://github.com/rrd108/nuxt-users/commit/c403645))
|
|
15
|
+
- **ci:** Incorrect version ([f504cf9](https://github.com/rrd108/nuxt-users/commit/f504cf9))
|
|
16
|
+
- **cli:** Commands to use nuxt-users package ([b435f7c](https://github.com/rrd108/nuxt-users/commit/b435f7c))
|
|
17
|
+
|
|
18
|
+
### 💅 Refactors
|
|
19
|
+
|
|
20
|
+
- Token cleanup task and middleware ([d47a4a5](https://github.com/rrd108/nuxt-users/commit/d47a4a5))
|
|
21
|
+
- Renames `useAuth` to `useAuthentication` ([e611e62](https://github.com/rrd108/nuxt-users/commit/e611e62))
|
|
22
|
+
|
|
23
|
+
### 🏡 Chore
|
|
24
|
+
|
|
25
|
+
- **release:** V1.6.7 ([def2d5c](https://github.com/rrd108/nuxt-users/commit/def2d5c))
|
|
26
|
+
- Bump cli version number ([b4daec6](https://github.com/rrd108/nuxt-users/commit/b4daec6))
|
|
27
|
+
- Fix for linter ([ce1db37](https://github.com/rrd108/nuxt-users/commit/ce1db37))
|
|
28
|
+
- **release:** V1.7.0 ([967403d](https://github.com/rrd108/nuxt-users/commit/967403d))
|
|
29
|
+
|
|
30
|
+
### ✅ Tests
|
|
31
|
+
|
|
32
|
+
- Remove unused test ([3dc23ad](https://github.com/rrd108/nuxt-users/commit/3dc23ad))
|
|
33
|
+
- Fix response ([db3b03c](https://github.com/rrd108/nuxt-users/commit/db3b03c))
|
|
34
|
+
- Fix mysql field type ([2faf0c6](https://github.com/rrd108/nuxt-users/commit/2faf0c6))
|
|
35
|
+
- Refactors test mocks for clarity ([1343482](https://github.com/rrd108/nuxt-users/commit/1343482))
|
|
36
|
+
|
|
37
|
+
### ❤️ Contributors
|
|
38
|
+
|
|
39
|
+
- Rrd108 ([@rrd108](https://github.com/rrd108))
|
|
40
|
+
|
|
4
41
|
## v1.7.0
|
|
5
42
|
|
|
6
43
|
[compare changes](https://github.com/rrd108/nuxt-users/compare/v1.6.7...v1.7.0)
|
package/dist/cli.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { defineCommand, runMain } from 'citty';
|
|
3
|
-
import { runMigrations, createUser as createUser$1, createUsersTable as createUsersTable$1, createPersonalAccessTokensTable as createPersonalAccessTokensTable$1, createPasswordResetTokensTable as createPasswordResetTokensTable$1, createMigrationsTable as createMigrationsTable$1 } from '
|
|
3
|
+
import { runMigrations, createUser as createUser$1, createUsersTable as createUsersTable$1, createPersonalAccessTokensTable as createPersonalAccessTokensTable$1, createPasswordResetTokensTable as createPasswordResetTokensTable$1, createMigrationsTable as createMigrationsTable$1 } from 'nuxt-users';
|
|
4
4
|
import { defaultOptions } from './module.mjs';
|
|
5
5
|
import { loadNuxt } from '@nuxt/kit';
|
|
6
6
|
import { getPasswordValidationOptions, validatePassword } from './utils.mjs';
|
|
7
7
|
import 'defu';
|
|
8
|
+
import '../dist/runtime/server/utils/index.js';
|
|
8
9
|
|
|
9
10
|
const getOptionsFromEnv = () => {
|
|
10
11
|
const connectorName = process.env.DB_CONNECTOR || "sqlite";
|
|
@@ -247,7 +248,7 @@ const main = defineCommand({
|
|
|
247
248
|
meta: {
|
|
248
249
|
name: "nuxt-users",
|
|
249
250
|
description: "CLI for Nuxt Users Module - Manage users, migrations, and database operations",
|
|
250
|
-
version: "1.
|
|
251
|
+
version: "1.7.0"
|
|
251
252
|
},
|
|
252
253
|
subCommands: {
|
|
253
254
|
migrate,
|
package/dist/module.d.mts
CHANGED
package/dist/module.d.ts
CHANGED
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineNuxtModule, createResolver, addPlugin, addImportsDir, addRouteMiddleware, addServerHandler, addComponent } from '@nuxt/kit';
|
|
2
2
|
import { defu } from 'defu';
|
|
3
|
+
export * from '../dist/runtime/server/utils/index.js';
|
|
3
4
|
|
|
4
5
|
const defaultOptions = {
|
|
5
6
|
connector: {
|
package/dist/types.d.mts
CHANGED
|
@@ -5,3 +5,5 @@ import type { default as Module } from './module.mjs'
|
|
|
5
5
|
export type ModuleOptions = typeof Module extends NuxtModule<infer O> ? Partial<O> : Record<string, any>
|
|
6
6
|
|
|
7
7
|
export { default, type defaultOptions } from './module.mjs'
|
|
8
|
+
|
|
9
|
+
export * from '../dist/runtime/server/utils/index.js'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-users",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"nuxt",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"@nuxt/kit": "^3.17.6",
|
|
101
101
|
"bcrypt": "^6.0.0",
|
|
102
102
|
"nodemailer": "^7.0.5",
|
|
103
|
-
"nuxt-api-shield": "^0.
|
|
103
|
+
"nuxt-api-shield": "^0.8.0"
|
|
104
104
|
},
|
|
105
105
|
"peerDependenciesMeta": {
|
|
106
106
|
"nuxt-api-shield": {
|