Skip to content

Marten 9.52.0

Choose a tag to compare

@jeremydmiller jeremydmiller released this 23 Oct 17:45
aec9b11

Highlights and behaviour changes

Built on JasperFx 2.93.1.

  • New table: mt_event_projection_floors. Every event store gets this table as a schema migration on its next
    apply (#5740). It holds the persisted projection start floors behind the new AsyncOptions.SubscribeFromFirstRun().
    A database whose schema has not been migrated yet keeps starting its projections exactly as before. Floors survive
    DeleteAllDocumentsAsync, DeleteAllEventDataAsync and ResetAllData, and they are removed along with a tenant.
  • New option: StoreOptions.Advanced.ExceptionTransforms (#5682). Register your own exception transforms, consulted
    before Marten's built-in ones, to turn a PostgresException with your own SQLSTATE into a typed exception.
  • Document diagnostics for CritterWatch (#5740): restore a soft-deleted document (UndeleteDocumentAsync), and order
    a document page by last modified, numeric revision or created time ("newest first").
  • A permanent database error in projection code is now attributed to the event that hit it (#5741). The paused
    shard reports ShardFailureCategory.ApplyEvent and names the event, where it used to report Other with no event.
    It is still not dead-lettered, and it was never retried before either.
  • IEventStore.PreviewHighWaterAdvanceAsync / AdvanceHighWaterMarkToLatestAsync (#5738): preview, then
    advance, the high-water mark to the latest event, the store-agnostic operation CritterWatch calls.
  • Fixes:
    • removing a tenant under UseTenantPartitionedEvents no longer fails with 23503, whether the store has DCB tag
      rows (#5720) or a [NaturalKey] aggregate (#5742);
    • a multi-stream projection's revision is no longer truncated through int past int.MaxValue, so ILongVersioned
      works as #4526 advised (#5723);
    • UndoDeleteWhere / HardDeleteWhere no longer cause a false ConcurrencyException on a numeric-revision write
      later in the same session (#5743).
  • The Aspire sample now uses Aspire.AppHost.Sdk 13.6.3 with a PostgreSQL resource. The NuGet publish workflow no
    longer installs the obsolete aspire workload (#5724).

What's Changed

  • LocalGate: the tests.yml suites locally through Bobcat's Gate (Bobcat 1.0.0-rc.3) by @jeremydmiller in #5726
  • Bump follow-redirects from 1.16.0 to 1.16.1 by @dependabot[bot] in #5722
  • GH-5738 Implement IEventStore high water preview/advance (#1031) by @jeremydmiller in #5739
  • Delete a removed tenant's DCB tag rows before dropping its mt_events partition by @lahma in #5720
  • Pin that a re-added tenant's agent started before its first append projects every event by @lahma in #5721
  • Pin subscription rewind under per-tenant partitioning end to end by @lahma in #5719
  • Implement the JasperFx 2.93 members: undelete, metadata ordering, soft-delete/metadata compliance, projection start floors (#5740) by @jeremydmiller in #5744
  • Delete a tenant's natural-key rows before its partition drop (#5742) by @jeremydmiller in #5746
  • Stop truncating a projection's revision through int in StoreProjection (#5723) by @jeremydmiller in #5747
  • Move the Aspire sample to Aspire.AppHost.Sdk 13.6.3 with a PostgreSQL resource; drop the workload step (#5724) by @jeremydmiller in #5748
  • StatementOperation is a NoDataReturnedCall: no false ConcurrencyException after UndoDeleteWhere / HardDeleteWhere (#5743) by @jeremydmiller in #5749
  • Let applications register their own exception transforms (#5682) by @jeremydmiller in #5750
  • Bump dompurify from 3.4.16 to 3.4.17 by @dependabot[bot] in #5752
  • Bump markdown-it from 14.3.1 to 14.3.3 by @dependabot[bot] in #5753
  • Stop registering NpgsqlException / MartenCommandException as transient for projection code (#5741) by @jeremydmiller in #5745
  • Bump version to 9.52.0 by @jeremydmiller in #5751

Full Changelog: v9.51.0...v9.52.0