Skip to content

3.0.0-beta

Latest
Compare
Choose a tag to compare
@theramis theramis released this 02 Jan 07:05

Behaviour changes in V3 vs V2

  • Snapper now uses System.Text.Json rather than Newtonsoft.Json. This has a few small behavioural changes.
    • GlobalSnapshotSerialiserSettings and SnapshotSerialiserSettings will now be of type JsonSerializerOptions, which will require you to reconfigure any custom settings you have set.
    • Snapshot may be formatted differently due to differences between System.Text.Json and Newtonsoft.Json.
    • When using a malformed json string, previously an exception would have been thrown. In V3 the value is serialised as a string.
  • Support for Arrays and Primitives.
    • Previously these would be converted into a JSON object with the property name AutoGenerated, now they will be stored as is.