@solidrt/router 0.0.65 → 0.0.67

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/AGENTS.md CHANGED
@@ -157,4 +157,4 @@ export function SettingsRoutes() {
157
157
  `/a/b`) and an http(s) host.
158
158
  - Tooling: `open_link` / `POST /__control__/link` opens a screen,
159
159
  `get_location` / `GET /__control__/link` reads the path the router
160
- publishes, `srt render --link <path>` renders that screen.
160
+ publishes, `sol render --link <path>` renders that screen.
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  `@solidrt/router` makes screens addressable. A route tree maps a path like
4
4
  `/settings/theme` to a screen, a stack holds where the app is, and the same
5
- path is what a link from the OS, an MCP tool, `srt render --link` or a saved
5
+ path is what a link from the OS, an MCP tool, `sol render --link` or a saved
6
6
  session carries. It is a layer over core: core reports links (`onLink`,
7
7
  `env.launchLink`) and the back intent (`onBack`), the router decides what
8
8
  they mean. An app can route by hand without it.
@@ -104,7 +104,7 @@ export function SettingsRoutes() {
104
104
  </Route>
105
105
  ```
106
106
 
107
- `srt init` with the router selected starts a project in this shape.
107
+ `sol init` with the router selected starts a project in this shape.
108
108
 
109
109
  ## Params are validated
110
110
 
@@ -286,9 +286,9 @@ is dropped. A link that matches nothing lands on the catch-all route, or is
286
286
  ignored with a warning.
287
287
 
288
288
  `<Router>` reports the current path through `reportLocation` from
289
- `srt:dev`, so `GET /__control__/link` and the `get_location` MCP tool read
289
+ `sol:dev`, so `GET /__control__/link` and the `get_location` MCP tool read
290
290
  where the app is, and `POST /__control__/link` or `open_link` opens a
291
- screen directly. `srt render --link /settings` renders that screen. A hot
291
+ screen directly. `sol render --link /settings` renders that screen. A hot
292
292
  reload starts the rebuilt app at the path it was on: the runtime hands the
293
293
  last reported path to the new run as `env.launchLink`.
294
294
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidrt/router",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "license": "MIT",
5
5
  "funding": "https://github.com/sponsors/wellawaretech",
6
6
  "author": "Antoine van Wel",
@@ -16,6 +16,6 @@
16
16
  ],
17
17
  "peerDependencies": {
18
18
  "@solidjs/signals": "2.0.0-rc.13",
19
- "@solidrt/core": "0.0.65"
19
+ "@solidrt/core": "0.0.67"
20
20
  }
21
21
  }
package/src/router.tsx CHANGED
@@ -2,10 +2,10 @@
2
2
  // navigation, the back step, blocking, links in and the location out, the
3
3
  // JSX tree (`<Route>`) and the components that render the matched routes.
4
4
  // Everything here is built on what core offers every app (onBack, onLink,
5
- // env.launchLink, reportLocation from srt:dev); core knows nothing of routes.
5
+ // env.launchLink, reportLocation from sol:dev); core knows nothing of routes.
6
6
  import { createSignal, createMemo, createContext, createEffect, useContext, untrack, onCleanup, children, Show, For } from "@solidrt/core"
7
7
  import { env, onBack, onLink } from "@solidrt/core"
8
- import { reportLocation } from "srt:dev"
8
+ import { reportLocation } from "sol:dev"
9
9
  import { createRootRoute, createRoute, formatPath, linkToPath, matchPath, place } from "./route"
10
10
  import type { AnyRoute, Match, ParamsOf, RawParams, Route as RouteValue } from "./route"
11
11
  import { back as stepBack, changed, currentPath, findTabs, initialState, push, replace, reset, resolve } from "./stack"