unstale

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 init

@unstale/cli 0.2.1 on npm

inline-snapshot 0.368 changes

Breaking changes 1

  • Built-in literal values are always managed; registering their types as unmanaged now raises TypeError.

    0.36.1release notes

New APIs and options 1

  • The hook receives the corresponding existing snapshot value, or ... when there is no corresponding snapshot.

    0.36.0release notes

Performance 4

  • Comparisons avoid unnecessary deep copies of immutable built-in values.

    0.36.1release notes

  • Conversion of literal constants is faster, especially for large lists and dictionaries.

    0.36.1release notes

  • Conversion reads AST constant values directly instead of compiling and evaluating them.

    0.36.1release notes

  • Source representations are generated only when needed, improving performance when comparing matching snapshots with updates disabled.

    0.36.1release notes

Behavior and default changes 1

  • Registrations are scoped to the current snapshot context and inherited from the parent context.

    0.36.1release notes

Fixes and other changes 1

  • The short report now hides snapshot representation change messages when show-updates is disabled.

    0.36.1release notes

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.

    0.35.4release notes

  • Fixed a crash during session finalization when pytest's capture plugin is disabled.

    0.35.4release notes