@native-router/core 1.8.0 → 1.9.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/README.md CHANGED
@@ -113,6 +113,37 @@ const router = create(
113
113
  - Guards: `beforeLoad` receives the level's parsed search as `ctx.search` — the schema output (parsed with `parseSearch`, so async validators work), or the degraded input on schema-less levels; an invalid search fails the resolution through the `errorHandler` channel like a data-phase search error
114
114
  - A rejected validation throws `SearchError` (a `NativeRouterError`) carrying the raw `search` and the reported `issues` — route it through your `errorHandler` like any other resolve failure
115
115
 
116
+ ## Params validation
117
+
118
+ Params are always strings (wildcards: string arrays) — the URL has no types. Declare a `params` schema on a route level and the core validates/coerces the merged params of that level before its `beforeLoad` runs, so guards see numbers instead of `Number(id)` everywhere.
119
+
120
+ ```ts
121
+ import {create} from '@native-router/core';
122
+ import {z} from 'zod';
123
+
124
+ const router = create(
125
+ {
126
+ path: '',
127
+ children: [
128
+ {
129
+ path: '/users/:id',
130
+ params: z.object({id: z.coerce.number().int().positive()}),
131
+ beforeLoad: ({params}) => {
132
+ params.id; // number — coerced, or the navigation failed
133
+ }
134
+ }
135
+ ]
136
+ },
137
+ createBrowserHistory(),
138
+ (matched) => renderUser(matched)
139
+ );
140
+ ```
141
+
142
+ - No `params` schema → behavior unchanged: the raw string map flows through
143
+ - The parse runs per level (shallow → deep): a level's schema validates the params merged up to it; a deeper schema sees the (possibly coerced) output of the shallower ones
144
+ - A rejected validation fails the resolution through the `errorHandler` channel with a `ParamsError` (a `NativeRouterError`) carrying the raw `params` and the reported `issues` — the same route a search-schema failure takes
145
+ - `parseParams`/`parseParamsSync` are exported for custom `resolveView` implementations (the async/sync flavors mirror `parseSearch`/`parseSearchSync`)
146
+
116
147
  ## Design principles
117
148
 
118
149
  **Navigation semantics follow the browser** — native-router aligns with browser-native navigation semantics, not with what other SPA routers happen to do. Every navigation API decision is measured against that yardstick; "a popular router has it" is not, by itself, a reason to follow. These are deliberate choices, not bugs to fix.
package/dist/index.cjs CHANGED
@@ -39,6 +39,28 @@ class SearchError extends NativeRouterError {
39
39
  this.issues = issues;
40
40
  }
41
41
  }
