Skip to content

Releases: QwikDev/qwik

v0.16.1

17 Dec 18:45
18f3032
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.16.0...v0.16.1

v0.16.0

17 Dec 16:11
91ad272
Compare
Choose a tag to compare

Introduces several deprecations in aim to simplify the lifecycle model and prepare Qwik for the future and stable release.

useTask$()

The deprecations include useMount$(), useWatch$(), useServerMount() and useClientMount$(), all of them now become useTask$()!

  • useMount$() -> useTask$()
  • useWatch$() -> useTask$()
  • useServerMount$() -> useTask$() + isServer
  • useClientMount$() -> useTask$() + isBrowser

You might be surprised, how all of them can be replaced with useTask$()?

Actually, useWatch$() already behaved like useMount$() when no track was used.

Please look at the updated lifecycle docs:
https://qwik.builder.io/docs/components/lifecycle/

Old code:

import { useMount$, useWatch$ } from '@builder.io/qwik';

export function MyComponent() {
  const signal = useSignal(0);
  useMount$(() => {
    console.log('mount');
  });
  useWatch$(({track}) => {
    track(signal)
    console.log('watch');
  });
  useServerMount$(() => {
    console.log('server mount');
  });
  useClientMount$(() => {
    console.log('client mount');
  });
}

New code:

import { useTask$ } from '@builder.io/qwik';
import { isServer, isBrowser } from '@builder.io/qwik/build';

export function MyComponent() {
  const signal = useSignal(0);
  useTask$(() => {
    console.log('mount');
  });
  useTask$(({track}) => {
    track(signal);
    console.log('watch');
  });
  useTask$(() => {
    if (isServer) {
      console.log('server mount');
    }
  });
  useTask$(() => {
    if (isBrowser) {
      console.log('client mount');
    }
  });
}

Deprecating node-fetch in favor of undici

Future versions of node will include fetch() natively. This version is based on undici.

In order to prepare for a future where we dont need a polifyll, we are deprecating node-fetch in favor of undici.

Vite 4

We are updating Qwik to Vite 4!! Read about the announcement!

QwikCity!

Soon we will release 0.1.0 of QwikCity features a brand new API that will drastically simplify how you build your apps. It's called Server Functions and it's gonna be awesome!

Coming soon!

What's Changed

New Contributors

Full Changelog: v0.15.2...v0.16.0

v0.15.2

04 Dec 17:25
9259429
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.15.1...v0.15.2

v0.15.1

04 Dec 12:07
4695409
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.15.0...v0.15.1

v0.15.0

01 Dec 17:58
5780b8f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.14.1...v0.15.0

v0.14.1

24 Nov 08:10
2792ace
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.14.0...v0.14.1

v0.14.0

21 Nov 20:34
77e11b6
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.13.3...v0.14.0

v0.13.3

12 Nov 12:05
044bba3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.13.2...v0.13.3

v0.13.2

12 Nov 10:07
46dd0f3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.13.1...v0.13.2

v0.13.1

11 Nov 17:21
0770973
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.13.0...v0.13.1