xpine 0.0.40 → 0.0.41

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.
@@ -27,7 +27,8 @@ async function updatePageOnLinkClick(e) {
27
27
  window.history.pushState(
28
28
  {
29
29
  type: "link-click",
30
- targetHref
30
+ href: targetHref,
31
+ url: newURL
31
32
  },
32
33
  "",
33
34
  targetHref
@@ -169,7 +170,7 @@ function replaceAttributesOnDocumentBody(dom) {
169
170
  }
170
171
  }
171
172
  async function handleBackButton() {
172
- const url = window.history.state?.targetHref || window.location.href;
173
+ const url = window.history.state?.url?.href || window.location.href;
173
174
  const initEvent = new CustomEvent("spa-popstate-initiated", {
174
175
  detail: {
175
176
  href: url,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xpine",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "main": "dist/index.js",
5
5
  "dependencies": {
6
6
  "@aws-sdk/client-secrets-manager": "^3.758.0",