Skip to content

@qwik.dev/core@2.0.0-rc.6

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 06 Dec 15:03
· 1 commit to main since this release
b119295

Major Changes

  • ✨ remove QwikManifest.core, so pages without event handlers or visible tasks no longer preload core (by @wmertens in #9406)

  • ✨ remove the component and hook entry strategies; use smart and segment instead (by @maiieul in #9480)

Minor Changes

  • feat!: default loader serialization to auto, including unrendered fields in html; set defaultLoadersSerializationStrategy to never for previous behavior (by @Varixo in #9430)

  • ✨ experimental binaryState flag serializes container state as a byte stream (by @wmertens in #9493)

  • ✨ core and the router start loading with the page's head, without waiting for its stylesheets, and core's handlers load with core. A Vite plugin can link its own chunks the same way with registerEagerModules. (by @maiieul in #9658)

  • ✨ remove the statePrewarm render option; state is always restored lazily (by @maiieul in #9580)

Patch Changes

  • 🐞🩹 vite plugin failing to load vite in strict package layouts (in 062a66c)

  • 🐞🩹 every dynamic import was treated as slow to download when ranking preloads (by @wmertens in #9495)

  • 🐞🩹 bundle totals counted shared imports once per import path (by @wmertens in #9495)

  • 🐞🩹 a computed read through context or props stops working when the reading component unmounts (by @Varixo in #9624)

  • 🐞🩹 keep the dev server running when SSR can't serialize a function (by @mmporong in #9538)

  • 🐞🩹 vitest no longer reuses modules transformed with other experimental flags (by @wmertens in #9493)

  • 🐞🩹 async computeds read inside a streamed <Pending> no longer get aborted during SSR (by @wmertens in #9499)

  • perf: <Show>, <Each>, <Pending>, <Reveal> and <Catch> load only on pages that render them (by @wmertens in #9406)

  • refactor: core's own event and task handlers load as regular library segments (by @wmertens in #9406)

  • refactor: core's own QRLs compile like any Qwik library's (by @wmertens in #9406)

  • 🐞🩹 dev mode shows errors in Vite's overlay, instead of a wrapper that could freeze the page or lose elements (by @maiieul in #9628)

  • 🐞🩹 keep the dev server running after any qwik error during SSR, such as a missing context provider (by @rapporian in #9675)

  • 🐞🩹 keep devtools compatible with current framework apis and dependencies. (by @JerryWu1234 in #9507)

  • 🐞🩹 highest priority preloads go out before speculative ones after an early click (by @maiieul in #9479)

  • 🐞🩹 a click before the page's load event is preloaded like one after it (by @maiieul in #9625)

  • 🐞🩹 prevent malformed qwik-json from calling registered server functions while it is deserialized (by @Varixo in 6c086c6)

  • 🐞🩹 prevent malformed qwik-json from exhausting server memory or changing shared objects (by @Varixo in e665568)

  • 🐞🩹 prevent deeply nested qwik-json from using seconds of server cpu (by @Varixo in f3198e9)

  • 🐞🩹 prevent malformed qwik-json from crashing the server with an unhandled rejection (by @Varixo in 6374f06)

  • 🐞🩹 prevent nested stores from causing exponential deserialization work (by @Varixo in a4abcc1)

  • 🐞🩹 a computed object key in a reactive prop no longer throws a ReferenceError (by @maiieul in #9487)

  • 🐞🩹 a signal read through a non-null assertion or cast no longer throws a ReferenceError (by @maiieul in #9487)

  • perf: with the preloader on, a streaming page loads core as soon as a handler needs it (by @wmertens in #9406)

  • 🐞🩹 an event handler's code starts loading at the event, without waiting for core or the streamed state (by @wmertens in #9496)

  • 🐞🩹 events fired while a page loads no longer report a false sym: error when a navigation cuts off the load (by @rapporian in #9677)

  • 🐞🩹 show completed updates without waiting for unrelated component code (by @Varixo in #9475)

  • 🐞🩹 keep the scoped style class on elements rendered by inline components (for example <Resource>) when they render or re-render on the client (by @tzdesign in #9483)

  • 🐞🩹 content projected into a Slot that is removed and shown again no longer keeps a second running copy or shows stale data (by @rapporian in #9671)

  • 🐞🩹 member reads keep their values across writes in optimized code (by @Varixo in #9604)

  • 🐞🩹 keep projected content in place when preceding keys change (by @ZainnQureshii in #9503)

  • 🐞🩹 building a library with bind:value or bind:checked failed with the TS optimizer (by @wmertens in #9406)

  • 🐞🩹 migrate-v2 handles more deprecated and removed v1 APIs (by @wmertens in #9548)

  • 🐞🩹 migrate-v2 no longer runs out of memory in large monorepos (by @maiieul in #9680)

  • 🐞🩹 migrate-v2 restarts with more memory when the machine has it (by @maiieul in #9680)

  • 🐞🩹 running migrate-v2 again migrates the files that still import Qwik 1 in an app already on v2 (by @maiieul in #9680)

  • 🐞🩹 update mixed sync and async computeds when tracked dependencies change (by @Varixo in #9662)

  • perf: the router loads as one chunk with the page, so a navigation or a form action no longer waits for it (by @maiieul in #9623)

  • perf: JavaScript loaded with the page no longer competes with the LCP image (by @maiieul in #9626)

  • 🐞🩹 clean up invalidated tasks without waiting for stale work (by @akasakariko in #9630)

  • 🐞🩹 avoid extra sibling scripts during dev hmr (by @azizu06 in #9577)

  • perf: more chunks are preloaded ahead of time, handlers first (by @maiieul in #9537)

  • 🐞🩹 a build base holding </script> or a quote broke the preloader's inline scripts (by @wmertens in #9406)

  • 🐞🩹 the preloader fetches equally likely bundles in the order the page hints them (by @wmertens in #9519)

  • 🐞🩹 highest priority chunks were preloaded at low priority after a lower preload hint (by @maiieul in #9410)

  • 🐞🩹 a preload that fails is tried again once, and again when the network comes back (by @maiieul in #9412)

  • 🐞🩹 the preloader no longer fetches chunks of components the app doesn't use (by @wmertens in #9505)

  • perf: handlers the user sees, hovers or focuses are preloaded first (by @maiieul in #9541)

  • 🐞🩹 /* @__PURE__ */ annotations no longer make the Vite plugin probe Qwik libraries for decorators (by @wmertens in #9494)

  • 🐞🩹 every failed chunk download fires qerror and no longer triggers an error boundary (by @maiieul in #9591)

  • 🐞🩹 a qerror listener that fails no longer fires qerror again in a loop (by @maiieul in #9592)

  • 🐞🩹 the optimizer created a module's qrls before the statements above them had run (by @wmertens in #9549)

  • 🐞🩹 writing a state property such as 0note no longer replaces a root (by @wmertens in #9493)

  • 🐞🩹 prevent unintended server-prefixed functions from becoming callable remotely (by @Varixo in 1dfe56d)

  • 🐞🩹 an app's own codeSplitting group that matched Qwik's files left the page without its qwikloader and its preloader (by @maiieul in #9658)

  • 🐞🩹 production SSR threw a missing chunk error for qrls of imported functions, like $(importedFn) (by @wmertens in #9529)

  • 🐞🩹 prevent stale fields and cache mutations in resource results (by @Varixo in #9567)

  • Preserve projected slot content when a reused JSXOutput is rendered by a remounted component. (by @fixfon in #9397)

  • 🐞🩹 useStore returns the store it is given instead of wrapping it in another store (by @wmertens in #9493)

  • 🐞🩹 the server manifest now includes the bundle graph it declares (by @wmertens in #9490)

  • perf: the server and serializer bundles share core's code instead of copying it (by @wmertens in #9406)

  • 🐞🩹 the optimizer now emits _jsxSplit for dynamic JSX tags with on*$ props (including shorthand { onClick$ }, lowercase onclick$ and computed keys), so event listeners are registered when the tag is a string at runtime. passive:* directives on such tags are kept too. A computed string event key like ['onClick$'] in jsx() props is now handled like onClick$. (by @fixfon in #9356)

  • 🐞🩹 reduce preloader size and unused graph initialization work (by @maiieul in #9479)

  • 🐞🩹 running a task or computed no longer loads its component's render code (by @maiieul in #9477)

  • perf: ssrPreloads links the bundles the preloader would fetch first, ranked by probability (by @wmertens in #9520)

  • 🐞🩹 keep static attribute bindings out of streamed segment state (by @akasakariko in #9631)

  • 🐞🩹 prevent client disconnects from crashing streamed SSR servers (by @Varixo in abc25dd)

  • 🐞🩹 useStyles$ styles could come out empty in production builds (by @wmertens in #9523)

  • 🐞🩹 the TS optimizer no longer hoists store reads that call an import into _fnSignal (by @wmertens in #9494)

  • 🐞🩹 the TS optimizer keeps object keys inside computed keys of hoisted _fnSignal (by @wmertens in #9494)

  • 🐞🩹 the TS optimizer no longer breaks a Qwik library's re-exported isServer or helper-named bindings (by @wmertens in #9494)

  • 🐞🩹 same-file helpers with handlers or tasks no longer break with the TypeScript optimizer (by @maiieul in #9159)

  • 🐞🩹 the TS optimizer no longer breaks modules that declare several constants in one statement (by @wmertens in #9494)

  • 🐞🩹 the TS optimizer tracks signals read through !, as and satisfies in JSX (by @wmertens in #9494)

  • 🐞🩹 visible task chunks below the fold are preloaded (by @maiieul in #9616)

  • 🐞🩹 a visible task whose element is removed while its trigger loads no longer logs a Q24 error (by @rapporian in #9678)

  • 🐞🩹 maxIdlePreloads: 0 turns speculative preloading off instead of being ignored (by @maiieul in #9534)

  • Updated dependencies [8df62e9, ce30588, 6a1b1f0, 609b5a8, ffa2938, fecd951, 27b694e]:

    • @qwik.dev/optimizer@3.0.0-rc.12