Skip to content

feat!: target .NET 10 and update dependencies - #12

Merged
brunobritodev merged 2 commits into
masterfrom
feat/net10
Nov 18, 2026
Merged

brunobritodev merged 2 commits into
masterfrom
feat/net10

Conversation

@brunobritodev

Copy link
Copy Markdown
Member

What

Same modernization as NetDevPack 9 / Security.Jwt 11.

feat!: target .NET 10 and update dependencies

  • net10.0 only. Drops netstandard2.1, net8.0 and net9.0; NetDevPack 8.0.2 → 9.0.0.
  • Central Package Management (Directory.Packages.props), NuGet Audit as errors (Directory.Build.props), global.json (SDK 10.0.100, Microsoft.Testing.Platform).
  • Tests:
    • xunit 2 → xunit.v3 4.0.3; Microsoft.NET.Test.Sdk and xunit.runner.visualstudio were removed.
    • FluentAssertions 6 → AwesomeAssertions 9.6 (FluentAssertions has a commercial license from v8).
  • CI:
    • PR workflow uses the SDK from global.json and adds a vulnerability check.
    • Publish workflow (dotnet.yml, the name the trusted publishing policy expects) packs only NetDevPack.Brasil, and only when a release is published.
    • conventionalcommits release preset and Dependabot config.
  • CopyHook copied the commit-msg hook into the parent folder's .git, which created a stray repository next to the clones. It now targets this repo's .git and is skipped on CI.
  • README: it was a copy of NetDevPack's. It's rewritten for this package (install, compatibility, examples) and packed into the nupkg.
  • .editorconfig: UTF-8 BOM + CRLF.

fix: normalize masked CEP like CPF and CNPJ

  • new Cep("01310-100") kept the mask:
    • SemMascara() returned 01310-100;
    • ComMascara() threw FormatException;
    • Equals failed against 01310100.
  • Valid CEPs now keep only the digits, like Cpf/Cnpj do.
  • New tests cover the masked/unmasked CEP and the README examples.

Release

feat! + BREAKING CHANGE → 3.0.0. Use Rebase and merge so the fix: also shows up in the release notes; a squash keeps only the PR title.

Validation

  • Build: 0 warnings, 0 errors.
  • Tests: 62/62.
  • dotnet list package --vulnerable --include-transitive: clean.

- net10.0 only (netstandard2.1, net8.0 and net9.0 dropped), NetDevPack 9.0.0
- Central Package Management, NuGet Audit as errors, global.json
- Tests: xunit.v3 on Microsoft.Testing.Platform, AwesomeAssertions
  instead of FluentAssertions (commercial license since v8)
- CI: SDK from global.json, vulnerability check, conventionalcommits
  release preset, pack only when a release is published
- CopyHook wrote to the parent folder's .git; it now targets this repo
  and is skipped on CI
- README rewritten for this package and packed into the nupkg

BREAKING CHANGE: only .NET 10 is supported. Stay on 2.x for
.NET Standard 2.1, .NET 8 or .NET 9.
new Cep("01310-100") kept the mask, so SemMascara() returned it,
ComMascara() threw FormatException and Equals failed against the
unmasked value. Valid CEPs now keep only the digits.
@brunobritodev
brunobritodev merged commit ab4d0e5 into master Nov 18, 2026
2 checks passed
@brunobritodev
brunobritodev deleted the feat/net10 branch November 18, 2026 02:32
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 3.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant