Skip to content

10.0.0-alpha.5

Pre-release
Pre-release

Choose a tag to compare

@jeremydmiller jeremydmiller released this 16 Nov 19:17
· 85 commits to master since this release
e494e31

Fifth alpha of Weasel 10.0 for the Critter Stack .NET 11 release train. Targets net10.0 and net11.0. See the 10.0 migration guide.

SQLite: Microsoft.Data.Sqlite 10.0.15 (#857, #860)

  • Microsoft.Data.Sqlite 10.0.12 and earlier have a pool race (dotnet/efcore#39008, fixed in 10.0.13). Reclaiming a leaked connection could lend one native handle to two open connections. Weasel.Sqlite now requires 10.0.15. The fix is in the driver, so it covers a plain new SqliteConnection(...) as well as every Weasel path.
  • New regression tests count the shared handles. On 10.0.9 they failed in every run; on 10.0.15 they passed 10 runs out of 10 on both frameworks.

Hi-Lo: a SetFloor can take the overlap rule too (#849, #855)

  • New protected HiloSequenceBase.InstallCount and TrySetCurrentHi(raw, installCountBefore). A SetFloor that reads InstallCount before it reserves its block, and passes that to TrySetCurrentHi, has its block dropped as a gap if an advance installed a higher block in the meantime. Ids no longer step backwards after a floor reset.
  • TrySetCurrentHi(raw) from outside an advance still installs what it is given, as before.

Synchronous tenant resolution on a cold store (#850, #856)

  • New protected virtual MasterTableTenancyBase.TryProvisionControlTableSynchronously(), which returns false by default. A dialect that overrides it lets TryResolveTenant provision the control table synchronously, instead of falling back to the async path on the first call. A NotSupportedException from it is remembered, and later calls fall back without retrying. The async path still provisions as before.

Event loader: an upcast source that is also a live alias (#851, #854)

  • EventTypeAllowList.UpcastSourceAliases now keeps a source alias that is also a declared alias. Only AliasesIncludingUpcastSources removes duplicates. Before, a dialect that pushes upcast sources down separately (such as one keyed on dotnet_type) missed rows stored under that alias.

All changes are additive, with no new interface members and no changed signatures.

Full Changelog: 10.0.0-alpha.4...10.0.0-alpha.5