Skip to content

Releases: project-lux/luxy

v. 0.0.6

16 Jan 15:09

Choose a tag to compare

Luxy 0.0.6 Release Notes

New Features

  • Added caching for Lux configuration to improve performance
    • Added _cached_lux_config to store configuration
    • Added clear_lux_config_cache() function to manually refresh config
  • Added support for default_field parameter in configuration
  • Enhanced filter validation with nested relationships
  • Added support for filter class validation in FilterBuilder

Improvements

  • Enhanced logical operator handling
    • Improved support for AND and NOT operators alongside existing OR operator
    • Better handling of condition lists in logical operations
  • Added support for dictionary-based values in filters
  • Added .name() method for explicit name filtering
  • More flexible value handling in FilterBuilder.__call__
    • Now supports None values for method chaining
    • Better handling of dictionary vs simple value inputs

Technical Changes

  • Modified FilterBuilder.__init__ to accept filter_class parameter
  • Updated query building logic to handle complex logical operations
  • Added validation for nested filter relationships using Lux configuration

v.0.0.2

19 Dec 18:51
fb7d4d3

Choose a tag to compare

Enhanced Entity Support and API Improvements

Overview

This PR introduces significant improvements to entity handling, filtering capabilities, and overall API functionality. It includes new features, bug fixes, and enhanced error handling to provide a more robust and user-friendly experience.

Key Changes

New Features

  • Added support for additional entity types and Lux configuration access
  • Implemented broader filtering support for objects beyond dictionaries
  • Added Collections support with expanded nested structure handling
  • Introduced partOf functionality with depth control
  • Added .view_url attribute to simplify URL access
  • Implemented get_options() method to expose available filters
  • Added support for numerical inputs with operators
  • Extended filter functionality to accept date inputs

Performance & Reliability

  • Made get() method idempotent through caching implementation
  • Added logging system to notify users when cached data is being used
  • Created formal test suite for reliability validation

Bug Fixes

  • Fixed end pages pagination issue
  • Resolved filter submission issues that were causing 400 errors #2 Thanks @azaroth42 !
  • Removed gender specification URI constraint for broader class compatibility #3 Thanks @azaroth42 !

Developer Experience

  • Changed base Lux URL to base_url attribute for clarity
  • Added input validation with clear error messages for unaccepted filters #1 Thanks @azaroth42 !
  • Updated documentation to reflect new features and changes

Documentation

  • README has been updated to include all new features and changes
  • Added comprehensive examples for new filtering capabilities
  • Updated usage guidelines for new entity types and collections

Breaking Changes

  • Base URL attribute renamed from lux url to base_url
  • Modified filter behavior now requires valid filter types

Testing

  • New test suite covers core functionality
  • Added regression tests for bug fixes
  • Validated caching behavior and filter operations

v.0.0.1

13 Dec 04:19

Choose a tag to compare

Added basic functionality.