42
+
43
+ /**
44
+ * Thrown when a route {@link BaseRoute.params params schema} rejects the
45
+ * merged path params. Issues are formatted like {@link SearchError}'s —
46
+ * `path: message` pairs joined with `; `, e.g.
47
+ * `Invalid path params "/users/abc": id: expected a number`.
48
+ */
49
+ class ParamsError extends NativeRouterError {
50
+ /** The raw params object that failed validation. */
51
+ params;
52
+
53
+ /** The issues reported by the schema. */
54
+ issues;
55
+ constructor(params, issues) {
56
+ super(`Invalid path params "${JSON.stringify(params)}": ${issues.map(({
57
+ message,
58
+ path
59
+ }) => `${formatIssuePath(path)}${message}`).join('; ')}`);
60
+ this.params = params;
61
+ this.issues = issues;
62
+ }
63
+ }
42
64
  function formatIssuePath(path) {
43
65
  if (!path?.length) return '';
44
66
  const keys = path.map(segment => typeof segment === 'object' ? String(segment.key) : String(segment));
@@ -123,6 +145,53 @@ function isThenable(value) {
123
145
  return typeof value?.then === 'function';
124
146
  }
125
147
 
148
+ /**
149
+ * Validate the merged path params of a route level with a
150
+ * {@link StandardSchemaV1} schema — any zod/valibot/arktype schema
151
+ * works, no hard dependency. Params arrive as the plain string map the
152
+ * matcher extracted(see `mergeMatchedParams`), so schemas can coerce
153
+ * (`'7'` → `7`) and normalize along the way.
154
+ *
155
+ * Async schemas(`validate` returning a promise) are awaited.
156
+ *
157
+ * @group Methods
158
+ * @category Route
159
+ * @param schema the params schema
160
+ * @param params the merged raw params of the level
161
+ * @returns the parsed(and possibly coerced) output of the schema
162
+ * @throws {ParamsError} when the schema reports issues
163
+ */
164
+ async function parseParams(schema, params) {
165
+ const result = await schema['~standard'].validate(params);
166
+ if (result.issues) throw new ParamsError(params, result.issues);
167
+ // The schema's declared output; the loose `StandardSchemaV1` default
168
+ // degrades to `unknown`.
169
+ return result.value;
170
+ }
171
+
172
+ /**
173
+ * Synchronous flavor of {@link parseParams}, for render-time reads and
174
+ * custom `resolveView` implementations.
175
+ *
176
+ * @group Methods
177
+ * @category Route
178
+ * @param schema the params schema — must validate synchronously
179
+ * @param params the merged raw params of the level
180
+ * @returns the parsed(and possibly coerced) output of the schema
181
+ * @throws {ParamsError} when the schema reports issues
182
+ * @throws when the schema validates asynchronously; use {@link parseParams}
183
+ * for async schemas instead
184
+ */
185
+ function parseParamsSync(schema, params) {
186
+ const result = schema['~standard'].validate(params);
187
+ if (isThenable(result)) {
188
+ throw new Error('The params schema validates asynchronously; parse it during resolve ' + '(parseParams) instead of synchronously');
189
+ }
190
+ if (result.issues) throw new ParamsError(params, result.issues);
191
+ // See parseParams for the cast rationale.
192
+ return result.value;
193
+ }
194
+
126
195
  const DEFAULT_MAX_STACK_DEPTH = 100;
127
196
 
128
197
  /** Max redirects followed by {@link resolveEntry} before giving up. */
@@ -408,7 +477,12 @@ function resolveTo(router, to, state) {
408
477
  * A guard's context also carries the level's parsed
409
478
  * {@link GuardContext.search search}: the {@link BaseRoute.search schema}
410
479
  * output(its validation failure rejects this resolution with a
411
- * `SearchError`), or the degraded input without a schema.
480
+ * `SearchError`), or the degraded input without a schema. Its
481
+ * {@link GuardContext.params params} are likewise the merged raw string
482
+ * map unless some level declares a {@link BaseRoute.params params
483
+ * schema} — the deepest schema seen so far has already upgraded them to
484
+ * its output(its validation failure rides the same channel with a
485
+ * `ParamsError`).
412
486
  *
413
487
  * @group Methods
414
488
  * @category Router
@@ -441,10 +515,34 @@ async function resolveEntry(router, location, opts) {
441
515
  };
442
516
  }
443
517
  let redirected = false;
518
+ // Raw params merged level-by-level; a level with a `params` schema
519
+ // upgrades them to the schema output before its guard runs, so
520
+ // guards of deeper levels see coerced params of the whole prefix.
521
+ let params = {};
444
522
  for (let i = 0; i < matched.length; i++) {
445
523
  const {
446
524
  route
447
525
  } = matched[i];
526
+ params = {
527
+ ...params,
528
+ ...matched[i].params
529
+ };
530
+ // The level's params schema runs before its guard, so the guard
531
+ // sees the coerced output. A validation failure fails the
532
+ // resolution through the task's errorHandler channel — the same
533
+ // route a search-schema failure takes — instead of rejecting this
534
+ // entry, which preload consumers share.
535
+ if (route.params) {
536
+ try {
537
+ // eslint-disable-next-line no-await-in-loop -- guards must run in declaration order, sequentially
538
+ params = await parseParams(route.params, params);
539
+ } catch (e) {
540
+ return {
541
+ location,
542
+ task: Promise.reject(e).catch(errorHandler)
543
+ };
544
+ }
545
+ }
448
546
  // `redirect` wins over `beforeLoad`; a non-empty string target
449
547
  // restarts the resolution at the redirected location.
450
548
  let target = route.redirect;
@@ -473,7 +571,7 @@ async function resolveEntry(router, location, opts) {
473
571
  target = await route.beforeLoad({
474
572
  router,
475
573
  location,
476
- params: mergeMatchedParams(matched, i),
574
+ params,
477
575
  signal,
478
576
  search
479
577
  });
@@ -1184,6 +1282,7 @@ function getParams(router) {
1184
1282
 
1185
1283
  exports.NativeRouterError = NativeRouterError;
1186
1284
  exports.NotFoundError = NotFoundError;
1285
+ exports.ParamsError = ParamsError;
1187
1286
  exports.RedirectLoopError = RedirectLoopError;
1188
1287
  exports.SearchError = SearchError;
1189
1288
  exports.back = back;
@@ -1203,6 +1302,8 @@ exports.listen = listen;
1203
1302
  exports.match = match;
1204
1303
  exports.mergeMatchedParams = mergeMatchedParams;
1205
1304
  exports.navigate = navigate;
1305
+ exports.parseParams = parseParams;
1306
+ exports.parseParamsSync = parseParamsSync;
1206
1307
  exports.parseSearch = parseSearch;
1207
1308
  exports.parseSearchInput = parseSearchInput;
1208
1309
  exports.parseSearchSync = parseSearchSync;
package/dist/index.mjs CHANGED
@@ -37,6 +37,28 @@ class SearchError extends NativeRouterError {
37
37
  this.issues = issues;
38
38
  }
39
39
  }
40
+
41
+ /**
42
+ * Thrown when a route {@link BaseRoute.params params schema} rejects the
43
+ * merged path params. Issues are formatted like {@link SearchError}'s —
44
+ * `path: message` pairs joined with `; `, e.g.
45
+ * `Invalid path params "/users/abc": id: expected a number`.
46
+ */
47
+ class ParamsError extends NativeRouterError {
48
+ /** The raw params object that failed validation. */
49
+ params;
50
+
51
+ /** The issues reported by the schema. */
52
+ issues;
53
+ constructor(params, issues) {
54
+ super(`Invalid path params "${JSON.stringify(params)}": ${issues.map(({
55
+ message,
56
+ path
57
+ }) => `${formatIssuePath(path)}${message}`).join('; ')}`);
58
+ this.params = params;
59
+ this.issues = issues;
60
+ }
61
+ }
40
62
  function formatIssuePath(path) {
41
63
  if (!path?.length) return '';
42
64
  const keys = path.map(segment => typeof segment === 'object' ? String(segment.key) : String(segment));
@@ -121,6 +143,53 @@ function isThenable(value) {
121
143
  return typeof value?.then === 'function';
122
144
  }
123
145
 
146
+ /**
147
+ * Validate the merged path params of a route level with a
148
+ * {@link StandardSchemaV1} schema — any zod/valibot/arktype schema
149
+ * works, no hard dependency. Params arrive as the plain string map the
150
+ * matcher extracted(see `mergeMatchedParams`), so schemas can coerce
151
+ * (`'7'` → `7`) and normalize along the way.
152
+ *
153
+ * Async schemas(`validate` returning a promise) are awaited.
154
+ *
155
+ * @group Methods
156
+ * @category Route
157
+ * @param schema the params schema
158
+ * @param params the merged raw params of the level
159
+ * @returns the parsed(and possibly coerced) output of the schema
160
+ * @throws {ParamsError} when the schema reports issues
161
+ */
162
+ async function parseParams(schema, params) {
163
+ const result = await schema['~standard'].validate(params);
164
+ if (result.issues) throw new ParamsError(params, result.issues);
165
+ // The schema's declared output; the loose `StandardSchemaV1` default
166
+ // degrades to `unknown`.
167
+ return result.value;
168
+ }
169
+
170
+ /**
171
+ * Synchronous flavor of {@link parseParams}, for render-time reads and
172
+ * custom `resolveView` implementations.
173
+ *
174
+ * @group Methods
175
+ * @category Route
176
+ * @param schema the params schema — must validate synchronously
177
+ * @param params the merged raw params of the level
178
+ * @returns the parsed(and possibly coerced) output of the schema
179
+ * @throws {ParamsError} when the schema reports issues
180
+ * @throws when the schema validates asynchronously; use {@link parseParams}
181
+ * for async schemas instead
182
+ */
183
+ function parseParamsSync(schema, params) {
184
+ const result = schema['~standard'].validate(params);
185
+ if (isThenable(result)) {
186
+ throw new Error('The params schema validates asynchronously; parse it during resolve ' + '(parseParams) instead of synchronously');
187
+ }
188
+ if (result.issues) throw new ParamsError(params, result.issues);
189
+ // See parseParams for the cast rationale.
190
+ return result.value;
191
+ }
192
+
124
193
  const DEFAULT_MAX_STACK_DEPTH = 100;
125
194
 
126
195
  /** Max redirects followed by {@link resolveEntry} before giving up. */
@@ -406,7 +475,12 @@ function resolveTo(router, to, state) {
406
475
  * A guard's context also carries the level's parsed
407
476
  * {@link GuardContext.search search}: the {@link BaseRoute.search schema}
408
477
  * output(its validation failure rejects this resolution with a
409
- * `SearchError`), or the degraded input without a schema.
478
+ * `SearchError`), or the degraded input without a schema. Its
479
+ * {@link GuardContext.params params} are likewise the merged raw string
480
+ * map unless some level declares a {@link BaseRoute.params params
481
+ * schema} — the deepest schema seen so far has already upgraded them to
482
+ * its output(its validation failure rides the same channel with a
483
+ * `ParamsError`).
410
484
  *
411
485
  * @group Methods
412
486
  * @category Router
@@ -439,10 +513,34 @@ async function resolveEntry(router, location, opts) {
439
513
  };
440
514
  }
441
515
  let redirected = false;
516
+ // Raw params merged level-by-level; a level with a `params` schema
517
+ // upgrades them to the schema output before its guard runs, so
518
+ // guards of deeper levels see coerced params of the whole prefix.
519
+ let params = {};
442
520
  for (let i = 0; i < matched.length; i++) {
443
521
  const {
444
522
  route
445
523
  } = matched[i];
524
+ params = {
525
+ ...params,
526
+ ...matched[i].params
527
+ };
528
+ // The level's params schema runs before its guard, so the guard
529
+ // sees the coerced output. A validation failure fails the
530
+ // resolution through the task's errorHandler channel — the same
531
+ // route a search-schema failure takes — instead of rejecting this
532
+ // entry, which preload consumers share.
533
+ if (route.params) {
534
+ try {
535
+ // eslint-disable-next-line no-await-in-loop -- guards must run in declaration order, sequentially
536
+ params = await parseParams(route.params, params);
537
+ } catch (e) {
538
+ return {
539
+ location,
540
+ task: Promise.reject(e).catch(errorHandler)
541
+ };
542
+ }
543
+ }
446
544
  // `redirect` wins over `beforeLoad`; a non-empty string target
447
545
  // restarts the resolution at the redirected location.
448
546
  let target = route.redirect;
@@ -471,7 +569,7 @@ async function resolveEntry(router, location, opts) {
471
569
  target = await route.beforeLoad({
472
570
  router,
473
571
  location,
474
- params: mergeMatchedParams(matched, i),
572
+ params,
475
573
  signal,
476
574
  search
477
575
  });
@@ -1180,4 +1278,4 @@ function getParams(router) {
1180
1278
  return mergeMatchedParams(match(router, location.pathname) ?? []);
1181
1279
  }
1182
1280
 
1183
- export { NativeRouterError, NotFoundError, RedirectLoopError, SearchError, back, cancel, commit, commitReplace, create, createHref, forward, getCurrentView, getLocation, getParams, go, initHistoryStack, invalidate, listen, match, mergeMatchedParams, navigate, parseSearch, parseSearchInput, parseSearchSync, preload, refresh, resolve, resolveEntry, resolveTo, setBlocker, setOptions, toLocation };
1281
+ export { NativeRouterError, NotFoundError, ParamsError, RedirectLoopError, SearchError, back, cancel, commit, commitReplace, create, createHref, forward, getCurrentView, getLocation, getParams, go, initHistoryStack, invalidate, listen, match, mergeMatchedParams, navigate, parseParams, parseParamsSync, parseSearch, parseSearchInput, parseSearchSync, preload, refresh, resolve, resolveEntry, resolveTo, setBlocker, setOptions, toLocation };
@@ -20,3 +20,16 @@ export declare class SearchError extends NativeRouterError {
20
20
  readonly issues: ReadonlyArray<StandardSchemaV1.Issue>;
21
21
  constructor(search: string, issues: ReadonlyArray<StandardSchemaV1.Issue>);
22
22
  }
23
+ /**
24
+ * Thrown when a route {@link BaseRoute.params params schema} rejects the
25
+ * merged path params. Issues are formatted like {@link SearchError}'s —
26
+ * `path: message` pairs joined with `; `, e.g.
27
+ * `Invalid path params "/users/abc": id: expected a number`.
28
+ */
29
+ export declare class ParamsError extends NativeRouterError {
30
+ /** The raw params object that failed validation. */
31
+ readonly params: Record<string, string>;
32
+ /** The issues reported by the schema. */
33
+ readonly issues: ReadonlyArray<StandardSchemaV1.Issue>;
34
+ constructor(params: Record<string, string>, issues: ReadonlyArray<StandardSchemaV1.Issue>);
35
+ }
@@ -103,7 +103,12 @@ export declare function resolveTo<R extends BaseRoute = BaseRoute, V = any>(rout
103
103
  * A guard's context also carries the level's parsed
104
104
  * {@link GuardContext.search search}: the {@link BaseRoute.search schema}
105
105
  * output(its validation failure rejects this resolution with a
106
- * `SearchError`), or the degraded input without a schema.
106
+ * `SearchError`), or the degraded input without a schema. Its
107
+ * {@link GuardContext.params params} are likewise the merged raw string
108
+ * map unless some level declares a {@link BaseRoute.params params
109
+ * schema} — the deepest schema seen so far has already upgraded them to
110
+ * its output(its validation failure rides the same channel with a
111
+ * `ParamsError`).
107
112
  *
108
113
  * @group Methods
109
114
  * @category Router
@@ -43,3 +43,34 @@ export declare function parseSearch<S extends StandardSchemaV1>(schema: S, searc
43
43
  * for async schemas instead
44
44
  */
45
45
  export declare function parseSearchSync<S extends StandardSchemaV1>(schema: S, search: string): SearchOutputOf<S>;
46
+ /**
47
+ * Validate the merged path params of a route level with a
48
+ * {@link StandardSchemaV1} schema — any zod/valibot/arktype schema
49
+ * works, no hard dependency. Params arrive as the plain string map the
50
+ * matcher extracted(see `mergeMatchedParams`), so schemas can coerce
51
+ * (`'7'` → `7`) and normalize along the way.
52
+ *
53
+ * Async schemas(`validate` returning a promise) are awaited.
54
+ *
55
+ * @group Methods
56
+ * @category Route
57
+ * @param schema the params schema
58
+ * @param params the merged raw params of the level
59
+ * @returns the parsed(and possibly coerced) output of the schema
60
+ * @throws {ParamsError} when the schema reports issues
61
+ */
62
+ export declare function parseParams<S extends StandardSchemaV1>(schema: S, params: Record<string, string>): Promise<SearchOutputOf<S>>;
63
+ /**
64
+ * Synchronous flavor of {@link parseParams}, for render-time reads and
65
+ * custom `resolveView` implementations.
66
+ *
67
+ * @group Methods
68
+ * @category Route
69
+ * @param schema the params schema — must validate synchronously
70
+ * @param params the merged raw params of the level
71
+ * @returns the parsed(and possibly coerced) output of the schema
72
+ * @throws {ParamsError} when the schema reports issues
73
+ * @throws when the schema validates asynchronously; use {@link parseParams}
74
+ * for async schemas instead
75
+ */
76
+ export declare function parseParamsSync<S extends StandardSchemaV1>(schema: S, params: Record<string, string>): SearchOutputOf<S>;
@@ -146,6 +146,13 @@ export type ExtractPathParams<P extends string> = P extends `${infer Head}/${inf
146
146
  export type GuardContext<R extends BaseRoute = BaseRoute, S = unknown> = {
147
147
  router: RouterInstance<R>;
148
148
  location: Location;
149
+ /**
150
+ * The merged params of this level and its parents: when any level
151
+ * declares a {@link BaseRoute.params params schema}, the merged raw
152
+ * params are parsed through the deepest matching schema before the
153
+ * guard runs; without schemas the raw string map the matcher
154
+ * extracted.
155
+ */
149
156
  params: Record<string, string>;
150
157
  /**
151
158
  * The search the guard sees: the route's {@link BaseRoute.search search
@@ -180,6 +187,18 @@ export type BaseRoute<T = any> = {
180
187
  * navigation error.
181
188
  */
182
189
  search?: StandardSchemaV1;
190
+ /**
191
+ * Optional Standard Schema validator of the merged path params this
192
+ * level and its parents contribute(see `mergeMatchedParams`). The core
193
+ * runs it in {@link resolveEntry} after matching and before the level's
194
+ * `beforeLoad`, so guards and loaders see coerced params(e.g. `:id`
195
+ * as a number) instead of raw strings; a validation failure fails the
196
+ * resolve like any other navigation error(via `ParamsError`).
197
+ *
198
+ * Omit it and the params stay the raw `Record<string, string>` the
199
+ * matcher extracted — behavior is unchanged.
200
+ */
201
+ params?: StandardSchemaV1;
183
202
  /**
184
203
  * Route guard invoked before the view resolves. Return a path string
185
204
  * to redirect, or nothing(`undefined`) to continue. The guard's
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@native-router/core",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "exports": {
5
5
  ".": {
6
6
  "types": "./dist/types/index.d.ts",
@@ -31,7 +31,7 @@
31
31
  "build": "rm -rf dist && rollup -c && tsc -p tsconfig.production.json && tsc-alias -p tsconfig.production.json",
32
32
  "commit": "lint-staged && git-cz -n",
33
33
  "coverage": "vitest run --coverage",
34
- "lint": "eslint --fix src test *.js --ext .js,.jsx,.ts,.tsx",
34
+ "lint": "eslint --fix src test *.js",
35
35
  "doc:gen": "typedoc",
36
36
  "deploy": "npm run doc:gen && gh-pages -d dist",
37
37
  "test": "vitest run"
@@ -58,44 +58,46 @@
58
58
  "@babel/core": "^8.0.1",
59
59
  "@babel/preset-env": "^8.0.2",
60
60
  "@babel/preset-typescript": "^8.0.1",
61
+ "@eslint/eslintrc": "^3.3.6",
61
62
  "@rollup/plugin-babel": "^7.1.0",
62
63
  "@rollup/plugin-commonjs": "^29.0.3",
63
64
  "@rollup/plugin-node-resolve": "^16.0.3",
64
65
  "@rollup/plugin-replace": "^6.0.3",
65
- "@types/node": "^26.2.0",
66
+ "@types/node": "^26.4.0",
66
67
  "@types/sinon": "^22.0.0",
67
- "@typescript-eslint/eslint-plugin": "^6.2.0",
68
- "@typescript-eslint/parser": "^6.2.0",
68
+ "@typescript-eslint/eslint-plugin": "^8.68.0",
69
+ "@typescript-eslint/parser": "^8.68.0",
69
70
  "@vitest/coverage-v8": "^4.1.11",
70
71
  "commitizen": "^4.3.2",
71
72
  "core-js": "^3.50.0",
72
73
  "cross-env": "^10.1.0",
73
- "eslint": "^8.50.0",
74
+ "eslint": "^10.9.1",
74
75
  "eslint-config-airbnb": "^19.0.4",
75
- "eslint-config-airbnb-typescript": "^17.1.0",
76
- "eslint-config-prettier": "^8.8.0",
77
- "eslint-import-resolver-typescript": "^3.5.5",
78
- "eslint-plugin-compat": "^4.1.4",
79
- "eslint-plugin-import": "^2.27.5",
80
- "eslint-plugin-jsx-a11y": "^6.7.1",
81
- "eslint-plugin-prettier": "^5.0.0",
82
- "eslint-plugin-react": "^7.33.0",
83
- "eslint-plugin-react-hooks": "^4.6.0",
76
+ "eslint-config-airbnb-typescript": "^18.0.0",
77
+ "eslint-config-prettier": "^10.1.8",
78
+ "eslint-import-resolver-typescript": "^4.4.5",
79
+ "eslint-plugin-compat": "^7.0.2",
80
+ "eslint-plugin-import": "^2.32.0",
81
+ "eslint-plugin-jsx-a11y": "^6.10.2",
82
+ "eslint-plugin-prettier": "^5.5.6",
83
+ "eslint-plugin-react": "^7.37.5",
84
+ "eslint-plugin-react-hooks": "^7.1.1",
84
85
  "gh-pages": "^6.3.0",
86
+ "globals": "^17.11.0",
85
87
  "husky": "^9.1.7",
86
88
  "lint-staged": "^17.3.0",
87
89
  "prettier": "^3.9.6",
88
- "rollup": "^4.62.5",
90
+ "rollup": "^4.63.0",
89
91
  "semantic-release": "^25.0.9",
90
92
  "should": "^13.2.3",
91
93
  "should-sinon": "0.0.6",
92
94
  "sinon": "^22.1.0",
93
- "terser": "^5.50.0",
95
+ "terser": "^5.51.0",
94
96
  "tsc-alias": "^1.9.2",
95
97
  "typedoc": "^0.28.20",
96
98
  "typedoc-plugin-mark-react-functional-components": "^0.2.2",
97
99
  "typedoc-plugin-missing-exports": "^4.1.4",
98
- "typescript": "~5.9.3",
100
+ "typescript": "~6.0.3",
99
101
  "vitest": "^4.1.11"
100
102
  }
101
103
  }