Skip to content

Bump LightningDB from 0.21.0 to 0.22.0 - #8338

Merged
Aaronontheweb merged 1 commit into
devfrom
dependabot/nuget/src/contrib/cluster/Akka.DistributedData.LightningDB/LightningDB-0.22.0
Jul 12, 2026
Merged

Aaronontheweb merged 1 commit into
devfrom
dependabot/nuget/src/contrib/cluster/Akka.DistributedData.LightningDB/LightningDB-0.22.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 6, 2026 •

Copy link
Copy Markdown
Contributor

Updated LightningDB from 0.21.0 to 0.22.0.

Release notes

Sourced from LightningDB's releases.

0.22.0

Native library updated to LMDB 0.9.35

The bundled native binaries for all platforms are updated from LMDB 0.9.33 to 0.9.35, picking up upstream fixes including a race condition on spilled pages during transaction commit (ITS#​9564), a memory leak with nested transactions (ITS#​10342), and mdb_env_copy2 failures with values over 2GB (ITS#​10346).

Allocation-free cursor enumeration and reads

  • cursor.AsEnumerable() and cursor.AllValuesFor(key) now return struct enumerables (CursorEnumerable, CursorDuplicateValuesEnumerable). Iterating with foreach no longer allocates an iterator state machine or boxed enumerator. Both types still implement IEnumerable, so existing LINQ usage keeps working.
  • New non-throwing TryGet overloads copy values into caller-owned memory: TryGet(db, key, Span destination, out int valueLength) reports the required size instead of throwing when the buffer is too small, and a TryGet(db, key, IBufferWriter) overload supports growable buffers. Reading 1,000 × 256-byte values via the span overload allocates 56 bytes total versus ~280 KB with the out byte[] overload, and is ~11% faster.
  • LightningEnvironment.Version no longer allocates on every access.

Fixes

  • size_t results are now marshalled as nuint instead of int, fixing truncation of values over 2GB (thanks @​patrik-lindberg — Patrik Lindberg)
  • LightningCursor.Count now throws OverflowException on overflow instead of silently wrapping (Patrik Lindberg)

Breaking changes

  • Recompile required: the return types of AsEnumerable/AllValuesFor changed from IEnumerable to struct enumerables. Source-compatible for foreach and LINQ; binary compatibility is broken. AllValuesFor now takes ReadOnlySpan instead of Span (also source-compatible).
  • ios-arm runtime removed: the 32-bit armv7s iOS binary can no longer be built with any modern iOS SDK, and .NET 6+ supports only arm64 on iOS. All other iOS/simulator RIDs remain.

Commits viewable in compare view.

@dependabot dependabot Bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Jul 6, 2026
@dependabot
dependabot Bot force-pushed the dependabot/nuget/src/contrib/cluster/Akka.DistributedData.LightningDB/LightningDB-0.22.0 branch from 05c71cb to 33e118a Compare July 10, 2026 15:18
@Aaronontheweb
Aaronontheweb enabled auto-merge (squash) July 12, 2026 00:18
@dependabot
dependabot Bot force-pushed the dependabot/nuget/src/contrib/cluster/Akka.DistributedData.LightningDB/LightningDB-0.22.0 branch from 33e118a to 8bb92fd Compare July 12, 2026 00:27
---
updated-dependencies:
- dependency-name: LightningDB
  dependency-version: 0.22.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/nuget/src/contrib/cluster/Akka.DistributedData.LightningDB/LightningDB-0.22.0 branch from 8bb92fd to ee56900 Compare July 12, 2026 02:39
@Aaronontheweb
Aaronontheweb merged commit fbc207e into dev Jul 12, 2026
12 checks passed
@Aaronontheweb
Aaronontheweb deleted the dependabot/nuget/src/contrib/cluster/Akka.DistributedData.LightningDB/LightningDB-0.22.0 branch July 12, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant