<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/htmx-4-0-ships-on-fetch-npm-supply-chain-worm-hits-openapi-react-query-codegen-aq5vjyszv" -->

---
title: htmx 4.0 ships on fetch(), npm supply chain worm hits...
description: htmx 4.0.0 landed today with a full rewrite from XHR to fetch() and several breaking behavioral changes worth knowing before you upgrade. A supply chain attack...
canonical: https://daily.dev/posts/htmx-4-0-ships-on-fetch-npm-supply-chain-worm-hits-openapi-react-query-codegen-aq5vjyszv
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: htmx 4.0 ships on fetch(), npm supply chain worm hits openapi-react-query-codegen | daily.dev
og:description: htmx 4.0.0 landed today with a full rewrite from XHR to fetch() and several breaking behavioral changes worth knowing before you upgrade. A supply chain attack...
og:url: https://daily.dev/posts/htmx-4-0-ships-on-fetch-npm-supply-chain-worm-hits-openapi-react-query-codegen-aq5vjyszv
og:image: https://api.daily.dev/og/posts/aq5vJYsZV.png
og:image:alt: htmx 4.0 ships on fetch(), npm supply chain worm hits openapi-react-query-codegen
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# htmx 4.0 ships on fetch(), npm supply chain worm hits openapi-react-query-codegen

