Skip to content

v2.0.0

Choose a tag to compare

@potatowski potatowski released this 26 Mar 19:04
· 12 commits to main since this release
8f757f5

What's Changed

Added

  • Document interface for document operations.
  • IsValid, Format, and Generate methods for document validation and formatting.

Changed

  • Converted voter registration functions to methods of VoterRegistration struct implementing the Document interface.
  • Converted CPF functions to methods of CPF struct implementing the Document interface.
  • Converted CNPJ functions to methods of CNPJ struct implementing the Document interface.
  • Converted CNH functions to methods of CNH struct implementing the Document interface.
  • Consolidated document operations into a unified interface with IsValid, Format, and Generate methods.
  • Updated README to reflect method changes for CNPJ and VoterRegistration.
  • Enhanced clarity on package functionality and usage examples in README.

Fixed

  • Updated voter registration test to ignore voter output.

Full Changelog: v1.1.1...v2.0.0