convert_object 1.0.1
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 returnsnullfor 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
Convertfacade (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, customTypeRegistryparsers participate inConvert.toType/tryToType, andonExceptionhooks fire before anyConversionExceptionsurfaces. - 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.yamlfor pub-friendly hygiene (package imports, secure URLs, doc coverage) while quieting noisy stylistic rules.
1.0.0-dev.3 #
- Added
ConvertConfigglobal 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, andConverter.toString()with matchinggetString/tryGetStringcollection helpers. - Shortened the facade name to
Convertand refreshed top-level exports, examples, and docs to reflect the new API. - Updated enum utilities with
EnumParsers.fromStringand 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 analyzerun.
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.