Skip to content

v4.0.0

Choose a tag to compare

@Deng-Ran Deng-Ran released this 25 Jan 17:50
· 27 commits to master since this release

Breaking Changes

  • Multi-module restructure: Project split into two modules:
    • fastproto - Core library with all runtime functionality (backwards compatible artifactId)
    • fastproto-processor - Annotation processor for compile-time formula generation
  • Dynamic lambda compilation is now disabled by default for better Android/JRE compatibility

Added

  • fastproto-processor module with SPI auto-discovery for annotation processors
  • FormulaProcessor - Generates Function classes at compile time for @DecodingFormula(lambda="...") and @EncodingFormula(lambda="...")
  • CodecProcessor - Generates codec wrapper classes for @GenerateCodec annotated classes
  • FormulaRegistry - Runtime lookup for compile-time generated formula classes
  • Full Android and Java 11+ JRE compatibility for lambda formulas via annotation processor

Changed

  • Lambda formulas now use compile-time code generation instead of runtime dynamic compilation
  • Users need to add fastproto-processor as a dependency to use lambda formula features
  • Updated documentation for new multi-module structure

Migration Guide

For users upgrading from 3.x: