syrupy breaking changes
Updated December 4, 2026
On this page
Latest version 7.0.3, released November 21, 2026. Source repository
Its 7.0.0 release drops Python 3.10. Python end of life dates.
- From 6.1.1 to 7.0.2: 22 breaking changes in 3 versions.
- From 5.0.0 to 7.0.2: 78 breaking changes in 10 versions.
syrupy 7.0.2 breaking changes
- Behavior changed
Snapshot files are now only recognized when their file extension is complete. Check that existing snapshot files use the full extension. github.com
syrupy 7.0.1 breaking changes
- Removed
syrupy.assertion.DiffMode.__str__
DiffMode.__str__ was removed in syrupy 7.0.1 pypi.org - Removed
syrupy.DiffMode.__str__
DiffMode.__str__ was removed in syrupy 7.0.1 pypi.org - Removed
syrupy.extensions.amber.serializer.removesuffix
syrupy.extensions.amber.serializer.removesuffix was removed in syrupy 7.0.1 pypi.org - Removed
syrupy.extensions.json.WriteMode.__str__
WriteMode.__str__ was removed in syrupy 7.0.1 pypi.org - Removed
syrupy.extensions.single_file.WriteMode.__str__
WriteMode.__str__ was removed in syrupy 7.0.1 pypi.org - Signature changed
syrupy.assertion.DiffMode
Was class DiffMode(Enum); now class DiffMode(StrEnum). pypi.org - Signature changed
syrupy.DiffMode
Was class DiffMode(Enum); now class DiffMode(StrEnum). pypi.org - Signature changed
syrupy.extensions.json.WriteMode
Was class WriteMode(Enum); now class WriteMode(StrEnum). pypi.org - Signature changed
syrupy.extensions.single_file.WriteMode
Was class WriteMode(Enum); now class WriteMode(StrEnum). pypi.org - Signature changed
syrupy.report.SnapshotReport.__init__
Was def __init__(self, base_dir: Path, collected_items: set[pytest.Item], selected_items: dict[str, ItemStatus], options: argparse.Namespace, assertions: list[SnapshotAssertion], lf_filtered: bool = False, discovered: SnapshotCollections =... pypi.org
And 3 more in this version. Sign up to see every change
syrupy 7.0.0 breaking changes
- Removed
Python 3.10 is end-of-life and no longer supported. Upgrade to Python 3.11 or later before using syrupy 7. github.com - Removed
Python 3.10 is no longer supported; users must run on Python 3.11 or later. github.com - Removed
--snapshot-file-lock
Amber file locking now turns on automatically when pytest-xdist distributes work. Suites passing --snapshot-file-lock should drop it; --snapshot-file-lock-timeout remains. github.com - Removed
syrupy.session.is_xdist_gw0
syrupy.session.is_xdist_gw0 was removed in syrupy 7.0.0 pypi.org - Removed
syrupy.utils.is_xdist_gw0
syrupy.utils.is_xdist_gw0 was removed in syrupy 7.0.0 pypi.org - Renamed
syrupy.xdist_numprocesses
Use syrupy.session.xdist_numprocesses instead. pypi.org - Signature changed
syrupy.report.SnapshotReport.__init__
Was def __init__(self, base_dir: Path, collected_items: set[pytest.Item], selected_items: dict[str, ItemStatus], options: argparse.Namespace, assertions: list[SnapshotAssertion], discovered: SnapshotCollections = SnapshotCollections()... pypi.org - Signature changed
syrupy.SnapshotSession.__init__
Was def __init__(self, pytest_session: pytest.Session, ignore_file_extensions: list[str] | None = None, report: Optional[SnapshotReport] = None, _collected_items: dict[str, pytest.Item] = dict(), _selected_items: dict[str, ItemStatus] =... pypi.org
syrupy 6.1.1 breaking changes
- Signature changed
syrupy.extensions.amber.serializer.AmberDataSerializer.write_file
Was @classmethod def write_file(cls, snapshot_collection: SnapshotCollection, merge: bool = False, name_order: dict[str, int] | None = None) -> None; now @classmethod def write_file(cls, snapshot_collection: SnapshotCollection, merge: bool... pypi.org - Signature changed
syrupy.matchers.AmberDataSerializer.write_file
Was @classmethod def write_file(cls, snapshot_collection: SnapshotCollection, merge: bool = False, name_order: dict[str, int] | None = None) -> None; now @classmethod def write_file(cls, snapshot_collection: SnapshotCollection, merge: bool... pypi.org - Signature changed
syrupy.session.SnapshotSession.__init__
Was def __init__(self, pytest_session: pytest.Session, ignore_file_extensions: list[str] | None = None, report: Optional[SnapshotReport] = None, _collected_items: dict[str, pytest.Item] = dict(), _selected_items: dict[str, ItemStatus] =... pypi.org - Signature changed
syrupy.SnapshotSession.__init__
Was def __init__(self, pytest_session: pytest.Session, ignore_file_extensions: list[str] | None = None, report: Optional[SnapshotReport] = None, _collected_items: dict[str, pytest.Item] = dict(), _selected_items: dict[str, ItemStatus] =... pypi.org
syrupy 6.0.0 breaking changes
- Removed
syrupy.extensions.amber.dataclasses_plugin
syrupy.extensions.amber.dataclasses_plugin was removed in syrupy 6.0.0 pypi.org - Removed
syrupy.extensions.amber.dataclasses_plugin.DataclassPlugin
The DataclassPlugin has been removed because the Amber serializer now handles stdlib dataclasses natively. Remove the plugin imports and wiring; dataclass snapshots may change to field-by-field Amber form and need --snapshot-update if they... github.com - Behavior changed
dataclasses
Dataclasses that did not use the plugin may serialize differently from a repr-style string to structured Amber form, so snapshots may need updating. github.com - Behavior changed
datetime.date
Dates in JSON snapshots now use YYYY-MM-DD instead of a repr string, so existing JSON snapshots containing dates need an update. github.com - Behavior changed
path_value
With regex=False, values at nested paths such as user.token are now replaced, so previously unredacted values change and snapshots may need re-running with --snapshot-update. github.com - Signature changed
syrupy.assertion.SnapshotAssertion.__call__
Was def __call__(self, *, diff: Optional[SnapshotIndex] = None, exclude: Optional[PropertyFilter] = None, include: Optional[PropertyFilter] = None, extension_class: type[AbstractSyrupyExtension] | None = None, matcher... pypi.org - Signature changed
syrupy.extensions.amber.serializer.AmberDataSerializer.serialize_number
Was @classmethod def serialize_number(cls, data: int | float, *, depth: int = 0, exclude: Optional[PropertyFilter] = None, include: Optional[PropertyFilter] = None, matcher: Optional[PropertyMatcher] = None, path: PropertyPath = ()... pypi.org - Signature changed
syrupy.extensions.amber.serializer.AmberDataSerializer.snapshot_sort_key
Was @classmethod def snapshot_sort_key(cls, snapshot: Snapshot) -> Any; now @classmethod def snapshot_sort_key(cls, snapshot: Snapshot, name_order: dict[str, int] | None = None) -> Any. pypi.org - Signature changed
syrupy.extensions.amber.serializer.AmberDataSerializer.write_file
Was @classmethod def write_file(cls, snapshot_collection: SnapshotCollection, merge: bool = False) -> None; now @classmethod def write_file(cls, snapshot_collection: SnapshotCollection, merge: bool = False, name_order: dict[str, int] |... pypi.org - Signature changed
syrupy.extensions.AmberSnapshotExtension.write_snapshot_collection
Was @classmethod def write_snapshot_collection(cls, *, snapshot_collection: SnapshotCollection) -> None; now @classmethod def write_snapshot_collection(cls, *, snapshot_collection: SnapshotCollection, name_order: dict[str, int] | None =... pypi.org
And 11 more in this version. Sign up to see every change
syrupy 5.5.1 breaking changes
- Removed
syrupy.pytest_testnodedown
syrupy.pytest_testnodedown was removed in syrupy 5.5.1 pypi.org
Older versions
5 older versions, each with its first changes. Sign up to see every change
Show 5 older versions
syrupy 5.5.0 breaking changes
- Removed
syrupy.session.is_xdist_controller
syrupy.session.is_xdist_controller was removed in syrupy 5.5.0 pypi.org - Removed
syrupy.utils.is_xdist_controller
syrupy.utils.is_xdist_controller was removed in syrupy 5.5.0 pypi.org
And 3 more in this version.
syrupy 5.4.0 breaking changes
- Removed
syrupy.report.Expression.code
Expression.code was removed in syrupy 5.4.0 pypi.org - Signature changed
syrupy.report.Expression.__init__
Was def __init__(self, code: frozenset[str] = frozenset()) -> None; now def __init__(self, keyword: str = '') -> None. pypi.org
syrupy 5.3.4 breaking changes
- Removed
syrupy.DISABLE_COLOR_ENV_VAR
syrupy.DISABLE_COLOR_ENV_VAR was removed in syrupy 5.3.4 pypi.org - Removed
syrupy.env_context
syrupy.env_context was removed in syrupy 5.3.4 pypi.org
And 19 more in this version.
syrupy 5.3.0 breaking changes
- Signature changed
syrupy.assertion.SnapshotAssertion.__init__
Was def __init__(self, session: SnapshotSession, extension_class: type[AbstractSyrupyExtension], test_location: PyTestLocation, update_snapshots: bool, include: Optional[PropertyFilter] = None, exclude: Optional[PropertyFilter] = None... pypi.org - Signature changed
syrupy.SnapshotAssertion.__init__
Was def __init__(self, session: SnapshotSession, extension_class: type[AbstractSyrupyExtension], test_location: PyTestLocation, update_snapshots: bool, include: Optional[PropertyFilter] = None, exclude: Optional[PropertyFilter] = None... pypi.org
syrupy 5.0.0 breaking changes
- Removed
Syrupy 5.0.0 needs Python 3.10 or newer, so Python 3.8 is no longer supported. Upgrade the Python runtime before installing this version. github.com - Removed
SNAPSHOT_DIRNAME
The constant is gone. Use the snapshot directory property on SnapshotCollectionStorage or the --snapshot-dirname CLI option instead. github.com
And 19 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.