Skip to content

Releases: pbomb/flow-immutable-models

Version 0.11.1

17 Jan 15:34
Compare
Choose a tag to compare

Patches

  • Provides better error message when ModelType is incorrect: 7725ed6

Version 0.10.0

16 Jan 04:02
Compare
Choose a tag to compare

Minor Changes

  • Add support for string literal types and unions of string literal types: 9247402

Patches

  • Fix API of ImmutableModel#concatToList: c46c4c3
  • Revamp docs: 000ccc6

v0.8.1

28 Dec 18:30
Compare
Choose a tag to compare

Fixes initialization of maybe array and object types

v0.8.0

28 Dec 15:33
Compare
Choose a tag to compare

Changes

  • Return type of setters changed to this instead of the specific model class to support extending model classes
  • Added support for Object maps. If you type a property as { [key: string]: number }, then it will convert that object to Immutable.Map<string, number> inside the class. The value can also be another ModelType and it will convert the values to the model class. This still needs to be documented properly.