@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.
Files changed (37) hide show
  1. package/dist/cjs/{Router-DeHYRyDZ.js → Router-DWKUgVpc.js} +2 -2
  2. package/dist/cjs/Router-DWKUgVpc.js.map +1 -0
  3. package/dist/cjs/Router.d.ts.map +1 -1
  4. package/dist/cjs/api.js +1 -1
  5. package/dist/cjs/index.d.ts +1 -2
  6. package/dist/cjs/index.js +1 -1
  7. package/dist/cjs/{internals-uqL8CMgp.js → internals-C-m8EvAR.js} +2 -2
  8. package/dist/cjs/{internals-uqL8CMgp.js.map → internals-C-m8EvAR.js.map} +1 -1
  9. package/dist/cjs/internals.d.ts +2 -7
  10. package/dist/cjs/internals.d.ts.map +1 -1
  11. package/dist/cjs/pipeline/port.d.ts +22 -22
  12. package/dist/cjs/types/api.d.ts +32 -4
  13. package/dist/cjs/types/api.d.ts.map +1 -1
  14. package/dist/cjs/validation.d.ts +1 -2
  15. package/dist/cjs/validation.js +1 -1
  16. package/dist/esm/{Router-6q_fZKZ1.mjs → Router-CNyRuEhQ.mjs} +2 -2
  17. package/dist/esm/Router-CNyRuEhQ.mjs.map +1 -0
  18. package/dist/esm/Router.d.mts.map +1 -1
  19. package/dist/esm/api.mjs +1 -1
  20. package/dist/esm/index.d.mts +1 -2
  21. package/dist/esm/index.mjs +1 -1
  22. package/dist/esm/{internals-C--qkbIk.mjs → internals-CATE9FGw.mjs} +2 -2
  23. package/dist/esm/{internals-C--qkbIk.mjs.map → internals-CATE9FGw.mjs.map} +1 -1
  24. package/dist/esm/internals.d.mts +2 -7
  25. package/dist/esm/internals.d.mts.map +1 -1
  26. package/dist/esm/pipeline/port.d.mts +22 -22
  27. package/dist/esm/types/api.d.mts +32 -4
  28. package/dist/esm/types/api.d.mts.map +1 -1
  29. package/dist/esm/validation.d.mts +1 -2
  30. package/dist/esm/validation.mjs +1 -1
  31. package/package.json +1 -1
  32. package/dist/cjs/Router-DeHYRyDZ.js.map +0 -1
  33. package/dist/cjs/types/RouterValidator.d.ts +0 -40
  34. package/dist/cjs/types/RouterValidator.d.ts.map +0 -1
  35. package/dist/esm/Router-6q_fZKZ1.mjs.map +0 -1
  36. package/dist/esm/types/RouterValidator.d.mts +0 -40
  37. package/dist/esm/types/RouterValidator.d.mts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"internals.d.mts","names":["RouterInterface"],"sources":["../../src/internals.ts"],"mappings":";;;;;;;;;;;;iBAqCiB,gBACf,UAAU,sBAAsB;WAEvB,YACP,UAAU,SAAS,QACnB,UAAU,eAAe,cAEzB,cACA,SAAS,GACT,SAAS,GACT,kBACG,MAAM,GAAG;;;;;;;WAQL,kBACP,iBACG,eAAe;;;;;;WAOX,wBAAwB;WAExB,eACP,UAAU,SAAS,QACnB,UAAU,eAAe,cAEzB,mBACA,aAAa,GACb,cAAc,MACX,YAAY,GAAG;WAEX,qBACP,sBACA,gBAAgB,WACb;;;;;;;;;;;;;;;;;WAkBI,oBACP,sBACA,iBAAiB,QACjB,iBAAiB;WAGV,YAAY,UAAU,SAAS,QACtC,cACA,UAAU,eACP,MAAM;WAEF,kBAAkB,QAAQ;;;;;;;;;;;;;WAc1B,yBAAyB;WAEzB,mBAAmB,UAAU,WACpC,WAAW,GACX,IAAI,OAAO,eAAe,QACvB;;;;;WAMI,sBAAsB,gBAAgB,oBAC7C,KAAK,GACL,aAAa,MAAM,mBAAmB,gBACnC;;;;;;;;WASI,YAAY;WAEZ,sBAAsB,OAAO;;;;;;;WAQ7B,qBAAqB,iBAAiB;;;;;;;;;;;WAYtC,uBAAuB,iBAAiB;;WAGxC,QAAQ,iBAAiB,QAAQ;;;;;;;WAQjC,kBACP,OAAO,OACP,UAAU,sBACP,QAAQ;WAGJ,cAAc,cAEnB,UAAU,wBAAwB;;;;;;;;;WAa7B,QAAQ,iBAAiB;WAGzB,cAAc;WACd;WAEA,eAAe;WAEf;EAET,WAAW;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;WAU7B,QAAQ,iBAAiB;WAGzB,cAAc;WACd;WAEA,eAAe;WAEf;WAaA,QAAQ;WAGR,4BAA4B,kBAAkB;WAM9C;IACP,SAAS,QAAQ;IACjB,cAAc;IACd,iBAAiB,cAAc;IAK/B,cAAc;IAMd,QAAQ;IAoBR;;WAIO,qBAAqB,YAAY;WAGjC;WACA;;;;;;;;;;;;;;;;;;;;;WAqBA,eACP,SAAS,OACT,WAAW,mBACX,MAAM,sBACH;WACI;IAAoB;;WACpB,qBAAqB,YAAY;;wBAkD5B,aAAa,UAAU,qBACrC,QAAQA,OAAgB,KACvB,gBAAgB"}
