HTMX 2.0.0-alpha1 has been released
v2-0v2-0.htmx.org
v2-0v2-0.htmx.org
Not very disappointed, but I do wonder why it doesn't ship with SSE as standard.
https://htmx.org/docs/#websockets-and-sse
our feeling was that, to do those things right would require a fair bit of code and it wasn't fair to all htmx users to make them pay that freight, as these were more advanced features that many people would not be using
another feature we didn't include was idiomorph-based swapping out of the box:
https://htmx.org/docs/#morphing
that was really hard to not include because it's a neat algorithm that i came up w/ and it's going to be included in the next version of Rails, but, again didn't feel it was fair to make everyone pay for it
javascript fatigue:
longing for a hypertext
already in hand- the docs are not complete
- the extensions website is not up (https://extensions.htmx.org, lmao)
- we haven't done any field testing yet (this is us field testing)
that said, if you are using htmx and are willing to test out the alpha version and report issues, we would appreciate it
our hope is that most htmx users will be able to upgrade w/o any major changes
I did try to make more things configurable, for example the response code handling is now declarative rather than requiring you to hook into an event & you can turn off attribute inheritance if you don't like that
conceptually the library didn't change at all
Unpoly is so much better in every way you look at it.
Most people seem to be using it just because “it’s popular” which ironically is the reason most people use React as well.
Unpoly also has many more features you’d have to add code for.
Once you get past the simple landing page or hello world app all those things you call “bloat” come in super handy. Otherwise you end up with a custom undocumented untested unproven probably insecure rushed out implementation of what the “bloated” solution gives you. Same applies for Unpoly vs htmx. Unless you’re building just a hello world landing page, as I said.
htmx is lower level but has a bit more mechanical sympathy w/normal HTML: more work for some things, but less magic too. it's focused on generalizing hypermedia controls, as outlined here:
https://hypermedia.systems/extending-html-as-hypermedia/
there is a terrible simplicity to htmx that I think many developers find attractive after a decade of heaping complexity on top of web development
my ability to market htmx has surprised me as well, i have been silly on twitter for a long time now, but for whatever reason it recently started working