Skip to content

Commit ff665cf

Browse files
ci: bump version to v0.6.13
1 parent 540a7ae commit ff665cf

File tree

4 files changed

+37
-20
lines changed

4 files changed

+37
-20
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [0.6.13]
4+
5+
- Released @ 6/2025 (UTC)
6+
- Critical bugfix
7+
38
## [0.6.12]
49

510
- Released @ 6/2025 (UTC)

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Dart & Flutter Packages by dev-cetera.com & contributors.
55

66
[![pub](https://img.shields.io/pub/v/df_gen_core.svg)](https://pub.dev/packages/df_gen_core)
7-
[![tag](https://img.shields.io/badge/tag-v0.6.12-purple)](https://github.com/dev-cetera/df_gen_core/tree/v0.6.12)
7+
[![tag](https://img.shields.io/badge/tag-v0.6.13-purple)](https://github.com/dev-cetera/df_gen_core/tree/v0.6.13)
88
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_gen_core/main/LICENSE)
99

1010
---
@@ -49,4 +49,3 @@ If you're enjoying this package and find it valuable, consider showing your appr
4949
## License
5050

5151
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_gen_core/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_gen_core/main/LICENSE) for more information.
52-

lib/src/language_support/dart_annotated_class_analyzer.dart

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ final class DartAnnotatedClassAnalyzer {
8282
fullFileUri.toString(),
8383
);
8484
if (library is LibraryElementResult) {
85-
final classElements = library.element.topLevelElements.whereType<ClassElement>();
85+
final classElements = library.element.topLevelElements
86+
.whereType<ClassElement>();
8687
for (final classElement in classElements) {
8788
final className = classElement.displayName;
8889
if (classNameFilter == null || classNameFilter.hasMatch(className)) {
@@ -137,7 +138,8 @@ final class DartAnnotatedClassAnalyzer {
137138
Set<String>? inclMemberAnnotations,
138139
) async {
139140
for (final fieldElement in classElement.fields) {
140-
if (memberNameFilter == null || memberNameFilter.hasMatch(fieldElement.displayName)) {
141+
if (memberNameFilter == null ||
142+
memberNameFilter.hasMatch(fieldElement.displayName)) {
141143
for (final fieldMetadata in fieldElement.metadata) {
142144
final memberAnnotationName = fieldMetadata.element?.displayName;
143145
if (memberAnnotationName != null &&
@@ -197,7 +199,8 @@ final class DartAnnotatedClassAnalyzer {
197199
Set<String>? inclMethodAnnotations,
198200
) async {
199201
for (final method in classElement.methods) {
200-
if (methodNameFilter == null || methodNameFilter.hasMatch(method.displayName)) {
202+
if (methodNameFilter == null ||
203+
methodNameFilter.hasMatch(method.displayName)) {
201204
for (final methodMetadata in method.metadata) {
202205
final methodAnnotationName = methodMetadata.element?.displayName;
203206
if (methodAnnotationName != null &&
@@ -214,7 +217,9 @@ final class DartAnnotatedClassAnalyzer {
214217
final fieldNames = element?.children.map((e) => e.displayName);
215218
if (fieldNames != null) {
216219
for (final fieldName in fieldNames) {
217-
final fieldValue = methodMetadata.computeConstantValue()?.getField(fieldName);
220+
final fieldValue = methodMetadata
221+
.computeConstantValue()
222+
?.getField(fieldName);
218223
if (fieldValue != null) {
219224
await onMethodAnnotationField(
220225
OnMethodAnnotationFieldParams(
@@ -262,8 +267,8 @@ final class DartAnnotatedClassAnalyzer {
262267
if (fieldNames != null) {
263268
for (final fieldName in fieldNames) {
264269
final fieldValue = metadata.computeConstantValue()?.getField(
265-
fieldName,
266-
);
270+
fieldName,
271+
);
267272
if (fieldValue != null) {
268273
await onClassAnnotationField(
269274
OnClassAnnotationFieldParams(
@@ -298,7 +303,8 @@ final class OnAnnotatedClassParams {
298303
});
299304
}
300305

301-
typedef TOnAnnotatedClassCallback = Future<dynamic> Function(OnAnnotatedClassParams parent);
306+
typedef TOnAnnotatedClassCallback =
307+
Future<dynamic> Function(OnAnnotatedClassParams parent);
302308

303309
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
304310

@@ -319,8 +325,8 @@ final class OnClassAnnotationFieldParams {
319325
});
320326
}
321327

322-
typedef TOnClassAnnotationFieldCallback = Future<dynamic> Function(
323-
OnClassAnnotationFieldParams parent);
328+
typedef TOnClassAnnotationFieldCallback =
329+
Future<dynamic> Function(OnClassAnnotationFieldParams parent);
324330

325331
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
326332

@@ -339,7 +345,8 @@ final class OnAnnotatedMethodParams {
339345
});
340346
}
341347

342-
typedef TOnAnnotatedMethodCallback = Future<dynamic> Function(OnAnnotatedMethodParams parent);
348+
typedef TOnAnnotatedMethodCallback =
349+
Future<dynamic> Function(OnAnnotatedMethodParams parent);
343350

344351
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
345352

@@ -360,8 +367,8 @@ final class OnMethodAnnotationFieldParams {
360367
});
361368
}
362369

363-
typedef TOnMethodAnnotationFieldCallback = Future<dynamic> Function(
364-
OnMethodAnnotationFieldParams parent);
370+
typedef TOnMethodAnnotationFieldCallback =
371+
Future<dynamic> Function(OnMethodAnnotationFieldParams parent);
365372

366373
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
367374

@@ -382,7 +389,8 @@ final class OnAnnotatedMemberParams {
382389
});
383390
}
384391

385-
typedef TOnAnnotatedMemberCallback = Future<dynamic> Function(OnAnnotatedMemberParams parent);
392+
typedef TOnAnnotatedMemberCallback =
393+
Future<dynamic> Function(OnAnnotatedMemberParams parent);
386394

387395
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
388396

@@ -403,8 +411,8 @@ final class OnMemberAnnotationFieldParams {
403411
});
404412
}
405413

406-
typedef TOnMemberAnnotationFieldsCallback = Future<dynamic> Function(
407-
OnMemberAnnotationFieldParams parent);
414+
typedef TOnMemberAnnotationFieldsCallback =
415+
Future<dynamic> Function(OnMemberAnnotationFieldParams parent);
408416

409417
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
410418

lib/src/mappers_etc.dart

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ String buildCollectionMapper(
3939
.._largs = Iterable.generate(pLength, (n) => n).map((n) => 'p$n')
4040
.._type = element[1];
4141
final argIdMatch = RegExp(r'#x(\d+)').firstMatch(output);
42-
collectionEvent._nameIndex = argIdMatch != null && argIdMatch.groupCount > 0 //
42+
collectionEvent._nameIndex =
43+
argIdMatch != null &&
44+
argIdMatch.groupCount >
45+
0 //
4346
? int.tryParse(argIdMatch.group(1)!)
4447
: null;
4548
final xHash = '#x${collectionEvent._nameIndex}';
@@ -156,7 +159,8 @@ TTypeMappers filterMappersByType(TTypeMappers mappers, String type) {
156159

157160
// ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░
158161

159-
typedef TTypeMappers<E extends MapperEvent> = Map<String, String Function(E event)>;
162+
typedef TTypeMappers<E extends MapperEvent> =
163+
Map<String, String Function(E event)>;
160164

161165
TTypeMappers<T> newTypeMap<T extends MapperEvent>(
162166
Map<String, String Function(T)> src,
@@ -173,7 +177,8 @@ TTypeMappers<T> newTypeMap<T extends MapperEvent>(
173177
abstract class TypeMappers {
174178
TTypeMappers<MapperEvent> get fromMappers =>
175179
{...collectionFromMappers, ...objectFromMappers}.cast();
176-
TTypeMappers<MapperEvent> get toMappers => {...collectionToMappers, ...objectToMappers}.cast();
180+
TTypeMappers<MapperEvent> get toMappers =>
181+
{...collectionToMappers, ...objectToMappers}.cast();
177182
TTypeMappers<CollectionMapperEvent> get collectionFromMappers;
178183
TTypeMappers<CollectionMapperEvent> get collectionToMappers;
179184
TTypeMappers<ObjectMapperEvent> get objectFromMappers;

0 commit comments

Comments
 (0)