Releases: arkstack-hq/resora
Releases · arkstack-hq/resora
1.1.0
What's Changed
Fixed
- Fixed deferred response status handling so
setStatusCode()now stores the intended status without mutating the transport immediately. - Applied the final HTTP status at send time, which makes response hooks and chained mutations behave consistently across resources and subclasses.
- Fixed
withResponse()flows so headers, status, and body mutations are preserved when the final response is dispatched. - Fixed nested
ResourceCollectionserialization socollectsis respected when collections are embedded inside another resource. - Fixed
ResourceCollection.toObject()for extended collections so it returns transformed items instead of the underlying raw resource values. - Added support for returning nested collection instances directly from a resource, so
members: new FamilyMemberCollection(...)now works without requiring.toObject().
Improved
- Improved consistency between direct responses, subclassed resources, and collection-based responses.
- Improved nested serialization behavior for transformed family/member-style resource trees.
Tests
- Added regression coverage for class-level response hooks mutating headers, status, and body.
- Added regression coverage for nested transformed collections returned both as
.toObject()results and as direct collection instances.
Full Changelog: 1.0.0...1.1.0
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
0.2.15
What's Changed
- feat: update pagination meta path to be the exact current url including page number.
Full Changelog: 0.2.14...0.2.15
0.2.14
What's Changed
- feat: implement request page parameter handling and Arkorm current page resolver
Full Changelog: 0.2.13...0.2.14
0.2.13
What's Changed
- feat: add pagination link handling and HTTP context auto detection support for Arkormˣ models
Full Changelog: 0.2.12...0.2.13
0.2.12
What's Changed
- fix: ensure automatic detection of global context object.
- feat: allow
ServerResponseto auto detect response object from global context
Full Changelog: 0.2.11...0.2.12
0.2.11
What's Changed
- feat: update constructor parameters to use context object for Resource and ResourceCollection, enhancing URL detection and auto-send capabilities
- feat: implement request context handling for pagination URL generation and update tests
Full Changelog: 0.2.10...0.2.11
0.2.10
What's Changed
- feat: auto-load runtime config in BaseSerializer and update paginatedMeta handling in defineConfig
Full Changelog: 0.2.9...0.2.10
0.2.9
What's Changed
- feat: update arkormx dependency version to ^0.2.5 in package.json
Full Changelog: 0.2.8...0.2.9
0.2.8
What's Changed
- feat: refactor response handling in Resource classes to utilize runResponse and runThen methods from Base serializer to reduce boiler plate.
- feat: enhance BaseSerializer and related classes with metadata handling and utility methods
- feat: implement BaseSerializer for consistent resource configuration handling
- feat: add resource-level configuration support
- fix: improve resource name handling in the MakeResource command
- feat: enhance ResourceCollection class and add UserCollection tests for Arkorm integration
Full Changelog: 0.2.6...0.2.8