Conversation
WalkthroughA new Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant ExpressZodAPI
participant ZodPlugin
User->>ExpressZodAPI: Uses Zod schema with .example(), .deprecated(), etc.
ExpressZodAPI->>ZodPlugin: Imports and applies Zod augmentations (side effects)
ExpressZodAPI->>ZodPlugin: Calls getBrand() for runtime brand retrieval
ExpressZodAPI->>ExpressZodAPI: Uses extended Zod schemas in API logic
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
✨ Finishing Touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…cumentation test (partial).
…ntation around it.
|
not clear what to do with proprietary branded schemas yet... perhaps |
|
need to rethink/clarify the strategy |
|
The strategy:
|
# Conflicts: # pnpm-lock.yaml
f88f0df to
bd0328a
Compare
|
time to publish the EZ and QA it having the plugin separated ❌ Failed to publish: must prebuild the plugin, because we run the local workspace tests |
|
✅ published ✅ QA passed |
Following #2869 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Enhanced Zod schemas with new utility methods: `example`, `deprecated`, and `label` for improved metadata handling. * Introduced a `brand` property for custom schema branding. * Added a `remap` method to object schemas for flexible key transformation. * **Refactor** * Reorganized and separated runtime augmentation logic to improve maintainability and clarity. * **Tests** * Updated test descriptions for clarity; test logic remains unchanged. * **Chores** * Updated internal setup to use the new runtime augmentation module. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This should enable developing and distributing the Zod plugin separately. The framework will depend on it, but the plugin features could be reused in other projects, such as
zod-sockets. The helper methodgetBrand()is moving to the plugin. Proprietary schema remain within the framework.Summary by CodeRabbit
New Features
@express-zod-api/zod-pluginas a standalone package enhancing Zod schemas with new methods and runtime helpers.zod-pluginworkspace in project workflows.Bug Fixes
Documentation
Chores
Tests
Refactor