🚨 Breaking Changes Alert 🚨
The Fetch Handler APIs have been rewritten! Please refer to the updated documentation for details: Documentation.
What's New?
Here’s a quick example of the updated API:
const openapiHandler = new OpenAPIServerlessHandler(router, {
schemaCoercers: [
new ZodCoercer(), // Add your custom coercers here!
],
});
const orpcHandler = new ORPCHandler(router);
const compositeHandler = new CompositeHandler([openapiHandler, orpcHandler]);
// Usage examples:
openapiHandler.fetch(/***/);
orpcHandler.fetch(/***/);
compositeHandler.fetch(/***/);
Key Highlight 🚀
The introduction of schemaCoercers
enables support for multiple schema types, paving the way for enhanced flexibility and the Smart Conversion feature.
Check it out and explore the possibilities!