@@ -115,17 +115,17 @@ export interface RouteResolver {
115
115
  */
116
116
  admitsUndeclaredQuery: () => boolean;
117
117
  /**
118
- * The mode gate's opt-in diagnostic sink (#1575) — `undefined` unless
119
- * `validation-plugin` is installed, so bare core drops silently and the
120
- * pipeline pays nothing. Resolved per call, not captured: the plugin
121
- * registers after wiring.
118
+ * The mode gate's opt-in diagnostic sink (#1575) — `undefined` while nothing
119
+ * listens to the router's `DROPPED_QUERY_KEY` kind, so bare core drops
120
+ * silently and the pipeline pays nothing. Resolved per read, not captured: a
121
+ * listener subscribes after wiring.
122
122
  *
123
123
  * ⚠ Like its sibling below, the absence has to be REAL: the router implements
124
- * this as a GETTER returning `undefined` while `validator === null`, not as a
125
- * closure that forwards into an optional-chained validator. A closure is
126
- * always truthy, so the pipeline's `?.` read as taken and bare core still paid
127
- * the `pathNames` existence lookup (#1584) once per dropped key with nothing
128
- * to feed. The `| undefined` in the type is what lets the getter say so under
124
+ * this as a GETTER returning `undefined` while the kind has no listener, not
125
+ * as a closure that forwards to the emitter. A closure is always truthy, so
126
+ * the pipeline's `?.` would read as taken and bare core would pay the
127
+ * `pathNames` existence lookup (#1584) once per dropped key with nothing to
128
+ * feed. The `| undefined` in the type is what lets the getter say so under
129
129
  * `exactOptionalPropertyTypes`.
130
130
  *
131
131
  * Optional on the interface so a MOCK port (the property tests) stays a
@@ -157,16 +157,16 @@ export interface RouteResolver {
157
157
  pathNames: (name: string) => readonly string[] | undefined;
158
158
  /**
159
159
  * Opt-in sink for a key the route declares NOWHERE (#1579 — the params half
160
- * of #1553). Absent unless `validation-plugin` is installed, and the absence
161
- * is what keeps the scan off the hot path: core checks one `undefined` and
162
- * skips the walk entirely.
160
+ * of #1553). Absent while nothing listens to the `UNDECLARED_PARAM_KEY`
161
+ * kind, and the absence is what keeps the scan off the hot path: core checks
162
+ * one `undefined` and skips the walk entirely.
163
163
  *
164
164
  * ⚠ The absence has to be REAL — the router implements this member as a
165
- * GETTER returning `undefined` while `validator === null`, not as a closure
166
- * that forwards into an optional-chained validator. A closure is always
167
- * truthy, so the gate would read as taken and bare core would walk the
168
- * caller's bag on every commit; the `| undefined` in the type is what lets
169
- * the getter say so under `exactOptionalPropertyTypes`.
165
+ * GETTER returning `undefined` while the kind has no listener, not as a
166
+ * closure that forwards to the emitter. A closure is always truthy, so the
167
+ * gate would read as taken and bare core would walk the caller's bag on
168
+ * every commit; the `| undefined` in the type is what lets the getter say so
169
+ * under `exactOptionalPropertyTypes`.
170
170
  *
171
171
  * A diagnostic, never a gate — core keeps the key in `state.params` as
172
172
  * app-level data (wiki `Route.md`). Dropping it was measured and rejected: it
@@ -175,14 +175,14 @@ export interface RouteResolver {
175
175
  */
176
176
  reportUndeclaredParamKey?: ((routeName: string, key: string) => void) | undefined;
177
177
  /**
178
- * Opt-in sink for a route codec's round trip (#2905). Absent unless
179
- * `validation-plugin` is installed, so bare core reads one `undefined` per
180
- * commit and runs no codec for it.
178
+ * Opt-in sink for a route codec's round trip (#2905). Absent while nothing
179
+ * listens to the `CODEC_ROUND_TRIP` kind, so bare core reads one `undefined`
180
+ * per commit and looks up no codec for it.
181
181
  *
182
182
  * ⚑ Read by the two committing producers, not by `canonicalize`: what is
183
183
  * judged is the state they build, which exists only after ⑤. The router's
184
- * implementation hands the route's codecs and the path slots its URL prints
185
- * to the validator, and only for a route that has a codec.
184
+ * implementation raises the kind with the route's codecs and the path slots
185
+ * its URL prints, and only for a route that has a codec.
186
186
  *
187
187
  * ⚠ A GETTER on the router's port, like the two sinks above, so the absence
188
188
  * is real.
@@ -1,4 +1,4 @@
1
- import { Params, SearchParams, SimpleState, State, Unsubscribe } from "./base.mjs";
1
+ import { Params, ParamsSearch, SearchParams, SimpleState, State, Unsubscribe, UrlChannels } from "./base.mjs";
2
2
  import { LimitsConfig } from "./limits.mjs";
3
3
  import { AdoptedOrigins, AnyOptions, DefaultDependencies, GuardFnFactory, Plugin, PluginFactory, Route, RouteConfigUpdate, RouterLogger } from "./router.mjs";
4
4
  import { EventMethodMap, EventName } from "./constants.mjs";
@@ -140,6 +140,36 @@ export type DiagnosticEventMap = {
140
140
  BUILD_PATH: [routeName: string, params: Params | undefined];
141
141
  /** The same report from `isActiveRoute`, after `isActiveRoute:entry`. */
142
142
  IS_ACTIVE_ROUTE: [routeName: string, params: Params | undefined];
143
+ /**
144
+ * The mode gate dropped `key` from the query channel of route `routeName`
145
+ * (#1575): the active `queryParamsMode` does not print a key the route does
146
+ * not declare, so it stays out of `state.search`. A `defaultSearch` entry for
147
+ * such a key is dropped the same way. Raised by the gate, once per dropped
148
+ * key, and only for a route that exists.
149
+ */
150
+ DROPPED_QUERY_KEY: [routeName: string, key: string];
151
+ /**
152
+ * The params a committing producer — `navigate`, `navigateToDefault` or
153
+ * `buildNavigationState` — hands route `routeName` hold `key`, which is
154
+ * neither a path slot the route's URL prints, the root's included, nor a
155
+ * query param the route declares (#1579). Core keeps the key in
156
+ * `state.params`, and the URL does not print it. Raised once per such key,
157
+ * before the route's defaults are merged in, and only for a route that
158
+ * exists.
159
+ */
160
+ UNDECLARED_PARAM_KEY: [routeName: string, key: string];
161
+ /**
162
+ * A committing producer — `navigate`, `navigateToDefault` or
163
+ * `buildNavigationState` — built `state` on a route with a codec (#2905),
164
+ * and printed its URL. `codec` carries the route's two codecs, one of them
165
+ * `undefined` when the route declares only the other; `pathSlots` are the
166
+ * path slot names the route's URL prints, the root's included. Not raised
167
+ * for a route with neither.
168
+ */
169
+ CODEC_ROUND_TRIP: [state: State, codec: {
170
+ readonly encode: ((channels: ParamsSearch) => ParamsSearch) | undefined;
171
+ readonly decode: ((channels: UrlChannels) => ParamsSearch) | undefined;
172
+ }, pathSlots: readonly string[]];
143
173
  };
