Upgrading json_serializable 3 to 4
Unknown3.5.2 → 4.1.4
Fetching 10 releases from GitHub…0 / 10
UnknownUpgrade verdict
DepDelta is still reading the notes for this range, so breaking changes can't be ruled out yet.
In plain terms
- DepDelta is still reading the release notes in this range, so it can't rule out breaking changes yet.
- This page updates as the notes come in.
Must act Still reading release notes
DepDelta is still reading the release notes in this range. This updates as they come in.
Dart SDK requirement changed in 4.1.0: >=2.11.99 <3.0.0 → >=2.12.0 <3.0.0.
Adds collection ^1.14.0.
Moves analyzer >=0.39.0 <2.0.0 → >=0.41.2 <2.0.0, build >=0.12.6 <3.0.0 → ^2.0.0, build_config >=0.2.6 <2.0.0 → >=0.4.4 <2.0.0, json_annotation >=3.1.0 <3.2.0 → >=4.0.1 <4.2.0, meta ^1.1.0 → ^1.3.0, path ^1.3.2 → ^1.8.0, source_gen ^0.9.6 → ^1.0.0. Your build may pick other versions.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- changed:
ctor JsonSerializableGenerator({ JsonSerializable config, List<TypeHelper> typeHelpers, }) → ctor JsonSerializableGenerator({ JsonSerializable? config, List<TypeHelper>? typeHelpers, }) - changed:
ctor JsonSerializableGenerator.withDefaultHelpers( Iterable<TypeHelper> typeHelpers, { JsonSerializable config, }) → ctor JsonSerializableGenerator.withDefaultHelpers( Iterable<TypeHelper> typeHelpers, { JsonSerializable? config, })
- removed:
get TypeHelperContext.nullable: bool - changed:
field UnsupportedTypeError.reason: final String → field UnsupportedTypeError.reason: final String? - changed:
get TypeHelperContextWithConfig.config: JsonSerializable → get TypeHelperContextWithConfig.config: ClassConfig - changed:
get TypeHelperContextWithConvert.deserializeConvertData: ConvertData → get TypeHelperContextWithConvert.deserializeConvertData: ConvertData? - changed:
get TypeHelperContextWithConvert.serializeConvertData: ConvertData → get TypeHelperContextWithConvert.serializeConvertData: ConvertData? - changed:
method BigIntHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, ): String → method BigIntHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, bool defaultProvided, ): String? - changed:
method BigIntHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String → method BigIntHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String? - changed:
method ConvertHelper.deserialize( DartType targetType, String expression, TypeHelperContextWithConvert context, ): String → method ConvertHelper.deserialize( DartType targetType, String expression, TypeHelperContextWithConvert context, bool defaultProvided, ): String? - changed:
method ConvertHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConvert context, ): String → method ConvertHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConvert context, ): String? - changed:
method DateTimeHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, ): String → method DateTimeHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, bool defaultProvided, ): String? - changed:
method DateTimeHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String → method DateTimeHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String? - changed:
method DurationHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, ): String → method DurationHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, bool defaultProvided, ): String? - changed:
method DurationHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String → method DurationHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String? - changed:
method EnumHelper.deserialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String → method EnumHelper.deserialize( DartType targetType, String expression, TypeHelperContextWithConfig context, bool defaultProvided, ): String? - changed:
method EnumHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String → method EnumHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String? - changed:
method IterableHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, ): String → method IterableHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, bool defaultProvided, ): String? - changed:
method IterableHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String → method IterableHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String? - changed:
method JsonConverterHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, ): Object → method JsonConverterHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, bool defaultProvided, ): Object? - changed:
method JsonConverterHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): Object → method JsonConverterHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): Object? - changed:
method JsonHelper.deserialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String → method JsonHelper.deserialize( DartType targetType, String expression, TypeHelperContextWithConfig context, bool defaultProvided, ): String? - changed:
method JsonHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String → method JsonHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String? - changed:
method MapHelper.deserialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String → method MapHelper.deserialize( DartType targetType, String expression, TypeHelperContextWithConfig context, bool defaultProvided, ): String? - changed:
method MapHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String → method MapHelper.serialize( DartType targetType, String expression, TypeHelperContextWithConfig context, ): String? - changed:
method TypeHelper.deserialize(DartType targetType, String expression, T context): Object → method TypeHelper.deserialize( DartType targetType, String expression, T context, bool defaultProvided, ): Object? - changed:
method TypeHelper.serialize(DartType targetType, String expression, T context): Object → method TypeHelper.serialize(DartType targetType, String expression, T context): Object? - changed:
method TypeHelperContext.deserialize(DartType fieldType, String expression): Object → method TypeHelperContext.deserialize(DartType fieldType, String expression): Object? - changed:
method TypeHelperContext.serialize(DartType fieldType, String expression): Object → method TypeHelperContext.serialize(DartType fieldType, String expression): Object? - changed:
method UriHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, ): String → method UriHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, bool defaultProvided, ): String? - changed:
method UriHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String → method UriHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String? - changed:
method ValueHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, ): String → method ValueHelper.deserialize( DartType targetType, String expression, TypeHelperContext context, bool defaultProvided, ): String? - changed:
method ValueHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String → method ValueHelper.serialize( DartType targetType, String expression, TypeHelperContext context, ): String? - added:
class ClassConfig implements JsonSerializable - added:
class KeyConfig - added:
ctor ClassConfig({ required this.anyMap, required this.checked, required this.createFactory, required this.createToJson, required this.disallowUnrecognizedKeys, required this.explicitToJson, required this.fieldRename, required this.genericArgumentFactories, required this.ignoreUnannotated, required this.includeIfNull, }) - added:
ctor KeyConfig({ required this.defaultValue, required this.disallowNullValue, required this.ignore, required this.includeIfNull, required this.name, required this.required, required this.unknownEnumValue, }) - added:
field ClassConfig.anyMap: final bool - added:
field ClassConfig.checked: final bool - added:
field ClassConfig.createFactory: final bool - added:
field ClassConfig.createToJson: final bool - added:
field ClassConfig.disallowUnrecognizedKeys: final bool - added:
field ClassConfig.explicitToJson: final bool - added:
field ClassConfig.fieldRename: final FieldRename - added:
field ClassConfig.genericArgumentFactories: final bool - added:
field ClassConfig.ignoreUnannotated: final bool - added:
field ClassConfig.includeIfNull: final bool - added:
field KeyConfig.defaultValue: final Object? - added:
field KeyConfig.disallowNullValue: final bool - added:
field KeyConfig.ignore: final bool - added:
field KeyConfig.includeIfNull: final bool - added:
field KeyConfig.name: final String - added:
field KeyConfig.required: final bool - added:
field KeyConfig.unknownEnumValue: final Object? - added:
method ClassConfig.toJson(): Map<String, dynamic> - added:
method ClassConfig.withDefaults(): JsonSerializable - added:
static field ClassConfig.defaults: const