@owlmeans/web-router 0.1.16-rc.0 → 0.1.17

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
@@ -1,10 +1,12 @@
1
1
  # @owlmeans/web-router
2
2
 
3
- React Router DOM integration for the OwlMeans context system.
3
+ The default OwlMeans in-browser routing plugin for the OwlMeans context system. It depends on no
4
+ third-party router — react-router is a separate opt-in plugin,
5
+ [`@owlmeans/web-router-react-router`](../web-router-react-router).
4
6
 
5
7
  ## Overview
6
8
 
7
- - `makeWebRouterService()` — creates a router service backed by React Router DOM
9
+ - `makeWebRouterService()` — creates a router service backed by the OwlMeans browser router
8
10
  - `appendWebRouter(ctx)` — registers the web router service in the context
9
11
  - Provides `useParams`, `useLocation`, `useNavigate`, `outlet()`, `provider()` via the service
10
12
  - Used internally by `@owlmeans/web-client`'s `makeContext` — not typically used directly
@@ -29,7 +31,7 @@ appendWebRouter(context)
29
31
 
30
32
  ### `makeWebRouterService(): RouterService`
31
33
 
32
- Creates a router service with React Router DOM hooks and components.
34
+ Creates a router service with the OwlMeans browser router hooks and components.
33
35
 
34
36
  ### `appendWebRouter<C, T>(ctx): void`
35
37
 
@@ -43,10 +45,9 @@ Registers the web router service in the given context.
43
45
  <!-- owlmeans:agent-guidance:start -->
44
46
  ## Agent guidance
45
47
 
46
- This package ships embedded Claude Code skills and GitHub Copilot instructions under
47
- `agent-meta/`. After installing your `@owlmeans/*` packages, run the OwlMeans
48
- agent-skills installer to place them into your project's native locations
49
- (`.claude/skills/` and `.github/instructions/`):
48
+ This package ships embedded agent skills under `agent-meta/`. After installing your
49
+ `@owlmeans/*` packages, run the OwlMeans agent-skills installer to place them into
50
+ your project's skill store (`.agents/skills/`):
50
51
 
51
52
  ```sh
52
53
  npx @owlmeans/agent-skills
@@ -1,8 +1,8 @@
1
1
  {
2
- "schemaVersion": 1,
2
+ "schemaVersion": 2,
3
3
  "package": "@owlmeans/web-router",
4
- "version": "0.1.16-rc.0",
5
- "generatedAt": "2026-08-11T14:02:35.003Z",
4
+ "version": "0.1.17",
5
+ "generatedAt": "2026-08-15T13:01:19.941Z",
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": ".claude/skills/web-router/SKILL.md"
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.16-rc.0"` in `dependencies`
11
+ **Install:** `"@owlmeans/web-router": "^0.1.17"` 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
@@ -1 +1 @@
1
- {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIrD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,aAIvC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,KAAG,CAI1F,CAAA"}
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAIrD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,QAAO,aAIvC,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAI,CAAC,SAAS,WAAW,EAAE,CAAC,SAAS,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,KAAG,CAI1F,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@owlmeans/web-router",
3
- "version": "0.1.16-rc.0",
3
+ "version": "0.1.17",
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.16-rc.0",
29
+ "@owlmeans/test-ui": "^0.1.17",
30
30
  "@types/node": "^26.1.0",
31
31
  "@types/react": "^19.2.17",
32
32
  "@vitejs/plugin-react": "^6.0.3",
@@ -34,12 +34,12 @@
34
34
  "playwright": "^1.61.1",
35
35
  "react": "^19.2.7",
36
36
  "react-dom": "^19.2.7",
37
- "typescript": "^6.0.3",
37
+ "typescript": "^7.0.2",
38
38
  "vite": "^8.1.2"
39
39
  },
40
40
  "dependencies": {
41
- "@owlmeans/context": "^0.1.16-rc.0",
42
- "@owlmeans/router": "^0.1.16-rc.0"
41
+ "@owlmeans/context": "^0.1.17",
42
+ "@owlmeans/router": "^0.1.17"
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.16-rc.0"` 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)