144
174
  /**
145
175
  * Every position at which core asks whether anyone OBJECTS, and the values it
@@ -195,9 +225,7 @@ export interface CheckPositionMap {
195
225
  *
196
226
  * ⚠ This door is documented TOTAL in bare core (INVARIANTS `canNavigateTo`
197
227
  * #5), and a check here can throw. That divergence is the analyser's to own,
198
- * not this position's: it is the same shape the door already had when the
199
- * validator answered here, and `predicate-totality-2245.test.ts` pins both
200
- * arms.
228
+ * not this position's, and `predicate-totality-2245.test.ts` pins both arms.
201
229
  */
202
230
  "canNavigateTo:entry": [name: string, params: Params | undefined, search: SearchParams | undefined];
203
231
  /** The copy the predicate answers about, for the reason above `buildPath:params`. */
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.mts","names":[],"sources":["../../../src/types/api.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;iBA+CiB;EACf,QAAQ,kBAAkB,QAAQ;EAClC,eACE,mBACA,aAAa,QACb,cAAc,iBACX;;;;;;;;;;;;;;;;;;;;;YAuBK;EACV,qBAAqB;;;;;;EAOrB,uBAAuB,sBAAsB;;;;;EAM7C,yBAAyB,sBAAsB;;;;;EAM/C,2BAA2B;;;;;EAM3B,6BAA6B;;;;;EAM7B,4BAA4B;;;;;;EAO5B,mBAAmB;;;;;EAMnB;;;;;EAMA,+BAA+B;;;;;;EAO/B,qBAAqB;;EAGrB,uBAAuB;;;;;EAMvB,yBAAyB;;EAGzB,2BAA2B;;;;;;EAO3B,sBAAsB,cAAc;;;;;EAMpC,yBAAyB,cAAc,iBAAiB;;;;;;EAOxD,oBAAoB,cAAc;;;;;;;EAQlC,iBAAiB,eAAe,mBAAmB;;;;;EAMnD;;;;;;EAOA,aAAa,mBAAmB,QAAQ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;;;;;EAe7B,mBACE,UAAU,OAAO,iBAAiB,2BAC/B;;;;;iBAMU,gBACf,qBAAqB,sBAAsB;EAE3C,MAAM,gBAAgB,cAAc,KAAK,MAAM,aAAa;EAC5D,cAAc,QAAQ;EACtB,MAAM,gBAAgB,uBACpB,MAAM,GACN,OAAO,aAAa;EAEtB,SAAS,MAAM;EACf,SAAS,YAAY;EACrB;EACA,MAAM,YAAY;;;;;iBAMH,aACf,qBAAqB,sBAAsB;EAE3C,mBACE,cACA,oBAAoB,eAAe;EAErC,qBACE,cACA,sBAAsB,eAAe;EAEvC,sBAAsB;EACtB,wBAAwB"}
@@ -2,8 +2,7 @@ import { buildParamMeta } from "./engine/path-matcher/buildParamMeta.mjs";
2
2
  import { RouteTree } from "./engine/builder/types.mjs";
