Skip to content

Releases: livetemplate/client

v0.8.27

17 Apr 18:34

Choose a tag to compare

Changes

  • fix(link-interceptor): fix popstate back/forward navigation regression (053a6b7)

Installation

npm

npm install @livetemplate/client@0.8.27

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.27/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x

v0.8.26

17 Apr 17:17

Choose a tag to compare

Changes

  • feat: lvt-preserve attributes, navigate SPA nav, DOMParser script fix (#72) (966d65d)

[Unreleased]

Added

  • lvt-preserve attribute: morphdom escape hatch that skips an element and its subtree entirely during diff (equivalent to Phoenix LiveView's phx-update="ignore"). Checked on toEl so the server retains authority to remove it.
  • lvt-preserve-attrs attribute: morphdom escape hatch that preserves user-managed attributes (e.g. open on <details>) while still diffing children. Protects attributes the server template does not set. Checked on toEl for consistent server authority.
  • In-band __navigate__ SPA navigation: same-pathname link clicks send {action:"__navigate__", data:<params>} over the existing WebSocket instead of fetching new HTML. Requires server-side support (livetemplate/livetemplate#344).
  • DOMParser fallback in updateDOM: HTML containing <script> tags is now parsed via DOMParser to avoid a Chrome innerHTML bug that creates phantom duplicate DOM nodes after script tags.

Breaking Changes

  • Cross-pathname same-handler navigation now always reconnects. Previously, if two routes shared the same data-lvt-id, navigating between them would do an in-place DOM swap without reconnecting. This fast path has been removed; all cross-pathname navigations (regardless of handler ID) now trigger a full WebSocket reconnect. This is the correct behavior — same-ID across paths means two distinct routes, and sendNavigate cannot express a path change. If your app shares a data-lvt-id across routes, expect a reconnect flash where there was none before.

Deployment note

The __navigate__ in-band action is a no-op on server versions before livetemplate/livetemplate#344. Deploy the server update before or simultaneously with this client version to avoid same-pathname link clicks sending an unrecognized WebSocket action.

Installation

npm

npm install @livetemplate/client@0.8.26

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.26/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x

v0.8.25

15 Apr 03:45

Choose a tag to compare

Changes

  • fix(ci): upgrade npm in publish workflow for OIDC trusted publishing (74bd7c5)

Installation

npm

npm install @livetemplate/client@0.8.25

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.25/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x

v0.8.24

15 Apr 02:29

Choose a tag to compare

Changes

  • chore: gitignore .claude/scheduled_tasks.lock (28e30e7)
  • ci: publish to npm via OIDC trusted publishing (#71) (9053e38)

Installation

npm

npm install @livetemplate/client@0.8.24

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.24/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x

v0.8.23

13 Apr 20:34

Choose a tag to compare

Changes

  • fix: cross-handler SPA nav, infinite scroll race, animation cleanup (#69) (e40f4b1)

Installation

npm

npm install @livetemplate/client@0.8.23

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.23/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x

v0.8.22

12 Apr 22:30

Choose a tag to compare

Changes

  • fix: cross-handler SPA navigation, navigation edge cases, and Tier 1 file uploads (#58) (798ca90)

Installation

npm

npm install @livetemplate/client@0.8.22

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.22/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x

v0.8.21

11 Apr 04:59

Choose a tag to compare

Changes

  • feat: polyfill command/commandfor for cross-browser dialog support (#57) (565176c)

Installation

npm

npm install @livetemplate/client@0.8.21

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.21/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x

v0.8.20

10 Apr 15:16

Choose a tag to compare

Changes

  • feat: extend livetemplate.css with shared utilities and chat styles (#54) (c12e1e8)

Installation

npm

npm install @livetemplate/client@0.8.20

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.20/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x

v0.8.19

05 Apr 11:12

Choose a tag to compare

Changes

  • feat: add data-lvt-target for cross-element targeting in lvt-el: methods (#53) (89aa203)

[Unreleased]

Added

  • feat: data-lvt-target attribute for cross-element targeting — lvt-el: methods can now operate on a different element via #id or closest:selector

Installation

npm

npm install @livetemplate/client@0.8.19

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.19/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x

v0.8.18

05 Apr 10:09

Choose a tag to compare

Changes

  • chore(release): v0.8.17 (d6b41a4)
  • feat: extend lvt-el: to support native DOM event triggers (#49) (ddf92c2)
  • fix: form.name DOM shadowing + skip File objects in FormData parsing (58cf0c2)

[Unreleased]

Added

  • feat: lvt-el:{method}:on:{event} now supports any native DOM event as trigger (click, focusin, focusout, mouseenter, mouseleave, keydown, etc.) — no server round-trip, CSP-safe
  • feat: lvt-fx:{effect}:on:{event} supports DOM event triggers (e.g., lvt-fx:highlight:on:click="flash") and lifecycle triggers (e.g., lvt-fx:highlight:on:success="flash")

Installation

npm

npm install @livetemplate/client@0.8.18

CDN

<script src="https://cdn.jsdelivr.net/npm/@livetemplate/client@0.8.18/dist/livetemplate-client.browser.js"></script>

Related Releases

This release follows the LiveTemplate core library version 0.8.x