zmodel_to_dart_builder 1.1.1
zmodel_to_dart_builder: ^1.1.1 copied to clipboard
A Dart builder to generate DTO classes from ZModel schema files
1.1.1 #
- Updated package metadata for the matching runtime release with nested orderBy support.
1.1.0 #
- Generated
static const [Model].metadataand[Model]Metadataclasses for schema-level field metadata. - Generated typed metadata getters for scalar, enum, list, model, and model-list fields.
- Updated tests and documentation for metadata-driven dynamic select, where, and orderBy construction.
- Updated package metadata for the matching runtime release.
1.0.3 #
- Updated package README examples to document
ZModelOrderByBuilder.order(bool asc). - Updated package metadata for the matching runtime release.
1.0.2 #
- Added generated
[Model].validatorsand[Model]Validatorsclasses for local validation from schema metadata. - Generated validators now expose required, type, enum, list, and model-relation rules, plus primary-key/unique metadata for app-managed checks.
- Generated validators now include rules from
@length,@startsWith,@endsWith,@contains,@email,@url,@datetime,@regex,@lt,@lte,@gt, and@gte. - Generated validators now include max-length rules for string fields declared with
@db.VarChar(n)or@db.Char(n). - Fixed parsed field nullability so fields are required by default and become optional only with
?.
1.0.0 #
- BREAKING CHANGE: Split the package into
zmodel_to_dart_builderfor generation andzmodel_to_dart_runtimefor runtime contracts. - BREAKING CHANGE: Generated code now imports
package:zmodel_to_dart_runtime/zmodel_to_dart_runtime.dart, so consuming apps must depend on the runtime package. - BREAKING CHANGE: Refactored generated RPC client APIs to use schema-scoped clients and model-scoped payload builders.
- Left the original
zmodel_to_dartpub package name for legacy 0.x releases. - Added generated payload builders for create, createMany, update, where, whereUnique, select, omit, include, orderBy, and distinct.
- Removed the legacy generic RPC args and inline RPC generator helpers from the public builder surface.
0.5.0 #
- Added generated
[Model]Mutationpayload classes for create and update data - Updated generated RPC mutation methods to accept sparse
ZModelMutationpayloads - Removed generated DTO and enum
toJsonmethods; mutation serialization now belongs toZModelMutation - Moved generated
*ToJsonOrNullhelpers fromZModeltoZModelMutation - Aligned generated RPC mutation methods with ZenStack HTTP verbs, including
PUTfor updates - Required
wherepayloads for generated and manual bulk update/delete request helpers - Removed the generated and manual
updateManyAndReturnRPC helper - Updated the README transport example for
ZenStackRpcMethod.put
0.4.2 #
- Improved generated RPC serialized-envelope detection for payloads wrapped under
dataorjson - Added an
ARCHITECTURE.mdguide and linked it from the README
0.4.1 #
- Aligned serialized RPC envelope test expectations with the current generator output
0.4.0 #
- Expanded generated ZenStack RPC operations and helper payload types
- Documented the broader generated RPC surface in the README
0.3.0 #
- Refactored generated model scaffolding and serialization helpers
- Added automatic unwrapping for
superjsonRPC responses before model parsing
0.2.2 #
- Normalized generated RPC path templates to use single-quoted Dart strings
0.2.1 #
- Refined generated ZenStack RPC client method signatures
- Simplified generated null-aware map entries for RPC payloads
- Expanded public API documentation
- Updated README examples and package version references
0.2.0 #
- Added generated ZenStack RPC client support
- Added inline generated
ZModelbase with typed model resolution - Added RPC config options in
zmodel_to_dart.yaml - Added Dio transport example to the README
0.1.0 #
- Initial release
- Added ZModel parser and DTO generator
- Added build_runner builder support
- Added standalone CLI support