Skip to content

fix: scope Rozenite middleware to /rozenite#230

Merged
V3RON merged 2 commits intomainfrom
fix/open-stack-frame
Apr 29, 2026
Merged

fix: scope Rozenite middleware to /rozenite#230
V3RON merged 2 commits intomainfrom
fix/open-stack-frame

Conversation

@V3RON
Copy link
Copy Markdown
Contributor

@V3RON V3RON commented Apr 17, 2026

Summary

  • scope Rozenite's middleware to /rozenite instead of wrapping the full Metro/Re.Pack middleware chain
  • add a guarded middleware wrapper that stops propagation when a delegated handler incorrectly calls next() after ending the response
  • cover the scoped routing and ERR_HTTP_HEADERS_SENT regression with middleware tests

Testing

  • pnpm --filter @rozenite/middleware test
  • pnpm --filter @rozenite/middleware typecheck
  • pnpm --filter @rozenite/metro typecheck
  • pnpm --filter @rozenite/repack typecheck
  • pnpm --filter @rozenite/middleware lint
  • pnpm --filter @rozenite/metro lint
  • pnpm --filter @rozenite/repack lint

Fixes #229

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
rozenite Skipped Skipped Apr 17, 2026 6:26am

Request Review

@V3RON V3RON merged commit e1e5bd7 into main Apr 29, 2026
4 checks passed
@V3RON V3RON deleted the fix/open-stack-frame branch April 29, 2026 08:21
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.

open-stack-frame endpoint broken: ERR_HTTP_HEADERS_SENT when Rozenite middleware is active

1 participant