@real-router/core 0.168.0 → 0.170.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/dist/cjs/{Router-DeHYRyDZ.js → Router-DWKUgVpc.js} +2 -2
- package/dist/cjs/Router-DWKUgVpc.js.map +1 -0
- package/dist/cjs/Router.d.ts.map +1 -1
- package/dist/cjs/api.js +1 -1
- package/dist/cjs/index.d.ts +1 -2
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/{internals-uqL8CMgp.js → internals-C-m8EvAR.js} +2 -2
- package/dist/cjs/{internals-uqL8CMgp.js.map → internals-C-m8EvAR.js.map} +1 -1
- package/dist/cjs/internals.d.ts +2 -7
- package/dist/cjs/internals.d.ts.map +1 -1
- package/dist/cjs/pipeline/port.d.ts +22 -22
- package/dist/cjs/types/api.d.ts +32 -4
- package/dist/cjs/types/api.d.ts.map +1 -1
- package/dist/cjs/validation.d.ts +1 -2
- package/dist/cjs/validation.js +1 -1
- package/dist/esm/{Router-6q_fZKZ1.mjs → Router-CNyRuEhQ.mjs} +2 -2
- package/dist/esm/Router-CNyRuEhQ.mjs.map +1 -0
- package/dist/esm/Router.d.mts.map +1 -1
- package/dist/esm/api.mjs +1 -1
- package/dist/esm/index.d.mts +1 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/{internals-C--qkbIk.mjs → internals-CATE9FGw.mjs} +2 -2
- package/dist/esm/{internals-C--qkbIk.mjs.map → internals-CATE9FGw.mjs.map} +1 -1
- package/dist/esm/internals.d.mts +2 -7
- package/dist/esm/internals.d.mts.map +1 -1
- package/dist/esm/pipeline/port.d.mts +22 -22
- package/dist/esm/types/api.d.mts +32 -4
- package/dist/esm/types/api.d.mts.map +1 -1
- package/dist/esm/validation.d.mts +1 -2
- package/dist/esm/validation.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/Router-DeHYRyDZ.js.map +0 -1
- package/dist/cjs/types/RouterValidator.d.ts +0 -40
- package/dist/cjs/types/RouterValidator.d.ts.map +0 -1
- package/dist/esm/Router-6q_fZKZ1.mjs.map +0 -1
- package/dist/esm/types/RouterValidator.d.mts +0 -40
- package/dist/esm/types/RouterValidator.d.mts.map +0 -1
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ParamsSearch, State, UrlChannels } from "./base.mjs";
|
|
2
|
-
export interface RouterValidator {
|
|
3
|
-
/**
|
|
4
|
-
* State diagnostics
|
|
5
|
-
*/
|
|
6
|
-
state: {
|
|
7
|
-
/**
|
|
8
|
-
* The mode gate's opt-in diagnostic (#1575). Core DROPS a query key the
|
|
9
|
-
* active `queryParamsMode` will not print — silently, by the same
|
|
10
|
-
* always-on-fixes / opt-in-diagnoses split the channel guard follows. This
|
|
11
|
-
* hook is what makes the drop visible in development.
|
|
12
|
-
*
|
|
13
|
-
* Called once per dropped key, from the gate itself, so the report cannot
|
|
14
|
-
* disagree with what was actually dropped. A `defaultSearch` declared for
|
|
15
|
-
* such a key surfaces through the same call — it is dead config in these
|
|
16
|
-
* modes, and that is the edge worth naming out loud.
|
|
17
|
-
*/
|
|
18
|
-
reportDroppedQueryKey: (routeName: string, key: string) => void;
|
|
19
|
-
/** Opt-in diagnostic for a key the route declares NOWHERE (#1579). */
|
|
20
|
-
reportUndeclaredParamKey: (routeName: string, key: string) => void;
|
|
21
|
-
/**
|
|
22
|
-
* Opt-in diagnostic for a route codec that does not round-trip the state a
|
|
23
|
-
* navigation commits (#2905). `navigate` takes params in the form
|
|
24
|
-
* `decodeParams` returns and never runs it, so the state a link commits and
|
|
25
|
-
* the state its own URL matches back to agree only when `decodeParams`
|
|
26
|
-
* undoes `encodeParams` and adds no key.
|
|
27
|
-
*
|
|
28
|
-
* Called by the two committing producers, `navigate` and
|
|
29
|
-
* `buildNavigationState`, with the state each builds, and only for a
|
|
30
|
-
* route that has a codec. `pathSlots` are the path slot names the route's
|
|
31
|
-
* URL prints, the root's included: a params key outside them never reaches
|
|
32
|
-
* the URL (#1553).
|
|
33
|
-
*/
|
|
34
|
-
reportCodecRoundTrip: (state: State, codec: {
|
|
35
|
-
readonly encode: ((channels: ParamsSearch) => ParamsSearch) | undefined;
|
|
36
|
-
readonly decode: ((channels: UrlChannels) => ParamsSearch) | undefined;
|
|
37
|
-
}, pathSlots: readonly string[]) => void;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=RouterValidator.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RouterValidator.d.mts","names":[],"sources":["../../../src/types/RouterValidator.ts"],"mappings":";iBAciB;;;;EAIf;;;;;;;;;;;;IAYE,wBAAwB,mBAAmB;;IAG3C,2BAA2B,mBAAmB;;;;;;;;;;;;;;IAe9C,uBACE,OAAO,OACP;eACW,UAAU,UAAU,iBAAiB;eACrC,UAAU,UAAU,gBAAgB;OAE/C"}
|