Skip to content

7.0.0

Choose a tag to compare

@xaevik xaevik released this 24 Dec 13:25
· 84 commits to main since this release
Immutable release. Only release title and notes can be modified.
7.0.0
128e739

Release Notes - cuid.net 7.0.0

๐ŸŽ‰ What's New

.NET 10 Support

  • Added support for .NET 10.0 target framework
  • Library now targets: netstandard2.0, netstandard2.1, net8.0, and net10.0

Enhanced Security

  • Added SECURITY.md with vulnerability reporting guidelines
  • SECURITY.md is now included in the NuGet package

Improved Fingerprint Generation

  • FingerprintVersion.Two now uses environment variables instead of thread ID for better collision resistance
  • Provides more robust host-specific fingerprinting across different execution contexts

๐Ÿ”„ Breaking Changes

Dropped .NET 6 Support

  • BREAKING: Removed net6.0 target framework
  • Minimum .NET version is now .NET 8.0 (or .NET Standard 2.0/2.1 for broader compatibility)
  • If you're still on .NET 6, please use cuid.net 6.x or upgrade to .NET 8/10

Testing Framework Migration

  • BREAKING: Migrated test suite from xUnit to TUnit (v1.6.27)
  • This only affects contributors/developers working with the test suite
  • End users are not impacted

Versioning System Change

  • BREAKING: Migrated from GitVersion to MinVer for semantic versioning
  • Version calculation is now simpler and based on git tags
  • This only affects build/release processes

๐Ÿ› ๏ธ Infrastructure Improvements

Build & CI/CD

  • Refactored GitHub Actions workflows for better reliability
  • Updated CI pipeline to support .NET 10
  • Improved release workflow automation
  • Migrated to new .slnx solution file format

Code Quality

  • Migrated entire codebase from tabs to spaces (4-space indentation)
  • Updated .editorconfig with comprehensive formatting rules
  • Removed unused resource files
  • Enhanced public API testing to ensure no breaking changes

Dependencies

  • Updated BouncyCastle.Cryptography to 2.6.1
  • Updated System.Text.Json to 9.0.9
  • Updated Microsoft.NET.Test.SDK to v18
  • Updated PublicApiGenerator to 11.5.4
  • Updated Verify.TUnit to latest version
  • Updated all other dependencies to their latest stable versions

๐Ÿ“ฆ Package Information

NuGet Package Improvements

  • Security policy now included in package
  • Enhanced package metadata
  • Enabled trimming support for .NET 8+ (IsTrimmable=true)

๐Ÿ“ Documentation

Updated Documentation

  • Enhanced README.md with better examples and usage guidance
  • Added comprehensive SECURITY.md
  • Updated CODE_OF_CONDUCT.md

๐Ÿ” Full Changelog

Commits since 6.0.1: 100+ commits
Files changed: 38 files with 2,940 insertions and 1,904 deletions

Major Commits

  • 54ad01c - refactor: add .NET 10 support and enhance library features (#212)
  • 949684e - refactor: general refactor of codebase; drop .net6 support
  • 7bf3392 - refactor: switch from thread id to environment vars for fingerprint
  • 970e42e - chore: migrate to MinVer
  • 18a3d4e - refactor: migrate from tabs to spaces
  • 750e21e - chore: add security.md

Dependency Updates

See the full list of dependency updates in the commit history

๐Ÿ“‹ Upgrade Guide

From 6.x to 7.0

  1. Check your target framework:

    • If using .NET 6, upgrade to .NET 8 or .NET 10
    • If using .NET Standard 2.0/2.1, no changes required
  2. Update package reference:

    <PackageReference Include="cuid.net" Version="7.0.0" />
  3. Review fingerprint behavior:

    • If using FingerprintVersion.Two, the fingerprint generation now includes environment variables instead of thread ID
    • This provides better uniqueness but may result in different fingerprints for the same machine compared to 6.x
    • FingerprintVersion.One (legacy) remains unchanged
  4. Test your application:

    • Run your test suite to ensure compatibility
    • No API changes were made to Cuid or Cuid2 types

๐Ÿ”— Links