Skip to content

Latest commit

 

History

History
85 lines (70 loc) · 6.66 KB

CHANGELOG.md

File metadata and controls

85 lines (70 loc) · 6.66 KB

CHANGELOG

  • Unreleased

  • v0.5.2 - Nov 11, 2024

    • View Diff
    • #67 - Switch default storage method to native SQL JSON columns. No longer recommend to set ActiveSnapshot.config.storage_method, this configuration option is only retained to support legacy installations which utilize serialized YAML or serialized JSON text columns. The default storage method will fallback gracefully for legacy installations, if there already exists a text column then it defaults to ActiveSnapshot.config.storage_method = "serialized_json"
    • Drop support for Rails 6.0. Rails 6.1 is minimum required version now.
  • v0.5.1 - Nov 11, 2024

    • View Diff
    • #66 - Ensure SnapshotItem#restore_item! and Snapshot#fetch_reified_items bypass assignment for snapshot object data where the associated column no longer exists.
    • #63 - Fix bug when enum value is nil
  • v0.5.0 - Nov 8, 2024

    • View Diff
    • #61 - Ensure snapshot record returned by create_snapshot! is valid?
    • #60 - Store enum value as integer
    • #56 - Add presence validation for object in SnapshotItem model
    • #57 - Add readonly argument to Shapshot#fetch_reified_items
    • #53 - Allow ActiveSnapshot.config to be called before ActiveRecord on_load hook has occurred
    • #52 - Remove deprecated positional argument on create_snapshot!
  • v0.4.0 - July 23, 2024

    • View Diff
    • #44 - Remove dependency on activerecord-import with vanilla ActiveRecord upsert_all
  • v0.3.2 - Oct 17, 2023

    • View Diff
    • #43 - Fix unique index error in generated DB migration
  • v0.3.1 - August 4, 2023

    • View Diff
    • #36 - Allow ActiveRecord to be lazy loaded using ActiveSupport.on_load
    • #35 - Add optional: true to the Snapshot belongs_to :user relationship
    • #39 - Remove redundant validation on SnapshotItem for item_type
  • v0.3.0 - November 14, 2022

    • View Diff
    • PR #24 - Fix arguments for db migration for mysql
    • PR #29 - Deprecate :identifier argument as a positional argument
    • PR #30 - Make snapshot identifier optional
    • PR #32 - Add configuration option ActiveSnapshot.config.storage_method = 'serialized_json' with support for serialized_json, serialized_yaml, native_json
    • PR #32 - Change default storage method from serialized_yaml to serialized_json.
    • PR #32 - snapshot.metadata and snapshot_item.object no longer return a HashWithIndifferentAccess. Now they simply return a regular Hash.
    • Upgrade Instructions
      • Change all instances of create_snapshot!("my-snapshot-1" to create_snapshot!(identifier: "my-snapshot-1")
      • Create a migration with the following change_column_null :snapshots, :identifier, true to remove the null constraint here
      • If you have existing snapshots from a previous version then please set ActiveSnapshot.config.storage_method = "serialized_yaml" in an initializer
  • v0.2.4 - Feb 25, 2022

    • View Diff
    • PR #20 - Resolve error when has_snapshot_children has not been defined as it should be optional
    • PR #18 - Fix bug where sub-classes of a model would not be assigned correctly as parent when restoring
  • v0.2.3 - Jan 7, 2022

    • View Diff
    • Support Ruby 3.1 using YAML.unsafe_load
    • Fix unique constraint on snapshots.identifier column
  • v0.2.2 - August 27, 2021

    • View Diff
    • 0715279 - Fix bug on restore for in has_snapshot_children method with nil association values
  • v0.2.1 - August 19, 2021

    • View Diff
    • 76b6bd9 - Improve has_snapshot_children method to support single records and nil values which can occur with has_one/belongs_to relationships
    • PR #7 - Allow has_snapshot_children to be undefined for tracking only top level changes.
  • v0.2.0 - May 7, 2021

    • PR #1 - Fix bug where only the first child association would be captured
    • View Diff
  • v0.1.1 - Mar 5, 2021

    • Switch from JSON to Text because Mysql2 has errors with active_record-import and JSON objects
    • Fix test suite
    • View Diff
    • Nothing yet
  • v0.1.0 - Mar 5, 2021