Skip to content

[API Surface Area] Revert changes to the 4.x surface area introduced in 4.1.x timeframes #2626

Closed

Description

@baronfel

As a follow-on from #2608, here are the remaining non-TypeHandler API deltas found between the latest 4.0 stable and the 4.1.0 preview 2 dll:

  • Npgsql.BackendMessages.FieldDescription: default constructor gone
  • Npgsql.INpgsqlDatabaseInfoFactory.Load: timeout parameter changed namespace
  • Npgsql.NpgsqlBinaryImporter.Complete: void return changed to uint64
  • Npgsql.NpgsqlCommand.ExecuteReader: already noticed/reverted
  • Npgsql.NpgsqlConnection.WaitAsync: unit -> Task overload removed
  • Npgsql.NpgsqlDataReader: changed to concrete class Is not a breaking change AFAICT, the previous two implementations (NpgsqlDefaultDataReader, NpgsqlSequentialDataReader) were internal
  • Npgsql.NpgsqlDataReader.GetStreamAsync: no-cancellation-token overload removed
  • Npgsql.NpgsqlDataReader.GetTextReaderAsync: no-cancellation-token overload removed
  • Npgsql.NpgsqlLargeObjectStream.GetLengthAsync: no-cancellation-token overload removed
  • Npgsql.NpgsqlStatement.Rows: uint32 => uint64 Breaks EF Core 2.2, 4.1.0 not compatible with EF Core 2.2 #2655
  • Npgsql.NpgsqlTimeout: type removed Was moved to namespace Npgsql.Util, reverted
  • Npgsql.NpgsqlTransaction.IsCompleted: removed (already addressed)
  • Npgsql.PostgresException: default constructor gone
  • Npgsql.PostgresNotice: default constructor gone

I know from personal experience that the current stable NpgSql EFCore provider will fail on NpgSql 4.1 until at minimum the NpgsqlStatement.Rows change is reverted. Per @roji's comment the non-CancellationToken-having overloads would be easy to reintroduce, but I think several others (including the rows change) should be considered as well.

Activity

  1. added this to the 4.1.1 milestone on Sep 30, 2019
  2. added 2 commits that reference this issue on Sep 30, 2019
    ae07a80
    8c563a7
  3. baronfel commented on Sep 30, 2019

    @baronfel
    Author

    Related, I finished packaging the synver tool as a dotnet global tool, so instead of the script I used to generate this list you could dotnet tool install -g synver --version 0.0.9 and synver --diff <source> <target> to get a list of API diffs.

    Or even just synver --magnitude <source> <target> to get output of major, minor, or patch which could be used as a CI test in itself.

  4. NinoFloris commented on Sep 30, 2019

    @NinoFloris
    Member

    Awesome @baronfel. Would you mind opening an issue for it?

  5. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions