Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/dart_mappable/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 4.8.0

- Bump `analyzer` to `>=10.0.0 <12.0.0`.

# 4.7.0

- Added `firstWhere` to `ListCopyWith` for chaining copyWith calls on a list element based on a predicate function.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class PrimitiveMapper<T extends Object> extends MapperBase<T>
return exactType != null ? v.runtimeType == exactType : super.isFor(v);
}

static T _cast<T>(v) => v as T;
static T _cast<T>(dynamic v) => v as T;

@override
T decoder(Object value, DecodingContext context) {
Expand Down
6 changes: 3 additions & 3 deletions packages/dart_mappable/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dart_mappable
description: Improved json serialization and data classes with full support for generics, inheritance, customization and more.
version: 4.7.0
version: 4.8.0
repository: https://github.com/schultek/dart_mappable
issue_tracker: https://github.com/schultek/dart_mappable/issues
documentation: https://pub.dev/documentation/dart_mappable/latest/topics/Introduction-topic.html
Expand All @@ -25,7 +25,7 @@ dependencies:

dev_dependencies:
build_runner: ^2.4.14
dart_mappable_builder: ^4.7.0
lints: ^5.0.0
dart_mappable_builder: ^4.8.0
lints: ^6.1.0
test: ^1.25.10

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ abstract class A with AMappable {
class B extends A with BMappable {
B();

static bool checkType(value) {
static bool checkType(dynamic value) {
return value is Map && value['isB'] == true;
}
}
Expand All @@ -21,7 +21,7 @@ class B extends A with BMappable {
class C extends A with CMappable {
C();

static bool checkType(value) {
static bool checkType(dynamic value) {
return value is Map && value['isWhat'] == 'C';
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/dart_mappable_builder/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 4.8.0

- Bump `analyzer` to `>=10.0.0 <12.0.0`.

## 4.7.0

- Allow `analyzer` 10.0.0.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,17 +139,15 @@ abstract class ClassMapperElement extends InterfaceMapperElement<ClassElement>
yield* extendsElement?._allFields ?? [];

for (var getter in element.getters) {
// ignore: deprecated_member_use
if (getter.isStatic || getter.isSynthetic) continue;
if (getter.isStatic || !getter.isOriginDeclaration) continue;

if (fieldChecker.hasAnnotationOf(getter)) {
yield getter.variable;
}
}

for (var field in element.fields) {
// ignore: deprecated_member_use
if (field.isStatic || field.isSynthetic) continue;
if (field.isStatic || !field.isOriginDeclaration) continue;

if (field.isPublic || fieldChecker.hasAnnotationOf(field)) {
yield field;
Expand Down
8 changes: 4 additions & 4 deletions packages/dart_mappable_builder/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dart_mappable_builder
description: Improved json serialization and data classes with full support for generics, inheritance, customization and more.
version: 4.7.0
version: 4.8.0
repository: https://github.com/schultek/dart_mappable
issue_tracker: https://github.com/schultek/dart_mappable/issues
funding:
Expand All @@ -12,11 +12,11 @@ environment:
resolution: workspace

dependencies:
analyzer: '>=8.1.0 <11.0.0'
analyzer: '>=10.0.0 <13.0.0'
ansicolor: ^2.0.1
build: ^4.0.0
collection: ^1.15.0
dart_mappable: ^4.7.0
dart_mappable: ^4.8.0
dart_style: ^3.0.1
glob: ^2.1.0
path: ^1.8.0
Expand All @@ -25,5 +25,5 @@ dependencies:
dev_dependencies:
build_runner: ^2.10.2
build_test: ^3.3.0
lints: '>=1.0.0 <6.0.0'
lints: '>=1.0.0 <7.0.0'
test: ^1.25.10
Loading