Skip to content

1.0.0

Choose a tag to compare

@3m1n3nc3 3m1n3nc3 released this 30 Mar 18:58
· 142 commits to main since this release

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