@mindees/router 0.24.0 → 0.25.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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { Maturity, NotImplementedError, PackageInfo, notImplemented } from "@min
|
|
|
14
14
|
/** The npm package name. */
|
|
15
15
|
declare const name = "@mindees/router";
|
|
16
16
|
/** The package version. All `@mindees/*` packages share one locked version line. */
|
|
17
|
-
declare const VERSION = "0.
|
|
17
|
+
declare const VERSION = "0.25.0";
|
|
18
18
|
/**
|
|
19
19
|
* Current maturity. Router I (typed params, Standard-Schema search, history, the
|
|
20
20
|
* signals-native router, selector-isolated state, typed + relative navigation)
|
|
@@ -23,7 +23,7 @@ declare const VERSION = "0.24.0";
|
|
|
23
23
|
* and file-based route scanning are a later phase — see `STATUS.md`.
|
|
24
24
|
*/
|
|
25
25
|
declare const maturity: Maturity;
|
|
26
|
-
/** Static identity + maturity metadata for this package. */
|
|
26
|
+
/** Static identity + maturity metadata for this package (frozen — matches every other `@mindees/*`). */
|
|
27
27
|
declare const info: PackageInfo;
|
|
28
28
|
//#endregion
|
|
29
29
|
export { type BeforeNavigate, type CreateRouterOptions, type HasPathParams, type HistoryListener, Link, type LinkComponent, type LinkOptions, type LinkProps, type LoaderContext, type LoaderData, type LoaderDepsFn, type LoaderFn, type LoaderStatus, type Maturity, type MemoryHistoryOptions, type NavTarget, type NavigateOptions, NotImplementedError, type PackageInfo, type PathParams, type PrefetchMode, type QueryValue, type RouteComponentProps, type RouteMatch, type RouteModule, type RouteRecord, type Router, RouterError, type RouterErrorCode, type RouterHistory, type RouterLocation, type RouterState, type RouterViewOptions, type StandardSchemaV1, VERSION, type ValidationResult, buildPath, compareSpecificity, createBrowserHistory, createFileRouter, createHref, createLink, createMemoryHistory, createRouter, createRouterView, info, matchPattern, maturity, name, notImplemented, parseHref, parsePattern, parseQuery, resolvePath, routesFromModules, safeValidateSearch, stringifyQuery, useParams, usePathname, useRouter, useSearch, validateSearch };
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;cA8Fa,IAAA;;cAGA,OAAA;;;;;;;;cASA,QAAA,EAAU,QAAyB;;cAGnC,IAAA,EAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;cA8Fa,IAAA;;cAGA,OAAA;;;;;;;;cASA,QAAA,EAAU,QAAyB;;cAGnC,IAAA,EAAM,WAAiE"}
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { NotImplementedError, notImplemented } from "@mindees/core";
|
|
|
11
11
|
/** The npm package name. */
|
|
12
12
|
const name = "@mindees/router";
|
|
13
13
|
/** The package version. All `@mindees/*` packages share one locked version line. */
|
|
14
|
-
const VERSION = "0.
|
|
14
|
+
const VERSION = "0.25.0";
|
|
15
15
|
/**
|
|
16
16
|
* Current maturity. Router I (typed params, Standard-Schema search, history, the
|
|
17
17
|
* signals-native router, selector-isolated state, typed + relative navigation)
|
|
@@ -20,12 +20,12 @@ const VERSION = "0.24.0";
|
|
|
20
20
|
* and file-based route scanning are a later phase — see `STATUS.md`.
|
|
21
21
|
*/
|
|
22
22
|
const maturity = "experimental";
|
|
23
|
-
/** Static identity + maturity metadata for this package. */
|
|
24
|
-
const info = {
|
|
23
|
+
/** Static identity + maturity metadata for this package (frozen — matches every other `@mindees/*`). */
|
|
24
|
+
const info = Object.freeze({
|
|
25
25
|
name,
|
|
26
26
|
version: VERSION,
|
|
27
27
|
maturity
|
|
28
|
-
};
|
|
28
|
+
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { Link, NotImplementedError, RouterError, VERSION, buildPath, compareSpecificity, createBrowserHistory, createFileRouter, createHref, createLink, createMemoryHistory, createRouter, createRouterView, info, matchPattern, maturity, name, notImplemented, parseHref, parsePattern, parseQuery, resolvePath, routesFromModules, safeValidateSearch, stringifyQuery, useParams, usePathname, useRouter, useSearch, validateSearch };
|
|
31
31
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * `@mindees/router` — **Quantum**, the typed router for MindeesNative.\n *\n * Router I (Phase 6): codegen-free typed path params ({@link PathParams}),\n * Standard-Schema validated search params, a signals-native router with typed +\n * relative navigation and selector-isolated state, and an injectable history\n * (memory + browser). See ADR-0003.\n *\n * Router II (Phase 7): render integration — {@link createRouterView} (nested,\n * fine-grained, layout-preserving) and typed {@link createLink} — plus SWR data\n * loaders (with `AbortSignal`, {@link Router.invalidate}/{@link Router.preload}),\n * navigation guards ({@link BeforeNavigate} cancel/redirect + idempotent\n * navigation), and web view transitions. See ADR-0004 and ADR-0005.\n *\n * Still a later phase (not exported): the global typed route registry and\n * file-based route scanning + bundler plugin. See `STATUS.md`.\n *\n * @module\n */\n\nimport type { Maturity, PackageInfo } from '@mindees/core'\nimport { NotImplementedError, notImplemented } from '@mindees/core'\n\n/** Render integration: nested view + typed links (Router II). */\nexport {\n createLink,\n createRouterView,\n type LinkComponent,\n type LinkOptions,\n type LinkProps,\n type PrefetchMode,\n type RouterViewOptions,\n} from './components'\n/** Loaders + data (SWR). */\nexport type {\n LoaderContext,\n LoaderData,\n LoaderDepsFn,\n LoaderFn,\n LoaderStatus,\n} from './data'\n/** Errors. */\nexport { RouterError, type RouterErrorCode } from './errors'\n/** File-based routing: a module map → a router (Expo-style conventions). */\nexport { createFileRouter, type RouteModule, routesFromModules } from './file-routes'\n/** History capability. */\nexport {\n createBrowserHistory,\n createHref,\n createMemoryHistory,\n type HistoryListener,\n type MemoryHistoryOptions,\n parseHref,\n type RouterHistory,\n type RouterLocation,\n} from './history'\n/** Ergonomic hooks + a bound Link that resolve the active router. */\nexport { Link, useParams, usePathname, useRouter, useSearch } from './hooks'\n/** Route patterns + codegen-free typed params. */\nexport {\n buildPath,\n compareSpecificity,\n type HasPathParams,\n matchPattern,\n type PathParams,\n parsePattern,\n} from './pattern'\n/** Router. */\nexport {\n type BeforeNavigate,\n type CreateRouterOptions,\n createRouter,\n type NavigateOptions,\n type NavTarget,\n type RouteComponentProps,\n type RouteMatch,\n type RouteRecord,\n type Router,\n type RouterState,\n resolvePath,\n} from './router'\n/** Search (query) params. */\nexport {\n parseQuery,\n type QueryValue,\n safeValidateSearch,\n stringifyQuery,\n type ValidationResult,\n validateSearch,\n} from './search'\n/** Standard Schema — the validator-agnostic interface (vendored, types only). */\nexport type { StandardSchemaV1 } from './standard-schema'\n\n/** The npm package name. */\nexport const name = '@mindees/router'\n\n/** The package version. All `@mindees/*` packages share one locked version line. */\nexport const VERSION = '0.
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * `@mindees/router` — **Quantum**, the typed router for MindeesNative.\n *\n * Router I (Phase 6): codegen-free typed path params ({@link PathParams}),\n * Standard-Schema validated search params, a signals-native router with typed +\n * relative navigation and selector-isolated state, and an injectable history\n * (memory + browser). See ADR-0003.\n *\n * Router II (Phase 7): render integration — {@link createRouterView} (nested,\n * fine-grained, layout-preserving) and typed {@link createLink} — plus SWR data\n * loaders (with `AbortSignal`, {@link Router.invalidate}/{@link Router.preload}),\n * navigation guards ({@link BeforeNavigate} cancel/redirect + idempotent\n * navigation), and web view transitions. See ADR-0004 and ADR-0005.\n *\n * Still a later phase (not exported): the global typed route registry and\n * file-based route scanning + bundler plugin. See `STATUS.md`.\n *\n * @module\n */\n\nimport type { Maturity, PackageInfo } from '@mindees/core'\nimport { NotImplementedError, notImplemented } from '@mindees/core'\n\n/** Render integration: nested view + typed links (Router II). */\nexport {\n createLink,\n createRouterView,\n type LinkComponent,\n type LinkOptions,\n type LinkProps,\n type PrefetchMode,\n type RouterViewOptions,\n} from './components'\n/** Loaders + data (SWR). */\nexport type {\n LoaderContext,\n LoaderData,\n LoaderDepsFn,\n LoaderFn,\n LoaderStatus,\n} from './data'\n/** Errors. */\nexport { RouterError, type RouterErrorCode } from './errors'\n/** File-based routing: a module map → a router (Expo-style conventions). */\nexport { createFileRouter, type RouteModule, routesFromModules } from './file-routes'\n/** History capability. */\nexport {\n createBrowserHistory,\n createHref,\n createMemoryHistory,\n type HistoryListener,\n type MemoryHistoryOptions,\n parseHref,\n type RouterHistory,\n type RouterLocation,\n} from './history'\n/** Ergonomic hooks + a bound Link that resolve the active router. */\nexport { Link, useParams, usePathname, useRouter, useSearch } from './hooks'\n/** Route patterns + codegen-free typed params. */\nexport {\n buildPath,\n compareSpecificity,\n type HasPathParams,\n matchPattern,\n type PathParams,\n parsePattern,\n} from './pattern'\n/** Router. */\nexport {\n type BeforeNavigate,\n type CreateRouterOptions,\n createRouter,\n type NavigateOptions,\n type NavTarget,\n type RouteComponentProps,\n type RouteMatch,\n type RouteRecord,\n type Router,\n type RouterState,\n resolvePath,\n} from './router'\n/** Search (query) params. */\nexport {\n parseQuery,\n type QueryValue,\n safeValidateSearch,\n stringifyQuery,\n type ValidationResult,\n validateSearch,\n} from './search'\n/** Standard Schema — the validator-agnostic interface (vendored, types only). */\nexport type { StandardSchemaV1 } from './standard-schema'\n\n/** The npm package name. */\nexport const name = '@mindees/router'\n\n/** The package version. All `@mindees/*` packages share one locked version line. */\nexport const VERSION = '0.25.0'\n\n/**\n * Current maturity. Router I (typed params, Standard-Schema search, history, the\n * signals-native router, selector-isolated state, typed + relative navigation)\n * and Router II (nested rendering, typed links, SWR loaders, navigation guards,\n * view transitions) are implemented and tested. The global typed route registry\n * and file-based route scanning are a later phase — see `STATUS.md`.\n */\nexport const maturity: Maturity = 'experimental'\n\n/** Static identity + maturity metadata for this package (frozen — matches every other `@mindees/*`). */\nexport const info: PackageInfo = Object.freeze({ name, version: VERSION, maturity })\n\nexport type { Maturity, PackageInfo }\nexport { NotImplementedError, notImplemented }\n"],"mappings":";;;;;;;;;;;AA8FA,MAAa,OAAO;;AAGpB,MAAa,UAAU;;;;;;;;AASvB,MAAa,WAAqB;;AAGlC,MAAa,OAAoB,OAAO,OAAO;CAAE;CAAM,SAAS;CAAS;AAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindees/router",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.25.0",
|
|
4
4
|
"description": "Quantum — the typed, signals-native router for MindeesNative: codegen-free typed path params, Standard Schema validated search params, and selector-isolated reactive route state.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"router",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"directory": "packages/router"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@mindees/core": "0.
|
|
38
|
+
"@mindees/core": "0.25.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"happy-dom": "20.9.0",
|
|
42
42
|
"valibot": "1.4.1",
|
|
43
43
|
"zod": "4.4.3",
|
|
44
|
-
"@mindees/renderer": "0.
|
|
44
|
+
"@mindees/renderer": "0.25.0"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsdown",
|