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.
- package/CHANGELOG.md +27 -0
- package/dist/cli.mjs +1 -1
- package/dist/module.json +1 -1
- package/dist/runtime/components/NUsersList.vue +1 -1
- package/dist/runtime/components/NUsersList.vue.d.ts +1 -1
- package/dist/runtime/components/NUsersLoginForm.vue.d.ts +1 -1
- package/dist/runtime/components/NUsersResetPasswordForm.vue.d.ts +1 -1
- package/dist/runtime/components/NUsersUserCard.vue +1 -1
- package/dist/runtime/components/NUsersUserCard.vue.d.ts +1 -1
- package/dist/runtime/components/NUsersUserForm.vue.d.ts +1 -1
- package/dist/runtime/composables/useAuthentication.d.ts +1 -1
- package/dist/runtime/composables/usePasswordValidation.d.ts +1 -1
- package/dist/runtime/server/api/nuxt-users/[id].get.d.ts +1 -1
- package/dist/runtime/server/api/nuxt-users/[id].patch.d.ts +1 -1
- package/dist/runtime/server/api/nuxt-users/index.post.d.ts +1 -1
- package/dist/runtime/server/api/nuxt-users/me.get.d.ts +1 -1
- package/dist/runtime/server/api/nuxt-users/me.patch.d.ts +1 -1
- package/dist/runtime/server/composables/useNuxtUsersDatabase.d.ts +2 -2
- package/dist/runtime/server/composables/useServerAuth.d.ts +1 -1
- package/dist/runtime/server/services/password.d.ts +1 -1
- package/dist/runtime/server/utils/add-active-to-users.d.ts +1 -1
- package/dist/runtime/server/utils/create-migrations-table.d.ts +1 -1
- package/dist/runtime/server/utils/create-password-reset-tokens-table.d.ts +1 -1
- package/dist/runtime/server/utils/create-personal-access-tokens-table.d.ts +1 -1
- package/dist/runtime/server/utils/create-users-table.d.ts +1 -1
- package/dist/runtime/server/utils/db.d.ts +1 -1
- package/dist/runtime/server/utils/migrate.d.ts +1 -1
- package/dist/runtime/server/utils/user.d.ts +1 -1
- package/dist/runtime/utils/permissions.d.ts +1 -1
- 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
package/dist/module.json
CHANGED
|
@@ -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 "
|
|
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 { LoginFormData, LoginFormProps, UserWithoutPassword } from '
|
|
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 '
|
|
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 "
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { type PasswordValidationResult, type PasswordValidationOptions } from '../../utils/index.js';
|
|
2
|
-
import type { RuntimeModuleOptions } from '
|
|
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<{
|
|
@@ -8,8 +8,8 @@ export declare const useNuxtUsersDatabase: () => Promise<{
|
|
|
8
8
|
passwordResetTokens: string;
|
|
9
9
|
};
|
|
10
10
|
connector: {
|
|
11
|
-
name: import("
|
|
12
|
-
options: import("
|
|
11
|
+
name: import("#nuxt-users/types").DatabaseType;
|
|
12
|
+
options: import("#nuxt-users/types").DatabaseConfig;
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { ModuleOptions } from '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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 '
|
|
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>;
|
package/package.json
CHANGED