Skip to content

Releases: zaikio/serialize_attributes

v1.0.1

18 Oct 07:24
457121e
Compare
Choose a tag to compare
  • Fix dirty tracking after loading records without mutating them

v1.0.0

17 Oct 10:54
3f1a791
Compare
Choose a tag to compare

This version moves some of the internals around. Now the store columns are modelled as an
ActiveModel::AttributeSet, rather than a simple hash. This allows the library to do
proper dirty tracking & casting, similar to how Rails itself works with regular attributes.

As a result of this change, unfortunately two (unused) features had to be removed:

  • BREAKING Default values using a block are no longer supported
  • BREAKING Store#default no longer accepts a second context argument
  • BREAKING Arrays no longer support default values (default is always [])

However, the following features have been added:

  • Typecasting is now transparent to the user so complex types can be immediately read back
    after setting

v0.6.0

26 Jul 10:44
3f58dc1
Compare
Choose a tag to compare

Add predicated methods to attributes.

v0.5.0

25 Jul 10:07
Compare
Choose a tag to compare
  • Add enum type using validator to core library.

v0.4.1

13 Jul 09:56
Compare
Choose a tag to compare
  • Fix typecasting of BigDecimal just after creation of object
  • Add descriptive error message when deserializing a non-existing attribute

v0.4.0

07 Mar 09:48
db45ba8
Compare
Choose a tag to compare
  • Add support for listing array attributes

v0.3.1

25 Jan 11:03
Compare
Choose a tag to compare
  • Don't raise an error when used with ActiveRecord models where the schema has not yet loaded

v0.3.0

14 Jan 13:36
Compare
Choose a tag to compare
  • Add type parameter to serialized_attribute_names to filter by type.

v0.2.0

12 Jan 13:39
Compare
Choose a tag to compare
  • Add support for array: true when specifying attributes
  • Test using Rails 7

v0.1.0

16 Dec 14:59
Compare
Choose a tag to compare
  • Initial release