htmx 4.0.0 has been released

70 points by rcalixte


jamesgecko

I was confused about the jump from 2.0 to 4.0. Apparently this is to fulfill a promise that there would never be an htmx 3.0.

https://htmx.org/essays/the-fetchening/

nemin

I have a question towards HTMX users about something I never quite understood as an outsider: How do you ensure IDs don't "drift" over long periods of development? Is it possible to check for this at compile time or is it a "just be disciplined / write a lot of tests" sort of thing?

Example, so that you get what I mean: Let's say I have a button that swaps an element with a particular ID defined in my templates. Some other colleague comes around (or me if I'm being scatterbrained) and edits the target of this swap. Is there any mechanism that will warn me that #particular-id is now #some-other-id or am I borked unless I have made tests particularly for this element?

I am regrettably very React-brained, where I rarely ever have to mess with IDs and TypeScript catches most of the obvious mistakes, so I lack the immediate intuition to figure out how one would go about mitigating this.