dep updates#445
Open
gregnazario wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates project dependencies (notably @astrojs/starlight, starlight-openapi, and Scalar packages) and adapts the docs site’s OpenAPI/Sidebar integration code to updated upstream APIs, including a refreshed pnpm patch for starlight-openapi@0.25.1.
Changes:
- Bump a range of dependencies (Astro/Starlight/Vercel/Scalar/OpenAPI tooling) and update
packageManagertopnpm@10.33.2. - Update OpenAPI Astro components to new
starlight-openapiAPIs (schema type import path, dereference helper, response media handling, route type constants, path helpers). - Refactor sidebar helper typing to derive item/group types from Starlight’s public config types; replace the generic
starlight-openapipatch with a version-pinned patch file.
Reviewed changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/config/sidebar.ts | Derives sidebar entry/group typing from StarlightUserConfig and simplifies the group() helper. |
| src/components/OpenAPI/security/Security.astro | Switches to updated starlight-openapi path helper and schema type import. |
| src/components/OpenAPI/Route.astro | Uses new dereference helper and updated route prop typing / route type strings. |
| src/components/OpenAPI/response/Responses.astro | Updates schema type import path. |
| src/components/OpenAPI/response/Response.astro | Migrates response rendering to media-entry based flow with ContentPicker. |
| src/components/OpenAPI/RequestBody.astro | Updates schema type import path. |
| src/components/OpenAPI/Overview.astro | Removes interspece usage and rewrites contact link rendering. |
| src/components/OpenAPI/operation/OperationExamples/OperationScalarModal.astro | Updates Scalar modal integration to new imports + workspace store usage. |
| src/components/OpenAPI/operation/OperationDescription.astro | Updates schema type import path. |
| src/components/OpenAPI/operation/Operation.astro | Updates schema type import path. |
| patches/starlight-openapi@0.25.1.patch | Adds/updates patch for starlight-openapi@0.25.1 (route entrypoint option, safer security checks, exports pattern). |
| patches/starlight-openapi.patch | Removes the previous unversioned patch file. |
| package.json | Dependency bumps, patched dependency key update, and new overrides. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+37
to
+41
| {contacts.map((contact, index) => ( | ||
| <> | ||
| {index > 0 && " - "} | ||
| <a href={index === 1 ? `mailto:${contact}` : contact}>{contact}</a> | ||
| )), | ||
| )} | ||
| </> |
Comment on lines
+40
to
+54
| hasMediaTypes ? ( | ||
| <ContentPicker | ||
| label="Select media type" | ||
| labelSingle="Media type" | ||
| types={mediaEntries.map((e) => e.mediaType).filter((t): t is string => t !== undefined)} | ||
| > | ||
| {mediaEntries.map((entry, index) => ( | ||
| <div data-openapi-content-type={entry.mediaType} hidden={index > 0} role="tabpanel"> | ||
| <SchemaComponent | ||
| example={entry.example} | ||
| examples={isExamples(entry.examples) ? entry.examples : undefined} | ||
| schema={isSchemaObject(entry.schema) ? entry.schema : undefined} | ||
| /> | ||
| </div> | ||
| ))} |
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.
No description provided.