pypi / inline-snapshot
inline-snapshot
What changed in inline-snapshot 0.35 to 0.36, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-21.
1 breaking1 new APIs and options4 performance1 behavior and defaults3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initinline-snapshot 0.368 changes
Breaking changes 1
Built-in literal values are always managed; registering their types as unmanaged now raises TypeError.
New APIs and options 1
The hook receives the corresponding existing snapshot value, or
...when there is no corresponding snapshot.
Performance 4
Comparisons avoid unnecessary deep copies of immutable built-in values.
Conversion of literal constants is faster, especially for large lists and dictionaries.
Conversion reads AST constant values directly instead of compiling and evaluating them.
Source representations are generated only when needed, improving performance when comparing matching snapshots with updates disabled.
Behavior and default changes 1
Registrations are scoped to the current snapshot context and inherited from the parent context.
Fixes and other changes 1
The short report now hides snapshot representation change messages when show-updates is disabled.
inline-snapshot 0.352 changes
Fixes and other changes 2
Trimming no longer changes snapshots when a test fails or pytest is limited to selected tests; skipped tests and fixture teardown errors do not block it. An explicit trim request overrides the safeguard.
Fixed a crash during session finalization when pytest's capture plugin is disabled.