Core Changes
- Migration to
Pipeline- Library code migrated to use newPipelinereplacing legacyRawChainandResultChain - Response Generation - Enhanced
ResponseGeneratorwith improved error handling usingCanCarryStateinterface - Partial Response Validation - Updated validation flow to use new state interface
- Type Safety Improvements - Better type annotations and interface compliance across pipeline components
Breaking Changes
- JsonSchema factory methods - Parameter order changed in factory methods:
- Old:
JsonSchema::string($name, $nullable, $description) - New:
JsonSchema::string($name, $description, $title, $nullable)
- Old:
- Pipeline interfaces - Introduction of
CanCarryStateinterface may affect custom pipeline processors (update type hints fromProcessingStatetoCanCarryState)
JsonSchema Package
- Fixed parameter ordering - Corrected
JsonSchemafactory method parameter order for consistent API acrossstring(),integer(),number(),boolean(),enum(),array(), andcollection()methods - Enhanced nullable handling - Fixed bug where nullable property was incorrectly set when description was passed as second parameter
Pipeline Package
- CanCarryState Interface - Introduced new
CanCarryStateinterface for improved state management abstraction - ProcessingState Optimizations - Slimmed down
ProcessingStateclass for cleaner API - Enhanced Error Handling - Improved error extraction and processing with better type safety
Bug Fixes
- JsonSchema nullable property - Fixed critical bug where
nullable: truewas incorrectly set in JSON schema output when description was passed as nullable parameter - Parameter type coercion - Resolved issue where string descriptions were being cast to boolean for nullable property
Documentation
- Pipeline Documentation - New
CHEATSHEET.mdandOVERVIEW.mdwith current API patterns
Full Changelog: v1.3.0…v1.4.0