3
3
  import { Matcher } from "./engine/createMatcher.mjs";
4
4
  import { validateRoute } from "./engine/validation/route-batch.mjs";
5
- import { RouterValidator } from "./types/RouterValidator.mjs";
6
5
  import { areParamValuesEqual } from "./helpers.mjs";
7
6
  import { RouterInternals, getInternals } from "./internals.mjs";
8
7
  import { findMisChanneledKey } from "./channels/guard.mjs";
9
- export { type Matcher, type RouteTree, type RouterInternals, type RouterValidator, areParamValuesEqual, buildParamMeta, findMisChanneledKey, getInternals, validateRoute };
8
+ export { type Matcher, type RouteTree, type RouterInternals, areParamValuesEqual, buildParamMeta, findMisChanneledKey, getInternals, validateRoute };
@@ -1 +1 @@
1
- import{a as e}from"./helpers-BFYPM3MT.mjs";import{T as t,b as n,m as r,o as i}from"./internals-C--qkbIk.mjs";export{e as areParamValuesEqual,n as buildParamMeta,t as findMisChanneledKey,i as getInternals,r as validateRoute};
1
+ import{a as e}from"./helpers-BFYPM3MT.mjs";import{T as t,b as n,m as r,o as i}from"./internals-CATE9FGw.mjs";export{e as areParamValuesEqual,n as buildParamMeta,t as findMisChanneledKey,i as getInternals,r as validateRoute};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@real-router/core",
3
- "version": "0.168.0",
3
+ "version": "0.170.0",
4
4
  "type": "commonjs",
5
5
  "description": "A simple, powerful, view-agnostic, modular and extensible router",
6
6
  "main": "./dist/cjs/index.js",