@mano8/astro-auth-m8 2.4.0 → 2.5.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
@@ -8,6 +8,56 @@ this package's own surface: a backend contract repoint is always a major.
8
8
 
9
9
  ## [Unreleased]
10
10
 
11
+ ## 2.5.0
12
+
13
+ Tracks the published `fa-auth-m8` issuer release. The supported backend
14
+ contract stays `fa-auth-m8@2.0`, range `>=2.0.0 <3.0.0` — no contract repoint,
15
+ so this is not a major.
16
+
17
+ ### Changed
18
+
19
+ - `FA_AUTH_M8_TESTED_SERVICE_VERSION` and `package.json`'s
20
+ `faAuthM8.testedServiceVersion` move `2.0.0` → `2.2.0`, the current published
21
+ `fa-auth-m8` release. `2.1.0` shipped the JWKS `kid`/key-binding remediation
22
+ (audit `J1`–`J4`: `ACCESS_KEY_ID` must be the DER fingerprint of the key it
23
+ labels, a single canonical `kid` derivation, a dual-key JWKS overlap window,
24
+ and `Cache-Control`/`ETag` on the JWKS response); `2.2.0` realigns the issuer
25
+ onto `auth-sdk-m8 3.2.0`, the consumer half of `J3`.
26
+ - `README.md`'s backend-contract section reworded to say the package *tracks*
27
+ `2.2.0` rather than claiming a live integration run against it.
28
+
29
+ ### Unchanged, deliberately
30
+
31
+ - `FA_AUTH_M8_MIN_SERVICE_VERSION` stays `2.0.0`. None of `2.1.0` or `2.2.0`
32
+ touches the `fa-auth-m8@2.0` API contract this plugin speaks, so raising the
33
+ floor would reject backends the plugin still works against — and per this
34
+ file's own versioning rule a backend contract repoint is always a major.
35
+ The `J1`–`J4` fixes are issuer-side key handling, invisible across the HTTP
36
+ contract.
37
+
38
+ ## 2.4.1
39
+
40
+ No behaviour or public API changes; the supported backend contract stays
41
+ `fa-auth-m8@2.0`, range `>=2.0.0 <3.0.0`. Aligns shared devDependencies with
42
+ `astro-ui-m8` and brings each to the newest version compatible with the rest
43
+ of the toolchain.
44
+
45
+ ### Changed
46
+
47
+ - Bumped shared dev tooling: `@astrojs/react`, `@astrojs/starlight`,
48
+ `@eslint-react/eslint-plugin`, `@tanstack/react-query` (also widened from an
49
+ exact `5.101.1` pin to `^5.102.8` in `peerDependencies`/`devDependencies`,
50
+ matching `astro-ui-m8`'s range style), `@tanstack/react-table` (`^8.21.3`,
51
+ closing the drift against `astro-ui-m8`), `@types/node`, `@types/react`,
52
+ `@typescript-eslint/eslint-plugin`, `@typescript-eslint/parser`,
53
+ `@vitest/coverage-v8`, `astro`, `eslint`, `globals`, `jsdom`, `react`,
54
+ `react-dom`, `vitest`, and the `esbuild` override.
55
+ - `typescript` stays at `^5.9.3`: the latest `@typescript-eslint/parser`
56
+ declares a peer ceiling of `<6.1.0` and there is no stable 6.x release yet.
57
+ - `@tanstack/react-table` stays on the newest 8.x rather than 9.x: v9 changed
58
+ its generic type system and breaks `astro-ui-m8`'s shared data-table block;
59
+ migrating is deferred rather than folded into this bump.
60
+
11
61
  ## 2.4.0
12
62
 
13
63
  No code behaviour changes; the supported backend contract stays
package/README.md CHANGED
@@ -18,7 +18,7 @@ Use it with a `fa-auth-m8` backend that satisfies the `fa-auth-m8@2.0` contract.
18
18
 
19
19
  ## Backend contract
20
20
 
21
- This package targets the `fa-auth-m8@2.0` API contract and was tested against `fa-auth-m8` service version `2.0.0`. Supported backend service versions are `>=2.0.0 <3.0.0`.
21
+ This package targets the `fa-auth-m8@2.0` API contract and tracks `fa-auth-m8` service version `2.2.0`. Supported backend service versions are `>=2.0.0 <3.0.0` - the contract is unchanged across the 2.x line, so older 2.x backends remain supported.
22
22
 
23
23
  Compatibility helpers are exported from `@mano8/astro-auth-m8/compatibility`. `fa-auth-m8` (>= 1.0.0) exposes a public `GET {API_PREFIX}/meta` route returning a `ServiceMeta` payload - pass it straight to the assert:
