Packages

@builder.io/qwik-city

1.20.4 · 9 Nov 2026MIT52.8k / weekRepositoryHomepagenpmAtom feed

Your version

1.15.0

21 Jul 2025Where it was published

1.20.4 is the newest release of 1.x.

In short

1 new5 fixed

Security

5 advisories affect 1.15.0; 1.19.2 fixes them

Release note

Minor Changes

  • ✨ Added rewrite() to the RequestEvent object. It works like redirect but does not change the URL,
    think of it as an internal redirect.

    Example usage:

    export const onRequest: RequestHandler = async ({ url, rewrite }) => {
      if (url.pathname.includes('/articles/the-best-article-in-the-world')) {
        const artistId = db.getArticleByName('the-best-article-in-the-world');
    
        // Url will remain /articles/the-best-article-in-the-world, but under the hood,
        // will render /articles/${artistId}
        throw rewrite(`/articles/${artistId}`);
      }
    };

Patch Changes

  • 🐞🩹 Change Content-Type header in qwik requests to respect RFC 7231

  • 🐞🩹 link/useNavigate with query params don't override loader/middleware redirect with query params anymore.

  • 🐞🩹 allow cross-protocol requests from the same domain

  • 🛠 update devDependencies and configurations

  • 🐞🩹 Duplicate ServerError class during dev mode

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.