nuxt-users 1.17.0 → 1.17.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.
Files changed (30) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cli.mjs +1 -1
  3. package/dist/module.json +1 -1
  4. package/dist/runtime/components/NUsersList.vue +1 -1
  5. package/dist/runtime/components/NUsersList.vue.d.ts +1 -1
  6. package/dist/runtime/components/NUsersLoginForm.vue.d.ts +1 -1
  7. package/dist/runtime/components/NUsersResetPasswordForm.vue.d.ts +1 -1
  8. package/dist/runtime/components/NUsersUserCard.vue +1 -1
  9. package/dist/runtime/components/NUsersUserCard.vue.d.ts +1 -1
  10. package/dist/runtime/components/NUsersUserForm.vue.d.ts +1 -1
  11. package/dist/runtime/composables/useAuthentication.d.ts +1 -1
  12. package/dist/runtime/composables/usePasswordValidation.d.ts +1 -1
  13. package/dist/runtime/server/api/nuxt-users/[id].get.d.ts +1 -1
  14. package/dist/runtime/server/api/nuxt-users/[id].patch.d.ts +1 -1
  15. package/dist/runtime/server/api/nuxt-users/index.post.d.ts +1 -1
  16. package/dist/runtime/server/api/nuxt-users/me.get.d.ts +1 -1
  17. package/dist/runtime/server/api/nuxt-users/me.patch.d.ts +1 -1
  18. package/dist/runtime/server/composables/useNuxtUsersDatabase.d.ts +2 -2
  19. package/dist/runtime/server/composables/useServerAuth.d.ts +1 -1
  20. package/dist/runtime/server/services/password.d.ts +1 -1
  21. package/dist/runtime/server/utils/add-active-to-users.d.ts +1 -1
  22. package/dist/runtime/server/utils/create-migrations-table.d.ts +1 -1
  23. package/dist/runtime/server/utils/create-password-reset-tokens-table.d.ts +1 -1
  24. package/dist/runtime/server/utils/create-personal-access-tokens-table.d.ts +1 -1
  25. package/dist/runtime/server/utils/create-users-table.d.ts +1 -1
  26. package/dist/runtime/server/utils/db.d.ts +1 -1
  27. package/dist/runtime/server/utils/migrate.d.ts +1 -1
  28. package/dist/runtime/server/utils/user.d.ts +1 -1
  29. package/dist/runtime/utils/permissions.d.ts +1 -1
  30. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,6 +1,33 @@
1
1
  # Changelog
2
2
 
3
3
 
4
+ ## v1.17.1
5
+
6
+ [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.17.0...v1.17.1)
7
+
8
+ ### 🩹 Fixes
9
+
10
+ - Component type import errors ([b1e7329](https://github.com/rrd108/nuxt-users/commit/b1e7329))
11
+ - Import errors ([3e7f99a](https://github.com/rrd108/nuxt-users/commit/3e7f99a))
12
+
13
+ ### 💅 Refactors
14
+
15
+ - Prefix css variables ([556bd1e](https://github.com/rrd108/nuxt-users/commit/556bd1e))
16
+
17
+ ### 🏡 Chore
18
+
19
+ - Remove unused css vars ([4add3c4](https://github.com/rrd108/nuxt-users/commit/4add3c4))
20
+ - **release:** V1.17.0 ([c06f70d](https://github.com/rrd108/nuxt-users/commit/c06f70d))
21
+ - Bump version number ([7d48235](https://github.com/rrd108/nuxt-users/commit/7d48235))
22
+
23
+ ### ✅ Tests
24
+
25
+ - Fix for postgres ([2d60019](https://github.com/rrd108/nuxt-users/commit/2d60019))
26
+
27
+ ### ❤️ Contributors
28
+
29
+ - Rrd108 ([@rrd108](https://github.com/rrd108))
30
+
4
31
  ## v1.17.0
5
32
 
6
33
  [compare changes](https://github.com/rrd108/nuxt-users/compare/v1.16.0...v1.17.0)
package/dist/cli.mjs CHANGED
@@ -267,7 +267,7 @@ const main = defineCommand({
267
267
  meta: {
268
268
  name: "nuxt-users",
269
269
  description: "CLI for Nuxt Users Module - Manage users, migrations, and database operations",
270
- version: "1.16.0"
270
+ version: "1.17.0"
271
271
  },
272
272
  subCommands: {
273
273
  migrate,
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-users",
3
3
  "configKey": "nuxtUsers",
4
- "version": "1.17.0",
4
+ "version": "1.17.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.2",
7
7
  "unbuild": "3.6.0"
@@ -1,7 +1,7 @@
1
1
  <script setup>
2
2
  import { ref, onMounted } from "vue";
3
3
  import { useRuntimeConfig } from "#imports";
4
- import { defaultDisplayFields, defaultFieldLabels } from "../../types";
4
+ import { defaultDisplayFields, defaultFieldLabels } from "#nuxt-users/types";
5
5
  defineProps({
6
6
  displayFields: { type: Array, required: false, default: () => defaultDisplayFields },
7
7
  fieldLabels: { type: Object, required: false, default: () => defaultFieldLabels }
@@ -1,4 +1,4 @@
1
- import { type DisplayFieldsProps, type User } from '../../types.js';
1
+ import { type DisplayFieldsProps, type User } from '#nuxt-users/types';
2
2
  declare var __VLS_1: {}, __VLS_3: {
3
3
  loading: boolean;
4
4
  }, __VLS_5: {
@@ -1,4 +1,4 @@
1
- import type { LoginFormData, LoginFormProps, UserWithoutPassword } from '../../types.js';
1
+ import type { LoginFormData, LoginFormProps, UserWithoutPassword } from '#nuxt-users/types';
2
2
  declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {
3
3
  message: string;
4
4
  }, __VLS_15: {
@@ -1,4 +1,4 @@
1
- import type { UserWithoutPassword, ResetPasswordFormProps } from '../../types.js';
1
+ import type { UserWithoutPassword, ResetPasswordFormProps } from '#nuxt-users/types';
2
2
  declare const _default: import("vue").DefineComponent<ResetPasswordFormProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
3
3
  error: (error: string) => any;
4
4
  success: (user: UserWithoutPassword) => any;
@@ -2,7 +2,7 @@
2
2
  import { computed } from "vue";
3
3
  import { useAuthentication } from "../composables/useAuthentication";
4
4
  import { useRuntimeConfig } from "#imports";
5
- import { defaultDisplayFields, defaultFieldLabels } from "../../types";
5
+ import { defaultDisplayFields, defaultFieldLabels } from "#nuxt-users/types";
6
6
  const props = defineProps({
7
7
  user: { type: Object, required: true },
8
8
  index: { type: Number, required: true },
@@ -1,4 +1,4 @@
1
- import { type DisplayFieldsProps, type User } from '../../types.js';
1
+ import { type DisplayFieldsProps, type User } from '#nuxt-users/types';
2
2
  interface Props extends DisplayFieldsProps {
3
3
  user: User;
4
4
  index: number;
@@ -1,4 +1,4 @@
1
- import type { User } from '../../types.js';
1
+ import type { User } from '#nuxt-users/types';
2
2
  type __VLS_Props = {
3
3
  user?: User | null;
4
4
  };
@@ -1,4 +1,4 @@
1
- import type { User, UserWithoutPassword } from '../../types.js';
1
+ import type { User, UserWithoutPassword } from '#nuxt-users/types';
2
2
  export declare const useAuthentication: () => {
3
3
  user: Readonly<import("vue").Ref<{
4
4
  readonly id: number;
@@ -1,5 +1,5 @@
1
1
  import { type PasswordValidationResult, type PasswordValidationOptions } from '../../utils/index.js';
2
- import type { RuntimeModuleOptions } from '../../types.js';
2
+ import type { RuntimeModuleOptions } from '#nuxt-users/types';
3
3
  export declare const usePasswordValidation: (moduleOptions?: RuntimeModuleOptions, options?: PasswordValidationOptions) => {
4
4
  password: import("vue").Ref<string, string>;
5
5
  validationResult: import("vue").Ref<{
@@ -1,4 +1,4 @@
1
1
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
2
- user: import("../../../../types.js").UserWithoutPassword;
2
+ user: import("#nuxt-users/types").UserWithoutPassword;
3
3
  }>>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
2
- user: import("../../../../types.js").UserWithoutPassword;
2
+ user: import("#nuxt-users/types").UserWithoutPassword;
3
3
  }>>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
2
- user: Omit<import("../../../../types.js").User, "password">;
2
+ user: Omit<import("#nuxt-users/types").User, "password">;
3
3
  }>>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
2
- user: import("../../../../types.js").UserWithoutPassword;
2
+ user: import("#nuxt-users/types").UserWithoutPassword;
3
3
  }>>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const _default: import("h3").EventHandler<import("h3").EventHandlerRequest, Promise<{
2
- user: import("../../../../types.js").UserWithoutPassword;
2
+ user: import("#nuxt-users/types").UserWithoutPassword;
3
3
  }>>;
4
4
  export default _default;
@@ -8,8 +8,8 @@ export declare const useNuxtUsersDatabase: () => Promise<{
8
8
  passwordResetTokens: string;
9
9
  };
10
10
  connector: {
11
- name: import("../../../types.js").DatabaseType;
12
- options: import("../../../types.js").DatabaseConfig;
11
+ name: import("#nuxt-users/types").DatabaseType;
12
+ options: import("#nuxt-users/types").DatabaseConfig;
13
13
  };
14
14
  };
15
15
  }>;
@@ -1,4 +1,4 @@
1
- import type { UserWithoutPassword } from '../../../types.js';
1
+ import type { UserWithoutPassword } from '#nuxt-users/types';
2
2
  /**
3
3
  * Server-side composable for authentication utilities
4
4
  *
@@ -1,4 +1,4 @@
1
- import type { ModuleOptions } from '../../../types.js';
1
+ import type { ModuleOptions } from '#nuxt-users/types';
2
2
  /**
3
3
  * Generates a password reset link and sends it to the user's email.
4
4
  */
@@ -1,2 +1,2 @@
1
- import type { ModuleOptions } from '../../../types.js';
1
+ import type { ModuleOptions } from '#nuxt-users/types';
2
2
  export declare const addActiveToUsers: (options: ModuleOptions) => Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { ModuleOptions } from '../../../types.js';
1
+ import type { ModuleOptions } from '#nuxt-users/types';
2
2
  export declare const createMigrationsTable: (options: ModuleOptions) => Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { ModuleOptions } from '../../../types.js';
1
+ import type { ModuleOptions } from '#nuxt-users/types';
2
2
  export declare const createPasswordResetTokensTable: (options: ModuleOptions) => Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { ModuleOptions } from '../../../types.js';
1
+ import type { ModuleOptions } from '#nuxt-users/types';
2
2
  export declare const createPersonalAccessTokensTable: (options: ModuleOptions) => Promise<void>;
@@ -1,2 +1,2 @@
1
- import type { ModuleOptions } from '../../../types.js';
1
+ import type { ModuleOptions } from '#nuxt-users/types';
2
2
  export declare const createUsersTable: (options: ModuleOptions) => Promise<void>;
@@ -1,4 +1,4 @@
1
- import type { ModuleOptions } from '../../../types.js';
1
+ import type { ModuleOptions } from '#nuxt-users/types';
2
2
  export declare const getConnector: (name: string) => Promise<typeof import("db0/connectors/mysql2").default | typeof import("db0/connectors/postgresql").default | typeof import("db0/connectors/better-sqlite3").default>;
3
3
  export declare const useDb: (options: ModuleOptions) => Promise<import("db0").Database<import("db0").Connector<Database.Database>>>;
4
4
  export declare const checkTableExists: (options: ModuleOptions, tableName: string) => Promise<boolean>;
@@ -1,4 +1,4 @@
1
- import type { ModuleOptions } from '../../../types.js';
1
+ import type { ModuleOptions } from '#nuxt-users/types';
2
2
  export declare const getAppliedMigrations: (options: ModuleOptions) => Promise<string[]>;
3
3
  export declare const markMigrationAsApplied: (options: ModuleOptions, migrationName: string) => Promise<void>;
4
4
  export declare const runMigrations: (options: ModuleOptions) => Promise<void>;
@@ -1,4 +1,4 @@
1
- import type { ModuleOptions, User, UserWithoutPassword } from '../../../types.js';
1
+ import type { ModuleOptions, User, UserWithoutPassword } from '#nuxt-users/types';
2
2
  interface CreateUserParams {
3
3
  email: string;
4
4
  name: string;
@@ -1,4 +1,4 @@
1
- import type { Permission } from '../../types.js';
1
+ import type { Permission } from '#nuxt-users/types';
2
2
  /**
3
3
  * Checks if a path matches a pattern (supports wildcards)
4
4
  * @param path - The path to check
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-users",
3
- "version": "1.17.0",
3
+ "version": "1.17.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",