From 2ad0e673be3a7138aecac84ab39fe3097cc2cce9 Mon Sep 17 00:00:00 2001 From: Vivek Date: Fri, 21 Aug 2026 02:28:47 +0530 Subject: [PATCH] chore: release core 0.7.52 --- changelog/core/0.7.52.md | 24 ++++++++++++++++++++++++ packages/core/package.json | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 changelog/core/0.7.52.md diff --git a/changelog/core/0.7.52.md b/changelog/core/0.7.52.md new file mode 100644 index 000000000..3643ae9d7 --- /dev/null +++ b/changelog/core/0.7.52.md @@ -0,0 +1,24 @@ +--- +package: "@webjsdev/core" +version: 0.7.52 +date: 2026-08-20T20:58:47.906Z +commit_count: 3 +--- +## Fixes + +- **a swap no longer scrolls the page to top** ([#1429](https://github.com/webjsdev/webjs/pull/1429)) [`13bd030c`](https://github.com/webjsdev/webjs/commit/13bd030c) + * fix: a swap no longer scrolls the page to top + + The router's scroll block was gated on `recordHistory` alone, which means + "a foreground navigation the reader initiated". A click on a frame-driving +- **leave scroll restoration to the browser so iOS previews the back-swipe** ([#1430](https://github.com/webjsdev/webjs/pull/1430)) [`ad81d4b3`](https://github.com/webjsdev/webjs/commit/ad81d4b3) + * The router set `history.scrollRestoration = 'manual'`, which suppresses the + per-entry scroll recording WebKit composes the iOS back-swipe preview from, so + the preview rendered blank. Scroll restoration now stays with the browser (the + single-writer model Next and Remix use), with the router reserving the + snapshot's height so the recorded offset is reachable across the swap. +- **resolve live() in an attribute hole so a falsy ?bool omits it** ([#1444](https://github.com/webjsdev/webjs/pull/1444)) [`e0abcf96`](https://github.com/webjsdev/webjs/commit/e0abcf96) + * fix: resolve live() in an attribute hole so a falsy ?bool omits it + + The SSR renderer resolved live() only in a child hole, so the directive's + wrapper object reached the attribute emit sites raw. Each kind failed its diff --git a/packages/core/package.json b/packages/core/package.json index 037bb01fe..5502840f2 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@webjsdev/core", - "version": "0.7.51", + "version": "0.7.52", "type": "module", "description": "The runtime for WebJs, a full-stack JavaScript framework built on web components with server-side rendering and no build step. Ships the html and css template tags, the WebComponent base class, signals, directives, and the isomorphic renderers.", "types": "./index.d.ts",