Releases: overtrue/laravel-versionable
Releases · overtrue/laravel-versionable
5.2.1
What's Changed
- test: add failing test for diff triming the data by @mansoorkhan96 in #72
- Versionable::createInitialVersion fails if any global scope excludes … by @swolley in #74
New Contributors
Full Changelog: 5.2.0...5.2.1
5.2.0
What's Changed
- feat: Add option to strip tags for diff by @mansoorkhan96 in #70
- docs: document stripTags option by @mansoorkhan96 in #71
Full Changelog: 5.1.4...5.2.0
4.6.3
Full Changelog: 4.6.0...4.6.3
5.1.4
Full Changelog: 5.1.3...5.1.4
5.1.3
What's Changed
- Prevent lazyloading by @AlexisSerneels in #67
New Contributors
- @AlexisSerneels made their first contribution in #67
Full Changelog: 5.1.2...5.1.3
5.1.2
What's Changed
- fix: respect $dontVersionable when checking if version should be created by @mutschler in #61
- [PoC] add diff support for diff strategy by @mutschler in #62
- Fix diffs when it's an array by @simonhamp in #65
New Contributors
- @mutschler made their first contribution in #61
- @simonhamp made their first contribution in #65
Full Changelog: 5.1.1...5.1.2
5.1.1
5.1.0
What's Changed
- Feat/Add getStatistics method to Diff class by @mansoorkhan96 in #55
Full Changelog: 5.0.0...5.1.0
5.0.0
Added
- Added
oldestVersions()
- Added
latestVersions()
Updated
- Added pre-existing version detection before updating and create if not exists. by @mansoorkhan96 #53
setVersionStrategy(string $strategy)
now accept string or enum class:setVersionStrategy(string|VersionStrategy $strategy)
.VersionStrategy::SNAPSHOT
will no longer contain all model attributes, but only all$versionable
attributes.- Fixed revert logic under
VersionStrategy::DIFF
strategy. - Deprecated
history()
and replaced withlatestVersions()
Removed
- Removed auto migration.
5.0.0-beta.1
What's Changed
- Optionally create initial version of model by @mansoorkhan96 in #53
New Contributors
- @mansoorkhan96 made their first contribution in #53
Full Changelog: 4.5.0...5.0.0-beta.1