Skip to content

Add back parameterless overload of ReloadTypesAsync#6522

Merged
roji merged 1 commit into
npgsql:mainfrom
roji:ReloadTypesAsync
Apr 3, 2026
Merged

Add back parameterless overload of ReloadTypesAsync#6522
roji merged 1 commit into
npgsql:mainfrom
roji:ReloadTypesAsync

Conversation

@roji

@roji roji commented Mar 26, 2026

Copy link
Copy Markdown
Member

#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

Copilot AI left a comment

Copy link
Copy Markdown

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.

Comment thread src/Npgsql/NpgsqlConnection.cs
Comment thread src/Npgsql/PublicAPI.Shipped.txt
@roji
roji merged commit 3698a47 into npgsql:main Apr 3, 2026
25 of 26 checks passed
@roji
roji deleted the ReloadTypesAsync branch April 3, 2026 16:36
roji added a commit that referenced this pull request Apr 3, 2026
@roji roji added this to the 10.0.3 milestone Apr 3, 2026
@roji roji self-assigned this Apr 3, 2026
roji added a commit that referenced this pull request Apr 3, 2026
@roji

roji commented Apr 3, 2026

Copy link
Copy Markdown
Member Author

Backported to 10.0.3 via 4cf9e69
Backported to 9.0.6 via 7c0a419

roji added a commit that referenced this pull request Apr 4, 2026
Move API changes from commits after v10.0.0 back to Unshipped,
as they represent 11.0 work, not 10.0:

- Remove multiplexing (#6457): 4 *REMOVED* entries
- Remove large object API (#6493): 37 *REMOVED* entries
- Add back parameterless ReloadTypesAsync (#6522): undo the
  v10.0 addition of CancellationToken overload and re-add
  the parameterless overload

Also adjusts Shipped to correctly reflect the v10.0.0 public API.

Co-authored-by: Copilot <[email protected]>
roji added a commit that referenced this pull request Apr 4, 2026
Move API changes from commits after v10.0.0 back to Unshipped,
as they represent 11.0 work, not 10.0:

- Remove multiplexing (#6457): 4 *REMOVED* entries
- Remove large object API (#6493): 37 *REMOVED* entries
- Add back parameterless ReloadTypesAsync (#6522): undo the
  v10.0 addition of CancellationToken overload and re-add
  the parameterless overload

Also adjusts Shipped to correctly reflect the v10.0.0 public API.

Co-authored-by: Copilot <[email protected]>
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.

3 participants