Carson Gross 发布 htmx 4,并保持 npm 的默认设置不变
经过八个月的重写,htmx 从 XMLHttpRequest 转向 fetch,新增了流式处理和 DOM 变换,并将版本 2 作为 npm 的默认版本保留到 2027 年。
By RuntimeWire Staff · Published
Primary source: htmx
为何重要
htmx 4 扩展了服务器渲染 HTML 的模型,而不是通过一次重大版本发布来强制迁移。Gross 认为,通过谨慎的兼容性处理和务实的部署选择,htmx 将比更快的升级周期能保持更久的有用性。

Carson Gross, the Montana State University professor who created htmx, released htmx 4.0.0 on August 28th after eight months of work on the JavaScript library. The release replaces its XMLHttpRequest-based internals with the browser's fetch API, adds built-in morphing and streaming features, and changes several behaviors that had accumulated since htmx's intercooler.js origins.…
When you purchase through links in our articles, we may earn a small commission. This doesn’t affect our editorial independence.