3448 Commits

Author SHA1 Message Date
MichaelWest22
84306ccf3d
Fix non chrome view transtions tests (#3338)
fix non chrome view transitions tests
2025-06-19 15:02:11 -06:00
Carson Gross
3f49db3936 document inherit keyword 2025-06-19 11:21:49 -06:00
Carson Gross
bb4eb0f813 changelog for 2.0.5 release 2025-06-19 10:40:06 -06:00
Carson Gross
e38d6a7147 update sha 2025-06-19 10:24:57 -06:00
Carson Gross
1d01b94b90 prep v2.0.5 2025-06-19 10:24:09 -06:00
MichaelWest22
c091b95fa3
Move currentPathForHistory to session storage (#3330)
* Move currentPathForHistory to session storage

* update test

* fix more sessionStorage from localStorage
2025-06-16 18:24:39 -05:00
MichaelWest22
c9e2bea954
Fix Modified click trigger on form elements prevent default behaviour (#3336)
Fix Modified click trigger on form elements prevent default behaviour of clicked element
2025-06-16 18:09:32 -05:00
MichaelWest22
7388d0c057
Move History storage to sessionStorage (#3305)
* Move History storage to sessionStorage and history path to window

* Fix type warnings

* Revert currentPathForHistory to move it to its own PR

* fix test
2025-06-16 18:08:34 -05:00
MichaelWest22
508e332544
Standardize history restore functions to use proper htmx swap functions (#3306)
* Improve history support and events

* Improve history event overrides

* Improve history support and events

* Improve history event overrides

* Update Documentation of new event changes

* Add event testing for updated events

* update event doco and rename to historyElt to be consistent

* Improve history support and events

* Improve history event overrides

* Update Documentation of new event changes

* Add event testing for updated events

* update event doco and rename to historyElt to be consistent

* Fix loc coverage test coverage

* Standardize history restore functions to use proper htmx swap functions

* Add test for hx-history-elt attribute

* Fix broken merge conflict resolution
2025-06-16 16:53:57 -06:00
Simon Hartley
3c1ac71573
Follow up to #3234 (#3334)
* Follow up to #3234

Add missing part of migration from UNPKG to jsDelivr

* Restore UNPKG support in package.json

---------

Co-authored-by: scrhartley <scrhartley@github.com>
2025-06-16 16:37:26 -06:00
MichaelWest22
859708c379
move delay and view transitions to inside swap function for api and history use (#3328)
* move delay and view transitions to inside swap function

* Fix indenting and add tests

* move delay and view transitions to inside swap function

* Fix indenting and add tests

* revert rollback of feat: handle 'unset'for HX-Reselect in swap function
2025-06-16 17:31:07 -05:00
Sukka
7df5969664
Replace jsDelivr w/ UNPKG (#3234)
Co-authored-by: 1cg <469183+1cg@users.noreply.github.com>
2025-06-03 07:14:03 -06:00
Ryan Kilpadi
5b4d77da6b
Attach hx-on handlers before processing nodes (#3131) 2025-06-02 15:50:19 -05:00
Carson Gross
e7bb245ef4 fix bad strings, merge master, update package-lock.json 2025-06-02 11:54:49 -06:00
Carson Gross
0aaab5a3c9 Merge branch 'master' into dev
# Conflicts:
#	package-lock.json
#	package.json
2025-06-02 11:52:35 -06:00
Carson Gross
d1d0cd916b Merge remote-tracking branch 'origin/master' 2025-06-02 11:51:28 -06:00
Carson Gross
dd1914d503 update https://tacohiro.systems/ link 2025-06-02 11:51:21 -06:00
Carson Gross
e783c88670 move repeat logic on HX-Retarget header out to its own function. 2025-06-02 11:48:22 -06:00
Carson Gross
8ec48d9d29 Merge remote-tracking branch 'origin/dev' into dev 2025-06-02 11:47:55 -06:00
Piotr Tomiak
11ff1940f0
Automatically generate Web Types for the package based on current documentation (#3071) 2025-06-02 11:25:23 -06:00
ludicrousdisplay
28b31f23db
adding javalin-htmx examples to server integration examples (#3104)
* adding javalin-htmx examples to server integration examples

Adding two examples of using htmx with the javalin server library

* Update www/content/server-examples.md

Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>

---------

Co-authored-by: Vincent <vichenzo-thebaud@hotmail.com>
2025-06-02 11:21:38 -06:00
Vincent
53c5cf6df7
Remove obsolete npm command + fix links to ws/sse extensions (#3208)
Remove obsolete npm command + fix links to ws/SSE
2025-06-02 11:21:11 -06:00
Vincent
82546dbd47
Inherit list-keyword in hx-include / hx-indicator (#1766)
Inherit keyword in hx-include / hx-indicator
2025-06-02 11:20:24 -06:00
Jeremiah Johnson
4184d1fd0c
fix(swap): apply swap delay in swap function instead of handleAjaxResponse (#2845)
* fix(swap): apply swap delay in swap function instead of handleAjaxResponse

* add swap delay test
2025-06-02 11:19:11 -06:00
Oliver Haas
6d238f3d61
Feat/hx reselect support unset (#3153)
feat: handle 'unset'for HX-Reselect in swap function (+ test)
2025-06-02 11:01:20 -06:00
Simon Hartley
075ed73799
Fix target value in htmx:targetError when inheritance has been used (#3178)
Co-authored-by: scrhartley <scrhartley@github.com>
2025-06-02 10:58:31 -06:00
Carson Gross
70f41e0c6c Merge remote-tracking branch 'origin/dev' into dev 2025-06-02 10:57:57 -06:00
JacobMonticello
e4ecc55586
Typo in addEventListener - use evt instead of event (#3188)
Use evt instead of event

Co-authored-by: Jacob monticello <Jacob Monticello>
2025-06-02 10:57:46 -06:00
Gustavo Guzmán
11a8e9c6c2
Feature: add extensionsToIgnore to withExtensions (#3195)
feat: add extensionsToIgnore to withExtensions
2025-06-02 10:56:51 -06:00
Carson Gross
646c8583be Merge remote-tracking branch 'origin/dev' into dev 2025-06-02 10:56:11 -06:00
David Martiník
730bd8224d
Fixes issue 1537 - OOB does not escape query selector - updated version (#3304)
* Fixes issue 1537 - OOB does not escape query selector

* Adds test cases for oob swaps where the id contains special characters

* Updated oob multiple elements with the same ID test

* fix(issue-1537): resolved conflicts with master

* fix(issue-1537): fixed codestyle issues

---------

Co-authored-by: Fraser Chapman <fraser.chapman@gmail.com>
Co-authored-by: David Martiník <david.martinik@powerflow.cz>
2025-06-02 10:52:29 -06:00
Simon Hartley
8409ebca3b
Fix missing TypeScript property (#3315)
Add hidden elt property to HtmxRequestConfig

Co-authored-by: scrhartley <scrhartley@github.com>
2025-06-02 10:50:51 -06:00
MichaelWest22
083dbcdd6f
update web test-runner and remove temp summaryReporter workaournd (#3320)
* update web test-runner and remove temp summaryReporter workaournd

* Update error reporting to show in context of the test file and as a summary at the bottom
2025-05-22 07:17:16 +02:00
Simon Hartley
d2e39716fb
Fix type for event parameter (#3317)
Fix type of event for HtmxExtension.onEvent

Co-authored-by: scrhartley <scrhartley@github.com>
2025-05-19 07:40:36 +02:00
QBH3
407408b947
Update sse.md (#3303)
version of sse extension does not match the sha384 hash, i believe it to be the newer 2.2.3 version of htmx-ext-sse
2025-05-08 08:22:55 +02:00
Devin Muzzy
0404d0137b
documentation clarification for htmx:load (#3299)
htmx:load doc clarification
2025-05-01 08:33:09 +02:00
Simon Hartley
f4cc8382a4
Correction for confirm example (#3296) 2025-04-30 08:10:40 +02:00
Simon Hartley
ff190eef26
Add substr lint (#3295)
Co-authored-by: scrhartley <scrhartley@github.com>
2025-04-28 07:15:03 +02:00
Simon Hartley
53496ff428
Fix typo (#3294)
Co-authored-by: scrhartley <scrhartley@github.com>
2025-04-28 07:12:33 +02:00
Carson Gross
a9b673c93c Merge branch 'dev' of github.com:bigskysoftware/htmx into dev 2025-04-24 14:24:45 -06:00
MichaelWest22
5520566fc3
Add historyRestoreAsHxRequest config to optionally disable hx-request header from history restore requests (#3278)
* Added Config to optionally disable the breaking HX-Request change made recently

* fix broken resolved conflict
2025-04-24 14:21:23 -06:00
Simon Hartley
db8e5e03cb
Fix event not being available in hx-vals/hx-vars when hx-trigger has delay (#3196)
Fix event not being available in hx-vals/hx-vars when hx-trigger uses delay

Co-authored-by: scrhartley <scrhartley@github.com>
2025-04-24 13:58:31 -06:00
Emil Hemdal
e01027b938
Write title as innerText instead of innerHTML (#3173)
* Change innerHTML to innerText for title element

Some security checks are grumpy when using innerHTML. Using innerText
instead calms them.

Signed-off-by: Emil Hemdal <emil@hemdal.se>

* Add Type Hints/Cast

* Change to textContent instead of innerText

Also remove type hinting/casting since it is no longer needed

Signed-off-by: Emil Hemdal <emil@hemdal.se>

---------

Signed-off-by: Emil Hemdal <emil@hemdal.se>
2025-04-24 13:57:34 -06:00
Simon Hartley
6a585f9f3c
Get rid of latest usages of substr (#3074)
* Replace latest usages of substr

* Replace usage of substr in tests

---------

Co-authored-by: scrhartley <scrhartley@github.com>
2025-04-24 13:56:55 -06:00
MichaelWest22
05d37e6ea6
Remove old IE support (#3277)
* Remove old IE support

* don't need regex in normalizePath

* fix verifyPath to handle about: situations like some iframes now that there is no fallback

* improve diff

* fix logic mistake in last diff improvment

* Update url normlization test post testing upgrade

* remove un-needed document
2025-04-24 13:56:05 -06:00
MichaelWest22
d3bcd787ba
proxy window.location for testing and extension overrides (#3283)
* proxy window.location for testing and extension overrides

* when not whe in test name
2025-04-24 13:55:27 -06:00
MichaelWest22
408850a08e
Additional Code Coverage (#3282)
* Improve loc coverage by removing dead paths caused by bad type checks and add some tests for other paths

* removed exception for https://github.com/microsoft/playwright/issues/5894 that was fixed in 2022 with webkit 16.0
2025-04-24 13:54:43 -06:00
MichaelWest22
21dc121fce
handle removing request lock on errors (#3284)
* handle removing request lock on errors

* Fixed non function verifyUrl tests and added tests for the double requests this PR fixes
2025-04-24 13:53:14 -06:00
Shawn Duncan
0da03839ce
Create SECURITY.md (#3288)
* Create SECURITY.md

* Update SECURITY.md

Remove boiler plate text
2025-04-24 13:41:47 -06:00
Ajani Bilby
86893ebf4c
Docs: Update Link (#3281)
use a permalink
2025-04-21 09:11:55 +02:00