NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
NuGet, #1879 most downloaded on NuGet
Npgsql Helpers and Postgresql Schema Migration Tool, spin off of Marten
Latest stable
9.50.1
Last release 7 days ago
10 Nov 2026
Ships on a steady schedule
a new release about every 1 weeks
Most releases are documented
notes for 48 of the last 60 stable releases
1 version withdrawn
withdrawn after publishing
127 years old
245 releases · first in 1900
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Introduces a new `Weasel.Storage` library holding the closed-shape, dialect-neutral document-storage runtime contracts extracted from Marten (JasperFx
Weasel.Storage package — dialect-neutral document-storage contracts (#329, #331)Introduces a new Weasel.Storage library holding the closed-shape, dialect-neutral document-storage runtime contracts extracted from Marten (JasperFx/marten#4821). Combined with the shared Weasel.Core SQL-generation substrate (V9.7.0, #327), this lets Marten's storage runtime target a physically shared, Npgsql-free package reusable by its SQL Server sibling. Packed and published alongside the existing Weasel packages.
Adds opt-in schema fingerprinting so a full schema apply can be skipped when the desired schema is unchanged from what was last applied, avoiding redundant work on startup. Thanks to @erdtsieck.
Partition creation now emits CREATE TABLE IF NOT EXISTS so concurrent schema appliers (e.g. tenant provisioning racing an async daemon's storage check) can both compute the same missing partition without one failing. Thanks to @erdtsieck.
ListPartition bound round-trip drift for integer/date values (#320)ListPartition had the same latent drift that RangePartition had before #318: PostgreSQL single-quotes every partition-bound literal on read-back (a declared integer 20 comes back as '20') and renders timestamptz in the session time zone, so integer and date list partitions never matched their read-back form and forced a spurious, destructive rebuild on every migration. ListPartition.Equals now compares values element-wise via NormalizePartitionValue (mirroring the range fix), and GetHashCode combines the normalized element values + suffix (previously it hashed the array reference, inconsistent with Equals).
Full Changelog: https://github.com/JasperFx/weasel/compare/V9.7.0...V9.9.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
This is not a breaking change — the existing provider types now *subclass* the new Core abstractions:
Introduces a dialect-neutral SQL-generation substrate in Weasel.Core so a database-agnostic consumer (e.g. Marten/Polecat's shared storage runtime) can compose WHERE fragments, select clauses, and commands without referencing Weasel.Postgresql / Weasel.SqlServer.
New in Weasel.Core:
Weasel.Core.ICommandBuilder — a non-generic, dialect-neutral command-builder surface exposing only the members whose signatures are identical across dialects (Append, AppendParameters, AddParameters, StartNewCommand, TenantId, LastParameterName, and the DbParameter[]-returning AppendWithDbParameters from #324).Weasel.Core.SqlGeneration.ISqlFragment / ICompoundFragment — neutral fragment contracts applied against ICommandBuilder.This is not a breaking change — the existing provider types now subclass the new Core abstractions:
Weasel.Postgresql.ICommandBuilder and Weasel.SqlServer.ICommandBuilder derive from Weasel.Core.ICommandBuilder (provider-typed AppendParameter / grouped-parameter overloads stay on the dialect interface).SqlGeneration.ISqlFragment derives from the Core fragment, keeps its existing dialect-typed Apply overload, and satisfies the neutral Apply(ICommandBuilder) requirement via a default interface method that forwards to it — so existing fragment implementers need no changes and existing call sites still bind to the dialect overload.SQL Server parity: SqlServer.CommandBuilder now also implements Weasel.Core.ICommandBuilder, and a SQL Server ICompoundFragment lets CompoundWhereFragment participate in neutral tree-walks. SQL Server's per-fragment Contains(string) stays dialect-only.
This unblocks the physical package move of Marten's extracted, Npgsql-free storage runtime (JasperFx/marten#4830).
Full Changelog: https://github.com/JasperFx/weasel/compare/V9.6.0...V9.7.0
Adds a DbParameter[]-returning AppendWithDbParameters to the non-generic ICommandBuilder surface in both Weasel.Postgresql and Weasel.SqlServer:
Adds a DbParameter[]-returning AppendWithDbParameters to the non-generic ICommandBuilder surface in both Weasel.Postgresql and Weasel.SqlServer:
DbParameter[] AppendWithDbParameters(string text);
DbParameter[] AppendWithDbParameters(string text, char placeholder);
This lets a database-agnostic consumer fill parameter slots as DbParameter — setting the provider type through its own dialect seam — without referencing NpgsqlParameter or SqlParameter. Each provider upcasts its existing AppendWithParameters result via array covariance, and the method is inherited by every CommandBuilder (Postgres, SQL Server, MySql, Oracle, Sqlite) plus the Postgres and SQL Server BatchBuilders.
This unblocks Marten's closed-shape operation layer becoming fully dialect-neutral (JasperFx/marten#4821 / #4828).
Full Changelog: https://github.com/JasperFx/weasel/compare/V9.3.0...V9.6.0
Nothing published for this version
Nothing published for this version
Sanitize LIST partition suffix to a valid Postgres identifier by @jeremydmiller in https://github.com/JasperFx/weasel/pull/311
Full Changelog: https://github.com/JasperFx/weasel/compare/V9.2.0...V9.3.0
Nothing published for this version
Nothing published for this version
The headline here is a new opt in capability to effectively swallow migration failures on application startup
The headline here is a new opt in capability to effectively swallow migration failures on application startup
Full Changelog: https://github.com/JasperFx/weasel/compare/V9.1.5...V9.2.0
Fix managed LIST partitions destructively rebuilt under multi-database apply (marten#4706) by @jeremydmiller in https://github.com/JasperFx/weasel/pul
Full Changelog: https://github.com/JasperFx/weasel/compare/V9.1.0...V9.1.5
Nothing published for this version
Nothing published for this version
Nothing published for this version
feat: SQL Server ManagedTenantPartitions — runtime tenant onboarding (#301) by @jeremydmiller in https://github.com/JasperFx/weasel/pull/302
Full Changelog: https://github.com/JasperFx/weasel/compare/V9.0.3...V9.1.0
Upgrade JasperFx 2.0.0 → 2.0.1 by @jeremydmiller in https://github.com/JasperFx/weasel/pull/296
Full Changelog: https://github.com/JasperFx/weasel/compare/v9.0.0...V9.0.3
Nothing published for this version
Nothing published for this version
The database-layer foundation release for the Critter Stack 2026 wave, built on JasperFx 2.0. Consumed by Marten 9 and Polecat 4.
The database-layer foundation release for the Critter Stack 2026 wave, built on JasperFx 2.0. Consumed by Marten 9 and Polecat 4.
Weasel.Core · Weasel.Postgresql · Weasel.SqlServer · Weasel.Sqlite · Weasel.MySql · Weasel.Oracle · Weasel.EntityFrameworkCore — all 9.0.0.
net9.0;net10.0.Weasel.Core is the consolidation home for database primitives that Marten and Polecat previously each owned a copy of:
IStorageOperation — Marten's IStorageOperation now extends Weasel.Core.IStorageOperation (sync Postprocess overload removed; async-only).OperationRole — relocated from Marten.Internal.Operations to Weasel.Core.BulkInsertMode — relocated to Weasel.Core.Weasel.SqlServer.AdvisoryLock — the consolidated SQL Server advisory-lock implementation (Polecat folded its SqlServerAppLock into this).Master plan: weasel#263 — complete.
Builds clean against JasperFx 2.0.0; full DB matrix (Postgres / SQL Server / Sqlite / MySql / Oracle) green.
Nothing published for this version
fix(sqlite): emit composite primary keys as table-level constraint by @claude in https://github.com/JasperFx/weasel/pull/262
fix(sqlite): emit composite primary keys as table-level constraint by @claude in https://github.com/JasperFx/weasel/pull/262
When a Weasel.Sqlite.Tables.Table had two or more columns each calling .AsPrimaryKey(), the generated DDL emitted an inline PRIMARY KEY on every PK column. SQLite rejects that with 'table … has more than one primary key' and the migration aborts before the table is ever created. The fix detects the composite-PK case and emits a single table-level CONSTRAINT pk_<table> PRIMARY KEY (col1, col2) clause instead. Single-column PKs are unchanged. Surfaces downstream as JasperFx/wolverine#2680 — bumping the WolverineFx.Sqlite Weasel dependency to this release silently fixes the bug.
Full Changelog: https://github.com/JasperFx/weasel/compare/v8.15.0...v8.15.1
Add support for transactional locking by @Hawxy in https://github.com/JasperFx/weasel/pull/257
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.14.0...v8.15.0
Nothing published for this version
Add LambdaInitialData + AddInitialData lambda overload (8.14.0) by @jeremydmiller in https://github.com/JasperFx/weasel/pull/250
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.13.0...V8.14.0
New BatchedQuery API combines multiple IQueryable queries into a single database round trip using ADO.NET's DbBatch. Supports PostgreSQL, SQL Server,
New BatchedQuery API combines multiple IQueryable<T> queries into a single database round trip using ADO.NET's DbBatch. Supports PostgreSQL, SQL Server, and SQLite.
await using var batch = context.CreateBatchQuery();
var users = batch.Query(context.Users.Where(u => u.IsActive));
var orders = batch.Query(context.Orders.Where(o => o.Total > 100));
await batch.ExecuteAsync(); // single round trip
SQL is extracted via EF Core's stable CreateDbCommand() API. Results materialized using IEntityType metadata with value converter support.
New IDatabaseCleaner<TContext> for FK-aware database cleanup in integration testing, inspired by Respawn and Marten's ResetAllData().
services.AddDatabaseCleaner<AppDbContext>();
services.AddInitialData<AppDbContext, TestSeedData>();
var cleaner = host.Services.GetRequiredService<IDatabaseCleaner<AppDbContext>>();
await cleaner.ResetAllDataAsync(); // delete all + run seeders
DbConnection overloadsTRUNCATE CASCADE, SQL Server DELETE FROM + DBCC CHECKIDENT, SQLite DELETE FROM + sqlite_sequenceMigrator.GenerateDeleteAllSql() Abstract MethodAll 5 provider migrators implement provider-specific bulk delete SQL generation. Used by the new DatabaseCleaner.
ManagedListPartitions.InitializeAsync — Double-check locking moved inside semaphore try block (credit: @netijoe via #181)ToLower()/ToUpper() with invariant equivalentsQuote reserved keywords in PostgreSQL function update fragments by @MarkVDD in https://github.com/JasperFx/weasel/pull/242
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.12.0...V8.12.1
Add PostgresqlIdentifier.Shorten() for deterministic identifier truncation by @jeremydmiller in https://github.com/JasperFx/weasel/pull/241
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.11.4...V8.12.0
Fix EF Core 10 breaking change for JSON column mapping by @jeremydmiller in https://github.com/JasperFx/weasel/pull/240
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.11.3...V8.11.4
Add VitePress documentation site for Weasel by @jeremydmiller in https://github.com/JasperFx/weasel/pull/237
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.11.2...V8.11.3
Added a filter in DbContextExtensions to exclude owned entity types. by @ericwscott in https://github.com/JasperFx/weasel/pull/235
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.11.1...V8.11.2
Support EF Core OwnsOne().ToJson() JSON column mapping by @jeremydmiller in https://github.com/JasperFx/weasel/pull/233
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.11.0...V8.11.1
Fix SQL Server string type mapping to NVARCHAR by @kakins in https://github.com/JasperFx/weasel/pull/223
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.10.1...V8.11.0
Nothing published for this version
Fix EF Core schema issues: FK ordering and MoveToSchema by @jeremydmiller in https://github.com/JasperFx/weasel/pull/225
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.10.0...V8.10.1
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.9.1...V8.10.0 SQL Server Table Partitioning
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.9.1...V8.10.0
SQL Server Table Partitioning
Fix EF Core TPH causing duplicate table definitions by @jeremydmiller in https://github.com/JasperFx/weasel/pull/222
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.9.0...V8.9.1
Critter watch changes by @jeremydmiller in https://github.com/JasperFx/weasel/pull/219
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.8.0...V8.9.0
Nothing published for this version
Add BatchBuilder for SQL Server using SqlBatch by @jeremydmiller in https://github.com/JasperFx/weasel/pull/218
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.7.0...V8.8.0
Nothing published for this version
Oracle fixes as prerequisite for Wolverine.Oracle by @jeremydmiller in https://github.com/JasperFx/weasel/pull/212
CreationStyle with change made in version 8.5.0 by @KristofferStrube in https://github.com/JasperFx/weasel/pull/214Full Changelog: https://github.com/JasperFx/weasel/compare/V8.6.0...V8.7.0
Nothing published for this version
Nothing published for this version
added a CLAUDE.md file by @jeremydmiller in https://github.com/JasperFx/weasel/pull/203
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.5.0...V8.6.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix parsing of multihost connection strings by @Hawxy in https://github.com/JasperFx/weasel/pull/193
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.3.1...V8.5.0
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Delete .DS_Store by @tomap in https://github.com/JasperFx/weasel/pull/184
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.2.0...V8.3.1
Nothing published for this version
Improvements for CritterWatch tracking by @jeremydmiller in https://github.com/JasperFx/weasel/pull/187
Full Changelog: https://github.com/JasperFx/weasel/compare/V8.1.0...V8.2.0
Nothing published for this version
One column per quarter.