Bump the bundled UI versions (Scalar 1.66.1, Swagger UI 5.32.14) - #125
Merged
Merged
Conversation
Owner
Author
|
CI on this branch is red, but not because of the bump: all four bumped UI packages pass, and clean Tracked in #126. This stays open until that lands, then rebases onto it — the required The supply-chain verification here is unaffected and stands. |
Scalar @scalar/api-reference 1.65.1 -> 1.66.1 and swagger-ui-dist 5.32.13 -> 5.32.14 across the CDN pins, the embedded bundles, and the package.json tracker. Scalar 1.66 reworks the sidebar into anchor links, exposes every entry to crawlers in server-rendered HTML, supports OpenAPI 3.2 nested tags and shows a schema pattern on hover; 1.66.1 republished every package through npm trusted publishing with no functional change. Swagger 5.32.14 adds accessible button names and a dark color-scheme hint. The data-configuration and CSP contracts stdocs relies on are unchanged. Supersedes #124. Both bundles were verified byte-identical across the npm tarball and jsDelivr, their sha512s match the published dist integrity, and both carry SLSA build provenance from their upstream repos. Scalar's host set gains one entry, `http://scratch`, which is the throwaway base a helper passes to new URL() to build anchor paths with the URL parser; it is never fetched. Its atob count rises from four to six because the bundle now carries two copies of Zod, whose base64 and JWT format validators decode only to return a boolean.
FumingPower3925
force-pushed
the
bump-ui-v093
branch
from
August 27, 2026 07:55
165c32a to
ca66f9c
Compare
FumingPower3925
added a commit
that referenced
this pull request
Aug 27, 2026
Scalar @scalar/api-reference 1.65.1 -> 1.66.1 and swagger-ui-dist 5.32.13 -> 5.32.14 across the CDN pins, the embedded bundles, and the package.json tracker. Scalar 1.66 reworks the sidebar into anchor links, exposes every entry to crawlers in server-rendered HTML, supports OpenAPI 3.2 nested tags and shows a schema pattern on hover; 1.66.1 republished every package through npm trusted publishing with no functional change. Swagger 5.32.14 adds accessible button names and a dark color-scheme hint. The data-configuration and CSP contracts stdocs relies on are unchanged. Supersedes #124. Both bundles were verified byte-identical across the npm tarball and jsDelivr, their sha512s match the published dist integrity, and both carry SLSA build provenance from their upstream repos. Scalar's host set gains one entry, `http://scratch`, which is the throwaway base a helper passes to new URL() to build anchor paths with the URL parser; it is never fetched. Its atob count rises from four to six because the bundle now carries two copies of Zod, whose base64 and JWT format validators decode only to return a boolean.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Supersedes #124 (the Dependabot
all-ui-bundlesgroup PR, which only editspackage.json).@scalar/api-referenceswagger-ui-distUpdated across all pin sites: CDN version + SRI in
ui/scalarandui/swaggerui, embedded version +//go:generateURLs + re-vendored assets + hash pins inui/scalarembandui/swaggeruiemb, and thepackage.jsontracker.Supply-chain verification
github.com/scalar/scalar, swagger-ui-dist fromgithub.com/swagger-api/swagger-ui, subjects matching the exact versions.dist.integrity; jsDelivr is byte-identical to the tarball for Scalar'sstandalone.jsand both of Swagger's assets; SRIs recomputed from those bytes.@latest; no republished or unpublished versions.Three things that needed classifying, and what they turned out to be
1. Scalar's host set gains one entry:
scratch. It isnew URL("http://scratch")— the throwaway base a path helper passes to theURLparser so it can build hash/pathname strings. The function returnsi.hash/i.pathname, neveri.href, and never fetches; "scratch" is not a resolvable TLD, andconnect-src 'self'would block it regardless.2. Scalar's
atob(count rises 4 → 6. The bundle now carries two copies of Zod (4.3.5and4.4.3); the two extra calls are that second copy's identicalbase64()andjwt()format validators, which decode only to return a boolean. This also accounts for part of the +95 KB.3. Where 1.66.0 went. It is in the changelog but was never published to npm — no
versions{}entry and notime{}entry (npm keeps a timestamp even for unpublished versions, and this package has zero unpublished versions in its history). 1.66.1's sole change is "Republish every package through npm trusted publishing. No functional changes," which is also what produces its provenance.Everything else held:
eval/new Function/WebSocket/document.cookie/sendBeacon/importScriptsall remain at zero,localStorageandXMLHttpRequestcounts are unchanged, anddata-url/data-configurationplus the CSP-safe config keys are intact.Note: both upstreams now emit a
sourceMappingURL. It is relative — on the CDN variants devtools may fetch the map from the already-allowed jsDelivr origin; on the embedded variants it 404s harmlessly, since we deliberately vendor only the bundle (Scalar's map alone is 14.7 MB).Verification
gofmt/vet/build/go test -race ./.../golangci-lintclean; all four pinning, embedded-integrity, andpackage.jsonparity tests pass.uismokerenders all nine UIs under the enforced CSP plus all eight config variants. Both bumped UIs were screenshotted — Scalar's reworked anchor-link sidebar renders correctly, and the CSP-safe defaults still hide the phone-home chrome.