2865 Commits

Author SHA1 Message Date
nickchomey
8b26a418a0
Fix broken link in essay (#2143)
Update why-tend-not-to-use-content-negotiation.md

fixing broken link
2024-01-01 23:38:47 -05:00
Carson Gross
c73aa077ca update sponsor info 2023-12-28 11:31:19 -07:00
Carson Gross
c445fa3b52 better naming 2023-12-27 19:27:26 -07:00
Carson Gross
d2d22c2903 restore old semantics w/ body returning its children 2023-12-27 19:10:35 -07:00
Carson Gross
f685b57332 docs update 2023-12-27 14:56:09 -07:00
Carson Gross
ff96b78e77 move to template parsing by default (prep for head support) 2023-12-27 14:42:14 -07:00
Carson Gross
8c61e71940 support revealed paired w/ other events 2023-12-26 16:42:16 -07:00
Carson Gross
9fbbd17672 reformat 2023-12-24 16:37:51 -07:00
Carson Gross
90096a6869 add some docs 2023-12-24 16:24:07 -07:00
Carson Gross
3903e51672 fix up after merge 2023-12-24 15:33:09 -07:00
Carson Gross
0e61b21440 Merge branch 'v2.0v2.0' into config-return-behavor
# Conflicts:
#	src/htmx.js
2023-12-24 15:17:53 -07:00
Carson Gross
adbdc71c81 add another test for inheritance disabling 2023-12-24 15:06:11 -07:00
Carson Gross
56d7cca777 indentation 2023-12-24 14:55:31 -07:00
Carson Gross
42668c6df7 Merge branch 'v2.0v2.0' into disable-inheritance
# Conflicts:
#	src/htmx.js
#	www/content/docs.md
2023-12-24 14:55:11 -07:00
Carson Gross
8966f1d01d clarify morphing docs 2023-12-22 10:25:40 -07:00
Vincent
079f38f182
Fix path-params title (preventing zola from building) (#2121) 2023-12-22 10:19:23 -05:00
Carson Gross
51baa6bb31 fix broken link v1.9.10 2023-12-21 18:35:46 -07:00
Carson Gross
71c3f2a9a9 fix build 2023-12-21 18:34:09 -07:00
Carson Gross
b9a673a4f3 CHANGELOG.md for 1.9.10 2023-12-21 18:17:58 -07:00
Carson Gross
6489f1bfef prep web for release 2023-12-21 17:38:56 -07:00
Carson Gross
b1e15c08cc more release prep 2023-12-21 17:37:15 -07:00
Carson Gross
66599ef887 Merge branch 'master' into dev
# Conflicts:
#	www/content/docs.md
2023-12-21 17:28:58 -07:00
Carson Gross
98334ea5b2 update version 2023-12-21 17:27:52 -07:00
Vincent
23d473291d
Updated mocha, tests now work with node 20 (#2122)
* Updated mocha, tests now work with node 20

* Update package-lock.json

* Enable Node CI for v2.0v2.0 branch (#2123)

Run tests for v2.0v2.0 branch too

* Bump CI's node version to 20.x
2023-12-21 16:54:02 -05:00
Vincent
0bfef443c5
Enable Node CI for v2.0v2.0 branch (#2123)
Run tests for v2.0v2.0 branch too
2023-12-21 16:32:24 -05:00
Vincent
67cfbcf6bc update docs on oob swaps 2023-12-21 12:52:57 -07:00
Vincent
afb36ac6e6 Removed outdated note in oob swap documentation (#2119)
(cherry picked from commit 0b7a68e352bbbd54e22bf7f9e4301959cad2de99)
2023-12-21 12:45:41 -07:00
Vincent
b9da68d970
Support encapsulating oob swap elements in templates in response (#2120) 2023-12-21 12:39:23 -07:00
Alexander Petros
f4f35aec76 Format the rest of tests 2023-12-21 13:26:41 -05:00
Alexander Petros
290a78f6b0 Fix delete statement in two tests 2023-12-21 13:25:46 -05:00
Alexander Petros
4b890ce72d Run linter on the tests too 2023-12-21 13:22:10 -05:00
Alexander Petros
f0403924fb Add linter with our current violations disabled 2023-12-21 12:59:37 -05:00
Alexander Petros
1be703a142 Add standardJS format script
We're not enforcing it right now, but it's there if you want it.
2023-12-21 12:51:47 -05:00
Alexander Petros
157a06cb8d Use var at top-level
This is so that htmx can be acccessed from the window object. Not sure
if that's a good thing, but we have historically supported it and we're
not gonna stop now.
2023-12-21 12:40:03 -05:00
Alexander Petros
54c89e4e3e Add AMD distribution 2023-12-21 12:39:07 -05:00
Alexander Petros
e96037c4ed Remove extensions from dist 2023-12-21 12:36:58 -05:00
Alexander Petros
7e484f65a4 Replace UMD with distribution script
This also includes a massive reformat of the htmx code, since the
indenting was changed. I used standardJS for this.
2023-12-21 12:20:48 -05:00
Vincent
0b7a68e352
Removed outdated note in oob swap documentation (#2119) 2023-12-21 10:33:47 -05:00
Carson Gross
41e9ce3593 Merge branch 'dev' into v2.0v2.0 2023-12-20 15:48:47 -07:00
Carson Gross
b4080e71da remove psychotic test 2023-12-20 15:48:31 -07:00
Carson Gross
126187fe8e slight rename 2023-12-20 15:47:05 -07:00
Thomas Cowart
078d5da5b4
Update parseInterval to handle "0" correctly (#1835)
* Update parseInterval to handle "0" correctly

When a parameter like "0ms" is passed in to parseInterval it gets parsed to 0.
Previously this would result in a return value of "undefined" because 0 is falsy
and thus the `return 0 || undefined` statements return undefined.

The purpose of the form `parseFloat(str) || undefined` was to return "undefined" if
parseFloat failed (parseFloat returns NaN, a falsy value, if it can't parse its
argument). Unfortunately, as mentioned, parseFloat can also succeed and return a
falsy value -- when the argument is "0" (or "0.0", etc.). So the new code, rather
than depending on the falsiness of the result of parseFloat, explicitly checks for
a NaN.

* Adds some semicolons

Adds some semicolons to parseInterval (and tests) for consistency.

* Add one more parseInterval test for "0"

Adds test test to make sure parseInterval works on "0".

* Adds functional tests for every, swap, settle, throttle, and delay

* Explcitly check that setTimeout values are > 0

These values come from user settings that are read from parseInterval,
so they could be a number or undefined.

If the value being checked is > 0 setTimeout will be called with some
associated function. If the value is 0 or 'undefined' the associated function
will be called immediately ('undefined' is not greater than 0).

* Change '!== undefined' to '> 0'

`pollInterval !== undefined` is a subtly different conditional than just `pollInterval` or `pollInterval > 0` (which are equivalent). Changes the conditional to `pollInterval > 0` so as to not change the behavior but also be more explicit in the test.
2023-12-20 15:46:04 -07:00
Noa Aarts
1f4903c213
rewrite the HX-Retarget header to use extended query selectors (#2017) 2023-12-20 15:38:25 -07:00
Fernando Comunello
e9bce8db65
Improve head tag parsing on template fragments (#2024)
Fix https://github.com/bigskysoftware/htmx/issues/2018
2023-12-20 15:37:42 -07:00
Carson Gross
46a1502a84 fix the shadow root tests interfering w/ other tests 2023-12-20 13:45:13 -07:00
Carson Gross
7c1c406efc Merge branch 'v2.0v2.0' into merge-2075
# Conflicts:
#	src/htmx.js
2023-12-20 13:22:49 -07:00
Denis Palashevskii
23256373fc
Remove legacy WS/SSE code (#2095)
* apply updated patch with legacy WS/SSE removal

* remove legace WS/SSE from the test server also

* remove sse mention from getTriggerSpec()

* clean up sse.js implementation after removal of hx-sse
2023-12-14 15:54:16 -07:00
Carson Gross
63e4ef68bf Merge remote-tracking branch 'origin/v2.0v2.0' into v2.0v2.0 2023-12-14 15:52:50 -07:00
Carson Gross
6e63f1c559 Merge branch 'dev' into v2.0v2.0 2023-12-14 15:52:35 -07:00
Denis Palashevskii
41ba753518 Merge branch 'dev' into v2.0v2.0 2023-12-15 02:12:15 +04:00