@iyulab/router 0.9.0 → 0.9.1
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 +5 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/skills/iyulab-router/SKILL.md +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.9.1] - 2026-04-08
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Redirect cycle detection no longer triggers false positives on initial navigation — `visit()` check is now skipped for the first `go()` call and only applied within redirect chains (`isRedirect: true`)
|
|
7
|
+
|
|
3
8
|
## [0.9.0] - 2026-04-08
|
|
4
9
|
|
|
5
10
|
### Added
|
package/dist/index.js
CHANGED
|
@@ -441,7 +441,7 @@ var Router = class {
|
|
|
441
441
|
const requestID = getRandomID();
|
|
442
442
|
this._requestID = requestID;
|
|
443
443
|
const context = parseUrl(href, this._basepath);
|
|
444
|
-
if (this._tracker.visit(context.href)) return;
|
|
444
|
+
if (options?.isRedirect && this._tracker.visit(context.href)) return;
|
|
445
445
|
const useReplace = options?.isRedirect || options?.replace || context.href === window.location.href;
|
|
446
446
|
const historyState = {
|
|
447
447
|
basepath: context.basepath,
|
package/package.json
CHANGED