Skip to content

paper_trail 14.0.0

14.0.0 (2022-11-26)

Breaking Changes

  • #1399 - Same change re: YAML.safe_load as in 13.0.0, but this time for Rails 6.0 and 6.1.
    • This change only affects users whose versions table has object or object_changes columns of type text, and who use the YAML serializer. People who use the JSON serializer, or those with json(b) columns, are unaffected.
    • Please see doc/pt_13_yaml_safe_load.md for details.
  • #1406 - Certain [Metadata][1] keys are now forbidden, like id, and item_type. These keys are reserved by PT.
    • This change is unlikely to affect anyone. It is not expected that anyone uses these metadata keys. Most people probably don't use PT metadata at all.

Dependencies

  • Drop support for Rails 5.2, which reached EoL on 2022-06-01
  • Drop support for Ruby 2.6, which reached EoL on 2022-03-31
  • Drop support for request_store < 1.4

Added

  • None

Fixed

  • #1395 - Fix incorrect Version#created_at value when using PaperTrail::RecordTrail#update_columns
  • #1404 - Delay referencing ActiveRecord until after Railtie is loaded
  • Where possible, methods which are not part of PaperTrail's public API have had their access changed to private. All of these methods had been clearly marked as @api private in the documentation, for years. This is not expected to be a breaking change.