24
24
 
@@ -1,7 +1,7 @@
1
1
  export declare const FA_AUTH_M8_CONTRACT_ID = "fa-auth-m8";
2
2
  export declare const FA_AUTH_M8_CONTRACT_VERSION = "2.0";
3
3
  export declare const FA_AUTH_M8_CONTRACT: "fa-auth-m8@2.0";
4
- export declare const FA_AUTH_M8_TESTED_SERVICE_VERSION = "2.0.0";
4
+ export declare const FA_AUTH_M8_TESTED_SERVICE_VERSION = "2.2.0";
5
5
  export declare const FA_AUTH_M8_MIN_SERVICE_VERSION = "2.0.0";
6
6
  export declare const FA_AUTH_M8_MAX_SERVICE_VERSION_EXCLUSIVE = "3.0.0";
7
7
  export declare const FA_AUTH_M8_SERVICE_VERSION_RANGE = ">=2.0.0 <3.0.0";
@@ -1 +1 @@
1
- {"version":3,"file":"compatibility.d.ts","sourceRoot":"","sources":["../../../src/runtime/compatibility.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,eAAe,CAAC;AACnD,eAAO,MAAM,2BAA2B,QAAQ,CAAC;AACjD,eAAO,MAAM,mBAAmB,kBAAsE,CAAC;AAEvG,eAAO,MAAM,iCAAiC,UAAU,CAAC;AACzD,eAAO,MAAM,8BAA8B,UAAU,CAAC;AACtD,eAAO,MAAM,wCAAwC,UAAU,CAAC;AAChE,eAAO,MAAM,gCAAgC,mBAAqF,CAAC;AAEnI,MAAM,MAAM,2BAA2B,GAAG,YAAY,GAAG,cAAc,GAAG,SAAS,CAAC;AAEpF,MAAM,MAAM,uBAAuB,GAAG;IAGpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM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,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,2BAA2B,CAAC;IACpC,gBAAgB,EAAE,OAAO,mBAAmB,CAAC;IAC7C,2BAA2B,EAAE,OAAO,gCAAgC,CAAC;IACrE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA+CF,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAI3E;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,GAAE,uBAA4B,GAAG,qBAAqB,CAiEtG;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,uBAAuB,EAAE,YAAY,UAAO,GAAG,qBAAqB,CAMzH"}
@@ -1,8 +1,11 @@
1
1
  export const FA_AUTH_M8_CONTRACT_ID = "fa-auth-m8";
2
2
  export const FA_AUTH_M8_CONTRACT_VERSION = "2.0";
3
3
  export const FA_AUTH_M8_CONTRACT = `${FA_AUTH_M8_CONTRACT_ID}@${FA_AUTH_M8_CONTRACT_VERSION}`;
4
- // 2.0.0 is the supported fa-auth-m8 service baseline for this plugin.
5
- export const FA_AUTH_M8_TESTED_SERVICE_VERSION = "2.0.0";
4
+ // 2.2.0 is the fa-auth-m8 release this plugin currently targets. The MIN
5
+ // stays at 2.0.0: the `fa-auth-m8@2.0` API contract is unchanged by 2.1.0
6
+ // (JWKS kid/key binding, audit J1-J4) and 2.2.0 (auth-sdk-m8 3.2.0 floor),
7
+ // so raising the floor would reject backends this plugin still speaks to.
8
+ export const FA_AUTH_M8_TESTED_SERVICE_VERSION = "2.2.0";
6
9
  export const FA_AUTH_M8_MIN_SERVICE_VERSION = "2.0.0";
7
10
  export const FA_AUTH_M8_MAX_SERVICE_VERSION_EXCLUSIVE = "3.0.0";
8
11
  export const FA_AUTH_M8_SERVICE_VERSION_RANGE = `>=${FA_AUTH_M8_MIN_SERVICE_VERSION} <${FA_AUTH_M8_MAX_SERVICE_VERSION_EXCLUSIVE}`;
@@ -1 +1 @@
1
- {"version":3,"file":"compatibility.js","sourceRoot":"","sources":["../../../src/runtime/compatibility.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG,YAAY,CAAC;AACnD,MAAM,CAAC,MAAM,2BAA2B,GAAG,KAAK,CAAC;AACjD,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,sBAAsB,IAAI,2BAA2B,EAAW,CAAC;AACvG,sEAAsE;AACtE,MAAM,CAAC,MAAM,iCAAiC,GAAG,OAAO,CAAC;AACzD,MAAM,CAAC,MAAM,8BAA8B,GAAG,OAAO,CAAC;AACtD,MAAM,CAAC,MAAM,wCAAwC,GAAG,OAAO,CAAC;AAChE,MAAM,CAAC,MAAM,gCAAgC,GAAG,KAAK,8BAA8B,KAAK,wCAAwC,EAAE,CAAC;AA6BnI,SAAS,WAAW,CAAC,KAAc;IACjC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;AAC9E,CAAC;AAED,uEAAuE;AACvE,SAAS,qBAAqB,CAAC,KAAc;IAC3C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QAChD,OAAO,WAAW,CAAE,KAA+B,CAAC,OAAO,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,oEAAoE;AACpE,EAAE;AACF,iFAAiF;AACjF,iFAAiF;AACjF,iFAAiF;AACjF,gFAAgF;AAChF,gFAAgF;AAChF,+EAA+E;AAC/E,iDAAiD;AACjD,SAAS,kBAAkB,CAAC,KAAc;IACxC,IAAI,OAAO,KAAK,KAAK,QA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,YAAY;YACpB,gBAAgB,EAAE,mBAAmB;YACrC,2BAA2B,EAAE,gCAAgC;YAC7D,eAAe;YACf,cAAc;SACf,CAAC;IACJ,CAAC;IAED,OAAO;QACL,MAAM,EAAE,SAAS;QACjB,gBAAgB,EAAE,mBAAmB;QACrC,2BAA2B,EAAE,gCAAgC;QAC7D,MAAM,EAAE,iEAAiE;KAC1E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,QAAiC,EAAE,YAAY,GAAG,IAAI;IAChG,MAAM,aAAa,GAAG,wBAAwB,CAAC,QAAQ,CAAC,CAAC;IACzD,IAAI,aAAa,CAAC,MAAM,KAAK,cAAc,IAAI,CAAC,YAAY,IAAI,aAAa,CAAC,MAAM,KAAK,SAAS,CAAC,EAAE,CAAC;QACpG,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IACxC,CAAC;IACD,OAAO,aAAa,CAAC;AACvB,CAAC"}
@@ -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<NoInfer<{
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
- }[]>, Error>>;
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<NoInfer<{
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
- }> | null>;
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<NoInfer<{
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
- }>, Error>>;
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<NoInfer<{
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
- }> | null>;
27
+ } | null>;
28
28
  isLoading: boolean;
29
29
  isFetching: boolean;
30
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<{
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
- }>, Error>>;
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<NoInfer<{
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
- }> | null>;
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<NoInfer<{
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
- }>, Error>>;
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<NoInfer<{
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
- }> | null>;
31
+ } | null>;
32
32
  isLoading: boolean;