**[Web Digest](https://daily.dev/sources/webdev_digest)** · 4 min read · 2 upvotes · 0 comments

## Summary

htmx 4.0.0 landed today with a full rewrite from XHR to fetch() and several breaking behavioral changes worth knowing before you upgrade. A supply chain attack on @7nohe/openapi-react-query-codegen published ten malicious npm versions yesterday — if you use that package, assume credentials are compromised. Electron 44 drops macOS 12 and 32-bit binaries while landing a rearchitected clipboard API. Laravel starter kits quietly switched from ESLint/Prettier to Vite+ as the default toolchain.

## Content

**TLDR:** htmx 4.0.0 landed today with a full rewrite from XHR to fetch() and several breaking behavioral changes worth knowing before you upgrade. A supply chain attack on @7nohe/openapi-react-query-codegen published ten malicious npm versions yesterday — if you use that package, assume credentials are compromised. Electron 44 drops macOS 12 and 32-bit binaries while landing a rearchitected clipboard API. Laravel starter kits quietly switched from ESLint/Prettier to Vite+ as the default toolchain.

---

## htmx 4.0.0 rewrites internals from XHR to fetch(), ships breaking changes

After eight months of development, htmx 4.0 moves its HTTP layer from XMLHttpRequest to fetch(). Three things will break existing codebases: attribute inheritance is now explicit (you need an :inherited suffix), event names follow a new htmx:phase:action pattern, and history no longer uses localStorage by default — back navigation re-fetches instead. On the upside, 4.0 ships built-in morph swaps via an improved idiomorph algorithm, a new <hx-partial> tag for out-of-band-style swaps, and a handful of new extensions including hx-preload, hx-download, and streaming support. Worth noting: npm's 'latest' tag stays on 2.x until early 2027, so you won't accidentally pull this in. htmx 2 is supported indefinitely. [Read more](https://daily.dev/posts/Pxpf7uj8g)

## Supply chain worm published ten malicious versions of @7nohe/openapi-react-query-codegen

Ten compromised versions of the TanStack Query code generator hit npm on August 28, exploiting a GitHub Actions release workflow that let anyone trigger a publish by commenting 'npm publish' on a pull request — no role check, no approval gate. The malware downloads the Bun runtime silently, then harvests GitHub, npm, PyPI, RubyGems, AWS, Azure, and GCP credentials, reads SSH keys and .env files, targets crypto wallets and Claude session data, and spreads to every other package the victim maintains. The kicker: npm provenance attestations showed clean because the workflow itself was legitimate, so 'npm audit signatures' gave these packages a green light. Known-clean versions are 0.5.3, 1.6.2, 2.2.0, and 3.0.2. If you installed any affected version, rotate everything now. [Read more](https://daily.dev/posts/y3ASNOLwa)

## Electron 44 drops macOS 12, 32-bit binaries, and rearchitects the clipboard module

Electron 44 ships Chromium 152.0.7977.54, V8 15.2, and Node v24.18.1. The clipboard module is now async and aligned with the W3C Clipboard API, with a ClipboardItem class — and it's been removed from renderer processes entirely, which is the breaking change most apps will hit. macOS 12 support is gone (13+ required), Windows and Linux 32-bit ARM prebuilt binaries are dropped, and ANGLE is now statically linked on all platforms. There's also new cross-platform window state persistence and improved Linux desktop integration that no longer requires libunity. Electron 41.x.y is end-of-life. [Read more](https://daily.dev/posts/PMO0n56Xx)

---

## Also notable

- **Laravel starter kits switch to Vite+ 0.3.0, dropping ESLint and Prettier:** All Laravel starter kits (React, Vue, Svelte, Livewire) now ship with Vite+, replacing ESLint and Prettier with Oxlint and Oxfmt under a single 'vp check' command, with lint and format config moving into vite.config.ts; existing projects can run 'vp migrate' to start the transition. [Read more](https://daily.dev/posts/FwuUlRGi1)
- **Sentry JavaScript SDK v11 changes data collection defaults, breaking prior sendDefaultPii=false behavior:** Sentry's v11 JavaScript SDK replaces the boolean sendDefaultPii with a granular dataCollection option, but v11's defaults are more permissive than v10's restrictive baseline — teams that left sendDefaultPii unset or false need to explicitly configure dataCollection to preserve their old behavior. [Read more](https://daily.dev/posts/ShIHprvmF)
- **Polypane 30.1 adds selector specificity highlighting and server vs. rendered HTML diff:** Polypane 30.1 ships specificity highlighting for CSS selectors in the elements panel (including nested selectors) and a sources panel toggle to compare server-sent HTML against rendered HTML, plus WCAG 2.2 target size checks and a Chromium 152 upgrade. [Read more](https://daily.dev/posts/3ctiFs0Tm)
- **Lovable migrated an 850K-line, 400-route app from Next.js to TanStack Start:** Lovable ran the migration behind a proxy in parallel, and the React Status roundup also flags Oxlint adding React Compiler-based lint rules claimed to be 10x faster than the Babel plugin, plus releases for Ionic Framework 9, Material UI 9.4, and nuqs 2.10. [Read more](https://daily.dev/posts/Y6WZgYVkE)
- **Brave 1.94 ships email aliases and OPAQUE-based login (RFC 9807) on desktop:** Brave's new email alias system generates per-site forwarding addresses to block server-side email matching, backed by a login system using the OPAQUE protocol (RFC 9807) so your password never reaches Brave's servers even as a hash — five aliases are free, mobile support is planned. [Read more](https://daily.dev/posts/M8xqDF6gf)

## Similar posts on daily.dev

- [The htmx loophole](https://daily.dev/posts/the-htmx-loophole-ymjkruyu8) · Bytes by ui.dev · 13 upvotes · 1 comments
- [HTMX 4.0: Hypermedia finds a new gear](https://daily.dev/posts/htmx-4-0-hypermedia-finds-a-new-gear-swv18ajzs) · InfoWorld · 119 upvotes · 4 comments

---

Tags: [#security](https://daily.dev/tags/security), [#webdev](https://daily.dev/tags/webdev), [#npm](https://daily.dev/tags/npm), [#electron](https://daily.dev/tags/electron), [#htmx](https://daily.dev/tags/htmx)

[View this post on daily.dev](https://daily.dev/posts/htmx-4-0-ships-on-fetch-npm-supply-chain-worm-hits-openapi-react-query-codegen-aq5vjyszv)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"DiscussionForumPosting","mainEntityOfPage":"https://daily.dev/posts/htmx-4-0-ships-on-fetch-npm-supply-chain-worm-hits-openapi-react-query-codegen-aq5vjyszv","headline":"htmx 4.0 ships on fetch(), npm supply chain worm hits openapi-react-query-codegen","text":"htmx 4.0.0 landed today with a full rewrite from XHR to fetch() and several breaking behavioral changes worth knowing before you upgrade. A supply chain attack on @7nohe/openapi-react-query-codegen published ten malicious npm versions yesterday — if you use that package, assume credentials are compromised. Electron 44 drops macOS 12 and 32-bit binaries while landing a rearchitected clipboard API. Laravel starter kits quietly switched from ESLint/Prettier to Vite+ as the default toolchain.","url":"https://daily.dev/posts/htmx-4-0-ships-on-fetch-npm-supply-chain-worm-hits-openapi-react-query-codegen-aq5vjyszv","datePublished":"2026-08-29T04:18:01.177Z","dateModified":"2026-09-13T20:55:39.643Z","author":{"@type":"Organization","name":"Web Digest","logo":"https://media.daily.dev/image/upload/s--C833eNQW--/f_auto,q_auto/v1773839396/logos/webdev_digest?_a=BAMAMiiu0","url":"https://daily.dev/sources/webdev_digest"},"interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"isPartOf":{"@type":"WebPage","url":"https://daily.dev/sources/webdev_digest","name":"Web Digest"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Web Digest","item":"https://daily.dev/sources/webdev_digest"},{"@type":"ListItem","position":3,"name":"htmx 4.0 ships on fetch(), npm supply chain worm hits openapi-react-query-codegen"}]}
```

