Skip to content

Move htmx 2 code to versioned modules and add hx-partial - #25

Merged
sliemeobn merged 2 commits into
mainfrom
numbered-modules
Oct 25, 2026
Merged

sliemeobn merged 2 commits into
mainfrom
numbered-modules

Conversation

@sliemeobn

@sliemeobn sliemeobn commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Prepares for htmx 4 support (#16) by switching to numbered modules per htmx major. This PR only covers the v2 side; v4 follows separately.

Changes

  • ElementaryHTMX2, ElementaryHTMX2SSE, ElementaryHTMX2WS: existing code and tests, moved unchanged (only imports and suite names renamed).
  • ElementaryHTMX, ElementaryHTMXSSE, ElementaryHTMXWS: thin shims that @_exported import the matching v2 module. All existing products keep working; new products added for the numbered modules.
  • One test per shim proving the API is reachable through the old import.
  • New hxPartial element in ElementaryHTMX2 for <hx-partial> (supported since htmx 2.0.11), with tests.
  • README documents the numbered modules and that ElementaryHTMX re-exports the current default (v2). .spi.yml now builds docs from the v2 modules.

@sliemeobn sliemeobn mentioned this pull request Oct 25, 2026
@sliemeobn sliemeobn changed the title Move v2 code to numbered modules and add hx-partial Move htmx 2 code to numbered modules and add hx-partial Oct 25, 2026
@sliemeobn sliemeobn changed the title Move htmx 2 code to numbered modules and add hx-partial Move htmx 2 code to versioned modules and add hx-partial Oct 25, 2026
@sliemeobn
sliemeobn merged commit 791b49d into main Oct 25, 2026
6 of 7 checks passed
@sliemeobn
sliemeobn deleted the numbered-modules branch October 25, 2026 23:29
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