You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bson-direct no longer stores null for absent Option fields. A field holding None is left out of the document entirely, so collections with many optional fields get materially smaller on disk. Reads are unaffected in both directions — a missing field decodes to None, and documents already carrying an explicit null still decode to None — so there is no migration.
WireCodecConfig is now a builder: start from WireCodecConfig.Default or .SnakeCase and chain withFieldNaming, withDiscriminatorNaming, withEncodeEmptyCasesAsString, withOmitNoneFields. Derivation options can now be added without breaking binary compatibility, so this is the last time the type changes shape.
Binary compatibility is enforced, not just promised. MiMa runs in CI against the previous release; every deliberate exception is a filter in mima.sbt and an entry in COMPATIBILITY.md.
DESIGN.md — why the library is shaped the way it is: what each decision cost, which sharp edges are deliberate, and what was rejected. Benchmarks and the compatibility policy moved into their own files too.
Breaking changes
WireCodecConfig is no longer a case class … Replace WireCodecConfig(fieldNaming = x) with WireCodecConfig.Default.withFieldNaming(x). Source and binary — recompile against 1.1.0.
Documents written through bson-direct no longer contain keys for None fields. {field: null} still matches them, but $exists: true and sparse indexes no longer see them; withOmitNoneFields(false) returns the old behavior.