@owlmeans/web-router 0.1.15 → 0.1.16
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/README.md
CHANGED
|
@@ -43,10 +43,9 @@ Registers the web router service in the given context.
|
|
|
43
43
|
<!-- owlmeans:agent-guidance:start -->
|
|
44
44
|
## Agent guidance
|
|
45
45
|
|
|
46
|
-
This package ships embedded
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
(`.claude/skills/` and `.github/instructions/`):
|
|
46
|
+
This package ships embedded agent skills under `agent-meta/`. After installing your
|
|
47
|
+
`@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
|
|
48
|
+
your project's skill store (`.agents/skills/`):
|
|
50
49
|
|
|
51
50
|
```sh
|
|
52
51
|
npx @owlmeans/agent-skills
|
package/agent-meta/manifest.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
|
-
"schemaVersion":
|
|
2
|
+
"schemaVersion": 2,
|
|
3
3
|
"package": "@owlmeans/web-router",
|
|
4
|
-
"version": "0.1.
|
|
5
|
-
"generatedAt": "2026-08-
|
|
4
|
+
"version": "0.1.16",
|
|
5
|
+
"generatedAt": "2026-08-14T10:14:48.859Z",
|
|
6
6
|
"canonicalRepo": "https://github.com/owlmeans/common",
|
|
7
7
|
"entries": [
|
|
8
8
|
{
|
|
@@ -10,14 +10,7 @@
|
|
|
10
10
|
"name": "web-router",
|
|
11
11
|
"category": "package-specific",
|
|
12
12
|
"file": "skills/web-router/SKILL.md",
|
|
13
|
-
"canonicalPath": ".
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"kind": "instruction",
|
|
17
|
-
"name": "web-router",
|
|
18
|
-
"category": "package-specific",
|
|
19
|
-
"file": "instructions/web-router.instructions.md",
|
|
20
|
-
"canonicalPath": ".github/instructions/web-router.instructions.md"
|
|
13
|
+
"canonicalPath": ".agents/skills/web-router/SKILL.md"
|
|
21
14
|
}
|
|
22
15
|
]
|
|
23
16
|
}
|
|
@@ -8,7 +8,7 @@ user-invocable: false
|
|
|
8
8
|
# @owlmeans/web-router
|
|
9
9
|
|
|
10
10
|
**Layer:** Web (React), build level L2
|
|
11
|
-
**Install:** `"@owlmeans/web-router": "^0.1.
|
|
11
|
+
**Install:** `"@owlmeans/web-router": "^0.1.16"` in `dependencies`
|
|
12
12
|
|
|
13
13
|
As of the pluggable-routing rework this package **is the default OwlMeans in-browser router** — a
|
|
14
14
|
minimal, react-router-free implementation of standard URL routing over the browser History API. It
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@owlmeans/web-router",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@owlmeans/dep-config": "workspace:*",
|
|
29
|
-
"@owlmeans/test-ui": "^0.1.
|
|
29
|
+
"@owlmeans/test-ui": "^0.1.16",
|
|
30
30
|
"@types/node": "^26.1.0",
|
|
31
31
|
"@types/react": "^19.2.17",
|
|
32
32
|
"@vitejs/plugin-react": "^6.0.3",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"vite": "^8.1.2"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@owlmeans/context": "^0.1.
|
|
42
|
-
"@owlmeans/router": "^0.1.
|
|
41
|
+
"@owlmeans/context": "^0.1.16",
|
|
42
|
+
"@owlmeans/router": "^0.1.16"
|
|
43
43
|
},
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
description: "How to use @owlmeans/web-router — the DEFAULT OwlMeans in-browser routing plugin (History API + pure matcher + React provider/outlet/hooks). Use when wiring web routing."
|
|
3
|
-
applyTo: "**/*.ts, **/*.tsx"
|
|
4
|
-
---
|
|
5
|
-
<!-- AUTO-GENERATED — do not edit. Regenerate via sync-agent-meta. -->
|
|
6
|
-
|
|
7
|
-
# @owlmeans/web-router
|
|
8
|
-
|
|
9
|
-
**Layer:** Web (React), L2
|
|
10
|
-
**Install:** `"@owlmeans/web-router": "^0.1.15"` in `dependencies`
|
|
11
|
-
|
|
12
|
-
The **default OwlMeans in-browser router** — react-router-free standard URL routing over the
|
|
13
|
-
History API, registered as a `RouterPlugin` on the `@owlmeans/router` host. (react-router now lives
|
|
14
|
-
in the opt-in `@owlmeans/web-router-react-router`.)
|
|
15
|
-
|
|
16
|
-
## Key Exports
|
|
17
|
-
|
|
18
|
-
| Export | Description |
|
|
19
|
-
|--------|-------------|
|
|
20
|
-
| `appendWebRouter(ctx)` | Register the OwlMeans browser plugin (idempotent). Called transparently by `web-client`. |
|
|
21
|
-
| `makeBrowserRouterPlugin()` | The `RouterPlugin` (alias `owlmeans-browser-router`, priority 0). |
|
|
22
|
-
| `BrowserRouterProvider`, `Outlet`, hooks, `createBrowserHistory()` | React pieces + history wrapper. |
|
|
23
|
-
|
|
24
|
-
## Usage
|
|
25
|
-
|
|
26
|
-
```typescript
|
|
27
|
-
import { appendWebRouter } from '@owlmeans/web-router'
|
|
28
|
-
appendWebRouter(context) // default OwlMeans routing
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
Supported route syntax: static, `:param`, nested, index. To use react-router instead, call
|
|
32
|
-
`appendReactRouter(ctx)` from `@owlmeans/web-router-react-router` (its higher priority wins).
|
|
33
|
-
|
|
34
|
-
## Depends On
|
|
35
|
-
|
|
36
|
-
- `@owlmeans/router`, `@owlmeans/context`; peer `react` (no react-router)
|