Releases: npgsql/npgsql
Releases · npgsql/npgsql
v10.0.0
See the release notes.
The full list of changes is available here.
What's Changed
- STJ 9.0 alternative approach by @NinoFloris in #5941
- Remove support for net6.0 by @roji in #5947
- Some leftover cleanup for removing net6.0 by @roji in #5949
- Map date/time to DateOnly/TimeOnly by default by @roji in #5948
- Make the cidr<->IPNetwork mapping the default by @roji in #5950
- Fix connecting with VerifyCA and VerifyFull by @vonzshik in #5944
- Remove stopwatch allocations by @vonzshik in #5977
- Bump actions/setup-dotnet from 4.1.0 to 4.2.0 by @dependabot[bot] in #5983
- Use exception convenience methods by @bbowyersmyth in #5982
- Bump actions/setup-dotnet from 4.2.0 to 4.3.0 by @dependabot[bot] in #6007
- Add support for postgresql type names with dots by @dvas-hash in #5971
- Send close_notify TLS alert on connection shutdown by @vonzshik in #5995
- Remove DisplayClass struct creation in PgReader by @bbowyersmyth in #6014
- Always dispose RemoteCertificate on SslStream by @vonzshik in #6022
- Remove LongRunningConnection field from NpgsqlConnector by @vonzshik in #6024
- Tighten SCRAM-SHA-256 SASL check by @vonzshik in #6023
- Add SHA3 hash algorithms for SASL authentication by @vonzshik in #6028
- Remove dotnet SDK version from CI (use global.json) by @roji in #6037
- Add support for specifying allowed auth methods by @vonzshik in #6036
- Migrate to SLNX by @roji in #6053
- Switch to Ubuntu 24.04 in CI by @roji in #6054
- Bump actions/setup-dotnet from 4.3.0 to 4.3.1 by @dependabot[bot] in #6059
- Add basic testing for tracing by @vonzshik in #6051
- parameter-collection Clone() should set correct collection instance by @mgravell in #6066
- Fix brew on mac CI by @NinoFloris in #6071
- Fix adding to hash lookup while renaming an unnamed parameter by @vonzshik in #6073
- Update LICENSE date (2024 -> 2025) by @kurnakovv in #6082
- Add tracing for physical connection open by @vonzshik in #6091
- Start testing on .NET 9 by @vonzshik in #5945
- Turn on by @roji in #6097
- Reenable public API analyzer by @roji in #6101
- Update Npgsql to .NET 9 by @vonzshik in #6099
- Ignore system CA store if root certificate is provided by @vonzshik in #6102
- Fix reading columns asynchronously via JsonNet plugin by @vonzshik in #6109
- Fixes #6107 missed should buffer in biginteger numeric converter by @NinoFloris in #6117
- Fix logging parameters with batches by @vonzshik in #6079
- Implement GSSAPI session encryption by @vonzshik in #6131
- feat: add support for PGAPPNAME to set application name by @michael-todorovic in #6139
- Fix returning null from KerberosUsernameProvider.GetUsername with concurrent calls by @vonzshik in #6137
- Add NpgsqlTsVector.Empty by @roji in #6145
- Add assert to NpgsqlCommand.Transaction if it's completed by @vonzshik in #6151
- Compare normalized type names by @0MG-DEN in #6011
- Do CI testing for PG18 (beta) by @roji in #6155
- Fix infinite consume on error with connection break by @vonzshik in #6161
- Bump actions/checkout from 4 to 5 by @dependabot[bot] in #6174
- Fix concurrent NpgsqlDataSource.Dispose and Bootstrap by @vonzshik in #6116
- Set socket options before connecting to postgres by @vonzshik in #6090
- Bump actions/setup-dotnet from 4.3.1 to 5.0.0 by @dependabot[bot] in #6182
- Bump BenchmarkDotNet from 0.13.12 to 0.15.2 by @dependabot[bot] in #6191
- Bump GitHubActionsTestLogger from 2.3.3 to 2.4.1 by @dependabot[bot] in #6192
- Bump Microsoft.Data.SqlClient from 5.2.2 to 6.1.1 by @dependabot[bot] in #6196
- Move to PublicApiAnalyzers v4 by @manandre in #6185
- Move to NUnit v4 by @manandre in #6183
- Bump extension versions to 10.0.0-rc.1 by @roji in #6209
- Fix logical replication tests with PostgreSQL 18 by @vonzshik in #6171
- Update NuGet dependencies by @manandre in #6188
- Fix possible deadlock while asynchronously reading values from reader by @vonzshik in #6202
- Bump BenchmarkDotNet from 0.15.2 to 0.15.3 by @dependabot[bot] in #6215
- Bump BenchmarkDotNet from 0.15.3 to 0.15.4 by @dependabot[bot] in #6221
- Suppress ExecutionContext while creating timers by @vonzshik in #6106
- Rewrite NpgsqlConnectionStringBuilderSourceGenerator as incremental by @manandre in #6186
- Add COPY operations dispose on initialization failure by @vonzshik in #6220
- Bump OpenTelemetry.Api from 1.12.0 to 1.13.0 by @dependabot[bot] in #6229
- Bump Newtonsoft.Json from 13.0.3 to 13.0.4 by @dependabot[bot] in #6228
- Bump Microsoft.NET.Test.Sdk from 17.14.1 to 18.0.0 by @dependabot[bot] in #6227
- Bump Microsoft.CodeAnalysis.CSharp from 4.13.0 to 4.14.0 by @dependabot[bot] in #6226
- Bump Scriban.Signed from 6.2.1 to 6.4.0 by @dependabot[bot] in #6230
- Bump xunit.runner.visualstudio from 3.1.4 to 3.1.5 by @dependabot[bot] in #6231
- Allow specifying TargetSessionAttributes in connection string with NpgsqlDataSourceBuilder by @vonzshik in #6046
- Add support for multiple client certificates by @vonzshik in #6162
- Fix getting wrong schema with CommandBehavior.SchemaOnly and autoprepare by @vonzshik in #6040
- Remove timeout translation from NpgsqlReadBuffer by @vonzshik in #6126
- Add a connection string parameter to control NpgsqlException.BatchCommand by @vonzshik in #6098
- Add implicit cast from .NET IPNetwork to NpgsqlInet by @roji in #6232
- Bump NUnit3TestAdapter from 5.1.0 to 5.2.0 by @dependabot[bot] in #6236
- Bump Microsoft.Data.SqlClient from 6.1.1 to 6.1.2 by @dependabot[bot] in #6242
- Bump github/codeql-action from 3 to 4 by @dependabot[bot] in #6239
- Bump OpenTelemetry.Api from 1.13.0 to 1.13.1 by @dependabot[bot] in #6245
- Fix a few issues with type mappings for schema generator by @vonzshik in #6241
- Bump dependencies to 10.0.0-rc.2 by @roji in #6260
- Fix infinite loop when a connector is closed while concurrently consuming result set by @vonzshik in #6265
- Bump actions/upload-artifact from 4 to 5 by @dependabot[bot] in #6266
- Fix streaming threshold value by @NinoFloris in #6269
- Respect configured schemas in enum field loading by @NinoFloris in #6268
- Bump Scriban.Signed from 6.4.0 to 6.5.0 by @dependabot[bot] in #6273
- Incorrect multi-threading synchronization in UpdateDatabaseState by @ArtemSerostanov in #6114
- Additional GetBytes/GetStream tests by @bbowyersmyth in #5934
- Fix inclusive infinity upper bound interval conversion by @NinoFloris in #6270
- Wrap GetHostAddresses/Async calls to catch SocketException by @pedrowindisch in #5664
- Add Deconstruct() for Npgsql types by @ddas09 in https://github.com/n...
v10.0.0-rc.1
Set version to 10.0.0-rc.1
v9.0.4
v8.0.8
v8.0.8 contains quite a few bug fixes.
Full Changelog: v8.0.7...v8.0.8
v7.0.10
v9.0.3
v8.0.7
v9.0.3 contains several bug fixes.
Full Changelog: v8.0.6...v8.0.7
v9.0.2
9.0.2 was released to fix SSL certificate validation (#5942).
Full Changelog: v9.0.1...v9.0.2
v9.0.1
v9.0.0
See the release notes.
The full list of changes is available here.
What's Changed
- Reuse parameter index for all case permutations by @NinoFloris in #5432
- Actually rename switch to EnableAssertions by @NinoFloris in #5433
- Drop NETSTANDARD by @vonzshik in #5434
- Bump xunit.runner.visualstudio from 2.4.5 to 2.5.4 by @dependabot in #5435
- Additional cleanup after netstandard drop by @manandre in #5436
- Remove EOL PostgreSQL version 11 from CI by @NinoFloris in #5441
- Bump Microsoft.CodeAnalysis.CSharp from 4.7.0 to 4.8.0 by @dependabot in #5444
- Fix explicit batch preparation reset by @vonzshik in #5459
- Fix timestamp to be returned as Unspecified DateTime in legacy mode by @roji in #5466
- Respect max name length by @NinoFloris in #5463
- Fix sequential buffered seek by @NinoFloris in #5440
- Fix EndRead throwing exceptions when a stream is active by @NinoFloris in #5454
- Fix sync writing of hstore values by @NinoFloris in #5452
- Optimize GetFieldValueAsync using row buffer status by @NinoFloris in #5470
- Redo binary exporter column reading by @NinoFloris in #5464
- Bump actions/setup-dotnet from 3.2.0 to 4.0.0 by @dependabot in #5474
- Pick the task constructor by using the right ValueTask type by @NinoFloris in #5487
- Bump BenchmarkDotNet from 0.13.10 to 0.13.11 by @dependabot in #5490
- Use PG mock for testing async field read by @NinoFloris in #5488
- Fix reading infinity as DateTimeOffset in legacy mode by @roji in #5496
- Bump actions/upload-artifact from 3 to 4 by @dependabot in #5499
- Bump github/codeql-action from 2 to 3 by @dependabot in #5498
- Bump xunit from 2.6.2 to 2.6.3 by @dependabot in #5495
- Bump NodaTime from 3.1.9 to 3.1.10 by @dependabot in #5506
- Bump xunit from 2.6.3 to 2.6.4 by @dependabot in #5505
- Bump xunit.runner.visualstudio from 2.5.4 to 2.5.6 by @dependabot in #5504
- Turn off Code Index (rich-code-nav) by @noellelc in #5507
- Fix memory leak while asynchronously disposing NpgsqlDataSource by @vonzshik in #5514
- Bump xunit from 2.6.4 to 2.6.5 by @dependabot in #5515
- Bump BenchmarkDotNet from 0.13.11 to 0.13.12 by @dependabot in #5516
- Bump Microsoft.Data.SqlClient from 5.1.2 to 5.1.4 by @dependabot in #5519
- Bump xunit from 2.6.5 to 2.6.6 by @dependabot in #5527
- StreamActive check should apply before any other EndRead checks by @NinoFloris in #5479
- Default to JToken instead of JObject by @NinoFloris in #5477
- Fix duplicate field check by @NinoFloris in #5531
- Add LinearRing and simplify resolver code by @NinoFloris in #5532
- Remove delayed commit in exporter by @NinoFloris in #5530
- Bump actions/cache from 3 to 4 by @dependabot in #5534
- Move byte and sbyte from extra conversions by @NinoFloris in #5533
- Correct JsonDocument deserialization for JSON null by @roji in #5541
- Add test to verify correct behavior of unchanged toasted values by @Brar in #5489
- Fix another sequential buffered seek exit state issue by @NinoFloris in #5486
- Bump OpenTelemetry.API from 1.6.0 to 1.7.0 by @dependabot in #5494
- Remove isFirstAttempt argument from NpgsqlConnector.Open by @vonzshik in #5545
- Correctly handle resolver info in binary exporter by @NinoFloris in #5546
- Stop sending Host with SslStream if it's an IP address by @vonzshik in #5547
- Bump Microsoft.Data.SqlClient from 5.1.4 to 5.1.5 by @dependabot in #5548
- Tupled record array fix by @NinoFloris in #5551
- Decimal scale was lost when dealing with decimal zero by @xfischer in #5544
- Fix async nullable read creating an allocation by @NinoFloris in #5555
- Composite fixes by @NinoFloris in #5553
- Fix NpgsqlBox behaves incorrectly with negative coordinates by @TonEnfer in #5502
- Default to invariant culture when using static snake case conversion by @azygis in #5448
- Bring UnsupportedTypeInfoResolver up-to-date with current mechanics by @NinoFloris in #5556
- Bump Microsoft.NET.Test.Sdk from 17.8.0 to 17.9.0 by @dependabot in #5565
- Improve no IO expected message details by @NinoFloris in #5568
- Bump NodaTime from 3.1.10 to 3.1.11 by @dependabot in #5571
- Support writing IList impls again by @NinoFloris in #5558
- Add a factory mechanism for the factories called by the chain builder by @NinoFloris in #5561
- Address trimming/AOT warnings by @eerhardt in #5578
- Bump xunit from 2.6.6 to 2.7.0 by @dependabot in #5585
- Bump xunit.runner.visualstudio from 2.5.6 to 2.5.7 by @dependabot in #5584
- Fix exception message, use typeof(T) instead of the member type by @NinoFloris in #5597
- Correct composite buffer test before read by @NinoFloris in #5583
- Bump Microsoft.Data.SqlClient from 5.1.5 to 5.2.0 by @dependabot in #5603
- Improve AsObject/T implementation symmetry and remove downcast method by @NinoFloris in #5608
- Remove unknown pgtype dependency by @NinoFloris in #5596
- Fix composite type constructor selection by @NinoFloris in #5615
- Sync well known text types to actual mapping list by @NinoFloris in #5617
- Improve binary import perf by @NinoFloris in #5598
- Add missing EFCore.PG Enum hack in non-generic MapEnum method by @kenbailey in #5627
- Fix NodaTime legacy TimestampTz default mapping by @NinoFloris in #5629
- Add DI methods accepting a service provider action by @NinoFloris in #5572
- Remove CI PG version matrix on Windows by @NinoFloris in #5632
- Upgrade macos to 14 by @vonzshik in #5549
- Improve binary exporter perf by @NinoFloris in #5630
- 5638 fix ipv6 string NpsqlInet constructor by @AlexanderVagner in #5639
- Fix batch command type by @NinoFloris in #5643
- Consistently check disposed, closed and in result status by @NinoFloris in #5471
- Bump Microsoft.CodeAnalysis.CSharp from 4.8.0 to 4.9.2 by @dependabot in #5610
- Add a fast path for PreparedStatementManager.TryGetAutoPrepared by @vonzshik in #5395
- Return boxing info for derived IPAddress types by @NinoFloris in #5649
- Reduce use of Unsafe.As by @NinoFloris in #5554
- Start loading composite types before ranges by @vonzshik in #5651
- Require binary format in binary importer by @NinoFloris in #5648
- GetChars fix and infra cleanup by @NinoFloris in #5618
- Remove mono socket error workaround by @NinoFloris in #5653
- Add [Experimental] to converter-related APIs by @roji in #5668
- Set the default Connection Lifetime to one hour by @JelteF in #5662
- Changed year to 2024 by @YohDeadfall in #5670
- fix(#5674): buffer over-read with ArrayNullabilityMode.PerInstance by @John-Paul-R in #5675
- Fix ou...