vike-lite 1.10.0 → 1.10.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.
@@ -9,7 +9,7 @@ function navigate(url, options) {
9
9
  if (typeof globalThis === "undefined") throw new Error("navigate() can only be called on the client side.");
10
10
  let finalUrl = url;
11
11
  if (finalUrl.startsWith("/")) finalUrl = (BASE_URL.endsWith("/") ? BASE_URL.slice(0, -1) : BASE_URL) + (finalUrl === "/" ? "" : finalUrl);
12
- globalThis.history.pushState(null, "", finalUrl);
12
+ globalThis.history.pushState({ triggeredBy: "vike-lite" }, "", finalUrl);
13
13
  globalThis.dispatchEvent(new CustomEvent("vike-navigate", { detail: { keepScrollPosition: options?.keepScrollPosition } }));
14
14
  }
15
15
  const reload = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-lite",
3
- "version": "1.10.0",
3
+ "version": "1.10.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",