Repository navigation
v2.0.0-next.43
Pre-release
Pre-release
·
8 commits
to main
since this release
Patch Changes
- 7872c96: A
basewith a trailing slash, such as Vite'simport.meta.env.BASE_URL("/app/"), no longer produces double slashes.Router.pathshrefs andnavigate("/about")now give/app/aboutinstead of/app//about, which matched no route. - 1865ccc: Stamp a pushed history entry's
_depthas one above the current entry instead ofhistory.length - 1. Browsers cap session history (50 entries in Chromium and Firefox), so once the cap was reached every new entry got the same depth. That broke scroll restoration anduseBeforeLeaveback-navigation deltas on long sessions. Entries the router did not push, such as a#anchorjump, are stamped one above the last known depth as well. - d4c5e6e: Peer dependencies on
solid-jsand@solidjs/webmove to^2.0.0-rc.19. - ea3d8ba: Server link claims no longer parse a root-relative href with
URLwhen its path and query only use charactersURLkeeps unchanged and it has no./..segments, andcomparablePathskips its parse for such paths. Other hrefs still go throughURL. On a 1000-link SSR page this cuts the claims' cost per request from about 1.2 ms to about 0.4 ms. - 8d2a9e4:
query.getno longer returns a value from a fetch that was superseded. When an older fetch for a key settles afterrevalidate()started a newer one, or afterquery.setwrote a value, its result is no longer written over the newer value. - 5f02d81: A server-side
navigate()now writes its 302 status andLocationheader into the existingevent.responseinstead of replacing the object. Headers already on the response, such asSet-Cookieand the flash-cookie clear, are kept, and a redirect issued aftercreateSSRResponsecaptured the head still reaches it. Query redirects during SSR resolveLocationagainst the router base as a result. - 7488be9: Link preloading and click handling resolve an anchor's
hrefagainstdocument.baseURI. An anchor cloned from a<template>keeps its rawhref(e.g./about) until it is adopted into the page, soeagerPreload's idle flush threwInvalid URLwhen it reached one that a transition still held off the page (#704).