Skip to content

1.3.15

Choose a tag to compare

@chrisdurfee chrisdurfee released this 02 Apr 10:57
· 204 commits to main since this release
feat: Enhance Policy class with auto-inferred type and validation

- Updated Policy class to auto-infer type from class name if not explicitly set.
- Added method to resolve policy type and validate camelCase convention for type property.
- Improved validation logic to warn on non-camelCase types.

feat: Introduce SyncController for Server-Sent Events

- Created SyncController to handle Redis pub/sub for SSE endpoints.
- Subclasses can define channel names and message handlers, reducing boilerplate.

feat: Add default mutation middleware handling in Router

- Implemented default middleware for mutation routes (POST, PUT, PATCH, DELETE).
- Added methods to set default middleware and opt-out for specific routes.

feat: Enhance Model class with alias generation and atomic operations

- Improved alias method to generate table aliases from table names.
- Added atomicIncrement and atomicDecrement methods for safe counter updates.

feat: Create PivotModel for immutable pivot records

- Introduced PivotModel for write-once pivot tables with immutable fields.

feat: Implement Gateway class for inter-module communication

- Created Gateway class to provide default CRUD operations for module gateways.

feat: Add AudienceTargetingTrait for reusable targeting methods

- Introduced AudienceTargetingTrait for managing audience targeting dimensions.

feat: Standardize like toggling with ToggleLikeTrait

- Implemented ToggleLikeTrait to handle like toggling with atomic operations.

feat: Create TogglePivotTrait for generic pivot toggling

- Added TogglePivotTrait for managing existence of pivot records.

feat: Implement VoteableTrait for voting functionality

- Introduced VoteableTrait to handle up/down voting with atomic score updates.