@mano8/astro-auth-m8 2.4.0 → 2.4.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 +23 -0
- package/dist/src/runtime/hooks/useApiKeys.d.ts +6 -6
- package/dist/src/runtime/hooks/useDashboard.d.ts +4 -4
- package/dist/src/runtime/hooks/useProfile.d.ts +4 -4
- package/dist/src/runtime/hooks/useSecurity.d.ts +4 -4
- package/dist/src/runtime/hooks/useSessions.d.ts +6 -6
- package/dist/src/runtime/hooks/useUsers.d.ts +4 -4
- package/package.json +21 -21
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,29 @@ this package's own surface: a backend contract repoint is always a major.
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## 2.4.1
|
|
12
|
+
|
|
13
|
+
No behaviour or public API changes; the supported backend contract stays
|
|
14
|
+
`fa-auth-m8@2.0`, range `>=2.0.0 <3.0.0`. Aligns shared devDependencies with
|
|
15
|
+
`astro-ui-m8` and brings each to the newest version compatible with the rest
|
|
16
|
+
of the toolchain.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- Bumped shared dev tooling: `@astrojs/react`, `@astrojs/starlight`,
|
|
21
|
+
`@eslint-react/eslint-plugin`, `@tanstack/react-query` (also widened from an
|
|
22
|
+
exact `5.101.1` pin to `^5.102.8` in `peerDependencies`/`devDependencies`,
|
|
23
|
+
matching `astro-ui-m8`'s range style), `@tanstack/react-table` (`^8.21.3`,
|
|
24
|
+
closing the drift against `astro-ui-m8`), `@types/node`, `@types/react`,
|
|
25
|
+
`@typescript-eslint/eslint-plugin`, `@typescript-eslint/parser`,
|
|
26
|
+
`@vitest/coverage-v8`, `astro`, `eslint`, `globals`, `jsdom`, `react`,
|
|
27
|
+
`react-dom`, `vitest`, and the `esbuild` override.
|
|
28
|
+
- `typescript` stays at `^5.9.3`: the latest `@typescript-eslint/parser`
|
|
29
|
+
declares a peer ceiling of `<6.1.0` and there is no stable 6.x release yet.
|
|
30
|
+
- `@tanstack/react-table` stays on the newest 8.x rather than 9.x: v9 changed
|
|
31
|
+
its generic type system and breaks `astro-ui-m8`'s shared data-table block;
|
|
32
|
+
migrating is deferred rather than folded into this bump.
|
|
33
|
+
|
|
11
34
|
## 2.4.0
|
|
12
35
|
|
|
13
36
|
No code behaviour changes; the supported backend contract stays
|
|
@@ -73,7 +73,7 @@ export declare function useApiKeys(load?: boolean): {
|
|
|
73
73
|
}, Error, string, unknown>;
|
|
74
74
|
isLoading: boolean;
|
|
75
75
|
isFetching: boolean;
|
|
76
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
76
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
77
77
|
id: string;
|
|
78
78
|
name: string;
|
|
79
79
|
expires_at: string | null;
|
|
@@ -83,7 +83,7 @@ export declare function useApiKeys(load?: boolean): {
|
|
|
83
83
|
audiences: string[];
|
|
84
84
|
created_at?: string | undefined;
|
|
85
85
|
updated_at?: string | undefined;
|
|
86
|
-
}[]
|
|
86
|
+
}[], Error>>;
|
|
87
87
|
};
|
|
88
88
|
export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
89
89
|
apiKeys: {
|
|
@@ -101,7 +101,7 @@ export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
|
101
101
|
count: number;
|
|
102
102
|
loading: boolean;
|
|
103
103
|
error: Error | null;
|
|
104
|
-
reload: () => Promise<
|
|
104
|
+
reload: () => Promise<{
|
|
105
105
|
data: {
|
|
106
106
|
id: string;
|
|
107
107
|
name: string | null;
|
|
@@ -115,7 +115,7 @@ export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
|
115
115
|
audiences: string[];
|
|
116
116
|
}[];
|
|
117
117
|
count: number;
|
|
118
|
-
}
|
|
118
|
+
} | null>;
|
|
119
119
|
revoke: (keyId: string) => Promise<{
|
|
120
120
|
message: string;
|
|
121
121
|
}>;
|
|
@@ -124,7 +124,7 @@ export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
|
124
124
|
}, Error, string, unknown>;
|
|
125
125
|
isLoading: boolean;
|
|
126
126
|
isFetching: boolean;
|
|
127
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
127
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
128
128
|
data: {
|
|
129
129
|
id: string;
|
|
130
130
|
name: string | null;
|
|
@@ -138,6 +138,6 @@ export declare function useAdminApiKeys(userId: string, load?: boolean): {
|
|
|
138
138
|
audiences: string[];
|
|
139
139
|
}[];
|
|
140
140
|
count: number;
|
|
141
|
-
}
|
|
141
|
+
}, Error>>;
|
|
142
142
|
};
|
|
143
143
|
//# sourceMappingURL=useApiKeys.d.ts.map
|
|
@@ -13,7 +13,7 @@ export declare function useDashboard(scope?: "me" | "global", load?: boolean): {
|
|
|
13
13
|
} | null;
|
|
14
14
|
loading: boolean;
|
|
15
15
|
error: Error | null;
|
|
16
|
-
reload: () => Promise<
|
|
16
|
+
reload: () => Promise<{
|
|
17
17
|
nb_users: number;
|
|
18
18
|
activity: {
|
|
19
19
|
min: number;
|
|
@@ -24,10 +24,10 @@ export declare function useDashboard(scope?: "me" | "global", load?: boolean): {
|
|
|
24
24
|
added: number;
|
|
25
25
|
}[];
|
|
26
26
|
};
|
|
27
|
-
}
|
|
27
|
+
} | null>;
|
|
28
28
|
isLoading: boolean;
|
|
29
29
|
isFetching: boolean;
|
|
30
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
30
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
31
31
|
nb_users: number;
|
|
32
32
|
activity: {
|
|
33
33
|
min: number;
|
|
@@ -38,6 +38,6 @@ export declare function useDashboard(scope?: "me" | "global", load?: boolean): {
|
|
|
38
38
|
added: number;
|
|
39
39
|
}[];
|
|
40
40
|
};
|
|
41
|
-
}
|
|
41
|
+
}, Error>>;
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=useDashboard.d.ts.map
|
|
@@ -15,7 +15,7 @@ export declare function useProfile(load?: boolean): {
|
|
|
15
15
|
} | null;
|
|
16
16
|
loading: boolean;
|
|
17
17
|
error: Error | null;
|
|
18
|
-
reload: () => Promise<
|
|
18
|
+
reload: () => Promise<{
|
|
19
19
|
id: string;
|
|
20
20
|
provider: "password" | "google";
|
|
21
21
|
email: string;
|
|
@@ -27,7 +27,7 @@ export declare function useProfile(load?: boolean): {
|
|
|
27
27
|
role: "superadmin" | "admin" | "writer" | "reader" | "user";
|
|
28
28
|
created_at?: string | undefined;
|
|
29
29
|
updated_at?: string | undefined;
|
|
30
|
-
}
|
|
30
|
+
} | null>;
|
|
31
31
|
save: (body: UserUpdateMe) => Promise<{
|
|
32
32
|
success: boolean;
|
|
33
33
|
user: {
|
|
@@ -81,7 +81,7 @@ export declare function useProfile(load?: boolean): {
|
|
|
81
81
|
}, Error, void, unknown>;
|
|
82
82
|
isLoading: boolean;
|
|
83
83
|
isFetching: boolean;
|
|
84
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
84
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
85
85
|
id: string;
|
|
86
86
|
provider: "password" | "google";
|
|
87
87
|
email: string;
|
|
@@ -93,6 +93,6 @@ export declare function useProfile(load?: boolean): {
|
|
|
93
93
|
role: "superadmin" | "admin" | "writer" | "reader" | "user";
|
|
94
94
|
created_at?: string | undefined;
|
|
95
95
|
updated_at?: string | undefined;
|
|
96
|
-
}
|
|
96
|
+
}, Error>>;
|
|
97
97
|
};
|
|
98
98
|
//# sourceMappingURL=useProfile.d.ts.map
|
|
@@ -16,7 +16,7 @@ export declare function useAuditLog(params?: {
|
|
|
16
16
|
count: number;
|
|
17
17
|
loading: boolean;
|
|
18
18
|
error: Error | null;
|
|
19
|
-
reload: () => Promise<
|
|
19
|
+
reload: () => Promise<{
|
|
20
20
|
data: {
|
|
21
21
|
id: string;
|
|
22
22
|
created_at: string;
|
|
@@ -28,10 +28,10 @@ export declare function useAuditLog(params?: {
|
|
|
28
28
|
target_owner_id?: string | null | undefined;
|
|
29
29
|
}[];
|
|
30
30
|
count: number;
|
|
31
|
-
}
|
|
31
|
+
} | null>;
|
|
32
32
|
isLoading: boolean;
|
|
33
33
|
isFetching: boolean;
|
|
34
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
34
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
35
35
|
data: {
|
|
36
36
|
id: string;
|
|
37
37
|
created_at: string;
|
|
@@ -43,7 +43,7 @@ export declare function useAuditLog(params?: {
|
|
|
43
43
|
target_owner_id?: string | null | undefined;
|
|
44
44
|
}[];
|
|
45
45
|
count: number;
|
|
46
|
-
}
|
|
46
|
+
}, Error>>;
|
|
47
47
|
};
|
|
48
48
|
export declare function useSecurityPurges(): {
|
|
49
49
|
purgeAudit: (window: PurgeRequest["window"]) => Promise<{
|
|
@@ -26,7 +26,7 @@ export declare function useSessions(load?: boolean): {
|
|
|
26
26
|
} | null;
|
|
27
27
|
loading: boolean;
|
|
28
28
|
error: Error | null;
|
|
29
|
-
reload: () => Promise<
|
|
29
|
+
reload: () => Promise<{
|
|
30
30
|
data: {
|
|
31
31
|
id: string;
|
|
32
32
|
provider: "password" | "google";
|
|
@@ -39,8 +39,8 @@ export declare function useSessions(load?: boolean): {
|
|
|
39
39
|
updated_at?: string | undefined;
|
|
40
40
|
}[];
|
|
41
41
|
count: number;
|
|
42
|
-
}
|
|
43
|
-
reloadCurrent: () => Promise<
|
|
42
|
+
} | null>;
|
|
43
|
+
reloadCurrent: () => Promise<{
|
|
44
44
|
id: string;
|
|
45
45
|
provider: "password" | "google";
|
|
46
46
|
jwt_jti: string;
|
|
@@ -50,7 +50,7 @@ export declare function useSessions(load?: boolean): {
|
|
|
50
50
|
external_token_expires_at: string | null;
|
|
51
51
|
created_at?: string | undefined;
|
|
52
52
|
updated_at?: string | undefined;
|
|
53
|
-
}
|
|
53
|
+
} | null>;
|
|
54
54
|
revoke: (id: string) => Promise<{
|
|
55
55
|
message: string;
|
|
56
56
|
}>;
|
|
@@ -59,7 +59,7 @@ export declare function useSessions(load?: boolean): {
|
|
|
59
59
|
}, Error, string, unknown>;
|
|
60
60
|
isLoading: boolean;
|
|
61
61
|
isFetching: boolean;
|
|
62
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
62
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
63
63
|
data: {
|
|
64
64
|
id: string;
|
|
65
65
|
provider: "password" | "google";
|
|
@@ -72,6 +72,6 @@ export declare function useSessions(load?: boolean): {
|
|
|
72
72
|
updated_at?: string | undefined;
|
|
73
73
|
}[];
|
|
74
74
|
count: number;
|
|
75
|
-
}
|
|
75
|
+
}, Error>>;
|
|
76
76
|
};
|
|
77
77
|
//# sourceMappingURL=useSessions.d.ts.map
|
|
@@ -18,7 +18,7 @@ export declare function useUsers(load?: boolean): {
|
|
|
18
18
|
} | null;
|
|
19
19
|
loading: boolean;
|
|
20
20
|
error: Error | null;
|
|
21
|
-
reload: () => Promise<
|
|
21
|
+
reload: () => Promise<{
|
|
22
22
|
data: {
|
|
23
23
|
id: string;
|
|
24
24
|
provider: "password" | "google";
|
|
@@ -33,7 +33,7 @@ export declare function useUsers(load?: boolean): {
|
|
|
33
33
|
updated_at?: string | undefined;
|
|
34
34
|
}[];
|
|
35
35
|
count: number;
|
|
36
|
-
}
|
|
36
|
+
} | null>;
|
|
37
37
|
create: (body: UserCreate) => Promise<{
|
|
38
38
|
id: string;
|
|
39
39
|
provider: "password" | "google";
|
|
@@ -140,7 +140,7 @@ export declare function useUsers(load?: boolean): {
|
|
|
140
140
|
}, Error, string, unknown>;
|
|
141
141
|
isLoading: boolean;
|
|
142
142
|
isFetching: boolean;
|
|
143
|
-
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<
|
|
143
|
+
refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<{
|
|
144
144
|
data: {
|
|
145
145
|
id: string;
|
|
146
146
|
provider: "password" | "google";
|
|
@@ -155,6 +155,6 @@ export declare function useUsers(load?: boolean): {
|
|
|
155
155
|
updated_at?: string | undefined;
|
|
156
156
|
}[];
|
|
157
157
|
count: number;
|
|
158
|
-
}
|
|
158
|
+
}, Error>>;
|
|
159
159
|
};
|
|
160
160
|
//# sourceMappingURL=useUsers.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mano8/astro-auth-m8",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Astro integration and headless client for fa-auth-m8.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -68,41 +68,41 @@
|
|
|
68
68
|
"test:unit": "vitest run"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
-
"@mano8/astro-ui-m8": "^1.5.
|
|
71
|
+
"@mano8/astro-ui-m8": "^1.5.1"
|
|
72
72
|
},
|
|
73
73
|
"peerDependencies": {
|
|
74
74
|
"@astrojs/react": "^6.0.1",
|
|
75
75
|
"@astrojs/starlight": "^0.41.3",
|
|
76
|
-
"@tanstack/react-query": "5.
|
|
76
|
+
"@tanstack/react-query": "^5.102.8",
|
|
77
77
|
"astro": "^7.0.9",
|
|
78
78
|
"react": "^18.0.0 || ^19.0.0",
|
|
79
79
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
80
80
|
"zod": "^4.0.0"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"@astrojs/react": "^6.0.
|
|
84
|
-
"@astrojs/starlight": "^0.41.
|
|
85
|
-
"@eslint-react/eslint-plugin": "^5.18.
|
|
83
|
+
"@astrojs/react": "^6.0.4",
|
|
84
|
+
"@astrojs/starlight": "^0.41.10",
|
|
85
|
+
"@eslint-react/eslint-plugin": "^5.18.6",
|
|
86
86
|
"@eslint/js": "^10.0.1",
|
|
87
|
-
"@tanstack/react-query": "5.
|
|
87
|
+
"@tanstack/react-query": "^5.102.8",
|
|
88
88
|
"@tanstack/react-table": "^8.21.3",
|
|
89
|
-
"@types/node": "^
|
|
90
|
-
"@types/react": "^19.
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
92
|
-
"@typescript-eslint/parser": "^8.
|
|
93
|
-
"@vitest/coverage-v8": "^4.1.
|
|
94
|
-
"astro": "^7.
|
|
95
|
-
"eslint": "^10.
|
|
89
|
+
"@types/node": "^26.4.0",
|
|
90
|
+
"@types/react": "^19.2.18",
|
|
91
|
+
"@typescript-eslint/eslint-plugin": "^8.68.0",
|
|
92
|
+
"@typescript-eslint/parser": "^8.68.0",
|
|
93
|
+
"@vitest/coverage-v8": "^4.1.11",
|
|
94
|
+
"astro": "^7.2.9",
|
|
95
|
+
"eslint": "^10.9.1",
|
|
96
96
|
"eslint-plugin-security": "^4.0.1",
|
|
97
|
-
"globals": "^
|
|
98
|
-
"jsdom": "^
|
|
99
|
-
"react": "^19.2.
|
|
100
|
-
"react-dom": "^19.2.
|
|
101
|
-
"typescript": "^5.
|
|
102
|
-
"vitest": "^4.1.
|
|
97
|
+
"globals": "^17.11.0",
|
|
98
|
+
"jsdom": "^30.0.1",
|
|
99
|
+
"react": "^19.2.8",
|
|
100
|
+
"react-dom": "^19.2.8",
|
|
101
|
+
"typescript": "^5.9.3",
|
|
102
|
+
"vitest": "^4.1.11"
|
|
103
103
|
},
|
|
104
104
|
"overrides": {
|
|
105
|
-
"esbuild": "^0.28.
|
|
105
|
+
"esbuild": "^0.28.2"
|
|
106
106
|
},
|
|
107
107
|
"faAuthM8": {
|
|
108
108
|
"contract": "fa-auth-m8@2.0",
|