nuxt-users 1.34.3 → 1.34.5

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,49 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v1.34.5
5
+
6
+ [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.34.4...v1.34.5)
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - **deps:** Update nuxtjs monorepo to v3.19.2 ([9963034](https://github.com/rrd108/nuxt-users/commit/9963034))
11
+ - Use runtimeconfig for nitro ([346ad0d](https://github.com/rrd108/nuxt-users/commit/346ad0d))
12
+ - Options hierarchy ([d0e4472](https://github.com/rrd108/nuxt-users/commit/d0e4472))
13
+
14
+ ### 🏡 Chore
15
+
16
+ - Fix whitespace ([2e24416](https://github.com/rrd108/nuxt-users/commit/2e24416))
17
+ - **release:** V1.34.4 ([3539b93](https://github.com/rrd108/nuxt-users/commit/3539b93))
18
+
19
+ ### ❤️ Contributors
20
+
21
+ - Rrd108 ([@rrd108](https://github.com/rrd108))
22
+
23
+ ## v1.34.4
24
+
25
+ [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.34.3...v1.34.4)
26
+
27
+ ### 🩹 Fixes
28
+
29
+ - Conflicting runtimeconfig ([563dcca](https://github.com/rrd108/nuxt-users/commit/563dcca))
30
+ - Lint errors ([b590e6d](https://github.com/rrd108/nuxt-users/commit/b590e6d))
31
+ - **deps:** Update nuxtjs monorepo to v3.19.2 ([9963034](https://github.com/rrd108/nuxt-users/commit/9963034))
32
+ - Use runtimeconfig for nitro ([346ad0d](https://github.com/rrd108/nuxt-users/commit/346ad0d))
33
+
34
+ ### 🏡 Chore
35
+
36
+ - **release:** V1.34.3 ([23b3a30](https://github.com/rrd108/nuxt-users/commit/23b3a30))
37
+ - Fix whitespace ([2e24416](https://github.com/rrd108/nuxt-users/commit/2e24416))
38
+
39
+ ### ✅ Tests
40
+
41
+ - Add for config conflict ([59271e3](https://github.com/rrd108/nuxt-users/commit/59271e3))
42
+
43
+ ### ❤️ Contributors
44
+
45
+ - Rrd108 ([@rrd108](https://github.com/rrd108))
46
+
4
47
  ## v1.34.3
5
48
 
6
49
  [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.34.2...v1.34.3)
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-users",
3
3
  "configKey": "nuxtUsers",
4
- "version": "1.34.3",
4
+ "version": "1.34.5",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
package/dist/module.mjs CHANGED
@@ -61,7 +61,7 @@ const module = defineNuxtModule({
61
61
  defaults: defaultOptions,
62
62
  async setup(options, nuxt) {
63
63
  const resolver = createResolver(import.meta.url);
64
- const runtimeConfigOptions = defu(options, nuxt.options.runtimeConfig.nuxtUsers || {}, defaultOptions);
64
+ const runtimeConfigOptions = defu(nuxt.options.runtimeConfig.nuxtUsers || {}, options, defaultOptions);
65
65
  nuxt.options.runtimeConfig.nuxtUsers = {
66
66
  ...runtimeConfigOptions,
67
67
  auth: {
@@ -205,29 +205,6 @@ const module = defineNuxtModule({
205
205
  nuxt.hook("nitro:config", async (nitroConfig) => {
206
206
  nitroConfig.experimental = nitroConfig.experimental || {};
207
207
  nitroConfig.experimental.database = true;
208
- nitroConfig.database = nitroConfig.database || {};
209
- if (!nitroConfig.database.default) {
210
- const finalConnectorConfig = nuxt.options.runtimeConfig.nuxtUsers;
211
- const connectorOptions = { ...finalConnectorConfig.connector.options };
212
- let nitroConnector;
213
- switch (finalConnectorConfig.connector.name) {
214
- case "sqlite":
215
- nitroConnector = "better-sqlite3";
216
- break;
217
- case "mysql":
218
- nitroConnector = "mysql2";
219
- break;
220
- case "postgresql":
221
- nitroConnector = "postgresql";
222
- break;
223
- default:
224
- nitroConnector = "better-sqlite3";
225
- }
226
- nitroConfig.database.default = {
227
- connector: nitroConnector,
228
- options: connectorOptions
229
- };
230
- }
231
208
  nitroConfig.experimental.tasks = true;
232
209
  nitroConfig.scanDirs = nitroConfig.scanDirs || [];
233
210
  nitroConfig.scanDirs.push(resolver.resolve("./runtime/server/tasks"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-users",
3
- "version": "1.34.3",
3
+ "version": "1.34.5",
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",