Vike v0.4.269

v0.4.269
Added 4
  • `+csp.sri` (Subresource Integrity) is supported
  • `pageContext.abortSignal` is available
  • `pageContext.isErrorPage` is available
  • `provide` is available
Fixed 21
  • `+middleware` accepts an import string in a Vike extension's config type
  • `+onHookCall` logs an async hook's error once (instead of twice)
  • `getPageContext({ asyncHook: true })` returns the error page's `pageContext` upon `throw render(abortStatusCode)`
  • `pageContext.is404` is `true` upon `throw render(404)` and client-side navigation
  • `pageContext.previousPageContext` no longer keeps all past pageContexts in memory
  • `throw redirect()` and `throw render()` aren't supported for the error page behavior changed · vendor-flagged, marked in the notes below
Deprecated 1

2 changes to check, marked in the notes below

From Vike

November 4, 2026

Bug Fixes
  • +middleware accepts an import string in a Vike extension's config type (#3627) (3afdf5d)
  • +onHookCall logs an async hook's error once (instead of twice) (#3663) (25cd9a0)
  • getPageContext({ asyncHook: true }) returns the error page's pageContext upon throw render(abortStatusCode) (#3682) (c77b675)
  • pageContext.is404 is true upon throw render(404) and client-side navigation (#3633) (ec7f917)
  • pageContext.previousPageContext no longer keeps all past pageContexts in memory (#3639) (b5c67ad)
  • throw redirect() and throw render() aren't supported for the error page (#3687) (7023f02) behavior changed · vendor-flagged
  • throw redirect() and throw render() in the error page's data() and onBeforeRender() show a usage error (#3692) (c99d1a0)
  • throw render() while pre-rendering shows a usage error (instead of failing silently) (#3690) (c162329)
  • vite build through a symlinked node_modules/.bin/vite pre-renders (#3720) (c144c11)
  • an asset without file extension, e.g. import url from './LICENSE?url' (#3672) (e89c0f2)
  • call onPageTransitionStart() after routing (#3667) (ed47277)
  • client-side navigation shows the error page when the error page throws on the server-side (#3681) (97a0b44)
  • fix legacy eslint support (8e4d60d)
  • keep repeated search params upon client-side navigation and in modifyUrl() (#3645) (cd26548)
  • linked packages in a folder like app-shared/ next to app/ (instead of [Bug]) (#3666) (82b4041)
  • navigation during hydration no longer hangs (closes #3696) (#3697) (e59acec)
  • soft deprecate getPageContext({ asyncHook: true }) (#3685) (cab9d0e) deprecated · inferred
  • streamed +data promise that rejects before the HTML is rendered (#3705) (d0037a4)
  • the error page renders after a browser error on a pre-rendered page (#3717) (47b6664)
  • the setting name works when package.json has no version (#3665) (d17ed37)
  • Vike's client code no longer loads twice in dev (#3651) (2a992f1)
  • Vite's API with Vike's plugin no longer throws under node -e (#3721) (358d0af)
Features
MINOR BREAKING CHANGES

[!NOTE] We recommend ignoring MINOR BREAKING CHANGES unless this version breaks your app, see Vike Versioning.

  • throw redirect() and throw render() aren't supported for the error page

Co-authored-by: Romuald Brillout git@brillout.com

Automatically synced from CHANGELOG.md

View original

Upgraded? How did it go?

Discussion