-
Notifications
You must be signed in to change notification settings - Fork 33
fix: make hono & @hono/zod-openapi not optional deps #1066
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: make hono & @hono/zod-openapi not optional deps #1066
Conversation
WalkthroughThe peerDependenciesMeta section in the package.json file was updated to set "@hono/zod-openapi" and "hono" as non-optional dependencies instead of optional. Additionally, the order of these entries was changed, moving them to the end of the list. No other changes were made. Changes
Poem
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Claude finished @NathanFlurry's task —— View job PR Review: Fix hono & @hono/zod-openapi dependenciesTodo List:
SummaryThis PR changes Review Findings✅ Code Quality & Best Practices
✅ Usage Verification
✅ Potential Issues Assessment
✅ Performance Considerations
✅ Security Concerns
|
@rivetkit/actor
@rivetkit/core
@rivetkit/db
rivetkit
@rivetkit/redis
@rivetkit/framework-base
@rivetkit/react
@rivetkit/cloudflare-workers
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (2)
packages/core/package.json (2)
202-208
:"optional": false
is redundant and can be safely omitted
peerDependenciesMeta.*.optional
defaults tofalse
; explicitly setting it tofalse
adds noise without changing behaviour.
Removing the property (or deleting the entire entry) will keep the dependency non-optional while tidying the manifest.- "@hono/zod-openapi": { - "optional": false - }, - "hono": { - "optional": false - } + // meta block not required when `optional` is false
202-208
: Double-check downstream impact of making these peers mandatorySwitching
@hono/zod-openapi
andhono
from optional → required peer deps is a breaking change for consumers that relied on installing@rivetkit/core
without them.
Please confirm:
- All runtime paths in
@rivetkit/core
actually require these packages (otherwise they should stay optional or move todevDependencies
).- The change is reflected in release notes / semver bump (likely
1.0.0
).If the libraries are used only in the
dump-openapi
script, consider keeping them optional (or moving todevDependencies
) instead of forcing every consumer to install them.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
packages/core/package.json
(1 hunks)
🧰 Additional context used
🪛 GitHub Actions: Test
packages/core/package.json
[error] 1-1: Command 'yarn install' failed with exit code 1. Project is configured to use pnpm, but yarn was run.
⏰ Context from checks skipped due to timeout of 90000ms (2)
- GitHub Check: claude-review
- GitHub Check: publish
Summary by CodeRabbit