@real-router/core 0.171.1 → 0.173.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-DP-Axjj2.js +2 -0
- package/dist/cjs/Router-DP-Axjj2.js.map +1 -0
- package/dist/cjs/Router.d.ts.map +1 -1
- package/dist/cjs/api.js +1 -1
- package/dist/cjs/api.js.map +1 -1
- package/dist/cjs/engine/createMatcher.d.ts +0 -17
- package/dist/cjs/engine/createMatcher.d.ts.map +1 -1
- package/dist/cjs/engine/index.d.ts +3 -2
- package/dist/cjs/engine/search-params/index.d.ts +2 -2
- package/dist/cjs/engine/search-params/searchParams.d.ts +21 -1
- package/dist/cjs/engine/search-params/searchParams.d.ts.map +1 -0
- package/dist/cjs/helpers-BCSkINAR.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/route-batch-ByWFZwIP.js +2 -0
- package/dist/cjs/route-batch-ByWFZwIP.js.map +1 -0
- package/dist/cjs/types/api.d.ts +3 -6
- package/dist/cjs/types/api.d.ts.map +1 -1
- package/dist/cjs/types/base.d.ts +3 -6
- package/dist/cjs/types/base.d.ts.map +1 -1
- package/dist/cjs/types.d.ts +1 -7
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/validation.d.ts +10 -9
- package/dist/cjs/validation.js +1 -1
- package/dist/esm/Router-BuBcRFcb.mjs +2 -0
- package/dist/esm/Router-BuBcRFcb.mjs.map +1 -0
- package/dist/esm/Router.d.mts.map +1 -1
- package/dist/esm/api.mjs +1 -1
- package/dist/esm/api.mjs.map +1 -1
- package/dist/esm/engine/createMatcher.d.mts +0 -17
- package/dist/esm/engine/createMatcher.d.mts.map +1 -1
- package/dist/esm/engine/index.d.mts +3 -2
- package/dist/esm/engine/search-params/index.d.mts +2 -2
- package/dist/esm/engine/search-params/searchParams.d.mts +21 -1
- package/dist/esm/engine/search-params/searchParams.d.mts.map +1 -0
- package/dist/esm/helpers-LeSZEDaV.mjs.map +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/route-batch-BHxxucx6.mjs +2 -0
- package/dist/esm/route-batch-BHxxucx6.mjs.map +1 -0
- package/dist/esm/types/api.d.mts +3 -6
- package/dist/esm/types/api.d.mts.map +1 -1
- package/dist/esm/types/base.d.mts +3 -6
- package/dist/esm/types/base.d.mts.map +1 -1
- package/dist/esm/types.d.mts +1 -7
- package/dist/esm/types.d.mts.map +1 -1
- package/dist/esm/validation.d.mts +10 -9
- package/dist/esm/validation.mjs +1 -1
- package/package.json +1 -1
- package/dist/cjs/Router-DgiBVYF4.js +0 -2
- package/dist/cjs/Router-DgiBVYF4.js.map +0 -1
- package/dist/cjs/dependenciesStore.d.ts +0 -36
- package/dist/cjs/dependenciesStore.d.ts.map +0 -1
- package/dist/cjs/internals-2KakrCBP.js +0 -2
- package/dist/cjs/internals-2KakrCBP.js.map +0 -1
- package/dist/cjs/internals.d.ts +0 -158
- package/dist/cjs/internals.d.ts.map +0 -1
- package/dist/cjs/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.d.ts +0 -191
- package/dist/cjs/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.d.ts.map +0 -1
- package/dist/cjs/namespaces/RouteLifecycleNamespace/index.d.ts +0 -3
- package/dist/cjs/namespaces/RouteLifecycleNamespace/types.d.ts +0 -17
- package/dist/cjs/namespaces/RouteLifecycleNamespace/types.d.ts.map +0 -1
- package/dist/cjs/namespaces/RoutesNamespace/RoutesNamespace.d.ts +0 -7
- package/dist/cjs/namespaces/RoutesNamespace/index.d.ts +0 -4
- package/dist/cjs/namespaces/RoutesNamespace/routesStore.d.ts +0 -105
- package/dist/cjs/namespaces/RoutesNamespace/routesStore.d.ts.map +0 -1
- package/dist/cjs/namespaces/RoutesNamespace/types.d.ts +0 -71
- package/dist/cjs/namespaces/RoutesNamespace/types.d.ts.map +0 -1
- package/dist/cjs/pipeline/buildURL.d.ts +0 -2
- package/dist/cjs/pipeline/canonicalize.d.ts +0 -3
- package/dist/cjs/pipeline/index.d.ts +0 -22
- package/dist/cjs/pipeline/materialize.d.ts +0 -2
- package/dist/cjs/pipeline/port.d.ts +0 -193
- package/dist/cjs/pipeline/port.d.ts.map +0 -1
- package/dist/cjs/pipeline/types.d.ts +0 -1
- package/dist/cjs/transitionPath.d.ts +0 -1
- package/dist/cjs/types/internal.d.ts +0 -23
- package/dist/cjs/types/internal.d.ts.map +0 -1
- package/dist/esm/Router-C4CV__XQ.mjs +0 -2
- package/dist/esm/Router-C4CV__XQ.mjs.map +0 -1
- package/dist/esm/dependenciesStore.d.mts +0 -36
- package/dist/esm/dependenciesStore.d.mts.map +0 -1
- package/dist/esm/internals-D17AclZw.mjs +0 -2
- package/dist/esm/internals-D17AclZw.mjs.map +0 -1
- package/dist/esm/internals.d.mts +0 -158
- package/dist/esm/internals.d.mts.map +0 -1
- package/dist/esm/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.d.mts +0 -191
- package/dist/esm/namespaces/RouteLifecycleNamespace/RouteLifecycleNamespace.d.mts.map +0 -1
- package/dist/esm/namespaces/RouteLifecycleNamespace/index.d.mts +0 -3
- package/dist/esm/namespaces/RouteLifecycleNamespace/types.d.mts +0 -17
- package/dist/esm/namespaces/RouteLifecycleNamespace/types.d.mts.map +0 -1
- package/dist/esm/namespaces/RoutesNamespace/RoutesNamespace.d.mts +0 -7
- package/dist/esm/namespaces/RoutesNamespace/index.d.mts +0 -4
- package/dist/esm/namespaces/RoutesNamespace/routesStore.d.mts +0 -105
- package/dist/esm/namespaces/RoutesNamespace/routesStore.d.mts.map +0 -1
- package/dist/esm/namespaces/RoutesNamespace/types.d.mts +0 -71
- package/dist/esm/namespaces/RoutesNamespace/types.d.mts.map +0 -1
- package/dist/esm/pipeline/buildURL.d.mts +0 -2
- package/dist/esm/pipeline/canonicalize.d.mts +0 -3
- package/dist/esm/pipeline/index.d.mts +0 -22
- package/dist/esm/pipeline/materialize.d.mts +0 -2
- package/dist/esm/pipeline/port.d.mts +0 -193
- package/dist/esm/pipeline/port.d.mts.map +0 -1
- package/dist/esm/pipeline/types.d.mts +0 -1
- package/dist/esm/transitionPath.d.mts +0 -1
- package/dist/esm/types/internal.d.mts +0 -23
- package/dist/esm/types/internal.d.mts.map +0 -1
|
@@ -7,26 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module route-tree/createMatcher
|
|
9
9
|
*/
|
|
10
|
-
import { Options } from "./search-params/types.js";
|
|
11
10
|
import { SegmentMatcher } from "./path-matcher/SegmentMatcher.js";
|
|
12
11
|
import "./path-matcher/index.js";
|
|
13
12
|
import "./search-params/index.js";
|
|
14
|
-
/**
|
|
15
|
-
* Query string formatting options.
|
|
16
|
-
*
|
|
17
|
-
* Controls how arrays, booleans, nulls, and numbers are serialized in query strings.
|
|
18
|
-
*/
|
|
19
|
-
export type QueryParamsConfig = Readonly<Options>;
|
|
20
|
-
/**
|
|
21
|
-
* Options for creating a path matcher.
|
|
22
|
-
*/
|
|
23
|
-
export interface CreateMatcherOptions {
|
|
24
|
-
readonly caseSensitive?: boolean;
|
|
25
|
-
readonly strictTrailingSlash?: boolean;
|
|
26
|
-
readonly strictQueryParams?: boolean;
|
|
27
|
-
readonly urlParamsEncoding?: "default" | "uri" | "uriComponent" | "none";
|
|
28
|
-
readonly queryParams?: QueryParamsConfig;
|
|
29
|
-
}
|
|
30
13
|
/**
|
|
31
14
|
* Path matcher instance type.
|
|
32
15
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMatcher.d.ts","names":[],"sources":["../../../src/engine/createMatcher.ts"],"mappings":";;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"createMatcher.d.ts","names":[],"sources":["../../../src/engine/createMatcher.ts"],"mappings":";;;;;;;;;;;;;;;;;;YA2CY,UAAU"}
|
|
@@ -11,10 +11,11 @@ import "./builder/createRouteTree.js";
|
|
|
11
11
|
import { RouteDefinition, RouteTree } from "./builder/types.js";
|
|
12
12
|
import "./operations/query.js";
|
|
13
13
|
import "./operations/routeTreeToDefinitions.js";
|
|
14
|
-
import {
|
|
14
|
+
import { Matcher } from "./createMatcher.js";
|
|
15
15
|
import "./search-params/index.js";
|
|
16
|
+
import { printsNoQueryKey } from "./search-params/searchParams.js";
|
|
16
17
|
import "./path-matcher/index.js";
|
|
17
18
|
import "./validation/route-name.js";
|
|
18
19
|
import { validateRoute } from "./validation/route-batch.js";
|
|
19
20
|
import "./types.js";
|
|
20
|
-
export { type
|
|
21
|
+
export { type Matcher, type RouteTree, buildParamMeta, printsNoQueryKey, validateRoute };
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module search-params
|
|
7
7
|
*/
|
|
8
|
-
import "./searchParams.js";
|
|
8
|
+
import { printsNoQueryKey } from "./searchParams.js";
|
|
9
9
|
import "./encode.js";
|
|
10
10
|
import { ArrayFormat, BooleanFormat, NumberFormat, Options } from "./types.js";
|
|
11
|
-
export
|
|
11
|
+
export { printsNoQueryKey };
|
|
@@ -7,4 +7,24 @@
|
|
|
7
7
|
* @module search-params/searchParams
|
|
8
8
|
*/
|
|
9
9
|
import "./encode.js";
|
|
10
|
-
import "./types.js";
|
|
10
|
+
import { Options } from "./types.js";
|
|
11
|
+
/**
|
|
12
|
+
* Whether the query build prints NO key for `key` holding `value` under the
|
|
13
|
+
* format `opts` — such as an empty array in every `arrayFormat`, or `null`
|
|
14
|
+
* under `nullFormat: "hidden"` (#3037). Asked of `build` itself, so the answer
|
|
15
|
+
* is the decision `buildWith` takes for that one key and the rule keeps one
|
|
16
|
+
* home. The key is part of the question: under the default `nullFormat`, `null`
|
|
17
|
+
* prints as the bare key, which for the empty key is no key at all.
|
|
18
|
+
* `undefined`, which the build skips, answers `true` as well. `opts` may be a
|
|
19
|
+
* partial bag, as `PluginApi.getOptions().queryParams` hands it out: `build`
|
|
20
|
+
* resolves the defaults the matcher resolves.
|
|
21
|
+
*
|
|
22
|
+
* A value the build refuses answers `false`: it is refused, not erased. The
|
|
23
|
+
* callers are diagnostics, and a diagnostic must never become the thing that
|
|
24
|
+
* throws (`channels/CLAUDE.md`): `getStaticPaths` asks about an entry's value
|
|
25
|
+
* before the route's `encodeParams` prints it, so a refusal here would replace
|
|
26
|
+
* its report with one about a value the URL never held. The format is resolved
|
|
27
|
+
* outside that catch, so an unknown one still fails fast (#1318).
|
|
28
|
+
*/
|
|
29
|
+
export declare const printsNoQueryKey: (key: string, value: unknown, opts?: Options) => boolean;
|
|
30
|
+
//# sourceMappingURL=searchParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchParams.d.ts","names":[],"sources":["../../../../src/engine/search-params/searchParams.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA0ba,mBACX,aACA,gBACA,OAAO"}
|