Skip to content

Commit

Permalink
Release 2.2.13
Browse files Browse the repository at this point in the history
  • Loading branch information
k-paxian committed Jul 17, 2024
1 parent e8f2eef commit b2b0f34
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 9 deletions.
4 changes: 4 additions & 0 deletions mapper/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 2.2.13

* bump dependencies to latest

## 2.2.12+1

* downgrade `meta` dependency to improve package compatibility
Expand Down
2 changes: 1 addition & 1 deletion mapper/lib/src/builder/change_analyzer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ChangeAnalyzer {
Map<String, ComparableClassElement> getClassesMap(
Iterable<ClassElement> classes) =>
classes.fold({}, (value, element) {
value[element.getDisplayString(withNullability: false)] =
value[element.getDisplayString()] =
ComparableClassElement(element);
return value;
});
Expand Down
4 changes: 2 additions & 2 deletions mapper/lib/src/builder/library_visitor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class LibraryVisitor extends RecursiveElementVisitor {
meta
.computeConstantValue()!
.type!
.getDisplayString(withNullability: false) ==
.getDisplayString() ==
_annotationClassName)) {
visitedPublicAnnotatedClassElements.putIfAbsent(
element.id, () => element);
Expand All @@ -62,7 +62,7 @@ class LibraryVisitor extends RecursiveElementVisitor {
meta
.computeConstantValue()!
.type!
.getDisplayString(withNullability: false) ==
.getDisplayString() ==
_annotationClassName)) {
visitedPublicAnnotatedEnumElements.putIfAbsent(
element.id, () => element);
Expand Down
2 changes: 1 addition & 1 deletion mapper/lib/src/model/annotations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
10 changes: 5 additions & 5 deletions mapper/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
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.
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:

0 comments on commit b2b0f34

Please sign in to comment.