Skip to content

8 deps updated (2 minor, 6 patch); 1 type fix#178

Open
ask-bonk[bot] wants to merge 1 commit into
mainfrom
opencode/schedule-c3a8d3-20260522062336
Open

8 deps updated (2 minor, 6 patch); 1 type fix#178
ask-bonk[bot] wants to merge 1 commit into
mainfrom
opencode/schedule-c3a8d3-20260522062336

Conversation

@ask-bonk

@ask-bonk ask-bonk Bot commented May 22, 2026

Copy link
Copy Markdown
Contributor

All done. Here's the full summary:


Dependency Update Summary

All 121 tests pass. tsc --noEmit is clean (after one fix — see below).

Updated Packages

Severity Package Old New
minor @opencode-ai/sdk 1.14.41 1.15.7
minor @opencode-ai/plugin 1.14.41 1.15.7
minor @clack/prompts 1.3.0 1.4.0
patch ai 6.0.176 6.0.190
patch hono 4.12.18 4.12.21
patch wrangler 4.90.0 4.93.1
patch oxlint 1.63.0 1.66.0
patch @types/node 25.6.2 25.9.1

All other dependencies were already at their latest compatible versions.


Type Fix Required: hono 4.12.18 → 4.12.21

Root cause: Hono 4.12.21 tightened the generic constraint on MiddlewareHandler, causing a type mismatch when a bearerAuth middleware instance is constructed dynamically at runtime and called directly as auth(c, next). Without an explicit type parameter, bearerAuth({ token }) inferred MiddlewareHandler<Env> (using the bare Env shape), which no longer matched the outer handler's Context<{ Bindings: Env }, "*", any>.

Fix (src/index.ts:153): Added the explicit generic bearerAuth<{ Bindings: Env }>({ token: secret }) so the constructed middleware's context type aligns with the enclosing handler's type. No runtime behavior changed.

Triggered by scheduled workflow

github run

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.

0 participants