chore(deps): upgrade @redocly/openapi-core from v1 to v2#1361
Merged
Conversation
- Bump version range from ^1.34.3 to ^2.25.2
- Replace `new Config({} as ResolvedConfig)` with `await createConfig({})`
per v2 API — Config constructor now takes ResolvedConfig explicitly
- Drop deep import from @redocly/openapi-core/lib/config; ResolvedConfig
is now exported from the main entrypoint in v2 (and no longer needed here)
- Cast bundle result parsed field to any to account for Document<unknown>
generic tightening in v2 (was any in v1)
Closes #1355
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
Size Change: 0 B Total Size: 2.2 MB ℹ️ View Unchanged
|
|
Visit the preview URL for this PR (updated for commit 75d98f7): https://docusaurus-openapi-36b86--pr1361-jr2wc57w.web.app (expires Wed, 29 Apr 2026 15:31:15 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: bf293780ee827f578864d92193b8c2866acd459f |
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
Upgrades
@redocly/openapi-corefrom^1.34.3to^2.25.2and migrates the one internal call site inloadAndResolveSpec.ts.Code changes:
new Config({} as ResolvedConfig)withawait createConfig({})— the v2Configconstructor now takes a properResolvedConfigandcreateConfig()is the idiomatic way to build one@redocly/openapi-core/lib/config—ResolvedConfigis now exported from the main entrypoint in v2, but is no longer needed here at allbundleresult'sparsedfield toany—Document<T>tightened its generic default fromanytounknownin v2No public API changes —
@redocly/openapi-coreis a direct (non-peer) dependency used only internally during doc generation. Consumers are unaffected.Closes #1355
Relates to #1320
Test plan
yarn buildpasses indocusaurus-plugin-openapi-docs(verified locally)$refs, allOf, discriminators to validate bundling behavior is unchanged🤖 Generated with Claude Code