-
Unreleased
- View Diff
- Nothing yet
-
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 toActiveSnapshot.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
-
v0.5.0 - Nov 8, 2024
- View Diff
- #61 - Ensure snapshot record returned by
create_snapshot!
isvalid?
- #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 ActiveRecordon_load
hook has occurred - #52 - Remove deprecated positional argument on
create_snapshot!
-
v0.4.0 - July 23, 2024
-
v0.3.2 - Oct 17, 2023
-
v0.3.1 - August 4, 2023
-
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 forserialized_json
,serialized_yaml
,native_json
- PR #32 - Change default storage method from
serialized_yaml
toserialized_json
. - PR #32 -
snapshot.metadata
andsnapshot_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"
tocreate_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
- Change all instances of
-
v0.2.4 - Feb 25, 2022
-
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
-
v0.2.1 - August 19, 2021
-
v0.2.0 - May 7, 2021
-
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
- View Diff
- Gem Initial Release