Repository navigation
v4.32.0
wcstack 4.32.0
The four questions the street-reports seam app left open (docs/v4-direction-2026-10.md §5.26), decided on 2026-11-28, all as recommended (§5.28): an in-page "leave?" dialog for the router, <wcs-sse> and the first link in WebKit, two apps with a generated schema in one lint run — and, in the repository, the first failure of a flaky e2e test kept as an artifact. @wcstack/state does not change (core.min.js stays 20,476 B).
Upgrading
@wcstack/sse: abeforeunloadwith nonavigateevent just before it closes the stream a task later — the address bar, closing the tab, and the first<wcs-link>of a page load in WebKit, where it does not close at all: WebKit'snavigatecomes within that task.connectedturnsfalsethen. Abeforeunloadright after anavigate(a link out of the page) still closes at once.@wcstack/lint(and the VS Code extension 2.25.0): two application manifests passed on the command line whosestateSchemas name different state files are no longer awcs/manifest-state-collisionerror: each page is checked against its own app's schema, and may get findings it did not have.@wcstack/router: a guard's redirect goes through the router's newguardRedirect(), which callsreplace()— a test that stubsreplace()still sees it.
Added
@wcstack/router: a page's own "leave?" dialog —leaveHold(input, attributeleave-hold),leaving(output) and the commandsproceed()/stay()on<wcs-router>. WhileleaveHoldistrue, a navigation to another route — a link, Back / Forward,navigate()/replace(),navigateUrl/replaceUrl— is held instead of made, and its destination is put inleaving; the page shows its dialog and answers withproceed()(the held navigation as it was: a push, a replace, or a step through the history to that entry) orstay().leaveConfirmasked with the browser'sconfirm()only, and a page that wanted its own dialog — React'suseBlocker— held a route with the same guard on every other route, built its nav links by hand and undid Back withhistory.go(1)(the street-reports seam app). Not held: a query-only navigation, one to the path already in the URL, the first route,proceed()'s navigation and the redirects of a guard. A Back the browser does not let the page cancel is taken back to the entry the page was on; in a browser without the Navigation API, Back / Forward are not held. A navigation that leaves the page still getsleaveConfirmand the browser's prompt. The bounded exhaustive suite of navigations (navigation.exhaustive.test.ts) playshold,proceedandstaytoo, and found one case while it was being built: a query-only navigation while a guard was pending was held, because the route had not moved yet (docs/v4-direction-2026-10.md §5.28).
Fixed
@wcstack/sse: in WebKit, the first<wcs-link>after a page load no longer reconnects the stream. WebKit firesbeforeunloadbefore thenavigateevent, even for a navigation the router keeps in the document; 4.30 learnt that order from the first link and stopped closing onbeforeunloadafter it, so that first link still closed the stream and opened it again, and what the server sent in the gap was lost (an example's "leaks no event streams" test counted six connections for five, in WebKit only). Where the order is not known yet, abeforeunloadwith nonavigatejust before it now closes the stream in the next task, and does not when anavigatecame meanwhile — WebKit's comes in the same task. Abeforeunloadright after anavigate(the standard order of a page that leaves) still closes at once. Measured in Chromium, Firefox and WebKit: the next task comes beforepagehide, and Firefox logs nothing (docs/v4-direction-2026-10.md §5.28).@wcstack/lint(and the VS Code extension): two apps with a generated schema could not be checked in one run. Two application manifests passed on the command line that both declare astateSchemawere awcs/manifest-state-collisionerror, and neither schema was used — even when each names the state file it was generated from (stateSource, since 4.26) and so is the contract of its own pages only. This repository's CI passes every page and manifest in one run, so the street-reports example landed without its generated manifest. Now two that each name a different state file are not a collision: each page gets the schema of the file its root<wcs-state src>loads, and a page that loads neither gets none. Two that name the same file (.tsand.jsalike), a set where one names none, and two that cannot be compared (an absolute and a relative path) still collide, and any collision leaves every schema unused, as before (docs/v4-direction-2026-10.md §5.28).
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.32.0/dist/auto.min.js"
integrity="sha384-75i3qQRKCS4qEWlIbM2+AyeQh+bX3EGtafkGVDuDI+iwgdYRh3grI44XL9fy5ncU"></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-pxY4/ad2jPfpGcToRlxx3ubwhXZF+maudBQI0c8+13pz5u01sleovsmd0qDJweF+ |
@wcstack/ambient-light-sensor |
sha384-1zwqQ8HQPxC6nvgkuG1JHAAewckgvhP18Fvc+QPJyFIkXagoh7+pIG7eObgDddHx |
@wcstack/audio |
sha384-Ly6oInlThUdOjIPIDCThUhT+wRvCrLkZJdeFAWdbRiJnfvgxjlU76oTaYGhsLHGq |
@wcstack/autoloader |
sha384-+DoQrTG63ra802PiuQKuCbmay44zziabPUefjjbLr0lKXsMWc37qyKvterAJNHVv |
@wcstack/broadcast |
sha384-iSCj8xht22tuUsLYkSMEPPH3G5ZXGwGI/HtJzwIbighct0mSeuUSKMIxdO0zW6Hi |
@wcstack/camera |
sha384-7jNdxH/e3jAZ9yEocmZutvzsU67srkAc8YV8/E9WHk3JXdJna/Hs1TQhjTHrbT0O |
@wcstack/clipboard |
sha384-vV3T7s3kG3DFvX48Uxdpy785Qteng660LRe4hC6jGOYLPSwMs4ZQ/47OHUiVV9Mv |
@wcstack/contacts |
sha384-1CH05lpkCnQoPqzVJzTd7sOUPOV5blv2AExiQBO/dgj/2Nfcyzs7rA2N4eI9ek/K |
@wcstack/credential |
sha384-UINU2E6jVBZpciGJCTCB2QAuoFZIjNJKyc1TGPiWY6GqviFkRbpjbW6phe67sX3j |
@wcstack/debounce |
sha384-KBZs9mXs2b7Ww0TYvgRVwQEN3l0yWd4u5omL6mM4DVG+bA7IN8/1B3CuS5yhRmeL |
@wcstack/defined |
sha384-qCw0oeF6yaLKTWffyRS47JrJHIzelqN8DmqXBCABR95eiXMMrnGk46gHd7G0N/b1 |
@wcstack/devtools |
sha384-CsGVaTSogVTIIGSspe65Birk+PHlq3FD40ff5k9Lq/JsT9EDkXpJ3HB2k226QLSi |
@wcstack/eyedropper |
sha384-zX/7pLD/l6EoPn2mTL9dP2+J4T/IJ/+Djg2jMC9v2S/XjK141Jd4NbluorqJKANE |
@wcstack/fetch |
sha384-Cjdp3RGbQq+bz/poM12mizWdQO4nJ9Kkjyo99mouPgWYN7Es4O1FaA/USthgs1lo |
@wcstack/fullscreen |
sha384-wdC2b2XX+ReYEt5Q4+NMlnCQbgzUsmPsRFlkbMva9baLDQvWPkltZKJGho4JrRwy |
@wcstack/geolocation |
sha384-xIx3KwcYPTdHjR9lWWcOnjn1jrrY/bnqswNTnscYWL8jwsFaA7EET72U/j2fwqE5 |
@wcstack/gyroscope |
sha384-Enoum5qGJg747xX6dKGGP11fU3eqq84m3zbkMI8RrEVMrZo5p2ZLxRmzrLwfOq47 |
@wcstack/idle |
sha384-I8Xk3QX+JBT1OaO1LaVSOqTTH0QBZ3WUUJ9CWK+BZiqnQ6Lo0fbiLLXg5+foHRRz |
@wcstack/intersection |
sha384-HXFpPhzs2FaOh2T52McfjgIn20NpsWjU2A9z687yruclVWzcF86kRynkpsk8f2eo |
@wcstack/magnetometer |
sha384-CI0WSENgj5BzdiA8WNL7jkym/K8l5zBWBxRjsdv4Htv+K+05i/2CR58SxG0OKVvj |
@wcstack/media-query |
sha384-llIGPMcpOd9SXIXv88j+79aLY+8rrYtU5tZXB8oH+LvFda217PNXna4h4OHukZNG |
@wcstack/midi |
sha384-MSwoLuGCtE/EJt3KDeC1ho2LLj9guwNAtCOtNfooEKU47ds6UIFx/TQYU+Z++Ejf |
@wcstack/network |
sha384-1L4KQNSzbxc1yGTRn8FA0KiR+yqAJuwcjNN1QuCIlrc6p0k4XMOvDDJk4/x0GCEK |
@wcstack/notification |
sha384-5MK+P2gzh5IWbxuGDB001h3jnERToo5tVHmVBCd/aQuj0f23qE5Q2WxtIt9FthV+ |
@wcstack/permission |
sha384-XY0b60hGJ+FHMity9QOl8Zn6ZFYZIaU0jEsdsF9SPCMcH+KYx41DvFH2naxev8lJ |
@wcstack/picture-in-picture |
sha384-ppn8jysL/NULFJ0wzZc+GbXlmkBeaD75VR3B0JGL+jKA5pUeNI2YCGlvUWLAebek |
@wcstack/pointer-lock |
sha384-nCSM9uwoS2zjhdt55KYDKpbJuKoy5C8O4NPwe9CVnsX7h6Soq347H8BIO0gmSkIE |
@wcstack/raf |
sha384-PWySvm0I27/xINwowWJx7DnusTn/ZPYnRrOB5pLalvRhiKdN6l/bPdYpkbX2p62p |
@wcstack/resize |
sha384-9+KQQsqGFf1KYMxtMpPQJJNofMsFpY+vmR9P4ATeVCy9NVP4t76xjQAcwZ8cRtHv |
@wcstack/router |
sha384-eRlTSjdvw+jn83nJnecAGB/KqWT2nJ5wi/OhK1v1BfkpN+JLjvY9/IvJIMS9VhZC |
@wcstack/screen-orientation |
sha384-Rvt5XUDA/+hR/ersBTZEdiKh/eAU7u4+qQUK+w9Dl8klKYZZ2YCIrNf7BkDn2IIG |
@wcstack/share |
sha384-h5OHZugusP8h0CHpTdjL/MtAGzMstDNvOiHmW5Shd0ZANF/4aqhv6DgkyDpWVt7Q |
@wcstack/speech |
sha384-6rogrCoB7r0AQqitlzgUSjpQaBu2dWhPLnQ/y9oLi1qiQYFfh18C2qNIZEPGw1kO |
@wcstack/sse |
sha384-oaCMEE8MFzc2PzIxUa7Tx+/B1C8J4DdTXPwkz5nKK/O9pg2h0Lu4AGuz3Rzi/7T5 |
@wcstack/state |
sha384-75i3qQRKCS4qEWlIbM2+AyeQh+bX3EGtafkGVDuDI+iwgdYRh3grI44XL9fy5ncU |
@wcstack/storage |
sha384-JgKssc2gNecMTQhNeZp5sp3HcVC6KwdvQwpShJuNQD6spJwm0eQYf2WQO4gjF1be |
@wcstack/tilt |
sha384-Qx3TYMI0btdC0IAGLfWjQUb3UakEdqEGjR1+ZSxHgsSCymIn7O4WpK/MF9w/lUh4 |
@wcstack/timer |
sha384-CwkfAAZ9pNX3QIKd42pqWn2NkZi2p1e0tq2qQoqYm7a4cTW2ioaDS3gLhT7K0Y97 |
@wcstack/upload |
sha384-ih+zOK22LWdPtt7aI26kq5/DMBIMAgPTSiai40KdTTpP7+RNKJNGVA+qXfC3xU4O |
@wcstack/view-transition |
sha384-KYuHivKh+/festaDuXVX6ySMyRbQHjE0O9FTINdnTV+ngUr/7PDVP16r3GiMfQ7+ |
@wcstack/wakelock |
sha384-AGRqhR4bSfI7BbeGE3XLyQX9UUt90Tzxbdq6GiKOVChAtrH6gkYnSPqCAdlxo+fe |
wcstack |
sha384-EmPSGnqqohC/7S1rRETVsVhpw+3tpJxFO6n7IjGg3YlOckkG1vF4SmVNxEloBz96 |
@wcstack/websocket |
sha384-LOrmHpvFoJvQQ8AJfwG2+lcVhHJQxMQ3LDcdvNDA836zr5L5z0KH3tHqeGouvT0I |
@wcstack/worker |
sha384-RV6li/qVRjixTn707vJmCxJQ9QfDmsLSSfVeaNmVldRPkdjTJEFMEZ9va1Uxxfuc |
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.32.0/dist/split/core.js",
"@wcstack/state/features/devtools": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/devtools.js",
"@wcstack/state/features/diagnostics": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/diagnostics.js",
"@wcstack/state/features/formats": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/formats.js",
"@wcstack/state/features/forms": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/forms.js",
"@wcstack/state/features/list-keys": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/list-keys.js",
"@wcstack/state/features/native-commands": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/native-commands.js",
"@wcstack/state/features/recursion": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/recursion.js",
"@wcstack/state/features/release": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/release.js",
"@wcstack/state/features/scopes": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/scopes.js",
"@wcstack/state/features/ssr": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/ssr.js",
"@wcstack/state/features/temporal": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/temporal.js"
},
"integrity": {
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/auto.js": "sha384-GyUnv0rBt+GC4ZvZGQXOj6nhGQqieTdwND2tZTFfDCTWHZFZ2gQ0wGTNn+gCGqOB",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-BDD4MKZJ.js": "sha384-bd9WH8c2G0LE2qOkdX5vLrhaU32iws0toQgIp+z4WLNrkaVdNCox9X97z7/wxbcr",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-CER7M3PO.js": "sha384-BiXxzb8nKYjUU23B39iptRwGqibdGxvSrxcl79ov6Blr9HX18WnOz1Isab42quQy",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-EK5MPKIO.js": "sha384-aLQxmXtu9QDHBpsHqYEhOy7jUqgygjd5SQvY35Pcm/14WVxAgDXMJFV6s6uexkaD",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-EXFFYTBZ.js": "sha384-Rdoj8oOeh/kxUD8BHb4FpWoFS6x4sAMesgHyUmNvU7chel9Pd94smDC/kMJKVf0Y",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-FGYCJ6GC.js": "sha384-HImKjZHbva0WanEN5U2hctuMQi04XMiHFBLi5dydnbbypiRy1zpSg1JsqyKkhsLf",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-HEFLIGBC.js": "sha384-tMEtETt2kPiCRF65IJiBp8HEW/Y1Bwi6T2mNWoA7i9vM1FRCIuB6vRIdVuKMXzM/",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-LVJIDPSE.js": "sha384-s948siVBiTFPVYxNo2IHA3DGOGQHNONG7O4xbpCS6PjIbiJB00s5i/G0Vpcs2fP0",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-OVLL4H2K.js": "sha384-/YpMqdeSATOQOKAgLZgz+l+msENVVwrwgvz/AZTXtvkaoNPfqLeth4UuTiToWK53",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-RFYKFRQD.js": "sha384-9dEUTHwTOtJEsSXT/clYqomZot/bb5owGqkxieRRj0Xs/SH8cjshmmjQzID9DFN3",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-SZLRBQX7.js": "sha384-xNVWbQ1E5tj/absXbAkYceNxV7zCVgXLHytGPx0tppDLxDYxZ8amExHDwTKViuO2",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/chunks/chunk-V6L2RIWZ.js": "sha384-8FD1VH1+Uy6snYIw17FRp6eDzsrOVzjM2K/gslqTAend1QRPyX3CU6ol6rw8J7wY",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/core.js": "sha384-JRQepU0eaIy1buZll6o0aWxNSBe6VhQ4GKbHDFNzBo0tzSTF6IXq2c4mZPNw040J",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/devtools.js": "sha384-tyepk0+7Gm6AKGICbnRj3secvs8k9r083CS1SMMw463tEUt5EEBdRwdkrLEu0HyV",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/diagnostics.js": "sha384-yWx6y8wcOC5dJ72fvYsz4z0/4YKXhno4IBV42+Hrr3UrZNOj+3IIE63FGL0EWt71",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/formats.js": "sha384-/hizX8xSrkWkZ15zMscTZHXemJPyWGHKIhsAa7OHpWk7IbP6jAIJ3MOuML/b2nHx",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/forms.js": "sha384-8Eb7O/O5jHx/PkdDsaMRUv5AH4dmPmWPMsBv6SneRVSaBgLdUGSSwgbkEXiu3Xy+",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/list-keys.js": "sha384-Xxgwt4kZNpmk7psuFD58EDnkKVGoT3L08AGR+qa+cKqj9sOEOORKKVui1dC+OjwH",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/native-commands.js": "sha384-NrbQWni21sJIDSfqwr76ypNXBgtlynUH/NmvgYRVoA4ftr/r/y33rouCgIpyI1RH",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/recursion.js": "sha384-vJbtXfLYfeRffVu8UhIjjDcRkHPYKdLisjhHJ1LTy59YnauioN9iN3eEePxeUlOC",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/release.js": "sha384-hexK1+Lh93iJx2DtRV21jSBtLWqkXnyeiGZdx4h3FsOaXgelo6u1rI+v0CwsWAwm",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/scopes.js": "sha384-2vPbudfTId/rFBXWbApC00XbwXmfkBfX+kvDRwFT0QHhmYFKhCD7+SDCJ0GH3/y/",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/ssr.js": "sha384-iy711Td8/Q9wFcpKLXDAl8lChpsuk2NSFx3cg1qKHJ5NTtP5nuTBUKLzoa3opLZ7",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.32.0/dist/split/features/temporal.js": "sha384-UwYZOqC/FLi92c+WaMjPo9CHNNrUpWV0127eq4hK8RtjeiAVQvii30bYSCBidpi0"
}
}
</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.31.0 - re-record the size baseline, the extension to 2.24.0 by @mogera551 in #769
- docs: the record of 4.31.0 - the release, the follow-ups, three flaky e2e tests by @mogera551 in #770
- docs: the extension 2.24.0 is on the Marketplace - SHA matched, tagged by @mogera551 in #771
- fix(examples): stamp-rally stays on the page after signing in again; two e2e checks that passed by an instant by @mogera551 in #762
- docs: #762 merged with no flaky e2e run, and this machine's plugin at 4.31.0 by @mogera551 in #772
- fix(sse): the first link in WebKit no longer reconnects the stream by @mogera551 in #773
- ci(e2e): keep the first failure of a flaky test by @mogera551 in #774
- feat(lint): two apps with a generated schema in one run by @mogera551 in #775
- feat(router): a page's own "leave?" dialog (leaveHold, leaving, proceed, stay) by @mogera551 in #776
- docs: the author's decisions on §5.26's four open items (§5.28) by @mogera551 in #777
- docs: prepare 4.32.0 by @mogera551 in #778
Full Changelog: v4.31.0...v4.32.0