Migration Guide¶
Upgrading to v2.1¶
No API changes. Reports use schema version 2. load_report() migrates
older reports automatically.
What changed¶
- Local values are structured. In v2.0 every local was a
reprstring cut at about 30 characters. In v2.1 lists, dicts, strings and numbers are stored as JSON values, so code that readlocals[name]["value"]as a string should handle other JSON types too. - The crash site is the innermost frame (
frames[-1]). v2.0 flaggedframes[0]. Fingerprints change as a result, so the first crash after upgrading starts a new deduplicated report. privacy_tiernow changes what is captured. If you relied on the default, nothing changes (tier 1). Tier 0 now really excludes variables.- Presets are applied.
configure(preset="production")now turns off env var names, as documented. safedump.test()no longer requiresinstall().safedump servedeletes need the token printed at startup.
Upgrading to v2.0¶
No breaking changes. v2.0 is a stabilization release. All v1.x public APIs remain functional.
Deprecations¶
None.
Upgrading to v1.3¶
No breaking changes.
What changed¶
- New optional
enable_entropy_detectionandentropy_thresholdconfig parameters. - New optional
compressconfig parameter. - New optional
on_crashconfig parameter. - New integration modules (
safedump.integrations.*). - Reports may now be saved as
.json.gzwhencompress=True.
Migration¶
All existing v1.x reports remain readable. No action required.
Upgrading to v1.2¶
No breaking changes.
What changed¶
- Reports now have a
schema_versionfield (v1). - Reports now have
fingerprint,occurrence_count,first_seen,last_seenfields. metadatafield type widened fromdict[str, str]todict[str, Any].- New CLI commands:
safedump doctor,safedump stats,safedump serve. - New CLI flags:
safedump view --html,safedump list --type/--since.
Migration¶
Old reports (no schema_version) are automatically migrated on
read. No action required.
Upgrading to v1.1¶
No breaking changes.
What changed¶
- Framework integration guides (Flask, FastAPI, Django).
safedump view --jsonflag.- Improved error handling for missing Rich.
- Dynamic version via
importlib.metadata.
Upgrading from v0.x¶
Reports from v0.x (pre-release) may not be forward-compatible with v1.x. It is recommended to regenerate reports rather than relying on migration of pre-release data.