Releases: syrupy-project/syrupy
v5.0.0
Syrupy 5.0.0
(2025-09-28)
This release introduces new features, bug fixes, and a major license change. It also includes several breaking changes, so please review those carefully before upgrading.
New Features ✨
- Add
--snapshot-dirnameoption: A new option,--snapshot-dirname, is now available to change the default directory snapshots are stored in. ([#810](#810)) - Remove private underscore prefix: The unnecessary underscore prefixes have been removed from public methods for better code clarity. ([8cfc905](8cfc905))
Bug Fixes 🐛
- Fix terminal summary for
xdistworkers: Resolves an issue where the terminal summary was not displayed correctly withxdistworkers. ([#978](#978)) - Ensure
pytest_assertrepr_comparehook is called first: This change ensures that Syrupy's assertion hook takes precedence, improving compatibility with other plugins. ([#984](#984))
Breaking Changes ⚠️
-
License change: The project has switched to the more permissive MIT license. This change applies to all versions from 5.0.0 and beyond. If you need to use the previous Apache 2.0 license, you must continue to use Syrupy versions 4.x or earlier. ([#945](#945))
-
Python and pytest version requirements: Syrupy now requires Python 3.10 or higher. Support for Python 3.8 has been dropped as it reached its end of life in October 2024. The minimum required version of pytest is v8. ([#904](#904), [#1024](#1024))
-
Method and constant name changes: Several methods and constants have been renamed for improved clarity and to align with public API standards.
-
SnapshotCollectionStorage_read_snapshot_collection->read_snapshot_collection_read_snapshot_data_from_location->read_snapshot_data_from_location_write_snapshot_collection->write_snapshot_collection_get_file_basename->get_file_basename_file_extension->file_extension
-
AmberDataSerializer_snapshot_sort_key->snapshot_sort_key
-
Constants
SNAPSHOT_EMPTY_FOSSIL_KEY->SNAPSHOT_EMPTY_COLLECTION_KEYSNAPSHOT_UNKNOWN_FOSSIL_KEY->SNAPSHOT_UNKNOWN_COLLECTION_KEYSNAPSHOT_DIRNAMEhas been removed in favour of the property on theSnapshotCollectionStorageclass and associated CLI option.
-
New Contributors
- @paul-ollis made their first contribution in #978
- @rahuliyer95 made their first contribution in #984
Full Changelog: v4.9.1...v5.0.0
v4.9.1
v4.9.0
4.9.0 (2025-03-08)
Bug Fixes
Features
- add --snapshot-ignore-file-extensions argument to support DVC (#943) (056cc6e)
- add compose_matchers utility for composing 1 or more matchers (#952) (157dbec)
- add SingleFileAmberSnapshotExtension as a single-file variant of the default amber extension (#959) (a753b7a)
- include details about created/updated snapshots in detailed report (#942) (25d37ef)
v4.8.3
v4.8.2
v4.8.1
v4.8.0
v4.7.2
v4.7.1
v4.7.0
4.7.0 (2024-08-23)
What's Changed
- feat: Added a new CLI flag: --snapshot-patch-pycharm-diff by @UltimateLobster in #864
New Contributors
- @UltimateLobster made their first contribution in #864
Full Changelog: v4.6.4...v4.7.0