Skip to content

Replace deprecated packages: migrate to BCrypt.Net-Next and Asp.Versi…#1201

Open
Symlink420 wants to merge 1 commit intoopenbullet:masterfrom
Symlink420:fix/deprecated-packages
Open

Replace deprecated packages: migrate to BCrypt.Net-Next and Asp.Versi…#1201
Symlink420 wants to merge 1 commit intoopenbullet:masterfrom
Symlink420:fix/deprecated-packages

Conversation

@Symlink420
Copy link

Description
This PR replaces several abandoned or deprecated libraries with their modern, actively maintained successors. This improves the security posture of the application and ensures compatibility with .NET 8+ standards.

Key Changes

  1. BCrypt.Net-Next Migration
    Replaced the abandoned BCrypt.Net-Core (unmaintained since 2017) with BCrypt.Net-Next.
    Resolved breaking changes related to the removal of SaltRevision in the new library.
    Updated RuriLib crypto functions and OpenBullet2.Web mapper profiles to use the modern hashing API.
  2. ASP.NET Core API Versioning Migration
    Replaced the deprecated Microsoft.AspNetCore.Mvc.Versioning with Asp.Versioning.Mvc (the official successor).
    Refactored
    Program.cs
    to use the new service registration pattern (AddApiVersioning().AddApiExplorer()).
  3. Namespace Management (GlobalUsings)
    Introduced
    GlobalUsings.cs
    in the OpenBullet2.Web project.
    Centralized Asp.Versioning namespaces to avoid adding using directives to every single controller (50+ files), keeping the codebase clean.
  4. Swagger & OpenAPI Updates
    Updated Swashbuckle.AspNetCore to the latest stable version.
    Updated
    ConfigureSwaggerOptions.cs
    to integrate with the new IApiVersionDescriptionProvider from Asp.Versioning.
    Verification Results
    Automated Tests
    RuriLib.Tests: PASSED (202/203 - 1 skipped).
    RuriLib.Http.Tests: PASSED.
    RuriLib.Parallelization.Tests: PASSED.
    RuriLib.Proxies.Tests: PASSED.
    Build
    Status: SUCCESS ✅
    Verified on local host using .NET 8 SDK. All project references and dependency chains are intact.

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.

1 participant