nuxt-users 1.36.0 → 1.37.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 +41 -0
- package/dist/cli.mjs +2 -2
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -1
- package/package.json +5 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
3
|
|
|
4
|
+
## v1.37.0
|
|
5
|
+
|
|
6
|
+
[compare changes](https://github.com/rrd108/nuxt-users/compare/v1.36.0...v1.37.0)
|
|
7
|
+
|
|
8
|
+
### 🚀 Enhancements
|
|
9
|
+
|
|
10
|
+
- Enhances project info command output ([2d91bd9](https://github.com/rrd108/nuxt-users/commit/2d91bd9))
|
|
11
|
+
|
|
12
|
+
### 🩹 Fixes
|
|
13
|
+
|
|
14
|
+
- **deps:** Update nuxtjs monorepo to v4 ([0c4b199](https://github.com/rrd108/nuxt-users/commit/0c4b199))
|
|
15
|
+
- Ts errors ([44f5d9e](https://github.com/rrd108/nuxt-users/commit/44f5d9e))
|
|
16
|
+
- Add nuxt builder ([aaa8288](https://github.com/rrd108/nuxt-users/commit/aaa8288))
|
|
17
|
+
- Ts errors ([d488513](https://github.com/rrd108/nuxt-users/commit/d488513))
|
|
18
|
+
- **docs:** Updates last release timestamp ([3d3e0d8](https://github.com/rrd108/nuxt-users/commit/3d3e0d8))
|
|
19
|
+
- Add text to emojis ([e2e0ad5](https://github.com/rrd108/nuxt-users/commit/e2e0ad5))
|
|
20
|
+
- Options merging bug what caused missing migrations error message with mysql ([f2d75ec](https://github.com/rrd108/nuxt-users/commit/f2d75ec))
|
|
21
|
+
|
|
22
|
+
### 💅 Refactors
|
|
23
|
+
|
|
24
|
+
- Test scripts for efficiency ([8f0a31a](https://github.com/rrd108/nuxt-users/commit/8f0a31a))
|
|
25
|
+
|
|
26
|
+
### 📖 Documentation
|
|
27
|
+
|
|
28
|
+
- Adds project info command to troubleshooting ([8768090](https://github.com/rrd108/nuxt-users/commit/8768090))
|
|
29
|
+
|
|
30
|
+
### 🏡 Chore
|
|
31
|
+
|
|
32
|
+
- Add snyk ([9c932c8](https://github.com/rrd108/nuxt-users/commit/9c932c8))
|
|
33
|
+
- Remove unsued import ([04fd61d](https://github.com/rrd108/nuxt-users/commit/04fd61d))
|
|
34
|
+
- Package updates ([3173073](https://github.com/rrd108/nuxt-users/commit/3173073))
|
|
35
|
+
- **release:** V1.36.0 ([92bb026](https://github.com/rrd108/nuxt-users/commit/92bb026))
|
|
36
|
+
|
|
37
|
+
### ✅ Tests
|
|
38
|
+
|
|
39
|
+
- Fix gauth ([b925cf2](https://github.com/rrd108/nuxt-users/commit/b925cf2))
|
|
40
|
+
|
|
41
|
+
### ❤️ Contributors
|
|
42
|
+
|
|
43
|
+
- Rrd108 ([@rrd108](https://github.com/rrd108))
|
|
44
|
+
|
|
4
45
|
## v1.36.0
|
|
5
46
|
|
|
6
47
|
[compare changes](https://github.com/rrd108/nuxt-users/compare/v1.35.0...v1.36.0)
|
package/dist/cli.mjs
CHANGED
|
@@ -361,14 +361,14 @@ const projectInfo = defineCommand({
|
|
|
361
361
|
if (migrationsTableExists) {
|
|
362
362
|
const appliedMigrations = await getAppliedMigrations(nuxtUsersConfig);
|
|
363
363
|
console.log("[Nuxt Users] \u{1F4CA} Migrations:");
|
|
364
|
-
console.log("[Nuxt Users] Migrations table exists: \u2705");
|
|
364
|
+
console.log("[Nuxt Users] Migrations table exists: yes \u2705");
|
|
365
365
|
console.log("[Nuxt Users] Applied migrations count:", appliedMigrations.length);
|
|
366
366
|
if (appliedMigrations.length > 0) {
|
|
367
367
|
console.log("[Nuxt Users] Applied migrations:", appliedMigrations.join(", "));
|
|
368
368
|
}
|
|
369
369
|
} else {
|
|
370
370
|
console.log("[Nuxt Users] \u{1F4CA} Migrations:");
|
|
371
|
-
console.log("[Nuxt Users] Migrations table exists: \u274C");
|
|
371
|
+
console.log("[Nuxt Users] Migrations table exists: no \u274C");
|
|
372
372
|
console.log('[Nuxt Users] Run "npx nuxt-users migrate" to set up the database');
|
|
373
373
|
}
|
|
374
374
|
} catch (error) {
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -61,7 +61,10 @@ const module = defineNuxtModule({
|
|
|
61
61
|
defaults: defaultOptions,
|
|
62
62
|
async setup(options, nuxt) {
|
|
63
63
|
const resolver = createResolver(import.meta.url);
|
|
64
|
-
const
|
|
64
|
+
const { connector: _defaultConnector, ...defaultsWithoutConnector } = defaultOptions;
|
|
65
|
+
const runtimeConfigOptions = defu(nuxt.options.runtimeConfig.nuxtUsers || {}, options, defaultsWithoutConnector);
|
|
66
|
+
const configuredConnector = nuxt.options.runtimeConfig.nuxtUsers?.connector || options.connector;
|
|
67
|
+
runtimeConfigOptions.connector = configuredConnector || defaultOptions.connector;
|
|
65
68
|
nuxt.options.runtimeConfig.nuxtUsers = {
|
|
66
69
|
...runtimeConfigOptions,
|
|
67
70
|
auth: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-users",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.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",
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
"lint": "eslint .",
|
|
68
68
|
"lint:fix": "eslint . --fix",
|
|
69
69
|
"pretest": "node -v | grep -q 'v22' || (echo 'Please use Node.js v22 for testing' && exit 1)",
|
|
70
|
-
"test:
|
|
70
|
+
"test:quick": "yarn test:unit && yarn test:sqlite",
|
|
71
|
+
"test:release": "yarn test && yarn build && yarn lint:fix",
|
|
71
72
|
"test:types": "yarn dev:prepare && vue-tsc --noEmit && cd playground && vue-tsc --noEmit",
|
|
72
73
|
"test:unit": "./scripts/test-unit.sh",
|
|
73
74
|
"test:integration": "./scripts/test-integration.sh",
|
|
@@ -101,7 +102,7 @@
|
|
|
101
102
|
"pg": "^8.16.3"
|
|
102
103
|
},
|
|
103
104
|
"peerDependencies": {
|
|
104
|
-
"@nuxt/kit": "^3.17.6",
|
|
105
|
+
"@nuxt/kit": "^3.17.6 || ^4.0.0",
|
|
105
106
|
"bcrypt": "^6.0.0",
|
|
106
107
|
"nodemailer": "^7.0.5",
|
|
107
108
|
"nuxt-api-shield": "^0.8.0"
|
|
@@ -112,7 +113,7 @@
|
|
|
112
113
|
}
|
|
113
114
|
},
|
|
114
115
|
"devDependencies": {
|
|
115
|
-
"@nuxt/devtools": "^
|
|
116
|
+
"@nuxt/devtools": "^3.0.0",
|
|
116
117
|
"@nuxt/eslint-config": "^1.5.2",
|
|
117
118
|
"@nuxt/kit": "^4.0.0",
|
|
118
119
|
"@nuxt/module-builder": "^1.0.2",
|