convert_object 1.0.1 copy "convert_object: ^1.0.1" to clipboard
convert_object: ^1.0.1 copied to clipboard

A comprehensive type conversion library for Dart with a fluent API, safe try* variants, robust Date/Number/URI parsing, enum helpers, and extensive collection/map/list extensions.

1.0.1 #

  • Add Roman numeral helpers and conversions.
  • Align SDK constraint to ^3.10.0 and update dev dependencies.

1.0.0 #

  • Stable release with preserved stack traces in ConversionException (Sentry-friendly).
  • Strict vs try conversions clarified; tryToType<T> now returns null for unsupported types.
  • ConversionException.toString() is concise; fullReport() is JSON-safe.
  • Scoped overrides now require explicit intent via ConvertConfig.overrides(...).
  • Added DateFormat/NumberFormat caching and reduced allocations for numeric conversions.
  • Docs refreshed with error reporting, migration notes, and low-token usage examples.

1.0.0-dev.4 #

  • Added full configuration controls on the Convert facade (config, configure, updateConfig, runScopedConfig) so apps can inspect, replace, or temporarily override defaults per zone.
  • Wired every primitive conversion through ConvertConfig: numeric/date helpers now honor default formats/locales with smart formatted↔plain fallbacks, boolean parsing respects custom truthy/falsy sets, URI parsing enforces default-scheme/relative policies, custom TypeRegistry parsers participate in Convert.toType/tryToType, and onException hooks fire before any ConversionException surfaces.
  • Introduced a comprehensive JSON-normalization toolkit (jsonSafe, JsonOptions, .toJsonMap/.toJsonString/.toJsonList/.toJsonSafe) with enum/date/duration strategies, binary→base64 encoding, set→list coercion, drop-null & sort-keys toggles, toEncodable hooks, optional cycle detection, and updated exceptions to use the new pretty printers.
  • Retuned analysis_options.yaml for pub-friendly hygiene (package imports, secure URLs, doc coverage) while quieting noisy stylistic rules.

1.0.0-dev.3 #

  • Added ConvertConfig global configuration with default number/date formats, boolean literals, URI policy, custom type registry, and exception hooks (including scoped overrides).
  • Unified string conversion naming: Convert.string / Convert.tryToString, convertToString, and Converter.toString() with matching getString/tryGetString collection helpers.
  • Shortened the facade name to Convert and refreshed top-level exports, examples, and docs to reflect the new API.
  • Updated enum utilities with EnumParsers.fromString and refreshed developer README assets for LLM consumption.

1.0.0-dev.2 #

  • Added documentation across all public APIs, including facade helpers, utilities, and extensions.
  • Tightened analyzer rules to enforce package imports and doc coverage, achieving a clean flutter analyze run.

1.0.0-dev.1 #

First stable release of convert_object — a comprehensive, null‑safe type‑conversion toolkit for Dart & Flutter with a fluent API, static helpers, safe try* variants, robust Date/Number/URI handling, collections, enums, and developer‑friendly diagnostics.

0
likes
160
points
118
downloads

Publisher

verified publishertomars.tech

Weekly Downloads

A comprehensive type conversion library for Dart with a fluent API, safe try* variants, robust Date/Number/URI parsing, enum helpers, and extensive collection/map/list extensions.

Repository (GitHub)
View/report issues

Topics

#conversion #type-conversion #utilities #extensions #collections

Documentation

API reference

License

MIT (license)

Dependencies

intl, meta

More

Packages that depend on convert_object