@mateothegreat/svelte5-router - v2.14.0

actions

active

Add the active class to the node if the current route matches the node's href.

route

Svelte action to handle routing with optional active state.

Other

RouteResult

A route result that includes the evaluation results of the route.

marshal

Marshal a value to a specific type.

helpers

logging

Logging facility.

runtime

Runtime level configuration functionality.

Query

Query string operations.

Span

A span is a single trace in a trace collection.

Trace

A trace is a collection of spans.

goto

Navigate to a new path by using the browser's history API (pushState specifically).

normalize

Normalize a path to ensure it starts with a slash.

query

Get a query parameter from the current URL.

registry

Registry

Handles the dynamic registration and deregistration of router instances.

registry

Expose a reference to the registry of router instances.

router

StatusCode

The available status codes that a route can have called out from the statuses handler mapping.

Route

A route that can be navigated to.

RouteOptions

Options for the route action.

RouterInstance

A class that represents a router instance.

RouterInstanceConfig

The configuration for a new router instance.

ApplyFn

The function that is used to apply a route to the DOM.

Param

The returned param value types.

QueryEvaluationResult

The types of values that the {Query} test method can return.

QueryType

The types of values that can be used as a query.

Statuses

Route status handler mapping.

getStatusByValue

Get the status by value.