Skip to content

chore(deps): Bump Npgsql to 10.0.2#114

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/Npgsql-10.0.2
Closed

chore(deps): Bump Npgsql to 10.0.2#114
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/nuget/Npgsql-10.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor

Pinned Npgsql at 10.0.2.

Release notes

Sourced from Npgsql's releases.

10.0.2

v10.0.2 contains several minor bug fixes.

Milestone issues

Full Changelog: npgsql/npgsql@v10.0.1...v10.0.2

10.0.1

v10.0.1 contains several minor bug fixes.

Milestone issues

Full Changelog: npgsql/npgsql@v10.0.0...v10.0.1

10.0.0

See the release notes.

The full list of changes is available here.

What's Changed

10.0.0-rc.1

9.0.5

v9.0.5 contains several minor bug fixes.

Milestone issues

Full Changelog: npgsql/npgsql@v9.0.4...v9.0.5

9.0.4

v9.0.4 contains several minor bug fixes.

Milestone issues

Full Changelog: npgsql/npgsql@v9.0.3...v9.0.4

Commits viewable in compare view.

Updated Npgsql from 9.0.5 to 10.0.2.

Release notes

Sourced from Npgsql's releases.

10.0.2

v10.0.2 contains several minor bug fixes.

Milestone issues

Full Changelog: npgsql/npgsql@v10.0.1...v10.0.2

10.0.1

v10.0.1 contains several minor bug fixes.

Milestone issues

Full Changelog: npgsql/npgsql@v10.0.0...v10.0.1

10.0.0

See the release notes.

The full list of changes is available here.

What's Changed

10.0.0-rc.1

Commits viewable in compare view.

@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label May 25, 2026
@coderabbitai

coderabbitai Bot commented May 25, 2026

Copy link
Copy Markdown
📝 Walkthrough

Walkthrough

Npgsql NuGet package upgraded from 9.0.5 to 10.0.2 in centralized version management, with a project-level version override added to Axis.Shared.Infrastructure.csproj.

Changes

Npgsql Dependency Upgrade

Layer / File(s) Summary
Upgrade Npgsql to 10.0.2
Directory.Packages.props, src/Shared/Axis.Shared.Infrastructure/Axis.Shared.Infrastructure.csproj
Npgsql package version bumped to 10.0.2 in centralized version declaration. A direct PackageReference with VersionOverride is added to the Infrastructure project to enforce the upgraded version.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related PRs

  • phuong-labs/axis#81: Both PRs touch the same Npgsql NuGet dependency—main PR bumps Npgsql (and adds an Axis.Shared.Infrastructure.csproj VersionOverride), while the retrieved PR specifically re-aligns Npgsql versions and removes the prior Npgsql override workaround in that project.
  • phuong-labs/axis#104: Both PRs directly modify the NuGet Npgsql version—first moving it to 9.0.5 in Directory.Packages.props, then further bumping to 10.0.2 (including a VersionOverride in Axis.Shared.Infrastructure.csproj).

Poem

A version bump, so small and clean, 🐰
From nine-point-oh to ten—serene,
The database driver now takes flight,
With overrides pinned just right! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main change: upgrading the Npgsql NuGet package from version 9.0.5 to 10.0.2 across the project.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dependabot/nuget/Npgsql-10.0.2

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🧹 Nitpick comments (1)
src/Shared/Axis.Shared.Infrastructure/Axis.Shared.Infrastructure.csproj (1)

12-12: ⚡ Quick win

Remove the redundant VersionOverride for Npgsql (central version is already 10.0.2).

Directory.Packages.props already sets Npgsql to 10.0.2, and this is the only place using VersionOverride="10.0.2" (src/Shared/Axis.Shared.Infrastructure/Axis.Shared.Infrastructure.csproj). Other projects reference <PackageReference Include="Npgsql" /> without overrides, so the override doesn’t change effective version—just adds maintenance. Remove the VersionOverride and rely on the centrally managed version unless there’s a specific divergence reason.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/Shared/Axis.Shared.Infrastructure/Axis.Shared.Infrastructure.csproj` at
line 12, Remove the redundant VersionOverride on the Npgsql PackageReference:
locate the PackageReference element that currently has Include="Npgsql" and
VersionOverride="10.0.2" and delete the VersionOverride attribute so the element
only references Npgsql (letting Directory.Packages.props supply 10.0.2
centrally); ensure no other changes are made to the PackageReference.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Directory.Packages.props`:
- Around line 56-58: The provider and runtime versions are mismatched: update
the PackageVersion for Npgsql.EntityFrameworkCore.PostgreSQL to match Npgsql
10.0.2 (or alternatively set Npgsql back to a 9.0.x release); locate the
PackageVersion entries named "Npgsql" and
"Npgsql.EntityFrameworkCore.PostgreSQL" and change the Version value so both
target the same major/minor (preferably bump
Npgsql.EntityFrameworkCore.PostgreSQL to 10.0.2 to align with Npgsql).

In `@src/Shared/Axis.Shared.Infrastructure/Axis.Shared.Infrastructure.csproj`:
- Around line 12-13: The project now references Npgsql 10.0.2 but leaves
Npgsql.EntityFrameworkCore.PostgreSQL version unspecified, which can cause
runtime mismatch; inspect the Npgsql.EntityFrameworkCore.PostgreSQL package
compatibility with Npgsql 10.x and pin a compatible version (or
upgrade/downgrade Npgsql) so both match. Check Directory.Packages.props for a
centrally managed Npgsql.EntityFrameworkCore.PostgreSQL entry and the Npgsql
entries (using the provided grep script), then update the PackageReference for
Npgsql.EntityFrameworkCore.PostgreSQL in Axis.Shared.Infrastructure.csproj (or
set its Version in Directory.Packages.props) to a release that explicitly
supports Npgsql 10.x, restore and run build/tests to verify no runtime/binding
errors.

---

Nitpick comments:
In `@src/Shared/Axis.Shared.Infrastructure/Axis.Shared.Infrastructure.csproj`:
- Line 12: Remove the redundant VersionOverride on the Npgsql PackageReference:
locate the PackageReference element that currently has Include="Npgsql" and
VersionOverride="10.0.2" and delete the VersionOverride attribute so the element
only references Npgsql (letting Directory.Packages.props supply 10.0.2
centrally); ensure no other changes are made to the PackageReference.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: be40fbce-a62c-4091-bad7-ed117141b72a

📥 Commits

Reviewing files that changed from the base of the PR and between 81b4d98 and 26ed3f4.

📒 Files selected for processing (2)
  • Directory.Packages.props
  • src/Shared/Axis.Shared.Infrastructure/Axis.Shared.Infrastructure.csproj

Comment thread Directory.Packages.props
Comment on lines 56 to 58
<!-- Npgsql + provider aligned on 9.0.4 (provider has no 9.0.5 yet) -->
<PackageVersion Include="Npgsql" Version="9.0.5" />
<PackageVersion Include="Npgsql" Version="10.0.2" />
<PackageVersion Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="9.0.4" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical | 🏗️ Heavy lift

🧩 Analysis chain

🌐 Web query:

Is Npgsql.EntityFrameworkCore.PostgreSQL version 9.0.4 compatible with Npgsql version 10.0.2?

💡 Result:

No—Npgsql.EntityFrameworkCore.PostgreSQL 9.0.4 is not intended to be used with Npgsql 10.0.2. Reason: the EF Core provider’s dependency constraints are version-specific. The provider aligns with a particular Npgsql major/minor series, and starting with EFCore.PG 10.0.0 the provider was updated to depend on Npgsql 9.0.1 (as stated in its release notes), implying that the Npgsql major version is not arbitrary across EFCore.PG versions [1]. In addition, the 10.0.0 release notes show Npgsql/EFCore.PG dependencies are managed explicitly (e.g., “Depend on Npgsql 9.0.1”) rather than allowing later Npgsql majors to be dropped into older provider versions [1]. Practical guidance: upgrade the EF Core PostgreSQL provider to the corresponding major that supports the Npgsql version you want (for Npgsql 10.0.2, use the EFCore.PG 10.x line rather than 9.0.4) [1].

Citations:


🏁 Script executed:

#!/bin/bash
# Check for runtime usage of Npgsql types in EF Core contexts to assess breaking change impact

# Find EF Core DbContext and configuration files
fd -e cs -x rg -l 'DbContext|ModelBuilder|HasConversion' {} \;

# Look for date/time mappings that might be affected by new DateOnly/TimeOnly defaults
rg -n --type=cs -C3 'HasConversion.*DateTime|HasColumnType.*(timestamp|date|time)'

# Check for cidr/IPNetwork usage that might be affected by mapping changes  
rg -n --type=cs 'IPNetwork|cidr'

Repository: phuong-labs/axis

Length of output: 50373


Critical: Align Npgsql.EntityFrameworkCore.PostgreSQL with Npgsql 10.0.2 (provider 9.0.4 is incompatible).

  • In Directory.Packages.props (lines 56-58), Npgsql is 10.0.2 while Npgsql.EntityFrameworkCore.PostgreSQL remains 9.0.4; Npgsql/efcore.pg versions are tied via version-specific dependency constraints (the provider is not intended to be used across these majors).
  • The “aligned on 9.0.4” comment is now misleading; bump Npgsql.EntityFrameworkCore.PostgreSQL to the matching 10.x line (for 10.0.2) or downgrade Npgsql to the 9.0.x line.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Directory.Packages.props` around lines 56 - 58, The provider and runtime
versions are mismatched: update the PackageVersion for
Npgsql.EntityFrameworkCore.PostgreSQL to match Npgsql 10.0.2 (or alternatively
set Npgsql back to a 9.0.x release); locate the PackageVersion entries named
"Npgsql" and "Npgsql.EntityFrameworkCore.PostgreSQL" and change the Version
value so both target the same major/minor (preferably bump
Npgsql.EntityFrameworkCore.PostgreSQL to 10.0.2 to align with Npgsql).

Comment on lines +12 to 13
<PackageReference Include="Npgsql" VersionOverride="10.0.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

Verify Npgsql.EntityFrameworkCore.PostgreSQL compatibility with Npgsql 10.x.

The upgrade to Npgsql 10.0.2 is a major version bump. The Npgsql.EntityFrameworkCore.PostgreSQL package on line 13 depends on Npgsql, and version mismatches can cause runtime failures or binding redirects. Ensure that the version of the EF Core provider is compatible with Npgsql 10.x.

Run the following script to check the current version and compatibility:

#!/bin/bash
# Check the version of Npgsql.EntityFrameworkCore.PostgreSQL in Directory.Packages.props
echo "=== Checking Npgsql.EntityFrameworkCore.PostgreSQL version ==="
rg -A 1 'Npgsql\.EntityFrameworkCore\.PostgreSQL' Directory.Packages.props

echo ""
echo "=== Checking all Npgsql-related package versions ==="
rg 'PackageVersion.*Npgsql' Directory.Packages.props

Additionally, please search the web to verify compatibility:

Npgsql.EntityFrameworkCore.PostgreSQL compatibility with Npgsql 10.0
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@src/Shared/Axis.Shared.Infrastructure/Axis.Shared.Infrastructure.csproj`
around lines 12 - 13, The project now references Npgsql 10.0.2 but leaves
Npgsql.EntityFrameworkCore.PostgreSQL version unspecified, which can cause
runtime mismatch; inspect the Npgsql.EntityFrameworkCore.PostgreSQL package
compatibility with Npgsql 10.x and pin a compatible version (or
upgrade/downgrade Npgsql) so both match. Check Directory.Packages.props for a
centrally managed Npgsql.EntityFrameworkCore.PostgreSQL entry and the Npgsql
entries (using the provided grep script), then update the PackageReference for
Npgsql.EntityFrameworkCore.PostgreSQL in Axis.Shared.Infrastructure.csproj (or
set its Version in Directory.Packages.props) to a release that explicitly
supports Npgsql 10.x, restore and run build/tests to verify no runtime/binding
errors.

---
updated-dependencies:
- dependency-name: Npgsql
  dependency-version: 10.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot changed the title chore(deps): Bump Npgsql from 9.0.5 to 10.0.2 chore(deps): Bump Npgsql to 10.0.2 May 25, 2026
@dependabot @github

dependabot Bot commented on behalf of github May 25, 2026

Copy link
Copy Markdown
Contributor Author

Looks like Npgsql is no longer updatable, so this is no longer needed.

@dependabot dependabot Bot force-pushed the dependabot/nuget/Npgsql-10.0.2 branch from 26ed3f4 to 9f19e35 Compare May 25, 2026 06:24
@dependabot dependabot Bot closed this May 25, 2026
@dependabot dependabot Bot deleted the dependabot/nuget/Npgsql-10.0.2 branch May 25, 2026 06:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants