You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(onerror): merge @eggjs/onerror plugin into monorepo (#5503)
Move @eggjs/onerror plugin from separate repository to plugins/onerror.
Configure for monorepo with workspace dependencies and standard tsdown
build.
- Add onerror plugin to plugins directory
- Configure package.json with workspace and catalog dependencies
- Add standard tsdown.config.ts following plugin conventions
- Add vitest.config.ts for test configuration
- Update root tsconfig.json references
- Add cookie, koa-onerror, mustache, stack-trace to pnpm catalog
- Add type definitions for mustache and stack-trace
- Fix HTML syntax error in mustache template
- Remove incorrectly created packages/egg/plugins/onerror directory
🤖 Generated with [Claude Code](https://claude.ai/code)
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- New Features
- Introduced the Onerror plugin: HTML/JSON/JSONP error responses,
interactive syntax-highlighted error pages, production-safe messaging,
redirect/custom template support, and agent-side error logging.
- Documentation
- Added README, CHANGELOG, and LICENSE for the Onerror plugin.
- Chores
- Updated TypeScript/package configs, workspace dependencies, build/test
publishing metadata for the new plugin.
- Tests
- Added comprehensive test suite and fixtures covering multiple error
scenarios, formats, and environments.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments