Skip to content

The latest news releases from the Qwik team

November 15th, 2024

@qwik.dev/core@2.0.0-alpha.0

2.0.0-alpha.0

A complete rewrite of the core internals by @mhevery, @Varixo , @wmertens and more contributors

Major Changes

  • 💥BREAKING: remove HTML-related types. Use PropsOf instead. (by @wmertens in #7045)

  • 💥BREAKING: useComputed no longer allows Promise returns. (meaning it is strictly sync) Instead, use useSignal and useTask together to perform async signal updates (by @wmertens in #6907)

  • qwik-labs package has been removed in favor of experimental features. (by @shairez in #7025) So the "Insights" vite plugin and components have been moved to core as an experimental feature.

    In order to use it, you need to -

    1) add insights to the experimental array in vite.config.ts:

    qwikVite({
      experimental: ['insights']
    }),
    

    2) Import and use the qwikInsights vite plugin from @qwik.dev/core/insights/vite:

    import { qwikInsights } from '@qwik.dev/core/insights/vite';
    

    3) import the <Insights> component from @qwik.dev/core/insights and use it in your root.tsx file: :

    import { Insights } from '@qwik.dev/core/insights';
    
    // ...rest of root.tsx file
    
    return (
      <Insights publicApiKey="..." postUrl="..." />
      /* ...qwik app */
    );
    
  • 💥BREAKING: the Typescript exports were trimmed down to the bare minimum. If there are types you are missing, open an issue. (by @wmertens in #7045)

Minor Changes

  • ✨ new integration tests that are running with the optimizer (by @Varixo in #7055)

  • ✨ new simpler signals implementation with lazy useComputed$ execution, only when is needed (by @Varixo in #7055)

  • ✨ added the scheduler to sort chores execution and have more predictable behavior (by @Varixo in #7055)

  • ✨ new faster serialization system (by @Varixo in #7055)

  • ✨ new CSR and SSR rendering written from scratch to speed up performance, improve code readability, and make the code easier to understand for new contributors (by @Varixo in #7055)

Patch Changes

  • 🐞🩹 do not trigger effects if computed value is not changed (by @Varixo in #6996)

Contributors:

  • mhevery
  • Varixo
  • wmertens
  • shairez
  • qwik
1
...
4
5
6
...
30