Skip to content

The latest news releases from the Qwik team

September 17th, 2024

@builder.io/qwik@1.9.0

Patch Changes

  • ✨ Introducing the experimental[] option to the Vite plugin. This allows you to opt in to features that are not guaranteed to have a stable API. (by @wmertens in #6880)

  • 🐞🩹 fix typo in using useStore() (by @zaynet in #6875)

  • 🐞🩹 gracefully handle image dimensions service errors (by @JerryWu1234 in #6855)

  • ✨ Lib builds no longer perform qwik transformation. (by @wmertens in #6850)

    This prevents using unstable internal APIs, and doesn't make a difference for the end user. Library authors are strongly urged to push a new library patch version built with this qwik version, and to add | ^2.0.0 to their accepted qwik version range.

  • 🐞🩹 SSG Link component strips search parameters (by @JerryWu1234 in #6778)

  • 🐞🩹 The PrefetchServiceWorker now has a more efficient graph and only prefetches direct imports and, at a lower priority, task QRL segments. This greatly improves its load performance. (by @wmertens in #6853)

Contributors:

  • wmertens
  • zaynet
  • JerryWu1234

September 17th, 2024

@builder.io/qwik-city@1.9.0

Minor Changes

  • (EXPERIMENTAL) valibot$ validator and a fix for zod$ types. (by @fabian-hiller in #6752)

    To use it, you need to pass experimental: ['valibot'] as an option to the qwikVite plugin as such:

    // vite.config.ts
    
    export default defineConfig(({ command, mode }): UserConfig => {
      return {
        plugins: [
          // ... other plugins like qwikCity() etc
          qwikVite({
            experimental: ['valibot']
            // ... other options
          }),
    
        ],
        // ... rest of the config
      };
    }
    
  • (EXPERIMENTAL) usePreventNavigate lets you prevent navigation while your app's state is unsaved. It works asynchronously for SPA navigation and falls back to the browser's default dialogs for other navigations. To use it, add experimental: ['preventNavigate'] to your qwikVite options. (by @wmertens in #6825)

Patch Changes

  • 🐞🩹 added .ico to be detected by isStaticFile (by @intellix in #6860)

  • 🐞🩹 fixed delays caused from inefficient Service Worker prefetching (buffering) (by @shairez in #6863)

Contributors:

  • fabian
  • wmertens
  • intellix
  • shairez

August 8th, 2024

@builder.io/qwik@1.8.0

Minor Changes

  • Updated SWC parser means that the optimizer now understands import ... with syntax and that enums are replaced with numbers where possible. (by @wmertens in #6005)

  • The optimizer plugin will now rely on Rollup to group QRL segments. It will only provide hints on which segments fit well together. The result of this change is that now code splitting happens during the transform phase only, and other Rollup/Vite plugins (such as css-in-js plugins) can transform the code before Qwik transforms it. (by @wmertens in #6670)

  • The default asset filenames in the build have changed. Now they are under assets/hash-name.ext, so they are clearly separated from code. (by @wmertens in #5745)

Patch Changes

  • The fileFilter option to qwikVite() now always allows *.qwik.{m,c,}js files so that QRLs in libraries can be processed. (by @wmertens in #6760)

Contributors:

  • wmertens
1
2
3
...
2930