@thi.ng/router 4.1.27 → 4.1.29
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/CHANGELOG.md +9 -1
- package/README.md +1 -1
- package/html.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-
|
|
3
|
+
- **Last updated**: 2025-05-18T17:03:01Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -11,6 +11,14 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
11
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
12
|
and/or version bumps of transitive dependencies.
|
|
13
13
|
|
|
14
|
+
### [4.1.28](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@4.1.28) (2025-05-15)
|
|
15
|
+
|
|
16
|
+
#### 🩹 Bug fixes
|
|
17
|
+
|
|
18
|
+
- fix [#496](https://github.com/thi-ng/umbrella/issues/496), add support for query string ([2d29f46](https://github.com/thi-ng/umbrella/commit/2d29f46))
|
|
19
|
+
- update `HTMLRouter.route()` to keep existing query string
|
|
20
|
+
(only needed if not using hash fragment)
|
|
21
|
+
|
|
14
22
|
## [4.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@4.1.0) (2024-07-02)
|
|
15
23
|
|
|
16
24
|
#### 🚀 Features
|
package/README.md
CHANGED
package/html.js
CHANGED
|
@@ -43,7 +43,7 @@ class HTMLRouter extends Router {
|
|
|
43
43
|
const old = this.current;
|
|
44
44
|
const route = super.route(src, ctx);
|
|
45
45
|
if (route && !equiv(route, old)) {
|
|
46
|
-
this.currentPath = this.format(route);
|
|
46
|
+
this.currentPath = this.format(route) + (this.useFragment ? "" : location.search);
|
|
47
47
|
if (mode === "push") {
|
|
48
48
|
history.pushState(this.currentPath, "", this.currentPath);
|
|
49
49
|
} else if (mode === "replace") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/router",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.29",
|
|
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",
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
],
|
|
100
100
|
"year": 2014
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "99ea3cda41e61b66f3914c5c9c9b7bb60ee3ee84\n"
|
|
103
103
|
}
|