diff --git a/mapper/CHANGELOG.md b/mapper/CHANGELOG.md index 33aa63e..58c4d91 100644 --- a/mapper/CHANGELOG.md +++ b/mapper/CHANGELOG.md @@ -1,3 +1,7 @@ +## 2.2.13 + +* bump dependencies to latest + ## 2.2.12+1 * downgrade `meta` dependency to improve package compatibility diff --git a/mapper/lib/src/builder/change_analyzer.dart b/mapper/lib/src/builder/change_analyzer.dart index c0f977e..a5bcf8b 100644 --- a/mapper/lib/src/builder/change_analyzer.dart +++ b/mapper/lib/src/builder/change_analyzer.dart @@ -12,7 +12,7 @@ class ChangeAnalyzer { Map getClassesMap( Iterable classes) => classes.fold({}, (value, element) { - value[element.getDisplayString(withNullability: false)] = + value[element.getDisplayString()] = ComparableClassElement(element); return value; }); diff --git a/mapper/lib/src/builder/library_visitor.dart b/mapper/lib/src/builder/library_visitor.dart index 78354a9..866cbd7 100644 --- a/mapper/lib/src/builder/library_visitor.dart +++ b/mapper/lib/src/builder/library_visitor.dart @@ -43,7 +43,7 @@ class LibraryVisitor extends RecursiveElementVisitor { meta .computeConstantValue()! .type! - .getDisplayString(withNullability: false) == + .getDisplayString() == _annotationClassName)) { visitedPublicAnnotatedClassElements.putIfAbsent( element.id, () => element); @@ -62,7 +62,7 @@ class LibraryVisitor extends RecursiveElementVisitor { meta .computeConstantValue()! .type! - .getDisplayString(withNullability: false) == + .getDisplayString() == _annotationClassName)) { visitedPublicAnnotatedEnumElements.putIfAbsent( element.id, () => element); diff --git a/mapper/lib/src/model/annotations.dart b/mapper/lib/src/model/annotations.dart index 041146b..acd55df 100644 --- a/mapper/lib/src/model/annotations.dart +++ b/mapper/lib/src/model/annotations.dart @@ -10,7 +10,7 @@ const jsonConstructor = JsonConstructor(); /// [JsonConstructor] is used as metadata, to annotate specific Dart class constructor /// being used for deserialization -@Target({}) // should be [TargetKind.constructor] but it doesn't exists :( +@Target({TargetKind.constructor}) class JsonConstructor { /// Scheme marker to associate this meta information with particular mapping scheme final dynamic scheme; diff --git a/mapper/pubspec.yaml b/mapper/pubspec.yaml index bb8ae39..c2a4b1c 100644 --- a/mapper/pubspec.yaml +++ b/mapper/pubspec.yaml @@ -1,5 +1,5 @@ name: dart_json_mapper -version: 2.2.12+1 +version: 2.2.13 description: > This package allows programmers to annotate Dart objects in order to serialize / deserialize them from / to JSON. @@ -7,15 +7,15 @@ homepage: https://github.com/k-paxian/dart-json-mapper environment: sdk: '>=2.17.0 <4.0.0' dependencies: - analyzer: ^6.4.1 + analyzer: ^6.5.0 build: ^2.4.1 build_config: ^1.1.1 intl: ^0.19.0 - meta: ^1.11.0 + meta: ^1.15.0 path: ^1.8.3 - reflectable: ^4.0.6 + reflectable: ^4.0.9 collection: ^1.18.0 - pubspec_parse: ^1.2.3 + pubspec_parse: ^1.3.0 dev_dependencies: lints: build_runner: