Releases: AghastyGD/lazy-ninja
Releases · AghastyGD/lazy-ninja
v0.4.0
Release Notes for Version 0.4.0
New Features
controller_fordecorator: Introduced a new decoratorcontroller_forinregistry.pyto automatically register a controller for a model. This simplifies the creation and registration of custom controllers, making it easier for developers to implement custom hooks.- Kebab-Case Conversion Utility: Added a new utility function
to_kebab_caseinhelpers.pythat converts strings from various formats (CamelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE) to kebab-case. This is useful for URL handling. - Pagination and Filtering Functionality:
- Implemented pagination and filtering (sort and order) in the routes.
- Created custom functions for handling pagination and filters.
- Organized the code by introducing a new module
pagination.pyand enhancinghelpers.py. - Enabled selection of the pagination type via the
pagination_typeparameter or theNINJA_PAGINATION_CLASSsetting. - Leveraged page limit configuration using the
NINJA_PAGINATION_PER_PAGEsetting.
Improvements
- Module Import Handling: Added new
discover_controllersmethod inregistry.pyto improve module import handling. This ensures that all controller modules are correctly imported and registered.
Documentation
- Updated Documentation: Updated the README to reflect the new
controller_fordecorator. Added examples and usage instructions for the new feature
Tests
- Unit tests for kebab-case: Added unit tests for the
to_kebab_casefunction to ensure correct conversion from various string formats to kebab-case. - Manually tested the
controller_fordecorator and pagination and filters feature to ensure proper integration and behavior.
Breaking Changes
- None
How to Upgrade
- Update your project dependencies to include the new version of Lazy Ninja.
- Review the updated documentation to understand the new
controller_fordecorator and how to use it for custom controllers. - Run the new unit tests to ensure that your project is compatible with the new version.
v0.3.1 - Release
What's Changed
- Fix python code in the readme by @sobolevn in #12
- hotfix: Add foreign key conversion in update route by @AghastyGD in #13
- feat: update to version 0.3.0 with new features, fixes, and Pydantic v2 compatibility by @AghastyGD in #14
- Dev by @AghastyGD in #15
New Contributors
Full Changelog: v0.2.0...v0.3.1
v0.2.0 - Release
Promoting the pre-release 0.2.0a1 to a more stable release. In this version, were fixed several bugs and implemented improvements that were already tested during the alpha phase.
Key Changes:
- Fixed bugs identified during alpha testing.
- Enhanced documentation and incorporated user feedback.
- Adjusted the API for greater consistency.
v0.2.0a1 - Pre-release (Alpha)
What's Changed
- Fix: Prevent registration of routes for models not present in the Database by @AghastyGD in #7
- Update Readme by @AghastyGD in #8
- Fix: Resolve validation errors on listing/creating models with ImageField, DateTimeField, and ForeignKey by @AghastyGD in #10
New Contributors
- @AghastyGD made their first contribution in #7
Full Changelog: https://github.com/AghastyGD/lazy-ninja/commits/v0.2.0a1