feat: centralize logging, tighten runtime types, and improve doc#9
feat: centralize logging, tighten runtime types, and improve doc#9Dayifour wants to merge 5 commits intoakinloluwami:mainfrom
Conversation
|
@Dayifour is attempting to deploy a commit to the Akinkunmi Team on Vercel. A member of the Team first needs to authorize it. |
|
Hi @akinloluwami, I’ve created this PR to centralize logging, tighten runtime types, and improve documentation. Everything is backward-compatible and logging is enabled by default with the REACT_SERVE_LOG switch. The main changes are: Added a minimal logger (info, warn, error, debug). Strengthened internal types in runtime.ts. Updated Learn.md, CONTRIBUTING.md, and CODE_OF_CONDUCT.md. Updated example logging in backend.tsx. Please review when you have a moment. I’m happy to adjust anything if needed. Thanks! |
|
Hi @akinloluwami, I hope you're doing well! I've just resolved the merge conflicts in runtime.ts and ensured everything is up to date with the latest main branch. This PR is ready for review whenever you have a moment. It significantly improves the DX with better types and centralized logging. Let me know if you'd like any further adjustments! Thanks |
Introduces a centralized logger, strengthens internal runtime types, and updates documentation to improve maintainability and contributor onboarding.
Why
What changed
Added
Modified
Summary by cubic
Centralized logging across the runtime, tightened runtime types to reduce unsafe any usage, and added docs to improve onboarding. Logging is enabled by default and can be toggled with REACT_SERVE_LOG.
New Features
Refactors
Written for commit 70b31f9. Summary will update on new commits.