Repository navigation
v4.31.0
wcstack 4.31.0
From an outside evaluation: the record of the problems met while writing a 25-day Advent Calendar series that builds a buildless tax-return draft tool on wcstack 4.28.0. The author's decisions of 2026-11-27 are in docs/v4-direction-2026-10.md §5.27.
Upgrading
@wcstack/testing:mount()rejects a page with a<wcs-state>when itsbootstraplist leaves the tag undefined. Abootstraplist replaces the default[bootstrapState]; a list with only the router left every binding as written and resolved. PutbootstrapStatein the list.@wcstack/typescript:wcs-schema emitwrites the values of anenumand the members of ananyOfin a fixed order (by value). A manifest written by an earlier emit still passescheck, which now ignores that order; the nextemitrewrites those arrays once.@wcstack/typescript:wcs-schema emitandcheckwarn about each list whose rows have no type (dependents: []).@wcstack/lint: new findings may fail a page that passed--strict. With astateSchema, a path where the schema says nothing (items: {}, a value typednull,any) is checked as without a schema — a warning where it was silent.wcs/getter-untracked-readreports a getter that reads a list's rows (this.incomes.reduce((t, row) => t + row.amount, 0)) when that field is written by path: an error when a binding on the page writes it, a warning otherwise. No page in this repository changes.
Fixed
@wcstack/testing:mount()builds the page out of the document and then moves it in, so that each element connects with its children, as a browser's parser leaves a page before a module script upgrades it. happy-dom connects an element at its start tag: a<wcs-link>moved no text into its<a>, and built itshrefbefore the router had read its basename (/nextfor/app/next).@wcstack/router: a<wcs-link>that connects before any router is in the document waits a microtask before it builds its anchor, and throws only if there is still none. A page inserted after the tags were defined, with its navigation before the<wcs-router>—mount()under happy-dom — failed withwcs-link is not connected to a router.A link'shrefis also built again on each location change, so a link that connected before the router had read its basename no longer keeps anhrefwithout it.@wcstack/testing: the README and the type ofbootstrapsaid to "add" the packages a page uses; a list replaces the default.@wcstack/typescript: an accessor declared for several paths (get "incomes.*.amountName,expenses.*.amountName"()) was left out of the generatedstateSchema, without a word: the key was split at.alone, and its middle segment (amountName,expenses) matched nothing. Each listed path now gets the member.@wcstack/typescript: an edit elsewhere in the state file reordered anenumwith the same values, andcheckcalled the manifest out of date: TypeScript lists a union's members in the order it first made their types.@wcstack/typescript: a list that starts empty with no type getsitems: {}, and the schema said nothing about its rows — not even the row getters declared under it — while nothing said so.emitnow names the list and the type to give it.@wcstack/lint(and the VS Code extension): adding astateSchemahid a typo it had reported. Under a list that starts empty,wcs-schemawritesitems: {}, and the lint read a bare{}as "unknown, say nothing":.deductiounder such a list was a warning without the schema and nothing with it. A schema now never weakens the check.@wcstack/lint: a total over a list's rows that a binding edits was not reported.get total() { return this.incomes.reduce((t, row) => t + row.amount, 0); }withvalueAsNumber: .amountin the rows follows rows added and removed, and keeps its value when an amount is edited: only the list is tracked.wcs/getter-untracked-readcovered an object's member (this.form.name) and left lists out on purpose (a list is replaced when a row is); a binding that writes a row's field was not counted. Reported only when the field read is written by path; read it withthis.$getAll("incomes.*.amount", []). The same shape as the street-reports seam app'sthis.cards.filter(…), left open in §5.26.@wcstack/lint: a misspelt top-level key or getter (dependentsDeductio) or an object's member had no did-you-mean; only a row's field did. The runtime named the near one.
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.31.0/dist/auto.min.js"
integrity="sha384-8wnG2pj+F/hluM6eTkIRQ1DSbqKO1HZt+zxsN8sXKf81d2OsJ+U8POVrz+IGVXCT"></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-erOK4ZMDaP8e5G3YnEJ7ms83KqxHC+uZtja4HBsCYiOwxmQyfwL0N/3NSgA95rbv |
@wcstack/ambient-light-sensor |
sha384-qHSlH/B1rq0Wz2WIlfx8AXjwfFrBF1Wf9gNIiIKHCtZ2KdvrR9W2vLKRSQ8cZjlP |
@wcstack/audio |
sha384-u/rwMdTYCr3HWarg5vi/2JpbxK4Ceg/4H4JMiaiCI8woa5OKnv2HiksX+zsoMdo9 |
@wcstack/autoloader |
sha384-bhzZ2I5cYCs99xr/KcHzqylaLbpE8955z266JjV2oKgNoh9GT2YuNMYEG5hWRy/S |
@wcstack/broadcast |
sha384-fbSzSXaqvDTCZbmqDBYtdndWSlen9Tnc94VGBqpnU0yemStv4H8V71OL86WjDxeV |
@wcstack/camera |
sha384-Az2w4kZiBh2TsWQAvvDoNgbiYmGsyXUxeXqkogRLva0m72ew2Z+z5sf2txYscTyU |
@wcstack/clipboard |
sha384-4u6L6Nfh7m8GO+Mx8kVchj+g2sZf8MA9b1/gep+NUE3Wy9WzRvI+AvFEZe+/MYGD |
@wcstack/contacts |
sha384-3uuNjSuv9wFcBWqwFgjWKUxW619JxJpO8Zj0T87EQlb94e+BZq5UBZv5DPbWNuOW |
@wcstack/credential |
sha384-3QdEiP663M+Ew73wGzgkReK9QyGZKtPOZNRbQo4OIvBu6JK2gwdPgEizIG9DVf0n |
@wcstack/debounce |
sha384-Z2DQFl4WdgqgNDlGQrkkiqNypdOEVDEmjatgp5Dnfy/wGq+aUhNbbLIxAqblq+GD |
@wcstack/defined |
sha384-uQcBex/zVVwuTLujw/yDd8g29FKEINTsAqsxlPGA5yoLHqvd3pplsERJSMoZiMc6 |
@wcstack/devtools |
sha384-e/qULVNJazo/KXP6rfn/gCEB54225N70OvJaQZrtmWj2zZQwMuiFphyQa1mfrpis |
@wcstack/eyedropper |
sha384-WeAaq/MOZCA+K6UflqTqaJvizegW0xJJ5gZbDfqDd1CKljIjdN5KJwE+5gmkKlQ5 |
@wcstack/fetch |
sha384-iQGH0PFc+Mzju4F4DTaqZPmIsAGLB+TkYTRysyG3I7jphkjgbGd0i9EoGX298dDh |
@wcstack/fullscreen |
sha384-85V//FDPaVGBDw5rtnuJoBoZsXILRy/levCGGA0m5i9tNr2aDNINYH47m/87SLYY |
@wcstack/geolocation |
sha384-yP2O+zl8H8GIx8P9d4iDDHxYbOjgt+3fzLHMMVbhkL64MszMaNNxZMNzh8JaoRnz |
@wcstack/gyroscope |
sha384-OFe9nmy+zaKrJWgwn5H/tOampGU85Cd1ms/5yLub2hqpX6F5EMF7NmsqtKCaI6+I |
@wcstack/idle |
sha384-Mt0HJ6b5M4dhdDOWgoo/tREludRVXiPgv23mcavxwCaQvIaWKSd9TYpihmEc3gBw |
@wcstack/intersection |
sha384-hcqKjSLgeGJmo80Vb1sga9IY6vzLeueY3f/xYDDLJvrxWHpJx8X9oxcAsqSAEvi8 |
@wcstack/magnetometer |
sha384-Dw4DvEWurDyARR3Rq6PQvWp8WW5R98x/8og3g5lDBgWkANkBuUwiDynIj5C9/O5z |
@wcstack/media-query |
sha384-EgkzKP6XiIqQQ04XyVTrmGNmSqKRlkJAVl3xcgJsmvU6BFCsnyamYPUaidU88SVk |
@wcstack/midi |
sha384-pJmd73J0N2jblqeo/TeTQ62Iq9wFNzn9rRT38+v5ifTmN9FF12r6CDz3qoaEMxsm |
@wcstack/network |
sha384-ZiS/3RCbvqH9+z57lIOoWjhKq3jRJ7rDuMPpRgjBS9PUXrUfAzvxDXEYm/rKqyZn |
@wcstack/notification |
sha384-87kU63LQTUpTnbpOi/Mpw6AMxJN5OwMopnrAGZBDlZ+W7duYZVkxTnsOYZgFePaP |
@wcstack/permission |
sha384-hic4e+WwfL9IKTwEA9cv9q/Ff6hFD9BKzJZ9hKLncfrrJIbTHV9upwJdYviGSeDd |
@wcstack/picture-in-picture |
sha384-B6muwZa3ezPK8O/dFjkEc0O0N4yglbkNJ1xEZ5LC631ME34Gs00UwqH9c97h9286 |
@wcstack/pointer-lock |
sha384-HM6UIg6x6wFOwhcosXT3il5Jp1R29IfmDM3M8XPm9KNf5XhK1SG6t0e9ay8lm0mX |
@wcstack/raf |
sha384-aMbFl2uxzXpS9nq24xRjfFYcDNsYEEEfq8XiaPGhW59pPHLyFdjBFewvZR8/GKbp |
@wcstack/resize |
sha384-cGKdAxtI68o3o16yNw+lKnf7N7byprbzOXA1ysk/8H6oBk/dShpdX9zNhVcVNZAr |
@wcstack/router |
sha384-oJKdmoAGmXz8suM4jJcK7UCBSCMTLszAnDycsqR/8yPgXUPFpdW7EdWRHJ/ZkQ2T |
@wcstack/screen-orientation |
sha384-VUYd5yZOihwzWL2a6lNFM+6WpIF8whr+PCuA3uUrXseJHQ85/R8rlENc2VIIJTkW |
@wcstack/share |
sha384-na1+tsflxp3/vRyJmGLls3W+3B/d/ZdIU9GjUAEKLniF5nar6+51qeghyFom+3b4 |
@wcstack/speech |
sha384-0HMlW7o3TofAkqdIiAu6hJDcVTd2en/decM7DGaQJK3QNNrxeNDcN5hyCIVQGITV |
@wcstack/sse |
sha384-4deXDoaOGTaI3901qE07H3m0eE9c/WGvsTZ3o/bvjjBAoYhPQ6oVA5TBYYYfqT2H |
@wcstack/state |
sha384-8wnG2pj+F/hluM6eTkIRQ1DSbqKO1HZt+zxsN8sXKf81d2OsJ+U8POVrz+IGVXCT |
@wcstack/storage |
sha384-B/lU7mr7M8YiQQlWwz+5JhdbCeVEDvEYUXcTr4PDZEH3xTPVGY6eGDOT8wPJVg5r |
@wcstack/tilt |
sha384-jDblIjse82oPZtff6NbopjxnxTnyiTo+mb2PlnnKDcrYub5U9366w+AsWw+JePuR |
@wcstack/timer |
sha384-XU4AfDP5SPPEjv4sRTzgH3mFLIlV1ZD/+y1Q+4zbXrBPjK6GE7sj6xvyIGbaRdgQ |
@wcstack/upload |
sha384-FOpSYnZqEk6R12FdcRrwNxSG/S/AxQgTo02tofUHIKg+A9zitcuQqQp2/36mpXv+ |
@wcstack/view-transition |
sha384-NPSqypOhvzbscfkMxAKLOxLy3f9ckOtoc1uojQtiaxhwHTZoXwtSRJbI1PvvfMmF |
@wcstack/wakelock |
sha384-3zt1aGUHKt+tw0jBQoKanUUu8tRCGKUH56Fh/YjkmY40hugW4zRdCtoJaIZVj9d6 |
wcstack |
sha384-1ye9EhFPBM7TB3Q9VKrkxQYBnVqGXaaM/zUQu9NZPI47/Lsm88lzZg5KjHXeJFiJ |
@wcstack/websocket |
sha384-CEiJ19wbCe4R3eaFkAktSKPG+EjTKfomPOmF8QTJhk+T241V1BAbNGYNlfESn4mO |
@wcstack/worker |
sha384-yI+4+QxnO/3160CgYxNsUStBD9lE8SbmFj+YpmjIGQcFe/mh00YFHSCfhdfEWja7 |
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.31.0/dist/split/core.js",
"@wcstack/state/features/devtools": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/devtools.js",
"@wcstack/state/features/diagnostics": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/diagnostics.js",
"@wcstack/state/features/formats": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/formats.js",
"@wcstack/state/features/forms": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/forms.js",
"@wcstack/state/features/list-keys": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/list-keys.js",
"@wcstack/state/features/native-commands": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/native-commands.js",
"@wcstack/state/features/recursion": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/recursion.js",
"@wcstack/state/features/release": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/release.js",
"@wcstack/state/features/scopes": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/scopes.js",
"@wcstack/state/features/ssr": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/ssr.js",
"@wcstack/state/features/temporal": "https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/temporal.js"
},
"integrity": {
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/auto.js": "sha384-GyUnv0rBt+GC4ZvZGQXOj6nhGQqieTdwND2tZTFfDCTWHZFZ2gQ0wGTNn+gCGqOB",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-BDD4MKZJ.js": "sha384-bd9WH8c2G0LE2qOkdX5vLrhaU32iws0toQgIp+z4WLNrkaVdNCox9X97z7/wxbcr",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-CER7M3PO.js": "sha384-BiXxzb8nKYjUU23B39iptRwGqibdGxvSrxcl79ov6Blr9HX18WnOz1Isab42quQy",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-EK5MPKIO.js": "sha384-aLQxmXtu9QDHBpsHqYEhOy7jUqgygjd5SQvY35Pcm/14WVxAgDXMJFV6s6uexkaD",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-EXFFYTBZ.js": "sha384-Rdoj8oOeh/kxUD8BHb4FpWoFS6x4sAMesgHyUmNvU7chel9Pd94smDC/kMJKVf0Y",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-FGYCJ6GC.js": "sha384-HImKjZHbva0WanEN5U2hctuMQi04XMiHFBLi5dydnbbypiRy1zpSg1JsqyKkhsLf",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-HC75GU5C.js": "sha384-PSf6VfzelvCs1yINvAqTGZUiMVXpnRQenmhdUcDVrn9VSI0/HOUEQL5oPChi22oW",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-HEFLIGBC.js": "sha384-tMEtETt2kPiCRF65IJiBp8HEW/Y1Bwi6T2mNWoA7i9vM1FRCIuB6vRIdVuKMXzM/",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-LVJIDPSE.js": "sha384-s948siVBiTFPVYxNo2IHA3DGOGQHNONG7O4xbpCS6PjIbiJB00s5i/G0Vpcs2fP0",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-RFYKFRQD.js": "sha384-9dEUTHwTOtJEsSXT/clYqomZot/bb5owGqkxieRRj0Xs/SH8cjshmmjQzID9DFN3",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-SZLRBQX7.js": "sha384-xNVWbQ1E5tj/absXbAkYceNxV7zCVgXLHytGPx0tppDLxDYxZ8amExHDwTKViuO2",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/chunks/chunk-V6L2RIWZ.js": "sha384-8FD1VH1+Uy6snYIw17FRp6eDzsrOVzjM2K/gslqTAend1QRPyX3CU6ol6rw8J7wY",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/core.js": "sha384-BTJxdJ8trH+WBEKfz6nRTLsgCusSVdoEkYfhkS++SMQe9AVnxzdyHTwE0t9j9Hoi",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/devtools.js": "sha384-D8x17BUgdgLOh5Fd2wJ4nGlF4kBYSUNp9X9GHK0hbWnZT4UFqmAJuS8j75/OxwMg",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/diagnostics.js": "sha384-yWx6y8wcOC5dJ72fvYsz4z0/4YKXhno4IBV42+Hrr3UrZNOj+3IIE63FGL0EWt71",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/formats.js": "sha384-/hizX8xSrkWkZ15zMscTZHXemJPyWGHKIhsAa7OHpWk7IbP6jAIJ3MOuML/b2nHx",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/forms.js": "sha384-8Eb7O/O5jHx/PkdDsaMRUv5AH4dmPmWPMsBv6SneRVSaBgLdUGSSwgbkEXiu3Xy+",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/list-keys.js": "sha384-Xxgwt4kZNpmk7psuFD58EDnkKVGoT3L08AGR+qa+cKqj9sOEOORKKVui1dC+OjwH",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/native-commands.js": "sha384-NrbQWni21sJIDSfqwr76ypNXBgtlynUH/NmvgYRVoA4ftr/r/y33rouCgIpyI1RH",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/recursion.js": "sha384-vJbtXfLYfeRffVu8UhIjjDcRkHPYKdLisjhHJ1LTy59YnauioN9iN3eEePxeUlOC",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/release.js": "sha384-hexK1+Lh93iJx2DtRV21jSBtLWqkXnyeiGZdx4h3FsOaXgelo6u1rI+v0CwsWAwm",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/scopes.js": "sha384-2vPbudfTId/rFBXWbApC00XbwXmfkBfX+kvDRwFT0QHhmYFKhCD7+SDCJ0GH3/y/",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.0/dist/split/features/ssr.js": "sha384-JmJ11wQqIAdqDBeMhm6HYtOH+Qcn+E8isgtt4XEtHkTKhVaDJ5ywUsPPFSMpZEK1",
"https://cdn.jsdelivr.net/npm/@wcstack/state@4.31.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.30.0 - re-record the size baseline, the extension to 2.23.0 by @mogera551 in #760
- examples: land the street-reports seam app (a React team's app moved to wcstack) by @mogera551 in #761
- docs: the record of 4.30.0 by @mogera551 in #763
- fix(router, testing): links mounted before the router; a bootstrap list without the state by @mogera551 in #764
- fix(typescript): comma-listed accessors in the schema; enum order; lists whose rows have no type by @mogera551 in #765
- fix(lint): a schema never weakens the check; a getter over a list's rows; did-you-mean everywhere by @mogera551 in #766
- docs: the Advent Calendar series' record - the author's decisions (§5.27), two catalogue entries by @mogera551 in #767
- chore: prepare 4.31.0 - the changelog, the upgrading guide, the pins by @mogera551 in #768
Full Changelog: v4.30.0...v4.31.0