Skip to content

Tags: Genfood/syrupy

Tags

v5.0.0

Toggle v5.0.0's commit message
chore(release): 5.0.0 [skip ci]

# [5.0.0](syrupy-project/syrupy@v4.9.1...v5.0.0) (2025-09-28)

* Switch to MIT license ([syrupy-project#945](syrupy-project#945)) ([d74d340](syrupy-project@d74d340))

### Bug Fixes

* Block terminal summary for xdist workers. ([syrupy-project#978](syrupy-project#978)) ([33a848d](syrupy-project@33a848d))
* ensure syrupy's pytest_assertrepr_compare hook is called first. ([syrupy-project#984](syrupy-project#984)) ([eb0024d](syrupy-project@eb0024d))

### Code Refactoring

* remove incorrect private underscore prefix from public methods ([8cfc905](syrupy-project@8cfc905))

### Features

* add --snapshot-dirname option, close [syrupy-project#810](syrupy-project#810) ([27135c7](syrupy-project@27135c7))
* drop support for py3.8, raise min. pytest to v8 ([syrupy-project#904](syrupy-project#904)) ([a879ff1](syrupy-project@a879ff1))
* update min. python version to 3.10 ([syrupy-project#1024](syrupy-project#1024)) ([16b4113](syrupy-project@16b4113))

### BREAKING CHANGES

* The following methods have been renamed:

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

Renamed constants to improve clarity:

constants
- SNAPSHOT_EMPTY_FOSSIL_KEY -> SNAPSHOT_EMPTY_COLLECTION_KEY
- SNAPSHOT_UNKNOWN_FOSSIL_KEY -> SNAPSHOT_UNKNOWN_COLLECTION_KEY
* Min. python version is now 3.10.
* The Syrupy project is switching from Apache 2.0 to a more permissive MIT license. By using Syrupy >=5, you agree to abide by this new license. You can continue to use Syrupy v1 through v4 under Apache 2.0.
* Drops support for Python 3.8 which is end of life as of October 2024. Raises the minimum version of pytest to v8.

v4.9.1

Toggle v4.9.1's commit message
chore(release): 4.9.1 [skip ci]

## [4.9.1](syrupy-project/syrupy@v4.9.0...v4.9.1) (2025-03-24)

### Bug Fixes

* **serializer:** preserve trailing newlines in ambr serialization ([syrupy-project#950](syrupy-project#950)) ([5897490](syrupy-project@5897490))
* **serializer:** preserve trailing newlines in ambr serialization ([syrupy-project#950](syrupy-project#950)) ([5037477](syrupy-project@5037477))

v4.9.0

Toggle v4.9.0's commit message
chore(release): 4.9.0 [skip ci]

# [4.9.0](syrupy-project/syrupy@v4.8.3...v4.9.0) (2025-03-08)

### Bug Fixes

* **serializer:** raise TypeError when serializing non-byte like object in binary mode ([syrupy-project#951](syrupy-project#951)) ([2bd0f54](syrupy-project@2bd0f54))

### Features

* add --snapshot-ignore-file-extensions argument to support DVC ([syrupy-project#943](syrupy-project#943)) ([056cc6e](syrupy-project@056cc6e))
* add compose_matchers utility for composing 1 or more matchers ([syrupy-project#952](syrupy-project#952)) ([157dbec](syrupy-project@157dbec))
* add SingleFileAmberSnapshotExtension as a single-file variant of the default amber extension ([syrupy-project#959](syrupy-project#959)) ([a753b7a](syrupy-project@a753b7a))
* include details about created/updated snapshots in detailed report ([syrupy-project#942](syrupy-project#942)) ([25d37ef](syrupy-project@25d37ef))

v4.8.3

Toggle v4.8.3's commit message
chore(release): 4.8.3 [skip ci]

## [4.8.3](syrupy-project/syrupy@v4.8.2...v4.8.3) (2025-03-08)

### Bug Fixes

* snapshots of deselected parametrized tests wrongly marked as unused ([syrupy-project#965](syrupy-project#965)) ([52f3bb2](syrupy-project@52f3bb2))

v4.8.2

Toggle v4.8.2's commit message
chore(release): 4.8.2 [skip ci]

## [4.8.2](syrupy-project/syrupy@v4.8.1...v4.8.2) (2025-02-20)

### Bug Fixes

* avoid unnecessary env updates to reduce chances of segfault ([syrupy-project#956](syrupy-project#956)) ([7fdffd9](syrupy-project@7fdffd9))

v4.8.1

Toggle v4.8.1's commit message
chore(release): 4.8.1 [skip ci]

## [4.8.1](syrupy-project/syrupy@v4.8.0...v4.8.1) (2025-01-13)

### Bug Fixes

* check current session's pending-write queue when recalling snapshots (e.g. diffing) ([syrupy-project#927](syrupy-project#927)) ([0f6bb55](syrupy-project@0f6bb55))

v4.8.0

Toggle v4.8.0's commit message
chore(release): 4.8.0 [skip ci]

# [4.8.0](syrupy-project/syrupy@v4.7.2...v4.8.0) (2024-11-23)

### Features

* add option to disable diffing ([syrupy-project#924](syrupy-project#924)) ([d283e87](syrupy-project@d283e87))

v4.7.2

Toggle v4.7.2's commit message
chore(release): 4.7.2 [skip ci]

## [4.7.2](syrupy-project/syrupy@v4.7.1...v4.7.2) (2024-10-06)

### Bug Fixes

* allow snapshot dir to be different ([syrupy-project#892](syrupy-project#892)) ([548ec06](syrupy-project@548ec06))

v4.7.1

Toggle v4.7.1's commit message
chore(release): 4.7.1 [skip ci]

## [4.7.1](syrupy-project/syrupy@v4.7.0...v4.7.1) (2024-08-23)

### Bug Fixes

* pytest-rerunfailures compatibility ([syrupy-project#881](syrupy-project#881)) ([16911ad](syrupy-project@16911ad))

v4.7.0

Toggle v4.7.0's commit message
chore(release): 4.7.0 [skip ci]

# [4.7.0](syrupy-project/syrupy@v4.6.4...v4.7.0) (2024-08-23)

### Features

* Added a new CLI flag: --snapshot-patch-pycharm-diff ([a4dfcf5](syrupy-project@a4dfcf5))