Skip to content

docs(htmx): document beta3 features and correct migration guide#1771

Merged
davidpoblador merged 1 commit into
mainfrom
worktree-mossy-tinkering-alpaca
May 10, 2026
Merged

docs(htmx): document beta3 features and correct migration guide#1771
davidpoblador merged 1 commit into
mainfrom
worktree-mossy-tinkering-alpaca

Conversation

@davidpoblador

Copy link
Copy Markdown
Member

Summary

  • Drop the stale "hx-history-elt removed" claim from the Removed Attributes table — beta3 restored the attribute alongside an improved hx-history-cache extension.
  • Add htmx:response:error to the event-rename table; this convenience event was reintroduced in beta3 to mirror htmx 2's htmx:responseError.
  • Add the new hx-nonce and hx-live extensions to the New Extensions table.
  • Document htmx.config.prefix default change to "data-hx-".
  • Add a "Beta1 to Beta3 Changes" section that mirrors the existing alpha→beta1 section, covering:
    • The new outerSync swap style
    • hx-download auto-detection via Content-Disposition
    • hx-preload boost knobs (boostEvent, boostTimeout, autoBoost)
    • hx-config no longer accepting request mode overrides (security fix)
    • The constructable indicator stylesheet that lets CSP-strict deployments drop 'unsafe-inline' from style-src
    • Pantry element switched from inline style to hidden
    • htmx.takeClass / htmx.forEvent moved into the hx-live extension

These docs land ahead of #1770 (the renovate bump from beta2 → beta3) so users hitting the beta3 changelog have a vibetuner-flavored map of what's new.

Test plan

  • just lint-md shows no new failures in htmx-migration.md
  • All edited lines stay under 120 chars
  • Spot-check the rendered docs site on the staging build

🤖 Generated with Claude Code

- Drop the stale "hx-history-elt removed" claim — beta3 restored it
- Add htmx:response:error to the event-rename table
- Add hx-nonce and hx-live to the new extensions table
- Note htmx.config.prefix default change to "data-hx-"
- Add a Beta1 → Beta3 Changes section covering outerSync swap style,
  hx-download auto-detection, hx-preload boost knobs, hx-config mode
  removal, constructable indicator stylesheet, and the
  takeClass/forEvent move into the hx-live extension

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@davidpoblador davidpoblador merged commit 2921dbc into main May 10, 2026
2 checks passed
@davidpoblador davidpoblador deleted the worktree-mossy-tinkering-alpaca branch May 10, 2026 08:49
davidpoblador added a commit that referenced this pull request May 10, 2026
#1776)

## Summary

Catches up the LLM-targeted docs (`llms.txt`, `llms-full.txt`) and the
scaffolded `vibetuner-template/.claude/rules/frontend.md` with the htmx
beta3 features that landed in #1771, #1773, and #1774. The project's
`CLAUDE.md` requires every feature PR to update those alongside the docs
site, and I missed them in the original three.

- **`llms.txt`** — extends the CSP bullet with `CSP_STYLE_SRC_STRICT`
and adds an `hx-nonce` opt-in bullet
- **`llms-full.txt`** — adds strict style-src + hx-nonce paragraphs to
the Security Headers section, and a "Beta3 Additions" subsection under
the HTMX migration coverage
- **`vibetuner-template/.claude/rules/frontend.md`** — drops the stale
"`hx-on::` shorthand is broken in alpha8" claim (works in beta1+)

## Test plan

- [x] `rumdl` lint passes (pre-commit)
- [x] No new long-line violations in edited regions
- [ ] Spot-check rendered docs site

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
davidpoblador pushed a commit that referenced this pull request May 11, 2026
🤖 I have created a release *beep* *boop*
---


##
[10.11.0](v10.10.0...v10.11.0)
(2026-05-11)


### Features

* **htmx:** prepare framework templates for hx-nonce extension
([#1773](#1773))
([16137e8](16137e8))
* **security:** add CSP_STYLE_SRC_STRICT to drop 'unsafe-inline' from
style-src ([#1774](#1774))
([3f74886](3f74886))


### Bug Fixes

* **deps:** update dependency htmx.org to v4.0.0-beta3
([#1770](#1770))
([d21d883](d21d883))


### Documentation Updates

* gate htmx-nonce + strict style-src behind a min-version note
([#1779](#1779))
([bc6d365](bc6d365))
* **htmx:** document beta3 features and correct migration guide
([#1771](#1771))
([2921dbc](2921dbc))
* put htmx Nonce Protection before Strict style-src
([#1775](#1775))
([d1254c9](d1254c9))
* sync llms.txt, llms-full.txt, and frontend rules with htmx beta3
([#1776](#1776))
([b486470](b486470))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant