Repository navigation
v4.10.1
wcstack 4.10.1
A patch with the three decisions the author made on 2026-10-31 about what landing city-library in examples/ left open (docs/v4-direction-2026-10.md, ja, §5.10; docs/seam-apps.md): <wcs-view-transition> no longer holds a page's first paint, a <wcs-link> with a query is the current page only on the same query, and the router's path is documented as coming a frame after its other outputs under view transitions.
Upgrading
@wcstack/router: a<wcs-link>whosetohas a query isaria-current="page"only when the URL's query equalsto's. On a page whose URL has parameters the link does not name, the link is no longer marked (4.10.0 marked it); addmatch="prefix"to keep the mark, asaria-current="true".@wcstack/view-transition: no transition is started before the page has drawn its first frame. A test that countsdocument.startViewTransitioncalls right after load waits for a frame first (requestAnimationFrame, thensetTimeout): a browser that has just started may take seconds to draw its first page.
Added
examples/city-library: the seam app, with its e2e spec — a city library's patron site in Japanese, English and Arabic for keyboard and screen-reader users, on this tree's dists underWCS_LOCAL=1, without the workarounds 4.10.0 made unnecessary: the page kept atpublic/site/index.htmlwithsrc="../app.js"so that the browser and the lint both found the state (root-absolutesrc, read withwcs-validate --root=public), the 422's focus moved from$renderedCallbackand the login that navigated from it oncelocalStorageheld the token (both in a$watchagain), a getter that readquery.next(if: query.next), Tokyo-timeIntl.DateTimeFormatformatters for the hours, due dates and fee dates (thedate/timefilters with the zone third), and a skip link whosehrefthe page built from the router's path (<a href="#main">). The lint gives the page 0 errors, 0 warnings and 0 infos. The spec (18 tests, 7 in Firefox too) checks the keyboard path from a search to a placed hold, the 422's focus on a field already marked invalid, the cancel dialog's focus, the skip link on a deep URL,aria-currentonly on the shown page, the login under<wcs-view-transition>, a hold becoming ready written once into the page-level region, the hours from Los Angeles and London, three languages and the switch between them, reduced motion, and a reload and Back / Forward on every page; with the 4.9.0 state and router, each removed workaround fails its own test. Landing it found that with<wcs-view-transition>a state update before the first paint holds the page's first paint in Chromium until the transition's callback, that the router'spathlagsrouteNameby the transition's frame (a 401 in it gave the login the page being left asnext), and that a page-1 link withoutpageis still the current page everywhere under the 4.10 query rule (docs/seam-apps.md).
Changed
@wcstack/router: a<wcs-link>whosetohas a query is the current page (aria-current="page") only when the URL's query equalsto's — the same parameters with the same values, in any order. 4.10.0 allowed parameters the link does not name, so a page-1 link that leavespageout (to="?q=a", the clean URL of a new search) was the current page on every page, and thecity-libraryauthor's own "Previous page" on page 2 still read "current page" (landingcity-library, docs/seam-apps.md). Withmatch="prefix", a link with a query is also active, witharia-current="true", where the URL's query has its parameters and more — a facet link on a sorted list — as on the paths under it.
Fixed
@wcstack/view-transition: no transition is started before the page has drawn its first frame — the update is applied at once, as in a hidden tab. Data fetched on load landed before the first frame, and the transition it started made Chromium hold that frame — the static text included — until the update callback ran: a minimal page drew at 250–300 ms instead of 20 ms, up to 2.5 s in Playwright's headless shell (landingcity-library, docs/seam-apps.md). Firefox drew first. The page has drawn once a Paint Timing entry exists or a frame has passed since the tag was connected; a test that counts transitions waits for a frame first, since a browser that has just started may not draw its first page for a while. The e2e fixtureview-transition-first-paintstarted a transition before the first frame in 9 runs of 10 with the 4.10.0 dist.
Documentation
- The router's two moments:
data,params,routeNameandsearchParamsare sent before the route's content is placed,path— "the navigation has finished" — after it, and with<wcs-view-transition>the content is placed a frame later, in the transition's update callback. For that frame the state'spathis still the page being left: code that runs then for another reason (a response, a timer) readsrouteName/params/searchParamsorlocation(router and view-transition READMEs, docs/timing-and-firing-contract.md §21.1). Landingcity-libraryfound a 401 in that frame sending the reader back to the page being left after the login; the author decided to document the two moments rather than merge them (docs/v4-direction-2026-10.md §5.10, which records the three decisions from the landing).
Subresource Integrity
dist/auto.min.js is a self-contained bundle with no static imports, so a single integrity
attribute covers every line of wcstack that runs. Digests below are computed from the published
tree, so you can verify them against this tag without trusting the CDN.
<script type="module"
src="https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/auto.min.js"
integrity="sha384-Mm2+cZoftpcuw0BQ2hp9lDlhu8GBfYrK2UcF0//E67rARZ/mQTatz0c9xKbVV7yD"></script>Use the versioned cdn.jsdelivr.net path above rather than esm.run: esm.run redirects to
jsDelivr's +esm endpoint, which re-bundles the package, so its bytes are not the published
bytes and no fixed digest can match them.
Loading several packages? Use one pinned tag per package — each bootstrap is self-contained,
so the tags fetch in parallel and each keeps its own full-coverage digest. Do NOT use
jsDelivr's /combine/ endpoint: concatenated minified ESM does not even parse (top-level
identifiers collide), and jsDelivr itself rules out SRI for combined responses. See
docs/sri.md §3.1.
All packages
| Package | integrity |
|---|---|
@wcstack/accelerometer |
sha384-YBgYOVJE0c8ajo/5Sj9+C3kIIQbmc9P8EPUNiDnRXWXiorlqTh6OU9xkmLueH7Dn |
@wcstack/ambient-light-sensor |
sha384-lSoAuY/EHffFK+Bm0hiE9BdrAYxfY1P2H4ajbhrsXpH+Km4uXrh//Lfl9ur69ZD5 |
@wcstack/audio |
sha384-giYJzv++u1BQVWRKCMiDovaKVXogSzQibO1QwHC2idYOBEyYzVoVXWxsUisYpk5b |
@wcstack/autoloader |
sha384-qpCtGGsWqLMSzJWboB3j1Gzn1dbab3XIOsuHTHl9AZL0MqkKTaesECWpdpj+STeF |
@wcstack/broadcast |
sha384-KPCbEnNCzhnOtbvueJsHgcMKhEGfxnhmYLW/YrznkqMH6bah4a1tTUyEQjUXnpKp |
@wcstack/camera |
sha384-zUN2/EIurWIHpT50dXLaPeOgx0tNyC4dKtzo6RH0UPzmUrhbusNUadDLEjnQvGcx |
@wcstack/clipboard |
sha384-wslEkzluzqZkaYzK/n7FWNOLZeMrOSV0HzJNJRkW4uq8rKQTrm3m4Uwvf9g0yF/T |
@wcstack/contacts |
sha384-Qk552qOuMl7rrQthQ4c4WIOssNhp4qT9xiqskNh4OcZJ7Zk34QSv2zivCG4L8Erh |
@wcstack/credential |
sha384-AofrcrTYkcrBQu2KWsr98ZLhsFclsKp3tQgoqYSh+OKLth3W+WhzwPaPyz0MN4H7 |
@wcstack/debounce |
sha384-rQeNohI8J71HlwPGLtk/0AAVAww1yAULhDCFT3soP1SSEkLwsoWQqpGuoXiP+Kcq |
@wcstack/defined |
sha384-7NMPZ02MYk2GYyDD9cugOrct1V/tz9AUSiJO+inTc8T5IficdatfWowxWZVhQWDC |
@wcstack/devtools |
sha384-PMySirYaRkKl4lZEQk2XhTvMOumXaj2hv9TO2y9G+O8ipobKTyByEwgQhTfx6sqF |
@wcstack/eyedropper |
sha384-y3JsHKeM43m0vHDV4lddqHI7jjHjSYolnoIYProP6YZ5BNF4HlDimTN3UVz/BjEm |
@wcstack/fetch |
sha384-bZCYfNg4iVBjPLtJmjlFnb+Y2cliZY/CM478wLF7cCwyS2Dg5cgItwepFCYHr9TS |
@wcstack/fullscreen |
sha384-ze4M6Gr6gNYKKxIX/Rwr3hLkiAehc4Rye3Dhp35Vms0g9MBmFx4QWD979HRTAuiZ |
@wcstack/geolocation |
sha384-Eqkz3MZxooWsS7T7qyE1ubb2QrQ62Devwmy8fgn07Wx+g/NDwSjyxj9z5zZcnnmD |
@wcstack/gyroscope |
sha384-oFUUfVs+vLlJnSr7VdGxIXyIVS5L5Pg3Z4EwsFQJNjO427NaG5SYPxs/9E7NYQXX |
@wcstack/idle |
sha384-/+ChUe2kGQGz6FCh6YXfTvG905jcLj1+0Qk58RYph1do7eNwvdCyYqsaI1acJdRe |
@wcstack/intersection |
sha384-Hzt/s7/emjE3NcTilWJZHTUR0eqfJJOg/mXIA1u5qm5o+VpIg+7iSpCkChZxRhGE |
@wcstack/magnetometer |
sha384-zpanfj636MuH3l1dkAcHw02qa2M+qIkTbXqLjc69gXoriW2LXkAkeTbR1wl0qeXH |
@wcstack/media-query |
sha384-9f3yQ3C0L0w0oYyLEgo3WixflJoeSyzJeJ60LzzayQC5nqyoW+KPLSD3YcOqkdy6 |
@wcstack/midi |
sha384-nP/9EpiSien+ZYlx88jIF3PmjPHgfxpjBuVCDlSyZcAImjteIBlTRXUrGTENOTMB |
@wcstack/network |
sha384-T+kK+XvCvMEsIJOuOd0LsI7djVHB7mUvqw0AewvWxURTCcxowMjBg+TNTCNeZpZC |
@wcstack/notification |
sha384-csNK7/6/b5Ft4Iu9yRlC7XyoJQiPwjsqiFkVZJDCt6PdSOTMX9bN1ILrhe1o0kQd |
@wcstack/permission |
sha384-2uSlQt0NPMn3kzGaVye+n5/iKJwfQfs5NW2M22auhVP/O17OXwQA8foEvdSNzU+z |
@wcstack/picture-in-picture |
sha384-CQiWiO/MlJwkJnFPKAEkohYMEfRdxNajYCvrX9Y5ZBlGQkGHwJYXabAJ/B/dYnL7 |
@wcstack/pointer-lock |
sha384-O8tDyi2THSAKYRPeDP2gte25YJXb0pBMx4eGsWB+9WqwtHkjxZSqZpb9mU6dtxjQ |
@wcstack/raf |
sha384-vjR/vel116z0v/FuTBU+6lerva2a5+c56rJSY9EjBp0qzMjJlnuA8euVx9pjn6/+ |
@wcstack/resize |
sha384-BGL6yBmD5W2z1YKj5oINNs8WQjbrETr8bZixcuztzoaugvSfzt4gKqiI84YztVZR |
@wcstack/router |
sha384-jCaY1iNfdd5pTMvawPk2qNlvKyWJXDB1rsD3Ocvxu7PlarnHDu7yjdYH+kkpiSKy |
@wcstack/screen-orientation |
sha384-ba1tGc3gKh0lVDN+HEqfz5FHFIhkbvWRqJDeN3CFf9FRU56hJP9AoW9yOW9YFXQW |
@wcstack/share |
sha384-g9+1gkeKPFcM6Luc9hvkECB22bb4DzV8QQbl6M1Kq0lVe2KYL6gPzncD3jbUx3kP |
@wcstack/speech |
sha384-kbDT+2v/h7+qhLrryJ8Y1rSQj+mksDWEDedcQQpSaMEsRHGiX/nQ6mcJh8yP7OHv |
@wcstack/sse |
sha384-bWBGMKmf4FUImoP0b6kdmYNB/FD83X+mYctgZvnqkj/ePrg7u5d1yGY/ujsD3HE3 |
@wcstack/state |
sha384-Mm2+cZoftpcuw0BQ2hp9lDlhu8GBfYrK2UcF0//E67rARZ/mQTatz0c9xKbVV7yD |
@wcstack/storage |
sha384-rFvtlkk6xfyVtYPRMxOyRrHxCh3epixcRqV28VG4YIWAjgMHxsKTclxx/OM++723 |
@wcstack/tilt |
sha384-5LF6ZFtJhNAd1GYs8tCN/Oa4p6QobtXj+g5J1X1rVcNshfctfA9oUQTDHRPKKAoJ |
@wcstack/timer |
sha384-UPHvAODmfmZMagF3BkorjmLnzjL5qEnABWGqE9nVW4xAhf7cahhSa8gGmLLHCR2O |
@wcstack/upload |
sha384-6s2Dm+yBuZU/snZ+3MCqKFtAEwZG1U1loJoPFE2IywUSO596h5VJmVwkzRBB7rBV |
@wcstack/view-transition |
sha384-StBNoZUSHeuChzt1QYoheWyW4MjiyElAf+vkoZNsrY4lOHIw+OJSYKWX2T0olast |
@wcstack/wakelock |
sha384-Tx6SmHAcQq322Q6Tm6qiVon+TXufEjGkNxO1YyVOvERRNLS0/WaTmpZQbk2Oj+lb |
wcstack |
sha384-adYZSx+EibrJEhrgaLb0rRzUerQTEosh9NgwLHjfC/Q0LGCOimQ/pD1oC7xPaaHA |
@wcstack/websocket |
sha384-NRTXaQZBBip59M17kLNcUVkvWkqw2vBLOEsCzcVCPP5phaY96CFhNf1BuYQm01MT |
@wcstack/worker |
sha384-fqqJCzogD+1dTuSfUvx7azuUwhqonHNq8pKVA1VPXjS4rBAuXkZZg4XFRbFWf8XE |
The same digests double as CSP script-src hash sources: CSP3 allows an external script whose
integrity matches a hash in script-src, so no separate value needs computing. Chromium, Firefox
115+ and Safari implement that matching; an older browser blocks the script, so keep the CDN host
listed if you support one. Which parts of wcstack a hash can and cannot cover: docs/csp.md §3.
The split entries of `@wcstack/state` (import map `integrity`)
Every file the split entries can request — the entries, the split auto entry, each feature and each
content-hashed chunk. Keep the imports you use and the whole integrity list: an entry for a
URL nobody requests is ignored, and a requested URL without one is not checked — both silently.
See docs/sri.md §5.1.
<script type="importmap">
{
"imports": {
"@wcstack/state/core": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/core.js",
"@wcstack/state/features/devtools": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/devtools.js",
"@wcstack/state/features/diagnostics": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/diagnostics.js",
"@wcstack/state/features/formats": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/formats.js",
"@wcstack/state/features/list-keys": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/list-keys.js",
"@wcstack/state/features/native-commands": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/native-commands.js",
"@wcstack/state/features/recursion": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/recursion.js",
"@wcstack/state/features/scopes": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/scopes.js",
"@wcstack/state/features/ssr": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/ssr.js",
"@wcstack/state/features/temporal": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/temporal.js"
},
"integrity": {
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/auto.js": "sha384-UoEtDNKO5WU789nX5EkNfmny1nOQX6se2Y/UuAr0yHw+ziiBpTNxgb4wACscmnge",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-65B2K2XD.js": "sha384-58/lDeC9psKO1ToFR4yVOu5/oe8trW5fTBR4QD6UuoGv4cGBWo+Vq9CVxjTQTySZ",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-FFXJVUTT.js": "sha384-LFa+DA7SZNZtTH4VPNmn1LMn882mnWBTcB7XOvWQ7oVcdWiztCpNIbMi15hYFKD9",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-FT7OW7CG.js": "sha384-6ANpFsamxuudW3NvUUrgsXn1uLPErel3LGpw5ibV4riBLrZuZcOOTzgXHBJFcV5y",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-GU7IAIWW.js": "sha384-RfZs9dyzeklXI251DFfT8gqIQxLPlrVooTpABoEPSTKxDGOkJxGeCoMwZPn1soeM",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-IWY3I2DG.js": "sha384-vMqUZC0S5W7/qIbymmFcHAJG06x5bA3jO++J7QuKnsIWktcoOiactok1tlrJf+fW",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-JCQTA35B.js": "sha384-H+Gts7GXcITAp9vaOw4dC7A70+1lF6FzgHDZ101MuggCACZDWK6QWthOxkib67tA",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-MZVF2WEY.js": "sha384-Mc5H4ZVpqgKNK9qCy6Kj577ctsH87i0RlW3DRzH31pKfSTvDK5xJBogpYxQ030qF",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-PTFWXISY.js": "sha384-VMr7sfwy9krphHVKb6nr1abAANdtWfq8Od0HHJ2MxggMiCa1KwV3Zq+I+hqCNCgk",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-SANIIUS2.js": "sha384-Ky4Q13tVLJxlvTiZhHrb4xVJeuedbMvN0oN764Bx9Ad1+UNOVdVF0z2pRuJErZIN",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-SJRJALR4.js": "sha384-konL7zMZg0hcDL8gGh7DnbpCr8iQ/8V3+VKpC4oPmVQ/v1DLbI33vXDn6ZrLrHZk",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/chunks/chunk-UE6JK2ZA.js": "sha384-Q/ExCbfYGUaERhWSlI4e3mjbxBwMCqSQNxJZp0Ii7Iz4iZXTo1HCvCl6Eb/i0Kbn",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/core.js": "sha384-+aSLcwl5iA6Z20vjhtDYhhxN87gRONfaaQkaFOSzMUjZvH4au5K6w6BSFSsiAB6K",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/devtools.js": "sha384-vwNENW5BUW60dRNK6Kgmv2DLeDK5UY1yMRzKrSuOROPgvPM/mtEIFlVGlKr8STk8",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/diagnostics.js": "sha384-NtwNTMLuxj+yyz6RvPMznTsi08JaAzF7bQ/o0MxM2548E5QYHLsy7CYIPSFtcf4m",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/formats.js": "sha384-JIowkaGl9pfZlX5+szR6g6Qcu+BVCnmDzd5B6L9bFyrjQrwhsuju0WSaUDoQlatd",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/list-keys.js": "sha384-bxP9Z6VPux9O2Erb4zPUN9wI28aaSlH4U91HTLpv4xJYk7Wbzx2ny5Bu+z1GnmKM",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/native-commands.js": "sha384-I85AmfH2VP7bA5r6YD3hXUtExVKHE+3IfvwqyWnXz64fr8wApuieeY9NwVXqWyUm",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/recursion.js": "sha384-YWTBYWymCYfzZv/FjYOn55H5CeEwlqzZfcoVTzvJntLvnnvN940CKfbMkhzepgju",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/scopes.js": "sha384-YbJDNKZ+jlTbxrjLWYZUw7GYnX38omSk+lEVL+mskZwum0lFRcBSxADzOBI8jDD9",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/ssr.js": "sha384-kC8E1VrFIBgrldc8rmxkSoGFCCRLdGLgEFinQXnaL83w4lC6S/f+MnB2iwsWdtK6",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.10.1/dist/split/features/temporal.js": "sha384-kgf+N+9l/piUyFCO7jaXtAqGmcT58Bx/2NJK7aK7bccMAVCTu22XNzskcieqTWIB"
}
}
</script>Machine-readable: sri.json attached to this release.
No single-tag bootstrap, so not listed: @wcstack/lint, @wcstack/server, @wcstack/signals, @wcstack/testing, @wcstack/typescript.
What's Changed
- chore: after 4.10.0 - re-record the size baseline, set the extension to 2.10.0 by @mogera551 in #569
- examples: the city-library seam app, with its e2e spec by @mogera551 in #570
- docs: record the 4.10.0 release by @mogera551 in #571
- fix(view-transition): start no transition before the page has drawn by @mogera551 in #572
- fix(router): a link with a query is the current page only on that query by @mogera551 in #573
- docs: the router's path comes a frame after its other outputs under view transitions by @mogera551 in #574
- chore: prepare 4.10.1 by @mogera551 in #575
Full Changelog: v4.10.0...v4.10.1