3531 Commits

Author SHA1 Message Date
Carson Gross
9515515bfe introduce htmx scripting API concept 2025-10-28 11:54:33 -06:00
Carson Gross
871a5c6147 make it possible to execute async javascript 2025-10-28 11:32:34 -06:00
Carson Gross
321da7045c update TODOS.md 2025-10-28 11:32:19 -06:00
1cg
d349d2c06f
Merge pull request #7 from bigskysoftware/sse
add server-sent events (sse) streaming support
2025-10-28 11:21:36 -05:00
scriptogre
db09daa7ac
update SSE section in docs.md 2025-10-28 18:07:14 +02:00
scriptogre
2f9318a4cd
add demo for custom events via SSE in manual tests 2025-10-28 17:19:54 +02:00
scriptogre
23885b409a
enable sending custom events using SSE 2025-10-28 17:15:23 +02:00
scriptogre
5a97b83afb
rename chunk to sseMessage 2025-10-28 16:42:48 +02:00
scriptogre
314a540bc8
replace <partial> with <htmx-action type="partial"> 2025-10-28 16:29:07 +02:00
scriptogre
afb1af04e1
add server-sent events (sse) streaming support
Implement native SSE handling with configurable stream modes (once/continuous), automatic reconnection with exponential backoff, and lifecycle events.

Streams are configured via hx-stream attribute or htmx.config.streams global defaults.

Update test infrastructure with ReadableStream-based mocking utilities.

# Conflicts:
#	src/htmx.js
2025-10-28 16:13:43 +02:00
1cg
751da3b01a
Merge pull request #6 from bigskysoftware/refresh-support2
Refresh support2
2025-10-28 08:01:59 -05:00
MichaelWest22
f817eceb27 Try moving to ajax api for history reload 2025-10-29 01:52:52 +13:00
Carson Gross
53adb72dac add support for fetch() based refreshes 2025-10-29 01:33:55 +13:00
MichaelWest22
bec53b64b7 fix hx-select-oob test after innerHTML default change 2025-10-29 01:24:41 +13:00
Carson Gross
d844a0022e Merge branch 'four' into hx-select-oob
# Conflicts:
#	src/htmx.js
2025-10-28 06:07:26 -06:00
MichaelWest22
8ae0bfb5ff fix other outerHTML defaults 2025-10-29 01:03:27 +13:00
MichaelWest22
8e50b49841 implement hx-select-oob and improve ajax api pus/replace/selectOOB 2025-10-29 00:41:39 +13:00
Carson Gross
82d2e580fd i declare outerHTML default ANETHMA 2025-10-28 05:37:14 -06:00
1cg
afad328c5f
Merge pull request #1 from bigskysoftware/swap-refactor
Swap refactor
2025-10-27 21:47:25 -05:00
1cg
894c474898
Merge pull request #3 from bigskysoftware/ajax-api
implement ajax api
2025-10-27 21:47:11 -05:00
MichaelWest22
9ed426c987 implement ajax api 2025-10-28 15:37:51 +13:00
MichaelWest22
b8830d6931
Merge pull request #2 from bigskysoftware/swap-refactor2
Swap refactor2
2025-10-28 09:40:24 +13:00
Carson Gross
1bd602625b update TODOs 2025-10-28 09:33:35 +13:00
Carson Gross
515ff04acb fix race in request queueing 2025-10-28 09:33:35 +13:00
scriptogre
8bd473c7b0 update SSE implementation
- replace previous implementation with a simple fetch-based approach
- long-lived streams still to be implemented using @microsoft/fetch-event-source, but SSE tests need to be restructured
2025-10-28 09:33:35 +13:00
Carson Gross
8d5a3a9f00 more trigger tests 2025-10-28 09:30:43 +13:00
Carson Gross
266b6a63a3 add trigger test 2025-10-28 09:30:43 +13:00
Carson Gross
da84d0f955 TODOs cleanup 2025-10-28 09:30:43 +13:00
MichaelWest22
449440dd61 fix test breakage 2025-10-28 09:18:45 +13:00
MichaelWest22
dc5a327483 minor reformat 2025-10-28 09:18:45 +13:00
Carson Gross
4c2c6e5ed9 update TODOs 2025-10-27 12:52:12 -06:00
Carson Gross
083b0100de Merge branch 'four' into swap-refactor
# Conflicts:
#	src/htmx.js
2025-10-27 10:13:19 -06:00
Carson Gross
42efea585c fix race in request queueing 2025-10-27 10:11:22 -06:00
Carson Gross
a54d8a7ed6 Merge branch 'four' of github.com:bigskysoftware/htmx-temp-private into four 2025-10-27 09:59:35 -06:00
Carson Gross
93f6775179 more trigger tests 2025-10-27 07:41:53 -06:00
scriptogre
2ac86e2c44
update SSE implementation
- replace previous implementation with a simple fetch-based approach
- long-lived streams still to be implemented using @microsoft/fetch-event-source, but SSE tests need to be restructured
2025-10-27 15:39:16 +02:00
MichaelWest22
af16a46287 fix test breakage 2025-10-28 02:38:19 +13:00
Carson Gross
b3ec7ff326 add trigger test 2025-10-27 07:35:15 -06:00
Carson Gross
3d1ab46133 TODOs cleanup 2025-10-27 07:29:50 -06:00
MichaelWest22
aab719b426 minor reformat 2025-10-28 02:18:51 +13:00
MichaelWest22
e208901cbd refactor swap 2025-10-28 01:53:32 +13:00
scriptogre
347d1e3bfc
rename cfg to ctx 2025-10-27 11:28:28 +02:00
Carson Gross
6235540f9a docs cleanup 2025-10-26 22:10:43 -06:00
Carson Gross
fe1ead65db docs cleanup 2025-10-26 22:07:33 -06:00
Carson Gross
ff3eab933e docs cleanup 2025-10-26 22:06:25 -06:00
Carson Gross
8429333c9d docs cleanup 2025-10-26 21:58:18 -06:00
Carson Gross
6ff58703c8 initial migration guide 2025-10-26 21:33:25 -06:00
Carson Gross
e4ea5dc7dc implement htmx:abort event 2025-10-26 21:32:49 -06:00
Carson Gross
c78ae8a9bf content fixes 2025-10-26 20:55:40 -06:00
Carson Gross
9ef4006e78 update attributes 2025-10-26 20:42:19 -06:00