nuxt-users 1.7.0 → 1.8.1

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 CHANGED
@@ -1,6 +1,63 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v1.8.1
5
+
6
+ [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.8.0...v1.8.1)
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - **cli:** Commands to use nuxt-users package ([b435f7c](https://github.com/rrd108/nuxt-users/commit/b435f7c))
11
+
12
+ ### 🏡 Chore
13
+
14
+ - **release:** V1.8.0 ([00d60cc](https://github.com/rrd108/nuxt-users/commit/00d60cc))
15
+
16
+ ### ✅ Tests
17
+
18
+ - Refactors test mocks for clarity ([1343482](https://github.com/rrd108/nuxt-users/commit/1343482))
19
+
20
+ ### ❤️ Contributors
21
+
22
+ - Rrd108 ([@rrd108](https://github.com/rrd108))
23
+
24
+ ## v1.8.0
25
+
26
+ [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.6.7...v1.8.0)
27
+
28
+ ### 🚀 Enhancements
29
+
30
+ - Implement RBAC closes #55 ([#55](https://github.com/rrd108/nuxt-users/issues/55))
31
+
32
+ ### 🩹 Fixes
33
+
34
+ - Type errors ([c403645](https://github.com/rrd108/nuxt-users/commit/c403645))
35
+ - **ci:** Incorrect version ([f504cf9](https://github.com/rrd108/nuxt-users/commit/f504cf9))
36
+ - **cli:** Commands to use nuxt-users package ([b435f7c](https://github.com/rrd108/nuxt-users/commit/b435f7c))
37
+
38
+ ### 💅 Refactors
39
+
40
+ - Token cleanup task and middleware ([d47a4a5](https://github.com/rrd108/nuxt-users/commit/d47a4a5))
41
+ - Renames `useAuth` to `useAuthentication` ([e611e62](https://github.com/rrd108/nuxt-users/commit/e611e62))
42
+
43
+ ### 🏡 Chore
44
+
45
+ - **release:** V1.6.7 ([def2d5c](https://github.com/rrd108/nuxt-users/commit/def2d5c))
46
+ - Bump cli version number ([b4daec6](https://github.com/rrd108/nuxt-users/commit/b4daec6))
47
+ - Fix for linter ([ce1db37](https://github.com/rrd108/nuxt-users/commit/ce1db37))
48
+ - **release:** V1.7.0 ([967403d](https://github.com/rrd108/nuxt-users/commit/967403d))
49
+
50
+ ### ✅ Tests
51
+
52
+ - Remove unused test ([3dc23ad](https://github.com/rrd108/nuxt-users/commit/3dc23ad))
53
+ - Fix response ([db3b03c](https://github.com/rrd108/nuxt-users/commit/db3b03c))
54
+ - Fix mysql field type ([2faf0c6](https://github.com/rrd108/nuxt-users/commit/2faf0c6))
55
+ - Refactors test mocks for clarity ([1343482](https://github.com/rrd108/nuxt-users/commit/1343482))
56
+
57
+ ### ❤️ Contributors
58
+
59
+ - Rrd108 ([@rrd108](https://github.com/rrd108))
60
+
4
61
  ## v1.7.0
5
62
 
6
63
  [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 '../dist/runtime/server/utils/index.js';
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.6.7"
251
+ version: "1.8.0"
251
252
  },
252
253
  subCommands: {
253
254
  migrate,
package/dist/module.d.mts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
+ export * from '../dist/runtime/server/utils/index.js';
2
3
 
3
4
  type DatabaseType = 'sqlite' | 'mysql' | 'postgresql';
4
5
  type DatabaseConfig = {
package/dist/module.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
+ export * from '../dist/runtime/server/utils/index.js';
2
3
 
3
4
  type DatabaseType = 'sqlite' | 'mysql' | 'postgresql';
4
5
  type DatabaseConfig = {
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-users",
3
3
  "configKey": "nuxtUsers",
4
- "version": "1.7.0",
4
+ "version": "1.8.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.6.0"
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.7.0",
3
+ "version": "1.8.1",
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.1.0 || ^0.8.0"
103
+ "nuxt-api-shield": "^0.8.0"
104
104
  },
105
105
  "peerDependenciesMeta": {
106
106
  "nuxt-api-shield": {