zmodel_to_dart_runtime 1.1.1
zmodel_to_dart_runtime: ^1.1.1 copied to clipboard
Runtime contracts and helpers for Dart code generated from ZModel schema files
1.1.1 #
- Added support for nested field orderBy via
ZMOrderByEntry.path()constructor. - Fixed
ZMOrderByEntry.order()method to properly handle nested field paths and generate correct nested JSON structure. - Updated tests for nested orderBy construction.
1.1.0 #
- Added static generated model metadata contracts:
ZModelMetadata,ZModelFieldMetadata, and typed field metadata classes. - Added metadata-generated payload entry objects:
ZMSelectEntry,ZMOmitEntry,ZMIncludeEntry,ZMWhereEntry, andZMOrderByEntry. - Added map payload helpers to apply metadata entries with deep merging for dynamic select, omit, include, and where construction.
- Updated generated-code examples and documentation for metadata-driven dynamic query building.
1.0.3 #
- Added
ZModelOrderByBuilder.order(bool asc)for dynamic ascending or descending order selection. - Updated README references and examples for the new order helper.
1.0.2 #
- Added structured validation contracts:
ZValidationError,ZValidationResult,ZFieldValidator,ZModelValidator, andZValidationMessages. - Added a global validation message resolver with local per-call override support.
- Added composable validator overrides for form-specific rules, including
required(),optional(),withRules(),prependRules(), andreplaceRules(). - Added validation rules for min/max length, string prefixes/suffixes/contains, email, URL, ISO datetime strings, regex patterns, and numeric comparisons.
- Added a const constructor to the
SuperJsonserialization helper. - Renamed the generated blog schema example entrypoint to
example/main.dart. - Updated runtime tests and README references for the renamed example.
1.0.0 #
- Initial release of the standalone runtime package extracted from the legacy
zmodel_to_dartpackage. - Published as
zmodel_to_dart_runtimeso the originalzmodel_to_dartpackage can remain available as the 0.x legacy package. - Added runtime model contracts, typed field implementations, enum helpers, payload contracts, where builders, RPC transport contracts, model-scoped RPC helpers, and
SuperJson. - Generated code now imports this package through
package:zmodel_to_dart_runtime/zmodel_to_dart_runtime.dart.