Commit Graph

4035 Commits

Author SHA1 Message Date
Christian Tanul
9dfe28ac7c Streamline history event names
- htmx:after:push:into:history → htmx:after:history:push
- htmx:after:replace:into:history → htmx:after:history:replace
- htmx:before:restore:history → htmx:before:history:restore

Consistent with the htmx:before:history:update / htmx:after:history:update
pattern that already exists. All events now follow htmx:{phase}:history:{action}.

Updated: core, compat extension, editor metadata, skills, tests.
Fix pre-existing API surface test (version property).
1044/1044 tests passing.
2026-03-13 16:05:08 +02:00
Carson Gross
0a51d5c810 note target change 2026-03-12 13:03:50 -06:00
Carson Gross
3709fe2ab2 note removal of secondary hx-on- form 2026-03-12 13:02:43 -06:00
Carson Gross
4a2e3ec7dc update extension count 2026-03-12 13:00:29 -06:00
Carson Gross
e70f81c0dc document the validation behavior change 2026-03-12 12:58:29 -06:00
Carson Gross
637105e218 include wildcard docs example 2026-03-12 12:56:28 -06:00
Carson Gross
aa9c687717 update config docs 2026-03-12 12:42:09 -06:00
Carson Gross
59d627dfe4 move version to a top level prop since it isn't configurable. 2026-03-12 12:36:46 -06:00
Carson Gross
3c7a296064 add documentation around the ctx object 2026-03-12 12:29:09 -06:00
Carson Gross
78698ab71c document the change to button-type input default triggers 2026-03-12 12:18:57 -06:00
Carson Gross
95217bc716 document defer usage with htmx 2026-03-12 11:23:30 -06:00
Carson Gross
e2ac4352a2 add hx-targets extension 2026-03-12 10:31:32 -06:00
Carson Gross
f901962726 Merge remote-tracking branch 'origin/four-dev' into four-dev 2026-03-12 10:28:23 -06:00
Carson Gross
8f756997fa document that the meta tag must come before htmx is included so it is available at initialization time
fixes https://github.com/bigskysoftware/htmx/issues/3678
2026-03-12 10:28:16 -06:00
Carson Gross
b00e5b5d6f add a preload demo 2026-03-12 10:23:52 -06:00
Carson Gross
11378c078c defer init one tick to allow extensions to register when htmx is loaded after the DOMContentLoaded event 2026-03-12 10:22:34 -06:00
Dien Hoa TRUONG
bbc3a99dc1 fix: normalize onLoad event name with metaCharacter (#3695)
fix onLoad metaCharacter doesn't normalize
2026-03-12 08:10:15 -06:00
MichaelWest22
582a990f16 handle zero timeout properly (#3692) 2026-03-12 08:09:40 -06:00
Carson Gross
717256cc13 looks like a refactor got missed 2026-03-10 14:08:17 -06:00
MichaelWest22
6db5baf22f update and remove extra npm modules (#3690)
* update and cleanup npm

* update test files
2026-03-10 12:19:30 -06:00
MichaelWest22
ab6618a2bf support ctx.vals for extension use (#3689)
* move from handleHxVals to getAttributeObject to improve JSON handling

* publish ctx.vals for extension use

* move from handleHxVals to getAttributeObject to improve JSON handling

* publish ctx.vals for extension use
2026-03-10 12:18:29 -06:00
MichaelWest22
a000e13d05 keep indicators on redirect-refresh (#3688) 2026-03-10 12:17:20 -06:00
MichaelWest22
2efadf2710 fix up several test issues and bugs (#3687)
fix up several test issuesand bugs
2026-03-10 12:17:08 -06:00
MichaelWest22
d29bc6aec2 async head support (#3686)
* async head support

* improve defered script handling with link preload
2026-03-10 12:16:26 -06:00
Carson Gross
f46703d9a9 update ws and sse extensions to properly adjust meta-chars when set 2026-03-07 16:00:53 -07:00
Carson Gross
aa80b025c1 remove old listeners collection (stored in _htmx now) 2026-03-07 14:47:58 -07:00
Carson Gross
d9c60fe221 remove unused prop 2026-03-07 14:46:42 -07:00
Carson Gross
e6fc3ca694 regen dist 2026-03-07 14:01:41 -07:00
Carson Gross
d844bb4f45 Remove old dead code 2026-03-07 13:57:37 -07:00
Carson Gross
35273f75b9 docs clarifying how htmx.timeout() handles 0 2026-03-07 13:53:51 -07:00
Carson Gross
d3214948e6 ensure only one history restoration request is in flight at a time by aborting any previous history request before issuing a new one 2026-03-04 07:07:05 -07:00
Carson Gross
441367103e rename and expose __htmxProp to standardize how it is init'd and used in extensions (this guarantees cleanup too) 2026-03-04 06:54:51 -07:00
Carson Gross
f6deb1ec56 fix race condition when replace strategy is used 2026-03-04 06:38:01 -07:00
Carson Gross
aa9e74fad7 per latent, this can just be href 2026-03-04 06:09:16 -07:00
Carson Gross
7b3dbbc9e5 handle top level title tags 2026-03-04 06:08:32 -07:00
Carson Gross
3dd8bc1f4b test focus rather than connection to determine if we need to refocus (handles preserved elements properly) 2026-03-03 21:19:15 -07:00
Carson Gross
f660b62b2e include skills in dist 2026-03-03 20:10:53 -07:00
Carson Gross
07998a07a1 properly escape meta-character for hx-status attributes 2026-03-03 20:09:16 -07:00
Carson Gross
53ecb1f415 make the title extraction part of the head removal so we don't match svg title tags 2026-03-03 20:06:44 -07:00
Carson Gross
58e54ac8b8 move hx-on processing first so htmx:before:init etc can be caught 2026-03-03 20:02:13 -07:00
Carson Gross
9624020c7b submit inputs should use click as the default too 2026-03-03 19:49:14 -07:00
Carson Gross
eda57dbc07 make hx-on an hx-ignore respector 2026-03-03 19:08:49 -07:00
Carson Gross
fb3e18c99c ok, guess we need that after all, add tests to verify 2026-03-03 19:04:52 -07:00
Carson Gross
7aed0ebec2 move security check to merge so it caches the JSON case too 2026-03-03 18:38:49 -07:00
Carson Gross
5b8958971a some inputs don't allow accessing selection info, so try to do so by if we fail it's just a no-op 2026-03-03 18:34:56 -07:00
Carson Gross
95cdb0a933 move the textContent swap in with the other content swaps so it follows the standard pattern 2026-03-03 18:28:16 -07:00
Carson Gross
658083eaaf move consume above filter so if an event is filtered it is not consumed 2026-03-03 18:22:44 -07:00
Carson Gross
d6b1a7232e move timeout init & indicator/disable stuff *after* confirmation so it isn't showing while still confirming 2026-03-03 18:20:22 -07:00
Carson Gross
f736de4fd9 more skills stuff 2026-03-03 18:19:52 -07:00
Carson Gross
845685ab8c etags use the standard mechanism for ensuring _htmx exists (and rename method to be a bit clearer) 2026-03-03 17:56:05 -07:00