8000 Tags · seragAhmed/linq2db · GitHub
[go: up one dir, main page]

Skip to content

Tags

Tags

v6.6.0

Toggle v6.6.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Release prep 6.6.0 (linq2db#6344)

* Release 6.6.0: prep

Dependencies (per /release-deps):
- Meziantou.Analyzer 3.0.339 -> 3.0.341
- Meziantou.Polyfill 1.0.171 -> 1.0.173
- Microsoft.CodeAnalysis.CSharp 5.9.0 -> 5.12.0
- Microsoft.CodeAnalysis.Analyzers 5.9.0 -> 5.12.0
- Microsoft.CodeAnalysis.CSharp.Workspaces (Tests.Analyzers.Internal override) 5.9.0 -> 5.12.0
- Microsoft.Data.SqlClient 7.1.1 -> 7.1.2
- Oracle.ManagedDataAccess.Core 23.26.400 -> 23.26.401
- Sap.Data.Hana.Net.v10.0 2.30.27 -> 2.30.32
- Microsoft.SqlServer.TransactSql.ScriptDom 180.140.0 -> 180.154.0
- LinqKit 1.4.1 -> 1.4.2
- Microting.EntityFrameworkCore.MySql (net11.0) 11.0.0-preview.1 -> 11.0.0
- Skipped: none; Blocked by policy: runtime-pin rows, Oracle.ManagedDataAccess 21.x cap,
  ClickHouse.Driver net462 0.9.0, dotMorten 1.x, Roslyn 5.0.0 analyzer floor / 4.13.0 LINQPad,
  SignalR.Client 10.0.13 security floor
- GitHub Actions pins: all current
- Third-party notices: components.json versions refreshed; Microsoft.Bcl.Memory net462 entry
  added (MySqlConnector 3.0 dependency in the ClickHouse/MySql/t4models T4 packages)

PublicAPI reconciliation (per /release-publicapi): pending, runs after this verification.

Test-matrix follow-ups (per /release-test-matrix): pending, runs after this verification.

Release-notes (per /release-notes-validate):
- wiki 6.6.0 section published; 40 milestone items covered, 43 intentionally omitted

Ad-hoc tasks: none

Final verification (per /release-verify):
- Release build of linq2db.slnx: clean (0 errors)
- analyzer rules disabled: none
- analyzer rules enabled (post-bump): none (no new rules in Meziantou 3.0.341)
- code fixes for new errors: none
- API baselines regenerated: 2 files, unchanged
- packaging guards: nuget sizes, analyzer delivery, notices check + verify all OK
- profile-analyzers: same 796 analyzers as the 2026-11-13 baseline, no share regression
  above noise; baseline re-captured in the agents repo
- iSeries drift check: pending (task 4.2)

* Release 6.6.0: PublicAPI reconciliation

Move Unshipped entries to Shipped across 7 PublicAPI file pairs in
LinqToDB, LinqToDB.Identity, LinqToDB.Remote.Grpc and
LinqToDB.Remote.SignalR.Client. Verified zero RS0016/RS0017/RS0025
post-apply with the API analyzers enabled; a re-plan reports no changes.

Drift fixed before the move:
- LinqToDB: declare the three AccessSqlExpressionConvertVisitor ORDER BY
  overrides (linq2db#6203).
- LinqToDB.Identity: on net10.0/net11.0 the stores and contexts carry a
  TUserPasskey type parameter, so the inherited members were declared under
  the wrong generic arity. The no-passkey members move from the shared pair
  into new net462/netstandard2.0 overlays, and the passkey-arity members are
  declared in the net10.0/net11.0 overlays (59 each).

Public removals outside LinqToDB.Internal: the LinqOptions primary
constructor and Deconstruct, replaced by the signatures that add
UseDbBatch and UseCombinedCommands (linq2db#5673).

* LINQPad 5: keep DataConnection out of the driver's exported types

LINQPad 5 builds its Add Connection list by calling GetExportedTypes() on the
driver before the driver registers its assembly resolvers. The public
LINQPadDataConnection : DataConnection forced the exact
Microsoft.Bcl.AsyncInterfaces version linq2db references (10.0.0.0; 8.0.0.0 in
6.5.1), which the driver never ships, so the driver was missing from the dialog.

LINQPadDataConnection becomes internal; generated contexts derive from
DataConnection and build their options with the new public static
LINQPadContextOptions.Create.

v6.5.1

Toggle v6.5.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Release prep 6.5.1 (linq2db#6114)

* Set version to 6.5.1

* Update linq2db4iSeries to 6.5.0

* Release 6.5.1: prep

Dependencies (per /release-deps):
- Skipped (patch release); linq2db4iSeries 6.3.0 -> 6.5.0 landed in 90c2dd1.

PublicAPI reconciliation (per /release-publicapi):
- Promoted Unshipped -> Shipped in Source/LinqToDB/PublicAPI (flat): 61 added,
  4 tombstoned removals, all LinqToDB.Internal.*. 0 RS0016/RS0017/RS0025.

Test-matrix follow-ups (per /release-test-matrix):
- linq2db#6115 (ClickHouse .TimeOfDay regression from linq2db#5959), fixed by linq2db#6116.

Release-notes (per /release-notes-validate):
- 32 covered, 33 intentional omissions.

Final verification (per /release-verify):
- analyzer rules disabled: MA0008 in [Tests/**]
- code fixes for new errors: NUnit4001 suppressed in MathFunctionTests
  (net462-only false positive: MidpointRounding has 2 members there)
- API baselines regenerated: 2 files, unchanged
- packaging guards: pass (osx CLI packages 180.4 / 180.2 MB, over the 180 MB warn line)
8000

v6.5.0

Toggle v6.5.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Release prep 6.5.0 (linq2db#5905)

* Release 6.5.0: prep

Dependencies (per /release-deps):
- $(Net8Latest) 8.0.29 -> 8.0.31, $(Net9Latest) 9.0.18 -> 9.0.20, $(Net10Latest) 10.0.10 -> 10.0.12
- Meziantou.Analyzer 3.0.138 -> 3.0.231, Meziantou.Polyfill 1.0.158 -> 1.0.165
- Microsoft.CodeAnalysis.Analyzers 5.6.0 -> 5.9.0
- Microsoft.CodeAnalysis.CSharp 5.6.0 -> 5.9.0, except net8.0/net9.0 which stay on 5.6.0:
  5.9.0 dropped the lib/net8.0 asset, so those two TFMs would resolve netstandard2.0 and
  bundle six compat packages into the packed linq2db.cli
- Microsoft.SourceLink.GitHub 10.0.303 -> 10.0.401, ModelContextProtocol 2.0.0 -> 2.2.0
- protobuf-net 3.2.56 -> 3.4.21, protobuf-net.Grpc + .AspNetCore 1.2.2 -> 1.3.14
- Devart.Data.Oracle 11.1.123 -> 11.2.192, Oracle.ManagedDataAccess.Core 23.26.300 -> 23.26.301
- ClickHouse.Driver 1.3.0 -> 1.4.0 (net8.0+), ScriptDom 180.78.1 -> 180.102.0
- MySqlConnector 2.6.1 -> 2.6.2, System.Data.SQLite 2.0.3 -> 2.0.4
- NUnit3TestAdapter 6.2.0 -> 6.3.0, MicrosoftTestingVersion 2.3.3 -> 2.4.0
- SignalRLegacyVersion 1.2.11 -> 1.2.13, AspNetCoreLegacyVersion 2.3.11 -> 2.3.13
- OpenTelemetryVersion 1.17.0 -> 1.18.0, System.Linq.Dynamic.Core 1.7.3 -> 1.7.4
- FSharp.Core 10.1.302 -> 10.1.401, Microting.EntityFrameworkCore.MySql 10.0.10 -> 10.0.11
- Held: Newtonsoft.Json 13.0.3 (every advisory is "< 13.0.1")
- Removed: SourceGear.sqlite3, see below

One native SQLite build for both providers:
System.Data.SQLite 2.x is itself SQLitePCLRaw-based - it DllImports e_sqlite3 and honours
PreLoadSQLite_BaseDirectory - so SourceGear.sqlite3 was only ever an alternative native for the
same loader. Carrying both meant two packages placing e_sqlite3 at the same relative path, which
SQLite.Runtime.props worked around by relocating one of them under sds/. Both now use
SQLitePCLRaw.lib.e_sqlite3 3.53.3 and one runtimes/ folder, so the workaround goes away rather
than being maintained.

Verified interchangeable before the switch: identical SQLite compile options (45 each, no
divergence either way), both with SQLITE_ENABLE_COLUMN_METADATA, which System.Data.SQLite's
schema path needs for sqlite3_column_origin_name / _table_name / _database_name. Confirmed after:
SQLiteTests.TestDbVersion + TestDbVersion2, 4/4 green, both provider arms reporting 3.53.3
(down a patch from SourceGear's 3.53.4, which is the newest SQLitePCLRaw available).

This also resolves an MSB3030 that the $(Net10Latest) bump exposed: SQLitePCLRaw.lib.e_sqlite3
2.1.12 dropped the win-arm RID from runtimes/ but did not regenerate its buildTransitive/net461
targets, which still declares a Content item for a file the package no longer ships. Every netfx
consumer failed on it. Unifying on 3.53.3 means the 2.x targets are imported nowhere.

gRPC proxies generated at compile time:
protobuf-net.core 3.4.21 ships protobuf-net.BuildTools as a bundled analyzer (it was a separate
opt-in package through 3.3.8), which surfaced PBN4015: the project declares IsAotCompatible for
net8.0+ while building its proxies and marshallers by reflection. Adopted [ProtoGrpc] per
https://grpc.protobuf-net.dev/aot - GrpcLinqServiceProxies + GrpcLinqServiceTypeModel, and
GrpcLinqServiceClient now goes through the generated factory. Server hosts are unaffected;
AddCodeFirstGrpc() still binds the service. PBN2008 is set to none: it reports that a contract
type "may be usable" but could not be verified, which is a hedge our [DataContract] DTOs cannot
satisfy statically and must not be a hard error under TreatWarningsAsErrors.

Third-party notices (per /release-deps step 5b):
- SQLitePCLRaw.lib.e_sqlite3: net462 added at 3.53.3; net472 and net8.0-windows7.0 2.1.12 -> 3.53.3
- ClickHouse.Driver 1.4.0 splits into two assemblies; ClickHouse.Driver.Common.dll added to the
  component's file list. -Action harvest cannot see this - it reads the dependency graph, and this
  is a file-level change inside one package - so -Action verify caught it, with 21 violations.

Final verification (per /release-verify):
- analyzer rules enabled (post-bump): MA0213, MA0215, MA0216, MA0218, MA0220, MA0221, MA0222, MA0223
- analyzer rules disabled: MA0214 (inverse of MA0215), MA0219, MA0224, MA0225, PBN2008;
  MA0217 repo-wide and MA0215 for Tests/**
- MA0217 deferred to linq2db#5903: 2918 sites in Source/LinqToDB alone, a whole-codebase mechanical
  change that does not belong in a release-prep commit
- code fixes for new errors: 2978 distinct sites at the first full build, down to zero over six
  builds. MA0215 x29 by hand in Source (each needs a per-site Task/ValueTask judgement no
  mechanical rewrite can supply), MA0060 x28, MA0192 x3, MA0213, MA0048, MA0206 x7, MA0140,
  MA0154, IDE0330 + MA0158 (adopted System.Threading.Lock, polyfilled repo-wide), IDE2000 x2,
  CA2025, EF1001
- API baselines regenerated: byte-identical, no suppression added or removed
- packaging guards: verify-nuget-sizes, verify-analyzer-delivery, third-party-notices check and
  verify all clean (41 artifacts, 0 unmapped)
- profile-analyzers: total analyzer CPU 7851.2s, -12% against 6.4.0's 8924.2s. The eight
  newly-enabled rules cost ~70s combined, 0.9% of total. One regression worth watching:
  MA0150 11.7s -> 115.9s (+890%), accepted at 1.5% of total for a correctness rule.

* Release 6.5.0: PublicAPI reconciliation

Moves Unshipped entries into Shipped across the four PublicAPI pairs that had
content, and resets every Unshipped file to just the #nullable enable directive.
Verified by a whole-solution Release build with -p:RunApiAnalyzersDuringBuild=true:
0 warnings, 0 errors, RS0016/RS0017/RS0025/RS0041 and RS2000-RS2002 all zero.

That flag matters. Source/Directory.Build.props gates the PublicApiAnalyzers
PackageReference itself on it, so an ordinary Release build - including the one in
the previous commit - never loads these analyzers and reports zero drift however
much exists. CI enables them only on a release-targeting PR, so this is the only
gate before that point.

Drift converged over two passes, 71 symbols total:

- Pass 1, 66 symbols in LinqToDB: 62 additions and 4 *REMOVED* tombstones. Two of
  the tombstones are BulkCopyOptions' old primary constructor and Deconstruct,
  outside LinqToDB.Internal.* - already published as a breaking change in the
  6.5.0 notes from linq2db#5828, which names the positional-deconstruction consequence.
  The retained old-arity constructor is among the additions.
- Pass 2, 5 symbols in Remote.HttpClient.Client and Remote.SignalR.Client
  (OwnsClient, Dispose, DisposeAsync from linq2db#5762). These were invisible in pass 1:
  both projects depend on LinqToDB, which was failing, so their analyzers never
  ran. A project failing on RS diagnostics blocks its dependents from being
  analysed at all - the same shape as RS0025 masking RS0016, one level up.

A declared-set diff against the previous commit confirms the change is exactly the
reported drift and nothing else: 4 lost, 62 gained, 17103 -> 17161 for LinqToDB;
+3 and +2 with no losses for the two Remote clients. Re-running plan afterwards
reports totalChanges: 0.

Analyzer release tracking: L2DB1002, L2DB1003 and L2DB1004 moved from
AnalyzerReleases.Unshipped.md to a Release 6.5.0 section in the Shipped file, which
is the same Unshipped->Shipped move for Roslyn's RS2000-RS2002 family.

gRPC factory made internal - correcting the previous commit:
GrpcLinqServiceProxies and GrpcLinqServiceTypeModel are now internal sealed rather
than public. The previous commit declared them as public API on entries that were
inferred from documentation rather than measured, because the build that accepted
them had no API analyzers loaded. The first build that actually checked found one of
those entries wrong: the generator emits a private constructor, so the declared
parameterless ctor did not exist (RS0017). Making both types internal removes that
entry, the four generated public members, and 20 RS0041 obliviousness errors on the
generated model - generated code carries no nullable annotations. Nothing outside
the assembly needed them: GrpcLinqServiceClient is the entry point and consumes
Instance internally. Sealing followed from internal visibility (CA1852, MA0053).

Relative to master the gRPC work therefore adds no public API surface, and the
release-notes bullet - which names no types - remains accurate.

* Release 6.5.0: prep review fixes

Comment and whitespace only - no severity, version or target changed.

- .editorconfig: drop the "Catch-up: Meziantou.Analyzer 3.0.231 catalog"
  header. It dates the work rather than explaining the setting, and the
  per-rule comments below already carry the reasoning. (The identical-in-kind
  3.0.85 header above predates this branch and is left alone.)

- Directory.Packages.props: cut the SQLitePCLRaw.lib.e_sqlite3 comment from 22
  lines to 7. Kept only what a future edit could break - do not re-add a second
  native package, stay off the 2.x line, and bumping this version also means
  bumping SQLiteProvider.GetNuGetPackages. Dropped the compile-option
  comparison (commit-message material), the transitive-pinning paragraph
  (already stated at the Roslyn entry above), and a to-do saying the LINQPad
  pin was unconfirmed against a real install - that pass has since run.
  The audit suppression keeps a two-line comment naming its exit condition;
  it is still required, since Microsoft.EntityFrameworkCore.Sqlite 3.1.32 pulls
  SQLitePCLRaw.bundle_e_sqlite3 2.1.2 -> lib.e_sqlite3 2.1.2 transitively and
  transitive pinning is off, so a version inside the advisory's range really is
  in the net462 restore graph.

- LinqToDB.LINQPad.csproj: dedent the SQLitePCLRaw_lib_e_sqlite3 line in the
  generated NuGetPackageVersions source, which carried two leading tabs where
  every sibling has one.

Investigating whether PreLoadSQLite_BaseDirectory can be dropped from its three
call sites is deferred to linq2db#5906 (6.6.0). SQLite.Runtime.props stays: its
CheckForAnyCPU override shadows a target defined in the native package's
build/net471 .props, and the package has no net462-compatible asset group, so
the hand-copy is what puts natives in a net462 build at all.

v6.4.0

Toggle v6.4.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix the DuckDB x86 native guard catching the wrong exception type (li…

…nq2db#5744)

SetupDuckDBInMemory already had a guard for legs with no native duckdb, naming
the x86 Access runs in its comment. It caught DllNotFoundException, but the
native load happens inside DuckDBConnectionStringBuilder's static constructor,
so the CLR wraps it in TypeInitializationException. The guard never matched, the
exception escaped TestAssemblySetup, and every test in the assembly failed with:

  OneTimeSetUp: SetUp : System.TypeInitializationException : The type
  initializer for 'DuckDB.NET.Data.DuckDBConnectionStringBuilder' threw an
  exception.
  ----> System.DllNotFoundException : Unable to load DLL 'duckdb'

Widened to an exception filter matching either the bare DllNotFoundException or
any exception wrapping one.

Scope: both x86 Access jobs, on every non-netfx TFM. Build 22636 reported 43725
failures for Access ACE and 14564 for Access MDB, all the same OneTimeSetUp. The
NETFX task of the same job passed, because SetupDuckDBInMemory sits behind
#if !NETFRAMEWORK.

Every job reaches this code: DataProviders.json declares DuckDB as
"Data Source=:memory:?cache=shared" in CommonConnectionStrings, so the
file-based early-out never fires anywhere, x86 included.

Introduced by linq2db#5698 in this release cycle, and no CI run had exercised it: the
Access jobs only run for a release-targeting PR or a full test-all, and the
6.4.0 prep test-all (22627) was cancelled by later pushes before reaching them.
Its timeline holds no Access records at all, so the SUCCESS state still showing
against that job on the prep PR is a queued-but-never-run check rather than a
pass.

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>

v6.3.0

Toggle v6.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Fix build. (linq2db#5537)

v6.2.1

Toggle v6.2.1's commit message
Merge branch 'release'

v6.2.0

Toggle v6.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
ci fix (linq2db#5410)

v6.1.0

Toggle v6.1.0's commit message
fix CI

v6.0.0

Toggle v6.0.0's commit message
fix ci

v5.4.1.9

Toggle v5.4.1.9's commit message
Upgrade v5.4.1

0