Skip to content

chore: bump Swagger UI to 5.35.0 - #396

Merged
G4brym merged 1 commit into
mainfrom
chore/bump-swagger-ui-5.35.0
Nov 17, 2026
Merged

G4brym merged 1 commit into
mainfrom
chore/bump-swagger-ui-5.35.0

Conversation

@G4brym

@G4brym G4brym commented Nov 17, 2026

Copy link
Copy Markdown
Member

Summary

Bumps the CDN-loaded Swagger UI used by getSwaggerUI() (the /docs page) from swagger-ui-dist@5.17.14 to swagger-ui-dist@5.35.0. No new options or behavior changes in chanfana.

  • Updated the three jsDelivr URLs (swagger-ui.css, swagger-ui-bundle.js, swagger-ui-standalone-preset.js) in src/ui.ts.
  • Updated the SRI integrity attributes (sha256, same algorithm as before), recomputed from the published 5.35.0 files.
  • Added a patch changeset.

Why

5.17.14 → 5.35.0 covers about 18 minor releases of Swagger UI. Along with bug fixes, these releases pull in security-relevant bundled dependency updates, including:

Testing

  • npm test: 19 files, 512 tests passed
  • npm run lint: clean (oxlint + oxfmt)
  • npm run build: succeeded
  • Browser smoke test (Playwright, Chromium) against a local Hono app using the built package:
    • /docs at the root and with new Hono().basePath("/api") (spec URL /api/openapi.json): all three CDN assets loaded with HTTP 200 and the new SRI attributes. There were no console errors or failed requests. Swagger UI rendered the GET /hello operation, and Try it out → Execute returned 200 with the expected JSON body (in the base-path case, the request went to /api/hello).
    • /redocs (both cases) still renders the operation with Redoc 3.1.0 and no errors.

@pkg-pr-new

pkg-pr-new Bot commented Nov 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/chanfana@396

commit: e5f912a

@github-actions

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 94.81% 932 / 983
🔵 Statements 94.88% 946 / 997
🔵 Functions 93.87% 184 / 196
🔵 Branches 88.13% 572 / 649
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/ui.ts 100% 100% 100% 100%
Generated in workflow #767 for commit e5f912a by the Vitest Coverage Report Action

@G4brym
G4brym merged commit ca9b21a into main Nov 17, 2026
8 checks passed
@G4brym
G4brym deleted the chore/bump-swagger-ui-5.35.0 branch November 17, 2026 08:28
@github-actions github-actions Bot mentioned this pull request Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant