evolit 0.1.0-alpha.27 → 0.1.0-alpha.28
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/package.json +4 -4
- package/src/navigation-client.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "evolit",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.28",
|
|
4
4
|
"description": "A convention-driven application framework for LitSX and web components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"packageManager": "yarn@4.10.3",
|
|
@@ -55,9 +55,9 @@
|
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@jridgewell/remapping": "^2.3.5",
|
|
58
|
-
"@litsx/compiler": "0.10.0-canary-feat-ssr-
|
|
59
|
-
"@litsx/core": "0.17.0-canary-feat-ssr-
|
|
60
|
-
"@litsx/ssr": "0.2.0-canary-feat-ssr-
|
|
58
|
+
"@litsx/compiler": "0.10.0-canary-feat-ssr-20260731234459",
|
|
59
|
+
"@litsx/core": "0.17.0-canary-feat-ssr-20260731234459",
|
|
60
|
+
"@litsx/ssr": "0.2.0-canary-feat-ssr-20260731234459",
|
|
61
61
|
"@litsx/typescript": "^0.9.0",
|
|
62
62
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
63
63
|
"@rollup/plugin-node-resolve": "^16.0.3",
|
package/src/navigation-client.js
CHANGED
|
@@ -200,6 +200,7 @@ async function applyRouteDelta(delta, documentRef = document, signal, options =
|
|
|
200
200
|
(segment, offset) => segment.revision !== currentSegments[offset]?.revision,
|
|
201
201
|
);
|
|
202
202
|
}
|
|
203
|
+
if (index < 0 && options.requireSegmentChange === true) return true;
|
|
203
204
|
if (index < 0) index = Math.max(0, nextSegments.length - 1);
|
|
204
205
|
let next;
|
|
205
206
|
let previous;
|
|
@@ -588,6 +589,7 @@ export function createBrowserNavigation(options = {}) {
|
|
|
588
589
|
signal: refreshController.signal,
|
|
589
590
|
hot: detail.update.strategy === "hot",
|
|
590
591
|
moduleVersion: detail.update.version,
|
|
592
|
+
requireSegmentChange: true,
|
|
591
593
|
}).then((applied) => {
|
|
592
594
|
if (applied === false || refreshController.signal.aborted) return false;
|
|
593
595
|
state = { status: "idle", url: windowRef.location.href, pendingUrl: null, error: null };
|