Skip to content

Commit 841012d

Browse files
ci: bump version to v0.3.28
1 parent c0af779 commit 841012d

3 files changed

Lines changed: 20 additions & 12 deletions

File tree

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.3.28]
4+
5+
- Released @ 11/2025 (UTC)
6+
- feat: Add metadata field, add fixes
7+
38
## [0.3.27]
49

510
- Released @ 9/2025 (UTC)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
[![banner](https://github.com/dev-cetera/df_log/blob/v0.3.27/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
1+
[![banner](https://github.com/dev-cetera/df_log/blob/v0.3.28/doc/assets/banner.png?raw=true)](https://github.com/dev-cetera)
22

33
[![pub](https://img.shields.io/pub/v/df_log.svg)](https://pub.dev/packages/df_log)
4-
[![tag](https://img.shields.io/badge/Tag-v0.3.27-purple?logo=github)](https://github.com/dev-cetera/df_log/tree/v0.3.27)
4+
[![tag](https://img.shields.io/badge/Tag-v0.3.28-purple?logo=github)](https://github.com/dev-cetera/df_log/tree/v0.3.28)
55
[![buymeacoffee](https://img.shields.io/badge/Buy%20Me%20A%20Coffee-FFDD00?logo=buy-me-a-coffee&logoColor=black)](https://www.buymeacoffee.com/dev_cetera)
66
[![sponsor](https://img.shields.io/badge/Sponsor-grey?logo=github-sponsors&logoColor=pink)](https://github.com/sponsors/dev-cetera)
77
[![patreon](https://img.shields.io/badge/Patreon-grey?logo=patreon)](https://www.patreon.com/t0mb3rr)

lib/src/log_item.dart

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ final class LogItem {
5050
required this.showTags,
5151
required this.showTimestamp,
5252
required this.frame,
53-
}) : id = const Uuid().v4(),
54-
timestamp = DateTime.now();
53+
}) : id = const Uuid().v4(),
54+
timestamp = DateTime.now();
5555

5656
//
5757
//
@@ -104,10 +104,12 @@ final class LogItem {
104104
final hasLocation = location1 != null && location1.isNotEmpty;
105105

106106
if (hasLocation) {
107-
final bracketStyle =
108-
nonMessageStyle != null ? AnsiStyle.bold + nonMessageStyle : null;
109-
final pathTextStyle =
110-
nonMessageStyle != null ? AnsiStyle.italic + nonMessageStyle : null;
107+
final bracketStyle = nonMessageStyle != null
108+
? AnsiStyle.bold + nonMessageStyle
109+
: null;
110+
final pathTextStyle = nonMessageStyle != null
111+
? AnsiStyle.italic + nonMessageStyle
112+
: null;
111113
if (icon != null) {
112114
buffer.write('$icon ');
113115
}
@@ -124,8 +126,8 @@ final class LogItem {
124126

125127
if (message != null) {
126128
final styledMessage = message.toString().trim().withAnsiStyle(
127-
messageStyle,
128-
);
129+
messageStyle,
130+
);
129131
buffer.write(styledMessage);
130132
}
131133

@@ -175,8 +177,9 @@ final class LogItem {
175177

176178
String toJson({bool pretty = true}) {
177179
final map = toMap();
178-
final encoder =
179-
pretty ? const JsonEncoder.withIndent(' ') : const JsonEncoder();
180+
final encoder = pretty
181+
? const JsonEncoder.withIndent(' ')
182+
: const JsonEncoder();
180183
return encoder.convert(map);
181184
}
182185

0 commit comments

Comments
 (0)