Skip to content

Conversation

@gimlichael
Copy link
Member

@gimlichael gimlichael commented Jan 31, 2025

This pull request includes several updates across multiple files, primarily focusing on version upgrades, copyright updates, and documentation improvements.

Version Upgrades:

  • .docfx/Dockerfile.docfx: Updated the nginx version from 1.27.0-alpine to 1.27.3-alpine.
  • .docfx/docfx.json: Updated the target framework from net8.0 to net9.0.
  • Directory.Packages.props: Updated several package versions, including Codebelt.Extensions.Xunit.App, Cuemon.Core, Microsoft.NET.Test.Sdk, coverlet.collector, coverlet.msbuild, and xunit.

Documentation and Metadata Updates:

  • .docfx/docfx.json: Updated the footer to reflect the years 2024-2025.
  • README.md: Added a link to the full documentation generated by DocFx.
  • LICENSE: Updated the copyright year to 2024-2025.

Other Changes:

Summary by CodeRabbit

Release Notes v9.0.1

  • New Features

    • Added documentation link in README
    • Enhanced Unitify package with new measurement and unit-related classes
  • Package Updates

    • Updated package dependencies to latest versions
    • Upgraded .NET framework to version 9.0
  • Maintenance

    • Updated copyright year to 2024-2025
    • Updated Nginx base image to version 1.27.3-alpine
    • Updated test environment Docker image

@gimlichael gimlichael self-assigned this Jan 31, 2025
@coderabbitai
Copy link

coderabbitai bot commented Jan 31, 2025

Walkthrough

This pull request represents a comprehensive update to the project, focusing on version upgrades and dependency management. The changes span multiple configuration files, including Dockerfile, DocFX configuration, package release notes, changelog, build properties, and test environments. The primary focus is on upgrading to .NET 9, updating copyright years, refreshing package dependencies, and making minor structural improvements to the Codebelt.Unitify namespace.

Changes

File Changes
.docfx/Dockerfile.docfx Nginx base image updated from 1.27.0-alpine to 1.27.3-alpine
.docfx/docfx.json - Target framework updated from net8.0 to net9.0
- Copyright year updated to 2024-2025
.nuget/Codebelt.Unitify/PackageReleaseNotes.txt Major refactoring of Unitify namespace:
- Renamed multiple classes and interfaces
- Added new classes like BaseUnit, UnitFactory
- Removed BitStorageCapacity and ByteStorageCapacity
CHANGELOG.md Added new version entry for 9.0.1 dated January 31, 2025
Directory.Build.props - Updated copyright year
- Removed Microsoft.SourceLink.GitHub package reference
Directory.Packages.props Updated package versions for multiple dependencies
LICENSE Updated copyright year to 2024-2025
README.md Added documentation link for Unitify API
testenvironments.json Updated Docker image version

Possibly related PRs

Poem

🐰 A Rabbit's Ode to Version Nine

Hop, hop, through code so fine,
Upgrading frameworks, line by line,
.NET nine brings fresh delight,
Our packages now shine so bright!
A version leap with bunny glee! 🚀


🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
.nuget/Codebelt.Unitify/PackageReleaseNotes.txt (1)

5-5: Simplify the language.

The phrase "with respect to" is wordy and can be simplified.

Apply this diff to improve readability:

-CHANGED Dependencies to latest and greatest with respect to TFMs
+CHANGED Dependencies to latest versions for all TFMs
🧰 Tools
🪛 LanguageTool

[style] ~5-~5: ‘with respect to’ might be wordy. Consider a shorter alternative.
Context: ...GED Dependencies to latest and greatest with respect to TFMs
 
Version: 9.0.0
Availability: ...

(EN_WORDINESS_PREMIUM_WITH_RESPECT_TO)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 060bdf8 and 1d5e5db.

