Skip to content

Fluxzero 2.0.0-RC3

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 31 Aug 11:58
· 88 commits to main since this release
7ebe93d

Symmetric document-based Models

RC3 is a focused correctness release on top of RC2. Document-authoritative Models now use the configured DocumentSerializer for both storage and reconstruction, so the Model repository obeys the same complete-document contract as ordinary Document Store reads.

What changed

For @Model(eventSourced = false), every repository read now passes the complete SerializedDocument to DocumentSerializer.fromDocument(...). This applies consistently to direct and current loads, batched loads, cache refresh after a miss or restart, Graph reconstruction, and namespaced repositories.

That makes document-level transformations truly round-trip capable:

  • encryption and decryption;
  • compression;
  • signing and integrity verification;
  • custom envelopes;
  • transformations that depend on document ID, collection, timestamps, or metadata.
Fluxzero.builder()
        .replaceDocumentSerializer(myDocumentSerializer)
        .build();

Compatibility

There is no persisted- or wire-format change. The default document serializer produces the same result as before, and event-sourced Model reconstruction is untouched. Existing custom serializers only gain the missing symmetric read callback.

Use SDK and Runtime 2.0.0-RC3 as a matching pair.

Full comparison: 2.0.0-RC2...2.0.0-RC3