@thi.ng/router 4.1.58 → 4.1.59
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 +19 -18
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- This file is generated - DO NOT EDIT! -->
|
|
2
|
-
<!-- Please see: https://
|
|
3
|
-
# 
|
|
4
4
|
|
|
5
5
|
[](https://www.npmjs.com/package/@thi.ng/router)
|
|
6
6
|

|
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
|
|
9
9
|
> [!NOTE]
|
|
10
10
|
> This is one of 214 standalone projects, maintained as part
|
|
11
|
-
> of the [@thi.ng/umbrella](https://
|
|
11
|
+
> of the [@thi.ng/umbrella](https://codeberg.org/thi.ng/umbrella/) ecosystem
|
|
12
12
|
> and anti-framework.
|
|
13
13
|
>
|
|
14
|
-
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
-
>
|
|
14
|
+
> 🚀 Please help me to work full-time on these projects by [sponsoring
|
|
15
|
+
> me](https://codeberg.org/thi.ng/umbrella/src/branch/develop/CONTRIBUTING.md#donations).
|
|
16
|
+
> Thank you! ❤️
|
|
16
17
|
|
|
17
18
|
- [About](#about)
|
|
18
19
|
- [Status](#status)
|
|
@@ -44,12 +45,12 @@ Generic trie-based router with support for wildcards, route param validation/coe
|
|
|
44
45
|
|
|
45
46
|
**STABLE** - used in production
|
|
46
47
|
|
|
47
|
-
[Search or submit any issues for this package](https://
|
|
48
|
+
[Search or submit any issues for this package](https://codeberg.org/thi.ng/umbrella/issues?q=%5Brouter%5D)
|
|
48
49
|
|
|
49
50
|
## Related packages
|
|
50
51
|
|
|
51
|
-
- [@thi.ng/hdom](https://
|
|
52
|
-
- [@thi.ng/rdom](https://
|
|
52
|
+
- [@thi.ng/hdom](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/hdom) - Lightweight vanilla ES6 UI component trees with customizable branch-local behaviors
|
|
53
|
+
- [@thi.ng/rdom](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/rdom) - Lightweight, reactive, VDOM-less UI/DOM components with async lifecycle and [@thi.ng/hiccup](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/hiccup) compatible
|
|
53
54
|
|
|
54
55
|
## Installation
|
|
55
56
|
|
|
@@ -75,23 +76,23 @@ Package sizes (brotli'd, pre-treeshake): ESM: 1.95 KB
|
|
|
75
76
|
|
|
76
77
|
## Dependencies
|
|
77
78
|
|
|
78
|
-
- [@thi.ng/api](https://
|
|
79
|
-
- [@thi.ng/checks](https://
|
|
80
|
-
- [@thi.ng/equiv](https://
|
|
81
|
-
- [@thi.ng/errors](https://
|
|
79
|
+
- [@thi.ng/api](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/api)
|
|
80
|
+
- [@thi.ng/checks](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/checks)
|
|
81
|
+
- [@thi.ng/equiv](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/equiv)
|
|
82
|
+
- [@thi.ng/errors](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/errors)
|
|
82
83
|
|
|
83
84
|
Note: @thi.ng/api is in _most_ cases a type-only import (not used at runtime)
|
|
84
85
|
|
|
85
86
|
## Usage examples
|
|
86
87
|
|
|
87
88
|
Two projects in this repo's
|
|
88
|
-
[/examples](https://
|
|
89
|
+
[/examples](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples)
|
|
89
90
|
directory are using this package:
|
|
90
91
|
|
|
91
|
-
| Screenshot | Description | Live demo | Source
|
|
92
|
-
|
|
93
|
-
| <img src="https://
|
|
94
|
-
| <img src="https://
|
|
92
|
+
| Screenshot | Description | Live demo | Source |
|
|
93
|
+
|:---------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------|:----------------------------------------------------|:-----------------------------------------------------------------------------------------|
|
|
94
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/rdom-router.jpg" width="240"/> | Basic thi.ng/router usage with thi.ng/rdom components | [Demo](https://demo.thi.ng/umbrella/rdom-router/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/rdom-router) |
|
|
95
|
+
| <img src="https://codeberg.org/thi.ng/umbrella/media/branch/develop/assets/examples/router-basics.jpg" width="240"/> | Complete mini SPA app w/ router & async content loading | [Demo](https://demo.thi.ng/umbrella/router-basics/) | [Source](https://codeberg.org/thi.ng/umbrella/src/branch/develop/examples/router-basics) |
|
|
95
96
|
|
|
96
97
|
## API
|
|
97
98
|
|
|
@@ -187,7 +188,7 @@ router.start();
|
|
|
187
188
|
The below benchmarks are ported from
|
|
188
189
|
[router-benchmark](https://github.com/delvedor/router-benchmark), showing
|
|
189
190
|
**highly competitive** results for this package. The
|
|
190
|
-
[benchmark](https://
|
|
191
|
+
[benchmark](https://codeberg.org/thi.ng/umbrella/src/branch/develop/packages/router/bench/index.ts)
|
|
191
192
|
itself can be run from the repo root like so:
|
|
192
193
|
|
|
193
194
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/router",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.59",
|
|
4
4
|
"description": "Generic trie-based router with support for wildcards, route param validation/coercion, auth",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://
|
|
11
|
+
"url": "git+https://codeberg.org/thi.ng/umbrella.git",
|
|
12
12
|
"directory": "packages/router"
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://thi.ng/router",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@thi.ng/api": "^8.12.
|
|
44
|
-
"@thi.ng/checks": "^3.8.
|
|
45
|
-
"@thi.ng/equiv": "^2.1.
|
|
46
|
-
"@thi.ng/errors": "^2.6.
|
|
43
|
+
"@thi.ng/api": "^8.12.18",
|
|
44
|
+
"@thi.ng/checks": "^3.8.8",
|
|
45
|
+
"@thi.ng/equiv": "^2.1.107",
|
|
46
|
+
"@thi.ng/errors": "^2.6.7"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"esbuild": "^0.27.2",
|
|
@@ -101,5 +101,5 @@
|
|
|
101
101
|
],
|
|
102
102
|
"year": 2014
|
|
103
103
|
},
|
|
104
|
-
"gitHead": "
|
|
104
|
+
"gitHead": "8ddf86ea0a1e658ddbf19cc645b29d0c176e29c4\n"
|
|
105
105
|
}
|