Skip to content

Add back parameterless overload of ReloadTypesAsync#6522

Open
roji wants to merge 1 commit intonpgsql:mainfrom
roji:ReloadTypesAsync
Open

Add back parameterless overload of ReloadTypesAsync#6522
roji wants to merge 1 commit intonpgsql:mainfrom
roji:ReloadTypesAsync

Conversation

@roji
Copy link
Copy Markdown
Member

@roji roji commented Mar 26, 2026

#5919 caused a binary break by replaceing NpgsqlConnection.ReloadTypesAsync() with ReloadTypesAsync(CancellationToken); this notably blocks people from using the PostgreSQL MEVD provider - which is compiled against Npgsql 8.0 (to be netfx-compatible) - with Npgsql 10.0.

@roji roji requested a review from vonzshik as a code owner March 26, 2026 13:02
Copilot AI review requested due to automatic review settings March 26, 2026 13:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR restores the parameterless NpgsqlConnection.ReloadTypesAsync() overload to address a binary compatibility break introduced when the API was changed to only expose a CancellationToken overload.

Changes:

  • Reintroduces NpgsqlConnection.ReloadTypesAsync() and forwards it to the token-based overload.
  • Updates PublicAPI files to reflect the restored overload and adjust the recorded API surface accordingly.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/Npgsql/NpgsqlConnection.cs Adds back the parameterless ReloadTypesAsync() overload and forwards to the token overload.
src/Npgsql/PublicAPI.Shipped.txt Records the ReloadTypesAsync(CancellationToken) overload in the shipped API surface.
src/Npgsql/PublicAPI.Unshipped.txt Removes the prior “removed API” marker for the parameterless overload and updates tracked entries.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants