Repository navigation
Ack 1.7.0-beta.3
Pre-release
Pre-release
1.7.0-beta.3
- Remove the
ack_annotationspackage; the annotations ship inack. Models
importpackage:ack/ack.dart(@Schemable,@AckField,@Optional,
@Required,@NotNull). Files that use constraint annotations or the
deprecated spellings also importpackage:ack/annotations.dart, with a
prefix (as ack) where a name clashes with another type. Format
annotations move topackage:ack/format_annotations.dart. @Schemable()is the single annotation for schema-first and class-first
generation.@AckInfer()and@AckModel()are deprecated and will be
removed in 2.0.0.- Rename
@Patternto@Matches. The deprecatedPatternalias stays in
package:ack/annotations.dart; an unprefixed import of that library hides
dart:core'sPattern. ackno longer depends onjson_annotationor re-exportsJsonKey. A field
renamed with@JsonKey(name: ...)importsJsonKeyfrom
package:json_annotationand the app depends onjson_annotation.
AckModel.jsonSerializableandAckGeneratedJson.configare removed.- A class-first field whose type declares a static
schemaresolves to it with
no annotation, including extension types, enums, and generic types through a
staticschema<A>()method that can receive each type argument's schema. - The generator rejects input that used to produce wrong or non-compiling
output: types the annotated library cannot name, mismatched or generic
@AckField(schema:)functions, non-finite constraint values,@Schemable
options for the other target, andJsonConverterannotations on class-first
models. - Align all five publishable packages at 1.7.0-beta.3. The generator requires
ack1.7.0-beta.3.