Change8

@qwik.dev/optimizer@2.1.0-beta.2

📦 qwikView on GitHub →
2 features🔧 2 symbols

Summary

This minor release introduces support for passive JSX event handlers using `passive:eventname` markers and adds inline hints to suppress optimizer diagnostics for the next line.

✨ New Features

  • Qwik now supports passive event markers (`passive:eventname`) for JSX event handlers, usable with matching `on*$/document:on*$/window:on*$` listeners for events like `touchstart`, `touchmove`, or `scroll` to enable passive browser listeners.
  • The optimizer now supports inline `@qwik-disable-next-line` hints to suppress specific diagnostics (e.g., `preventdefault-passive-check`) on the subsequent line.

Affected Symbols