Skip to content

Latest commit

 

History

History
79 lines (60 loc) · 2.95 KB

CHANGELOG.md

File metadata and controls

79 lines (60 loc) · 2.95 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

  • ...

[2.2.0] - 2021-03-11

Added

  • Proper error is raised on unsupported includes (#125)

Changed

  • Documentation updates (#137 #139 #143 #146)

Fixed

  • Empty relationships are no longer added to serialized doc (#116)
  • Ruby v3 compatibility (#160)

[2.1.0] - 2020-08-30

Added

  • Optional meta field to relationships (#99 #100)
  • Support for params on cache keys (#117)

Changed

  • Performance instrumentation (#110 #39)
  • Improved collection detection (#112)

Fixed

  • Ensure caching correctly incorporates fieldset information into the cache key to prevent incorrect fieldset caching (#90)
  • Performance optimizations for nested includes (#103)

[2.0.0] - 2020-06-22

The project was renamed to jsonapi-serializer! (#94)

Changed

  • Remove ObjectSerializer#serialized_json (#91)

[1.7.2] - 2020-05-18

Fixed

  • Relationship#record_type_for does not assign static record type for polymorphic relationships (#83)

[1.7.1] - 2020-05-01

Fixed

  • ObjectSerializer#serialized_json accepts arguments for to_json (#80)

[1.7.0] - 2020-04-29

Added

  • Serializer option support for procs (#32)
  • JSON serialization API method is now implementable (#44)

Changed

  • Support for polymorphic id_method_name (#17)
  • Relationships support for &:proc syntax (#58)
  • Conditional support for procs (#59)
  • Attribute support for procs (#67)
  • Refactor caching support (#52)
  • is_collection? is safer for objects (#18)

Removed

  • serialized_json is now deprecated (#44)

[1.6.0] - 2019-11-04

Added

  • Allow relationship links to be delcared as a method (#2)
  • Test against Ruby 2.6 (#1)
  • Include data key when lazy-loaded relationships are included (#10)
  • Conditional links #15
  • Include params on set_id block #16

Changed

  • Optimize SerializationCore.get_included_records calculates remaining_items only once (#4)
  • Optimize SerializtionCore.parse_include_item by mapping in place (#5)
  • Define ObjectSerializer.set_key_transform mapping as a constant (#7)
  • Optimize SerializtionCore.remaining_items by taking from original array (#9)
  • Optimize ObjectSerializer.deep_symbolize by using each_with_object instead of Hash[map] (#6)