33
33
  isFetching: boolean;
34
- refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<NoInfer<{
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
- }>, Error>>;
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<NoInfer<{
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
- }> | null>;
43
- reloadCurrent: () => Promise<NoInfer<{
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
- }> | null>;
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<NoInfer<{
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
- }>, Error>>;
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<NoInfer<{
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
- }> | null>;
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<NoInfer<{
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
- }>, Error>>;
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.0",
3
+ "version": "2.5.0",
4
4
  "description": "Astro integration and headless client for fa-auth-m8.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -68,45 +68,45 @@
68
68
  "test:unit": "vitest run"
69
69
  },
70
70
  "dependencies": {
71
- "@mano8/astro-ui-m8": "^1.5.0"
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.101.1",
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.1",
84
- "@astrojs/starlight": "^0.41.3",
85
- "@eslint-react/eslint-plugin": "^5.18.0",
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.101.1",
87
+ "@tanstack/react-query": "^5.102.8",
88
88
  "@tanstack/react-table": "^8.21.3",
89
- "@types/node": "^22.0.0",
90
- "@types/react": "^19.0.0",
91
- "@typescript-eslint/eslint-plugin": "^8.65.0",
92
- "@typescript-eslint/parser": "^8.65.0",
93
- "@vitest/coverage-v8": "^4.1.9",
94
- "astro": "^7.0.9",
95
- "eslint": "^10.8.0",
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": "^16.0.0",
98
- "jsdom": "^29.1.1",
99
- "react": "^19.2.7",
100
- "react-dom": "^19.2.7",
101
- "typescript": "^5.8.0",
102
- "vitest": "^4.1.9"
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.1"
105
+ "esbuild": "^0.28.2"
106
106
  },
107
107
  "faAuthM8": {
108
108
  "contract": "fa-auth-m8@2.0",
109
- "testedServiceVersion": "2.0.0",
109
+ "testedServiceVersion": "2.2.0",
110
110
  "serviceVersionRange": ">=2.0.0 <3.0.0"
111
111
  }
112
112
  }