essential_core 1.4.0 copy "essential_core: ^1.4.0" to clipboard
essential_core: ^1.4.0 copied to clipboard

Shared foundational models, filters, extensions, and serialization contracts for reusable Dart code.

1.4.0 #

  • Added public CPF/CNPJ helpers for sanitizing, formatting, and generating valid document values.
  • Added federal-style public display masking helpers for CPF and CNPJ documents.
  • Added platform-agnostic generic utility helpers for hashing, map defaults, string coercion, boolean parsing, character filtering, HTML escaping, and e-mail normalization.
  • Centralized nullable boolean parsing in EssentialCoreUtils and kept Filters conversion helpers as compatibility wrappers.
  • Added additional CPF/CNPJ validation coverage, including known valid/invalid CPF and numeric CNPJ examples plus Receita Federal alphanumeric CNPJ samples.

1.3.0 #

  • Updated EssentialCoreUtils.validarCnpj to support the Receita Federal alphanumeric CNPJ check-digit rules while preserving numeric CNPJ validation.
  • Added comprehensive CNPJ validation coverage for legacy numeric values, alphanumeric values, masks, spaces, lowercase normalization, invalid check digits, and malformed inputs.
  • Added a CNPJ validator benchmark and optimized validation to avoid regex/substrings in the hot path.
  • Fixed CPF validation so repeated zeroes are rejected like every other repeated digit sequence.
  • Added strict CNPJ validation mode, a raw input length guard, and faster static regular expressions for accent removal and e-mail validation.
  • Added an accent removal benchmark.
  • Added Portuguese-aware title case conversion with connector words, acronyms, punctuation, hyphen, and apostrophe handling.
  • Added real service-name collection tests for Portuguese title case and expanded acronym/separator handling.
  • Added custom lowercase word and acronym overrides to Portuguese title case conversion.
  • Expanded Dartdoc and README documentation across public models, extensions, and utility helpers.
  • Added framework-agnostic interactive text-mask logic with CPF, CNPJ, generic mask, cursor, and raw-value support.
  • Improved interactive text masks with escaped literals, compiled patterns, normalized selection bounds, explicit numeric/alphanumeric CNPJ factories, and edit-aware cursor handling to avoid backspace traps around mask literals.

1.2.0 #

  • BREAKING CHANGE: Fixed Filters sorting behavior so orderBy/orderDir and orderFields no longer auto-synchronize, keeping simple datatable sorting independent from advanced multi-field flows.

1.1.0 #

  • BREAKING CHANGE: Removed CoreUtils; its utility methods now live in EssentialCoreUtils.
  • Added error and templateOutletContext to DataFrame for template-driven UI rendering scenarios.
  • Exposed reusable Filters helpers and reserved keys to support custom parsing and serialization flows.

1.0.0 #

  • Initial release of the shared foundational package.
0
likes
150
points
256
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Shared foundational models, filters, extensions, and serialization contracts for reusable Dart code.

Repository (GitHub)
View/report issues

Topics

#dart #filters #serialization #utilities

License

MIT (license)

More

Packages that depend on essential_core