From ff3312a6f0c503cc6111582b9ab2f0c38831f60e Mon Sep 17 00:00:00 2001 From: adnaan <758447+adnaan@users.noreply.github.com> Date: Sat, 15 Aug 2026 15:52:31 +0000 Subject: [PATCH] Sync from lvt@v0.2.1 --- content/changelog/cli.md | 21 +++++++++++++++++++-- content/cli/ai-assistants.md | 4 ++-- content/cli/auth-customization.md | 6 +++--- content/cli/components.md | 10 +++++----- content/cli/index.md | 16 ++++++++-------- content/cli/testing.md | 8 ++++---- content/contributing/cli.md | 4 ++-- 7 files changed, 43 insertions(+), 26 deletions(-) diff --git a/content/changelog/cli.md b/content/changelog/cli.md index 163a178..b711cd5 100644 --- a/content/changelog/cli.md +++ b/content/changelog/cli.md @@ -2,8 +2,8 @@ title: "Changelog" source_repo: "https://github.com/livetemplate/lvt" source_path: "CHANGELOG.md" -source_ref: "v0.2.0" -source_commit: "2a88feb18e38e6e1b76b12952a1dc68cce094c63" +source_ref: "v0.2.1" +source_commit: "444e2a2ed4bbe160ad8a94815f04529bffd3669b" --- # Changelog @@ -13,8 +13,25 @@ All notable changes to the LVT CLI will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [v0.2.1] - 2026-08-15 + +### Changes + +- docs: drop the hype words from the mirrored CLI pages (#343) (08914ed) +- docs: point the cross-repo reference links at the docs site (#342) (5374b32) +- fix(release): refuse to bump on top of an unpublished release (#340) (beb5608) +- fix(release): survive an aborted release instead of leaving a half-bumped tree (#339) (dca2768) +- docs(changelog): note the v0.19.0 wire-format and recursion changes in v0.2.0 (d0d669c) + + + ## [v0.2.0] - 2026-07-18 +Adopts **livetemplate v0.19.0** (from v0.11.1). Two things matter for apps scaffolded or served by this CLI: + +- **Range updates use a different wire format.** The differential range path now emits granular ops (`r`/`u`/`i`/`o`/`p`) instead of re-sending the whole range payload, so deep edits scope to the changed leaf. No app change is required, and published `@livetemplate/client` builds have handled the format since v0.8.2 — but any pinned client older than that should be moved forward. +- **Recursive `{{template}}` now renders.** Self-referential templates (file trees, comment threads, nested navigation) are supported rather than rejected at parse time. + ### Changes - chore(deps): adopt livetemplate v0.19.0 + land release-gated C8 goldens and e2e (#337) (bc1659c) diff --git a/content/cli/ai-assistants.md b/content/cli/ai-assistants.md index 6a800a2..89f9032 100644 --- a/content/cli/ai-assistants.md +++ b/content/cli/ai-assistants.md @@ -2,8 +2,8 @@ title: "LiveTemplate Assistant for GitHub Copilot" source_repo: "https://github.com/livetemplate/lvt" source_path: ".github/copilot-instructions.md" -source_ref: "v0.2.0" -source_commit: "2a88feb18e38e6e1b76b12952a1dc68cce094c63" +source_ref: "v0.2.1" +source_commit: "444e2a2ed4bbe160ad8a94815f04529bffd3669b" --- # LiveTemplate Assistant for GitHub Copilot diff --git a/content/cli/auth-customization.md b/content/cli/auth-customization.md index 7f76d07..eccf40d 100644 --- a/content/cli/auth-customization.md +++ b/content/cli/auth-customization.md @@ -2,8 +2,8 @@ title: "Customizing Auth Templates" source_repo: "https://github.com/livetemplate/lvt" source_path: "docs/guides/auth-customization.md" -source_ref: "v0.2.0" -source_commit: "2a88feb18e38e6e1b76b12952a1dc68cce094c63" +source_ref: "v0.2.1" +source_commit: "444e2a2ed4bbe160ad8a94815f04529bffd3669b" --- # Customizing Auth Templates @@ -27,7 +27,7 @@ After running `lvt gen auth`, edit `internal/app/auth/auth.tmpl` to use your pre ### Option 2: Use a Kit -The lvt kit system allows you to customize templates project-wide. +The lvt kit system lets you customize templates across the whole project. 1. **Copy the auth template to your project kit:** ```bash diff --git a/content/cli/components.md b/content/cli/components.md index 2a42935..317014c 100644 --- a/content/cli/components.md +++ b/content/cli/components.md @@ -2,15 +2,15 @@ title: "LiveTemplate Components Library" source_repo: "https://github.com/livetemplate/lvt" source_path: "components/README.md" -source_ref: "v0.2.0" -source_commit: "2a88feb18e38e6e1b76b12952a1dc68cce094c63" +source_ref: "v0.2.1" +source_commit: "444e2a2ed4bbe160ad8a94815f04529bffd3669b" --- # LiveTemplate Components Library ![Components Independence](https://github.com/livetemplate/lvt/actions/workflows/components-independence.yml/badge.svg) -A comprehensive collection of reusable UI components for the [LiveTemplate](https://github.com/livetemplate/livetemplate) framework. +A set of reusable UI components for the [LiveTemplate](https://github.com/livetemplate/livetemplate) framework. ## Features @@ -90,7 +90,7 @@ CountrySelect: dropdown.NewSearchable("country", countries, |-----------|---------|-----------|-------------| | Toast | `toast` | default, container | Toast notifications | | Tooltip | `tooltip` | default | Tooltips | -| Popover | `popover` | default | Rich content popovers | +| Popover | `popover` | default | Content popovers | | Progress | `progress` | default, circular, spinner | Progress indicators | | Skeleton | `skeleton` | default, avatar, card | Loading placeholders | @@ -286,7 +286,7 @@ No `lvt` CLI installation required — components are a standalone Go library. ## Contributing -See [CONTRIBUTING.md](https://github.com/livetemplate/lvt/blob/v0.2.0/components/CONTRIBUTING.md) for guidelines on: +See [CONTRIBUTING.md](https://github.com/livetemplate/lvt/blob/v0.2.1/components/CONTRIBUTING.md) for guidelines on: - Component naming conventions - Template requirements - Test requirements diff --git a/content/cli/index.md b/content/cli/index.md index 8624b26..322a0a0 100644 --- a/content/cli/index.md +++ b/content/cli/index.md @@ -2,8 +2,8 @@ title: "LiveTemplate CLI (`lvt`) - Complete Guide" source_repo: "https://github.com/livetemplate/lvt" source_path: "docs/guides/lvt-cli-guide.md" -source_ref: "v0.2.0" -source_commit: "2a88feb18e38e6e1b76b12952a1dc68cce094c63" +source_ref: "v0.2.1" +source_commit: "444e2a2ed4bbe160ad8a94815f04529bffd3669b" --- # LiveTemplate CLI (`lvt`) - Complete Guide @@ -168,7 +168,7 @@ lvt gen products name price quantity enabled created_at - Form validation - Statistics/counts - CSS styling (from kit) -- Comprehensive tests +- Generated tests covering each flow **Type Mappings:** @@ -299,7 +299,7 @@ Default names (can be customized): - **Auto-updates `go.mod` dependencies** - **EmailSender interface** (console logger + SMTP/Mailgun examples) - **Case-insensitive email matching** -- **Production-ready security** (HTTP-only, secure, SameSite cookies) +- **Secure session cookies** (HTTP-only, Secure, SameSite) **Next Steps:** @@ -353,7 +353,7 @@ The generated auth templates use Tailwind CSS by default. To use a different CSS **E2E Testing:** -The auth command generates comprehensive E2E tests using chromedp that test all auth flows: +The auth command generates E2E tests using chromedp that cover every auth flow: - Registration flow (with email confirmation if enabled) - Login flow (password and magic-link) - Password reset flow (if enabled) @@ -549,7 +549,7 @@ lvt gen articles title content published_at author email price ## Testing -Each generated resource includes comprehensive tests. +Each generated resource comes with tests. ### WebSocket Tests (`*_ws_test.go`) @@ -828,6 +828,6 @@ go run cmd/mysocial/main.go 5. **Deploy** - Build and deploy your app For more information: -- [API Reference](https://github.com/livetemplate/lvt/blob/v0.2.0/docs/references/api-reference.md) -- [Template Support Matrix](https://github.com/livetemplate/lvt/blob/v0.2.0/docs/references/template-support-matrix.md) +- [API Reference](https://livetemplate.fly.dev/reference/api) +- [Template Support Matrix](https://livetemplate.fly.dev/reference/template-support-matrix) - [LiveTemplate Documentation](https://github.com/livetemplate/livetemplate) diff --git a/content/cli/testing.md b/content/cli/testing.md index e09a55b..9a175f3 100644 --- a/content/cli/testing.md +++ b/content/cli/testing.md @@ -2,13 +2,13 @@ title: "LiveTemplate Testing Framework" source_repo: "https://github.com/livetemplate/lvt" source_path: "testing/README.md" -source_ref: "v0.2.0" -source_commit: "2a88feb18e38e6e1b76b12952a1dc68cce094c63" +source_ref: "v0.2.1" +source_commit: "444e2a2ed4bbe160ad8a94815f04529bffd3669b" --- # LiveTemplate Testing Framework -A comprehensive e2e testing framework for LiveTemplate applications that reduces boilerplate by 85-90%. +An e2e testing framework for LiveTemplate applications. It cuts test boilerplate by 85-90%. ## Installation @@ -54,7 +54,7 @@ func TestMyApp(t *testing.T) { - **WebSocket Ready**: Waits for LiveTemplate WebSocket connection - **Cleanup**: Automatic teardown of all resources -### Comprehensive Loggers +### Loggers ```go // Browser console logs test.Console.GetLogs() diff --git a/content/contributing/cli.md b/content/contributing/cli.md index 24495c4..b4da0f6 100644 --- a/content/contributing/cli.md +++ b/content/contributing/cli.md @@ -2,8 +2,8 @@ title: "Contributing to LVT CLI" source_repo: "https://github.com/livetemplate/lvt" source_path: "CONTRIBUTING.md" -source_ref: "v0.2.0" -source_commit: "2a88feb18e38e6e1b76b12952a1dc68cce094c63" +source_ref: "v0.2.1" +source_commit: "444e2a2ed4bbe160ad8a94815f04529bffd3669b" --- # Contributing to LVT CLI