Skip to content

Commit b2b0f34

Browse files
committed
Release 2.2.13
1 parent e8f2eef commit b2b0f34

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

mapper/CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 2.2.13
2+
3+
* bump dependencies to latest
4+
15
## 2.2.12+1
26

37
* downgrade `meta` dependency to improve package compatibility

mapper/lib/src/builder/change_analyzer.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class ChangeAnalyzer {
1212
Map<String, ComparableClassElement> getClassesMap(
1313
Iterable<ClassElement> classes) =>
1414
classes.fold({}, (value, element) {
15-
value[element.getDisplayString(withNullability: false)] =
15+
value[element.getDisplayString()] =
1616
ComparableClassElement(element);
1717
return value;
1818
});

mapper/lib/src/builder/library_visitor.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class LibraryVisitor extends RecursiveElementVisitor {
4343
meta
4444
.computeConstantValue()!
4545
.type!
46-
.getDisplayString(withNullability: false) ==
46+
.getDisplayString() ==
4747
_annotationClassName)) {
4848
visitedPublicAnnotatedClassElements.putIfAbsent(
4949
element.id, () => element);
@@ -62,7 +62,7 @@ class LibraryVisitor extends RecursiveElementVisitor {
6262
meta
6363
.computeConstantValue()!
6464
.type!
65-
.getDisplayString(withNullability: false) ==
65+
.getDisplayString() ==
6666
_annotationClassName)) {
6767
visitedPublicAnnotatedEnumElements.putIfAbsent(
6868
element.id, () => element);

mapper/lib/src/model/annotations.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const jsonConstructor = JsonConstructor();
1010

1111
/// [JsonConstructor] is used as metadata, to annotate specific Dart class constructor
1212
/// being used for deserialization
13-
@Target({}) // should be [TargetKind.constructor] but it doesn't exists :(
13+
@Target({TargetKind.constructor})
1414
class JsonConstructor {
1515
/// Scheme marker to associate this meta information with particular mapping scheme
1616
final dynamic scheme;

mapper/pubspec.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
name: dart_json_mapper
2-
version: 2.2.12+1
2+
version: 2.2.13
33
description: >
44
This package allows programmers to annotate Dart objects in order to
55
serialize / deserialize them from / to JSON.
66
homepage: https://github.com/k-paxian/dart-json-mapper
77
environment:
88
sdk: '>=2.17.0 <4.0.0'
99
dependencies:
10-
analyzer: ^6.4.1
10+
analyzer: ^6.5.0
1111
build: ^2.4.1
1212
build_config: ^1.1.1
1313
intl: ^0.19.0
14-
meta: ^1.11.0
14+
meta: ^1.15.0
1515
path: ^1.8.3
16-
reflectable: ^4.0.6
16+
reflectable: ^4.0.9
1717
collection: ^1.18.0
18-
pubspec_parse: ^1.2.3
18+
pubspec_parse: ^1.3.0
1919
dev_dependencies:
2020
lints:
2121
build_runner:

0 commit comments

Comments
 (0)