Skip to content

Version Packages #7486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: upcoming
Choose a base branch
from
Open

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Apr 4, 2025

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to upcoming, this PR will be updated.

Releases

@builder.io/[email protected]

Minor Changes

  • ✨ Major improvements to prefetching with automatic bundle preloading (by @wmertens in #7453)

    • This removes the need for service workers, and instead utilize modulepreload link tags for better browser integration.
    • Improves initial load performance by including dynamic imports in the prefetch
    • Reduces complexity while maintaining similar (and even better) functionality
    • Enables some preloading capabilities in dev mode (SSR result only)
    • Includes path-to-bundle mapping in bundle graph (this improves the experience using the <Link> component, AKA "single page app" mode)
    • Server now has built-in manifest support (so no need to pass manifest around)
    • Moves insights-related build code to insights plugin

    ⚠️ ATTENTION:

    Keep your service worker code as is (either <ServiceWorkerRegister/> or <PrefetchServiceWorker/>).

    This new implementation will use it to unregister the current service worker for your users.

    Both are deprecated and do nothing except unregistering. Without unregistering, the previous version will continue to intercept fetch requests.


    You can configure the prefetch behavior in your SSR configuration:

    // entry.ssr.ts
    export default function (opts: RenderToStreamOptions) {
      return renderToStream(<Root />, {
        prefetchStrategy: {
          implementation: {
            // Enable debug logging for prefetch operations
            debug: true,
            // Maximum simultaneous preload links
            maxSimultaneousPreloads: 5,
            // Minimum probability threshold for preloading
            minPreloadProbability: 0.25
          },
        },
        ...opts,
      });
    }

    For legacy apps that still need service worker functionality, you can add it back using:

    npx qwik add service-worker

    This will add a basic service worker setup that you can customize for specific caching strategies, offline support, or other PWA features beyond just prefetching.

Patch Changes

  • 🐞🩹 now qwikloader is loaded only once in all cases (by @wmertens in #7506)

@builder.io/[email protected]

Minor Changes

  • 🛠 the service workers have been deprecated and replaced with entries that unregister them. If you have it enabled in production, you can remove it after a while once you are sure all your users have the new version. (by @wmertens in #7453)

[email protected]

[email protected]

@github-actions github-actions bot requested review from a team as code owners April 4, 2025 19:47
@github-actions github-actions bot force-pushed the changeset-release/upcoming branch 2 times, most recently from 0d7e346 to 147ffa4 Compare April 6, 2025 20:28
@github-actions github-actions bot force-pushed the changeset-release/upcoming branch from 55baad0 to 3bfca8a Compare April 9, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants