bun-plugin-stx 0.2.386 → 0.2.387
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.
|
@@ -1534,9 +1534,10 @@ function routerSource() {
|
|
|
1534
1534
|
function tokenState(){var state={};state[SCROLL_TOKEN]=scrollToken;return state}
|
|
1535
1535
|
|
|
1536
1536
|
// Second arg accepts the legacy pushState boolean OR an options object
|
|
1537
|
-
// { replace }. Callers inside this file still pass the boolean.
|
|
1537
|
+
// { replace, instant }. Callers inside this file still pass the boolean.
|
|
1538
|
+
// instant is what data-stx-transition="none" is to a link: no cross-fade.
|
|
1538
1539
|
function navigate(url,pushState,force){
|
|
1539
|
-
if(pushState&&typeof pushState==='object')pushState=pushState.replace?'replace':true
|
|
1540
|
+
if(pushState&&typeof pushState==='object'){if(pushState.instant)instantNext=true;pushState=pushState.replace?'replace':true}
|
|
1540
1541
|
// Lang-picker passes force=true with an already-localized path (/en/...).
|
|
1541
1542
|
// Re-localizing would map it back to the *current* locale and no-op.
|
|
1542
1543
|
if(!force) url=withCurrentLocale(url);
|
package/dist/serve.js
CHANGED
|
@@ -9800,7 +9800,7 @@ function __stxOverlay(errs){
|
|
|
9800
9800
|
rebuildDiscoveredPagePaths(kept);
|
|
9801
9801
|
await indexPageMiddleware(kept);
|
|
9802
9802
|
try {
|
|
9803
|
-
const { Router } = await import("./chunk-
|
|
9803
|
+
const { Router } = await import("./chunk-2fh2t5gw.js");
|
|
9804
9804
|
const pagesDirs = patterns.map((p) => p.replace(/\/$/, "")).filter(Boolean);
|
|
9805
9805
|
const router = new Router(process19.cwd(), { pagesDirs, stateDir: stateDirName(), exclude: options.exclude });
|
|
9806
9806
|
if (!options.quiet)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bun-plugin-stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.387",
|
|
5
5
|
"description": "A Bun plugin that allows for using Laravel Blade-like syntax.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typecheck": "bun tsc --noEmit"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@stacksjs/stx": "0.2.
|
|
78
|
-
"stx-router": "0.2.
|
|
77
|
+
"@stacksjs/stx": "0.2.387",
|
|
78
|
+
"stx-router": "0.2.387"
|
|
79
79
|
}
|
|
80
80
|
}
|