@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iyulab/router",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "A modern client-side router for web applications with support for Lit and React components",
5
5
  "keywords": [
6
6
  "lit",
@@ -5,7 +5,7 @@ license: MIT
5
5
  compatibility: Browser environments only (requires URLPattern and History API)
6
6
  metadata:
7
7
  author: iyulab
8
- version: "0.9.0"
8
+ version: "0.9.1"
9
9
  ---
10
10
 
11
11
  # @iyulab/router