Repository navigation
chore: bump Swagger UI to 5.35.0 - #396
Merged
Merged
Conversation
commit: |
Contributor
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||
Merged
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.
Summary
Bumps the CDN-loaded Swagger UI used by
getSwaggerUI()(the/docspage) fromswagger-ui-dist@5.17.14toswagger-ui-dist@5.35.0. No new options or behavior changes in chanfana.swagger-ui.css,swagger-ui-bundle.js,swagger-ui-standalone-preset.js) insrc/ui.ts.integrityattributes (sha256, same algorithm as before), recomputed from the published 5.35.0 files.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 passednpm run lint: clean (oxlint + oxfmt)npm run build: succeeded/docsat the root and withnew 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 theGET /hellooperation, and Try it out → Execute returned200with 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.