Change8

@qwik.dev/core@2.0.0-beta.31

📦 qwikView on GitHub →
2 features🐛 4 fixes🔧 4 symbols

Summary

This release introduces lazy cache invalidation via negative intervals in useAsync and allows passing context info to asyncSignal invalidation. Several bugs related to Vite serving, DOM insertion crashes, preloader scheduling, and CLI startup dependency loading have also been fixed.

✨ New Features

  • The useAsync function now accepts a negative interval to invalidate the cache without recalculating, enabling lazy cache invalidation.
  • asyncSignal.invalidate(info: unknown) now allows passing an info object to the calculation function, which can be used for cache busting requests during reloading.

🐛 Bug Fixes

  • Fixed an issue where the qwikloader emitFile was incorrectly triggered in Vite serve mode.
  • Resolved a crash that occurred when inserting DOM nodes near an errored host.
  • Improved preloader scheduling to ensure large preload batches yield more reliably in the browser.
  • Fixed an issue where cli.mjs eagerly loaded migrate-v2 code at startup, causing ERR_MODULE_NOT_FOUND errors in third-party apps if migrate-only dependencies (ts-morph, ignore, semver) were missing.

Affected Symbols