nuxt-users 1.5.0 → 1.6.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 CHANGED
@@ -1,6 +1,35 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v1.6.0
5
+
6
+ [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.5.0...v1.6.0)
7
+
8
+ ### 🚀 Enhancements
9
+
10
+ - Add profile page closes #58 ([#58](https://github.com/rrd108/nuxt-users/issues/58))
11
+
12
+ ### 🩹 Fixes
13
+
14
+ - Enhances user authentication and data handling ([d15c77f](https://github.com/rrd108/nuxt-users/commit/d15c77f))
15
+
16
+ ### 💅 Refactors
17
+
18
+ - Module options and defaults ([00aa094](https://github.com/rrd108/nuxt-users/commit/00aa094))
19
+ - Move file to one level up ([e9111c0](https://github.com/rrd108/nuxt-users/commit/e9111c0))
20
+
21
+ ### 🏡 Chore
22
+
23
+ - **release:** V1.5.0 ([c639fcf](https://github.com/rrd108/nuxt-users/commit/c639fcf))
24
+
25
+ ### ✅ Tests
26
+
27
+ - Do not run unit tests for various dbs ([5b5e3aa](https://github.com/rrd108/nuxt-users/commit/5b5e3aa))
28
+
29
+ ### ❤️ Contributors
30
+
31
+ - Rrd108 ([@rrd108](https://github.com/rrd108))
32
+
4
33
  ## v1.5.0
5
34
 
6
35
  [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.4.0...v1.5.0)
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-users",
3
3
  "configKey": "nuxtUsers",
4
- "version": "1.5.0",
4
+ "version": "1.6.0",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.1",
7
7
  "unbuild": "3.6.0"
package/dist/module.mjs CHANGED
@@ -109,9 +109,9 @@ const module = defineNuxtModule({
109
109
  handler: resolver.resolve("./runtime/server/api/profile.get")
110
110
  });
111
111
  addServerHandler({
112
- route: "/api/profile/update-password",
112
+ route: "/api/update-password",
113
113
  method: "post",
114
- handler: resolver.resolve("./runtime/server/api/profile/update-password.post")
114
+ handler: resolver.resolve("./runtime/server/api/update-password.post")
115
115
  });
116
116
  addComponent({
117
117
  name: "LoginForm",
@@ -5,7 +5,7 @@ import { useRuntimeConfig } from "#imports";
5
5
  import PasswordStrengthIndicator from "./PasswordStrengthIndicator.vue";
6
6
  const props = defineProps({
7
7
  apiEndpoint: { type: String, required: false, default: "/api/profile" },
8
- updatePasswordEndpoint: { type: String, required: false, default: "/api/profile/update-password" }
8
+ updatePasswordEndpoint: { type: String, required: false, default: "/api/update-password" }
9
9
  });
10
10
  const emit = defineEmits(["success", "error", "password-error", "password-updated"]);
11
11
  const isLoading = ref(false);
@@ -1,8 +1,8 @@
1
1
  import { createError, defineEventHandler, getCookie, readBody } from "h3";
2
2
  import bcrypt from "bcrypt";
3
3
  import { useRuntimeConfig } from "#imports";
4
- import { getCurrentUserFromToken, updateUserPassword } from "../../../../utils/user";
5
- import { validatePassword, getPasswordValidationOptions } from "../../../../utils/password-validation";
4
+ import { getCurrentUserFromToken, updateUserPassword } from "../../../utils/user";
5
+ import { validatePassword, getPasswordValidationOptions } from "../../../utils/password-validation";
6
6
  export default defineEventHandler(async (event) => {
7
7
  const { nuxtUsers } = useRuntimeConfig();
8
8
  const options = nuxtUsers;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-users",
3
- "version": "1.5.0",
3
+ "version": "1.6.0",
4
4
  "description": "A comprehensive user management module for Nuxt 3 applications with authentication, database support, and CLI tools",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -114,7 +114,7 @@
114
114
  "eslint": "^9.30.1",
115
115
  "nuxt": "^3.17.6",
116
116
  "tsx": "^4.20.3",
117
- "typescript": "~5.8.3",
117
+ "typescript": "~5.9.0",
118
118
  "unbuild": "^3.0.0",
119
119
  "vitepress": "^1.6.3",
120
120
  "vitest": "^3.2.4",