Change8

@builder.io/qwik-city@1.16.1

📦 qwikView on GitHub →
3 features🐛 3 fixes🔧 7 symbols

Summary

This patch adds side‑effect‑free package flags, a new `check-client` CLI command, SPA link preloading, and several bug fixes including correct `checkOrigin` handling and service‑worker behavior.

Migration Steps

  1. If you added custom service‑worker logic, keep your `service-worker.ts` file; otherwise remove it so the `ServiceWorkerRegister` component can unregister the service‑worker.js and delete its cache.
  2. Remove any now‑unnecessary empty imports such as `import \"./preloader.js\"` since packages are side‑effect‑free.

✨ New Features

  • SPA Link navigation now preloads the next route bundles on click with maximum probability, speeding up SPA navigation.
  • All qwik packages are now marked as side effect free in their package.json, allowing rollup to tree‑shake empty imports like `import \"./preloader.js\"`.
  • Added `check-client` command to verify bundle freshness.

🐛 Bug Fixes

  • Fixed behaviour of `checkOrigin` for \"lax-proto\" in `createQwikCity`.
  • Returned 404 for invalid URLs.
  • Service worker (`service-worker.js`) is no longer unregistered when custom logic is added.

🔧 Affected Symbols

checkOrigincreateQwikCitycheck-clientSPA Link navigationServiceWorkerRegisterservice-worker.jsservice-worker.ts