📒 Files selected for processing (9)
  • .docfx/Dockerfile.docfx (1 hunks)
  • .docfx/docfx.json (2 hunks)
  • .nuget/Codebelt.Unitify/PackageReleaseNotes.txt (1 hunks)
  • CHANGELOG.md (1 hunks)
  • Directory.Build.props (1 hunks)
  • Directory.Packages.props (1 hunks)
  • LICENSE (1 hunks)
  • README.md (1 hunks)
  • testenvironments.json (1 hunks)
✅ Files skipped from review due to trivial changes (4)
  • LICENSE
  • .docfx/Dockerfile.docfx
  • CHANGELOG.md
  • testenvironments.json
🧰 Additional context used
🪛 LanguageTool
.nuget/Codebelt.Unitify/PackageReleaseNotes.txt

[style] ~5-~5: ‘with respect to’ might be wordy. Consider a shorter alternative.
Context: ...GED Dependencies to latest and greatest with respect to TFMs
 
Version: 9.0.0
Availability: ...

(EN_WORDINESS_PREMIUM_WITH_RESPECT_TO)

⏰ Context from checks skipped due to timeout of 90000ms (2)
  • GitHub Check: 🧪 Test (windows-2022, Release)
  • GitHub Check: 🧪 Test (windows-2022, Debug)
🔇 Additional comments (5)
Directory.Packages.props (1)

6-14: Verify package version compatibility with .NET 9.

The package version updates look reasonable, but let's verify compatibility with .NET 9 and check for any breaking changes in the major version bump of xunit.runner.visualstudio (2.8.2 → 3.0.1).

✅ Verification successful

✅ Package versions are compatible with .NET 9

The updated package versions are compatible with the project's target frameworks (.NET 9.0 and 8.0). The major version bump of xunit.runner.visualstudio to 3.0.1 is safe as it maintains compatibility with modern .NET versions and Visual Studio 2022+.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check package compatibility with .NET 9

# Check if packages support .NET 9
for pkg in "Codebelt.Extensions.Xunit.App" "Cuemon.Core" "Microsoft.NET.Test.Sdk" "coverlet.collector" "coverlet.msbuild" "xunit" "xunit.runner.console" "xunit.runner.visualstudio"; do
  echo "Checking $pkg..."
  curl -s "https://api.nuget.org/v3/registration5-gz-semver2/$pkg/index.json" | jq -r '.items[0].items[].catalogEntry | select(.version == "'$(grep "$pkg" Directory.Packages.props | grep -o '"[0-9]\+\.[0-9]\+\.[0-9]\+"' | tr -d '"')'") | .dependencyGroups[] | select(.targetFramework | contains("net9.0"))'
done

# Check for breaking changes in xunit.runner.visualstudio 3.0.1
curl -s "https://api.nuget.org/v3/registration5-gz-semver2/xunit.runner.visualstudio/index.json" | jq -r '.items[0].items[].catalogEntry | select(.version == "3.0.1") | .releaseNotes'

Length of output: 5862


Script:

#!/bin/bash
# First, let's check the target framework in project files
echo "=== Checking target framework ==="
fd -e csproj -x cat {}

echo -e "\n=== Checking package metadata ==="
# Check xunit.runner.visualstudio 3.0.1 (major version bump)
echo "xunit.runner.visualstudio 3.0.1:"
curl -s "https://api.nuget.org/v3-flatcontainer/xunit.runner.visualstudio/3.0.1/xunit.runner.visualstudio.nuspec"

echo -e "\n=== Checking Microsoft.NET.Test.Sdk 17.12.0 ==="
curl -s "https://api.nuget.org/v3-flatcontainer/microsoft.net.test.sdk/17.12.0/microsoft.net.test.sdk.nuspec"

echo -e "\n=== Checking xunit 2.9.3 ==="
curl -s "https://api.nuget.org/v3-flatcontainer/xunit/2.9.3/xunit.nuspec"

Length of output: 6056


Script:

#!/bin/bash
# Check global properties for target framework
echo "=== Checking Directory.Build.props ==="
fd -g "Directory.Build.props" -x cat {}

echo -e "\n=== Checking global.json ==="
fd -g "global.json" -x cat {}

Length of output: 4112

