1.0.0
What's Changed
- Added a plugin system to allow for lifecycle hooks during serialization, response preparation, and sending.
- Implemented core plugin APIs: registerPlugin, definePlugin, getRegisteredPlugins, and getUtility.
- Created hooks for beforeSerialize, afterSerialize, beforeResponse, afterResponse, beforeSend, and afterSend.
- Added support for reusable utilities within plugins.
- Introduced clear-router integration plugins for Express and H3 frameworks to enable context-aware execution of route handlers.
- Updated GenericResource, Resource, and ResourceCollection to support serialization plugins.
- Enhanced ServerResponse to utilize plugin hooks for response manipulation.
- Added comprehensive tests for the plugin system and clear-router integration.
Full Changelog: 0.2.15...1.0.0