February 2nd, 2023
What's Changed
- fix: vite 4.1 exports issue by @manucorporat in https://github.com/BuilderIO/qwik/pull/2794
Full Changelog: https://github.com/BuilderIO/qwik/compare/v0.17.0...v0.17.1
February 2nd, 2023
Full Changelog: https://github.com/BuilderIO/qwik/compare/v0.17.0...v0.17.1
February 2nd, 2023
This release is required to test the beta release of QwikCity.
request-handler
module not found by @jojobyte in https://github.com/BuilderIO/qwik/pull/2557GET
methods as always dynamic. by @mhevery in https://github.com/BuilderIO/qwik/pull/2568:
element pseudo-selectors by @mhevery in https://github.com/BuilderIO/qwik/pull/2738useStore
option (recursive
) by @fum4 in https://github.com/BuilderIO/qwik/pull/2752Full Changelog: https://github.com/BuilderIO/qwik/compare/v0.16.2...v0.17.0
January 4th, 2023
Install undici: https://github.com/nodejs/undici
Undici is the official polyfill of the Fetch APIs in Node, starting with Node 18, it will not be required, in the meantime, it needs to be installed:
npm install undici
yarn add undici
pnpm add undici
onClick$
by @Pika-Pool in https://github.com/BuilderIO/qwik/pull/2471useMount$
, useClientMount$
, useServerMount$
and useWatch$
with useTask$
on docs by @zanettin in https://github.com/BuilderIO/qwik/pull/2467Qwik: The Lightest, Fastest Way to Build Web Apps
by @mhevery in https://github.com/BuilderIO/qwik/pull/2498Full Changelog: https://github.com/BuilderIO/qwik/compare/v0.16.1...v0.16.2
December 17th, 2022
Full Changelog: https://github.com/BuilderIO/qwik/compare/v0.16.0...v0.16.1
December 17th, 2022
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');
}
});
}
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
.
We are updating Qwik to Vite 4!! Read about the announcement!
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!
Full Changelog: https://github.com/BuilderIO/qwik/compare/v0.15.2...v0.16.0
December 4th, 2022
Full Changelog: https://github.com/BuilderIO/qwik/compare/v0.15.1...v0.15.2