Directory.Build.props (1)

19-19: LGTM! Copyright year update is consistent.

The copyright year update to "2024-2025" aligns with the PR objectives and is consistent with other files.

.docfx/docfx.json (2)

15-15: LGTM! Framework version is consistent.

The target framework update to "net9.0" aligns with the framework versions in Directory.Build.props.


48-48: LGTM! Footer copyright year is consistent.

The copyright year update to "2024-2025" in the footer aligns with other files.

README.md (1)

9-10: Verify documentation URL accessibility.

The added documentation link looks well-formatted, but let's verify that the URL is accessible.

✅ Verification successful

Documentation URL is accessible and properly configured

The documentation link redirects correctly to the API documentation page and returns valid content.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check if the documentation URL is accessible

curl -I https://unitify.codebelt.net/

Length of output: 519


Script:

#!/bin/bash
# Description: Check if the documentation URL is accessible (following redirects)
curl -IL https://unitify.codebelt.net/

Length of output: 934

Comment on lines +1 to +5
Version 9.0.1
Availability: .NET 9 and .NET 8

# ALM
- CHANGED Dependencies to latest and greatest with respect to TFMs
Copy link

Choose a reason for hiding this comment

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

🛠️ Refactor suggestion

Enhance the release notes with more details.

The current release notes for version 9.0.1 are too brief. Consider adding:

  1. Specific dependency version updates
  2. Any potential breaking changes or compatibility issues
  3. Migration guidance for users upgrading from previous versions

Apply this diff to improve the release notes:

 Version 9.0.1
 Availability: .NET 9 and .NET 8
 
 # ALM
-CHANGED Dependencies to latest and greatest with respect to TFMs
+# Dependencies Updated
+- Updated Codebelt.Extensions.Xunit.App to latest version
+- Updated Cuemon.Core to latest version
+- Updated Microsoft.NET.Test.Sdk to latest version
+- Updated coverlet.collector to latest version
+- Updated coverlet.msbuild to latest version
+- Updated xunit to latest version
+
+# Compatibility Notes
+- This version maintains compatibility with both .NET 9 and .NET 8
+- No breaking changes from version 9.0.0
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Version 9.0.1
Availability: .NET 9 and .NET 8
 
# ALM
- CHANGED Dependencies to latest and greatest with respect to TFMs
Version 9.0.1
Availability: .NET 9 and .NET 8
# ALM
# Dependencies Updated
- Updated Codebelt.Extensions.Xunit.App to latest version
- Updated Cuemon.Core to latest version
- Updated Microsoft.NET.Test.Sdk to latest version
- Updated coverlet.collector to latest version
- Updated coverlet.msbuild to latest version
- Updated xunit to latest version
# Compatibility Notes
- This version maintains compatibility with both .NET 9 and .NET 8
- No breaking changes from version 9.0.0
🧰 Tools
🪛 LanguageTool

[style] ~5-~5: ‘with respect to’ might be wordy. Consider a shorter alternative.
Context: ...GED Dependencies to latest and greatest with respect to TFMs
 
Version: 9.0.0
Availability: ...

(EN_WORDINESS_PREMIUM_WITH_RESPECT_TO)

@codecov
Copy link

codecov bot commented Jan 31, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.33%. Comparing base (e2c3296) to head (1d5e5db).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main       #6   +/-   ##
=======================================
  Coverage   83.33%   83.33%           
=======================================
  Files          19       19           
  Lines         666      666           
  Branches       51       51           
=======================================
  Hits          555      555           
  Misses        110      110           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sonarqubecloud
Copy link

@gimlichael gimlichael merged commit 37890d2 into main Jan 31, 2025
19 checks passed
@gimlichael gimlichael deleted the v9.0.1/package-maintenance branch January 31, 2025 19:45
@coderabbitai coderabbitai bot mentioned this pull request May 25, 2025
@coderabbitai coderabbitai bot mentioned this pull request Jun 16, 2025
@coderabbitai coderabbitai bot mentioned this pull request Aug 20, 2025
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