@solidjs/router
Advanced tools
Comparing version 0.13.4 to 0.13.5
@@ -7,2 +7,2 @@ export * from "./routers/index.js"; | ||
export * from "./data/index.js"; | ||
export type { Location, LocationChange, MatchFilter, MatchFilters, NavigateOptions, Navigator, OutputMatch, Params, PathMatch, RouteSectionProps, RouteLoadFunc, RouteLoadFuncArgs, RouteDefinition, Route, RouteMatch, RouterIntegration, RouterUtils, SetParams, BeforeLeaveEventArgs } from "./types.js"; | ||
export type { Location, LocationChange, MatchFilter, MatchFilters, NavigateOptions, Navigator, OutputMatch, Params, PathMatch, RouteSectionProps, RouteLoadFunc, RouteLoadFuncArgs, RouteDefinition, RouteDescription, RouteMatch, RouterIntegration, RouterUtils, SetParams, BeforeLeaveEventArgs } from "./types.js"; |
import { JSX, Accessor } from "solid-js"; | ||
import type { BeforeLeaveEventArgs, Branch, Intent, Location, MatchFilters, NavigateOptions, Navigator, Params, Route, RouteContext, RouteDefinition, RouteMatch, RouterContext, RouterIntegration, SetParams } from "./types.js"; | ||
import type { BeforeLeaveEventArgs, Branch, Intent, Location, MatchFilters, NavigateOptions, Navigator, Params, RouteDescription, RouteContext, RouteDefinition, RouteMatch, RouterContext, RouterIntegration, SetParams } from "./types.js"; | ||
export declare const RouterContextObj: import("solid-js").Context<RouterContext | undefined>; | ||
@@ -17,5 +17,5 @@ export declare const RouteContextObj: import("solid-js").Context<RouteContext | undefined>; | ||
export declare const useBeforeLeave: (listener: (e: BeforeLeaveEventArgs) => void) => void; | ||
export declare function createRoutes(routeDef: RouteDefinition, base?: string): Route[]; | ||
export declare function createBranch(routes: Route[], index?: number): Branch; | ||
export declare function createBranches(routeDef: RouteDefinition | RouteDefinition[], base?: string, stack?: Route[], branches?: Branch[]): Branch[]; | ||
export declare function createRoutes(routeDef: RouteDefinition, base?: string): RouteDescription[]; | ||
export declare function createBranch(routes: RouteDescription[], index?: number): Branch; | ||
export declare function createBranches(routeDef: RouteDefinition | RouteDefinition[], base?: string, stack?: RouteDescription[], branches?: Branch[]): Branch[]; | ||
export declare function getRouteMatches(branches: Branch[], location: string): RouteMatch[]; | ||
@@ -22,0 +22,0 @@ export declare function createLocation(path: Accessor<string>, state: Accessor<any>): Location; |
@@ -89,3 +89,3 @@ import type { Component, JSX, Signal } from "solid-js"; | ||
export interface RouteMatch extends PathMatch { | ||
route: Route; | ||
route: RouteDescription; | ||
} | ||
@@ -99,3 +99,3 @@ export interface OutputMatch { | ||
} | ||
export interface Route { | ||
export interface RouteDescription { | ||
key: unknown; | ||
@@ -111,3 +111,3 @@ originalPath: string; | ||
export interface Branch { | ||
routes: Route[]; | ||
routes: RouteDescription[]; | ||
score: number; | ||
@@ -114,0 +114,0 @@ matcher: (location: string) => RouteMatch[] | null; |
@@ -1,2 +0,2 @@ | ||
import type { MatchFilters, Params, PathMatch, Route, SetParams } from "./types.ts"; | ||
import type { MatchFilters, Params, PathMatch, RouteDescription, SetParams } from "./types.ts"; | ||
export declare const mockBase = "http://sr"; | ||
@@ -9,5 +9,5 @@ export declare function normalizePath(path: string, omitSlash?: boolean): string; | ||
export declare function createMatcher<S extends string>(path: S, partial?: boolean, matchFilters?: MatchFilters<S>): (location: string) => PathMatch | null; | ||
export declare function scoreRoute(route: Route): number; | ||
export declare function scoreRoute(route: RouteDescription): number; | ||
export declare function createMemoObject<T extends Record<string | symbol, unknown>>(fn: () => T): T; | ||
export declare function mergeSearchString(search: string, params: SetParams): string; | ||
export declare function expandOptionals(pattern: string): string[]; |
@@ -9,3 +9,3 @@ { | ||
"license": "MIT", | ||
"version": "0.13.4", | ||
"version": "0.13.5", | ||
"homepage": "https://github.com/solidjs/solid-router#readme", | ||
@@ -12,0 +12,0 @@ "repository": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
167429