NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet
NuGet, #1045 most downloaded on NuGet
LiteDB - A lightweight embedded .NET NoSQL document store in a single datafile Signed by signpath.io from repository 'https://github.com/mbdavid/LiteDB' commit '391cc9318c5be6e56cb71b3ce14b1ed9cb324763' (see contained AppVeyorSettings.json file for build settings).
Latest stable
5.0.21
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 11 months
Nearly every release is documented
notes for 42 of 46 stable releases
5 versions withdrawn
withdrawn after publishing
127 years old
63 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Fix #2265 Stackoverflow when Self reference by @JKamsker in https://github.com/mbdavid/LiteDB/pull/2493
Full Changelog: https://github.com/mbdavid/LiteDB/compare/v5.0.20...v5.0.21
v5.0.21 Latest
Latest
Compare
Your coding agent can read these notes before it upgrades. Set up the MCP server →
The LiteDB team is excited to announce that we have added two new maintainers to the project. We are now working on more frequent releases, better sta
The LiteDB team is excited to announce that we have added two new maintainers to the project. We are now working on more frequent releases, better stability and performance, and better communication with the community. We are excited to see where this project goes and are looking forward to working with the community to make LiteDB the best it can be.
And if you haven't already, please join our Discord server:
Full Changelog: https://github.com/mbdavid/LiteDB/compare/v5.0.19...v5.0.20
Detect infinite loops in document or index node loops
Full Changelog: https://github.com/mbdavid/LiteDB/compare/v5.0.18...v5.0.19
Added "AutoRebuild" option in Connection String
In this version, the Rebuild command has been completely redesigned to be able to recover a full or partial database in case of data corruption. When detecting a structural error (known as the ENSURE exception) the data file will be modified to indicate that this file may be corrupt. When reopening the database, a rebuild process can be performed recovering as much data as possible. Use the "auto-rebuild=true" option in the connection string to activate this functionality. Possible errors found during the rebuild process will be stored in a new collection called "_rebuild_errors". A backup of the original file is created with the "-backup" suffix
readonly to fields whose values are never modified or used as ref arguments by @Lehonti in https://github.com/mbdavid/LiteDB/pull/2352Full Changelog: https://github.com/mbdavid/LiteDB/compare/v5.0.17...v5.0.18
Fix AesStream Invalid Password exception in corrupted files by @anurakt27 in https://github.com/mbdavid/LiteDB/pull/2344
Full Changelog: https://github.com/mbdavid/LiteDB/compare/v5.0.16...v5.0.17
use only mutex for Shared engine open and close synchronization and remove locks by @dev-joshi in https://github.com/mbdavid/LiteDB/pull/2293
Full Changelog: https://github.com/mbdavid/LiteDB/compare/v5.0.15...v5.0.16
Fix https://github.com/mbdavid/LiteDB/issues/1762
Fix https://github.com/mbdavid/LiteDB/issues/1762
Fix PR #2227 (thanks to @rainman-306)
Fix security vulnerability in deserialize bad json in .NET 4.5
Made DiskWriterQueue more reliable so that it can handle multiple back calls better
# Bugfixes - #1275 - #1772 - #1956 - #2021 - #2023
Fix invalid multi-page CString reader
The LiteDatabase ctor that takes a Stream for its data storage now takes another Stream as log storage. LiteDB can now be used with custom storage sol
LiteDatabase ctor that takes a Stream for its data storage now takes another Stream as log storage. LiteDB can now be used with custom storage solutions (as long as it implements Stream).DateTime.# Bug fixes - #1630 - #1633 - #1636 - #1638 - #1650 - #1651 - #1656 - #1664 - #1665 - #1668 - #1678 - #1681
Maximum index key length increased to 1023 bytes
Upgrade option in ConnectionString is now a bool again (DataOnly no longer needed because index key length was increased)$id key (instead of _id)Nothing published for this version
Max document size raised to 16MB
Upgrade option in ConnectionString is now an enum# Bugfixes - #1551 - #1546 - #1538 - #1537
# Bugfixes - #1468 - #1491 - #1473 - #1469 - #1459
# Bugfixes - #1458 - #1452 - #1445 - #1429
# Bugfix - #1431 - No save changes - #1427 - FindById
Nothing published for this version
Collation: define culture and sort comparer options to your database
Shrink was renamed to Rebuild with change password/change collation optionPragmasConnectionMode.Embedded to ConnectionType.Direct$page_list and $dump(pageID) system collectionsv5-alpha/beta are not compatible with this version. You must re-create your datafile using v5-rcBe compatible with NETStandard 1.3
UserVersion for LiteEngine and LiteDatabaseISet<T>EnumAsInteger in BsonMapper for better LINQ supportnetcore3.0Removed LiteDB.Studio (moved to another repo)
ShrinkMAP and FILTER expression methods:
MAP(children => age)FILTER(items => price > 100)REMOVE_KEYS, OID_CREATIONDATE, TO_LOCAL, TO_UTC, DISTINCT, UNION, EXCEPT, TOPBsonDocument mapper
public People(string name) { this.Name = name; }GroupBy<T, K> (must use BsonExpression)SharedConnection to keep database closed after each command (can be used for multiple processes in same machine)Here is the new alpha version of LiteDB v5. It's an alpha version, so that means it's not ready for production yet! The API may change and data format
Here is the new alpha version of LiteDB v5. It's an alpha version, so that means it's not ready for production yet! The API may change and data format can also change before final release. But we would be very pleased if you could test the new version and give feedback or report any issues that you stumble upon.
FileStorage with custom Id typeBsonExpressions: transform, filter, map, reduce, ..upgrade=true in connection string)QueryShrink method and UserVersion propertyPredicateBuilder- Fix IncludeAll missing method
IncludeAll missing method- Added IncludeAll method - Added LENGTH method expression
IncludeAll methodLENGTH method expressionFix DateTime UTC in index Min/Max
New expression ITEMS method (convert array into IEnumerable)
ITEMS method (convert array into IEnumerable)ALL method (return true only if all conditions are true) - ALL($.Items[*].Price > 0) = trueAdd UTC deserialization support (use utc=true on connection string)
help <command>Document syntax: new BsonExpression("{_id: 1, name: 'John'}")Array syntax: new BsonExpression("[1, 'two', false]")EXTEND()INT(), DOUBLE(), STRING(), DATE() ...DATEADD(), DATEDIFF(), YEAR(), MONTH(), DAY()Add support to NETStandard 2.0 (with support to Shared mode)
Shared mode)Expression parser/executor - see Expression Wikicol.EnsureIndex(x => x.Name, "LOWER($.Name)");
col.EnsureIndex("GrandTotal", "SUM($.Items[*].Qtd * $.Items[*].Price)");
Include it´s supported in Engine level with ANY nested includescol.Include(x => x.Users)
.Include(x => x.Users[0].Address)
.Include(x => x.Users[0].Address.City)
.Find(...)
LinqQuery compiler (works as linq to object)
col.Find(x => x.Name == "John" && x.Items.Length.ToString().EndsWith == "0")Query.And to Query.Between when possibleQuery.Between open/close intervalv3 (no upgrade needed)(Seek([Age] > 10) and Filter([Name] startsWith "John"))
(preparing to new visual LiteDB database management tool)EnsureIndex on initialize database)Add KEYS, MOD expression function
KEYS, MOD expression function( and ) inside expressions_id when insertRemove auto-id register function for custom type
EnsureIndex on initialize database)ulong) to use in engine level auto-id_id with BsonType = ObjectId, Guid, DateTime, Int32 or Int64Query.And use only one index side with full scan on other(Seek([Age] > 10) and Filter([Name] startsWith "John"))Query.And to Query.Between when possibleQuery.Between open/close intervalcol.Find(x => x.Id < 10 && x.Name.Length > 10)null values)Index DateTime will use LocalTime #921
# Fixes - Sign dll to use in GAC - Fix decimal index #693
Fix .csproj to compile .NET 4.x to .NET 3.5
Nuget/Assembly version fixed to 3.1.2
Nuget/Assembly version fixed to 3.1.2
Upgrade to VS2017
Implemented BsonDocument#Copy #577
New LiteRepository to access data
LiteRepository to access dataLiteEngine.CreateDatabasetypeof(T).Name)BsonId, Id or <ClassName>Id)Shell now are disconected (each command connect, execute, finalize)
Thread safe AND process safe (support single or multiple instances)
LiteEngine class to access dataOpenWrite() Streamv2 using ;upgrade=true in connection stringBack support for shared mode - multi process (can open multiple instances) - (not supported in NetStandard)
Include using string pathChange compiler do C# 4.0 to be compatible with Unity3D
Thread Safe - share your LiteDatabase instance across threads
LiteDatabase to LiteEngine (GetCollectionNames, CollectionExists, DropCollection, RenameCollection, Shrink). To access, use: db.Engine.GetCollectionNames().# Changes - Cache checkpoint removed - New parser ConnectionString
Nothing published for this version
Bugfix #284 - Revert connection string regex
Bugfix #284 - Revert connection string regex
Better error messages in deserialize #278
Portable version: LiteDB.Core (Supports UWP 8.1/10, Xaramin.iOS and Xaramin.Android)
Stream or you can write your own disk access layerpassword= in connection string)BsonDocument (like Configurations in EntityFramework)DbRef mapping (see unit tests examples)shrink()Initial Size and Limit Size database (connection string)using(var transaction = db.BeginTrans()) { ... }InsertBulk is only InsertUserVersion to dev make your own version control)DbRef<T> class, see: https://github.com/mbdavid/LiteDB/wiki/DbRefPortable version: NuGet package: Lite.Core that support PCL/UWP
Lite.Core that support PCL/UWPLiteDatabase instances.BsonMapper.Global are backRegisterAutoId<T> are backOnModelCreating. Use BsonMapper.Global instanceUserVersion update checking. Now UserVersion is only an int stored in header page (update version must be developed in your solution)Datafile encryption: now you can use password to protect your datafile (uses DES cryptography)
LiteDB.Shell.exe myold.db --upgrade mynew.db)db.collection.statsGeneric data access layer - can use any Stream or you can write your own disk access layer
Stream or you can write your own disk access layerBsonDocument (like Configurations in EntityFramework)DbRef mapping (see unit tests examples)shrink()Initial Size and Limit Size database (connection string)InsertBulk is only Insertbegin, commit and rollback)UserVersionThis version is beta and can be changed before final release.
UserVersionNothing published for this version
Bugfix #60 - Incorrect BsonIndex ctor
Nothing published for this version
Fix some bugs with _type on BsonMapper
_type on BsonMapperRemove full document scan in Find operations - using auto-creation index when there is no field index
Find operations - using auto-creation index when there is no field index_type when using interfaces/generic object #32 and #27 - thanks to @francoislgx => x.IsActive - thanks to Lars StenbergNew Wiki documentation !! :smiley:
BsonSerializer removing fastBinaryJson and implement real BSON specificationBsonMapper to get more configurable POCO from/to BsonDocumentBsonMapper supports user custom type converterJsonReader implementation: 4 times fasterObjectId to be used in Id documentsBsonDocument supports only BSON data types as specification[BsonIndex] to mark your entity property to auto create index when queryFind() can be executed without an index (will execute a full document scan)CompareTo()FindAll() supports ascending/descending resultsQuery.ContainsMin()/Max() value from an indexDbRef<> - a simple class for reference document_master collection - avoid 1 page readTo prepare LiteDB to future, version 1.x break compatibility with 0.x. Small external changes, but very important to make a better source structure:
Upgranding from v0.x
Task<> in future)LiteEngine is now LiteDatabaseCollection is now LiteCollectionFileEntry is now LiteFileInfoBsonObject - now only exits BsonDocumentBsonDocument#Id - use BsonDocument#["_id"]New read/write pages to get a very fast disk operations
Id and <ClassName>Id identity in POCO classOne column per quarter.