Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release talker v3.1.4 #154

Merged
merged 7 commits into from
Oct 17, 2023
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
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Follow these steps to the coolest experience in error handling
### Add dependency
```yaml
dependencies:
talker: ^3.1.2
talker: ^3.1.4
```

### Easy to use
Expand Down Expand Up @@ -218,7 +218,7 @@ Talker Flutter is an extension for the Dart Talker package that adds extra funct
### Add dependency
```yaml
dependencies:
talker_flutter: ^3.5.1
talker_flutter: ^3.5.2
```

### Setup
Expand Down Expand Up @@ -387,7 +387,7 @@ Follow these steps to use this package
### Add dependency
```yaml
dependencies:
talker_dio_logger: ^2.3.0
talker_dio_logger: ^2.3.1
```

### Usage
Expand Down Expand Up @@ -437,7 +437,7 @@ Follow these steps to use this package
### Add dependency
```yaml
dependencies:
talker_bloc_logger: ^2.2.0
talker_bloc_logger: ^2.2.1
```

### Usage
Expand Down
28 changes: 14 additions & 14 deletions examples/shop_app_example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -292,50 +292,50 @@ packages:
dependency: transitive
description:
name: path_provider
sha256: "3087813781ab814e4157b172f1a11c46be20179fcc9bea043e0fba36bc0acaa2"
sha256: a1aa8aaa2542a6bc57e381f132af822420216c80d4781f7aa085ca3229208aaa
url: "https://pub.dev"
source: hosted
version: "2.0.15"
version: "2.1.1"
path_provider_android:
dependency: transitive
description:
name: path_provider_android
sha256: a776c088d671b27f6e3aa8881d64b87b3e80201c64e8869b811325de7a76c15e
sha256: "6b8b19bd80da4f11ce91b2d1fb931f3006911477cec227cce23d3253d80df3f1"
url: "https://pub.dev"
source: hosted
version: "2.0.22"
version: "2.2.0"
path_provider_foundation:
dependency: transitive
description:
name: path_provider_foundation
sha256: "62a68e7e1c6c459f9289859e2fae58290c981ce21d1697faf54910fe1faa4c74"
sha256: "19314d595120f82aca0ba62787d58dde2cc6b5df7d2f0daf72489e38d1b57f2d"
url: "https://pub.dev"
source: hosted
version: "2.1.1"
version: "2.3.1"
path_provider_linux:
dependency: transitive
description:
name: path_provider_linux
sha256: ab0987bf95bc591da42dffb38c77398fc43309f0b9b894dcc5d6f40c4b26c379
sha256: f7a1fe3a634fe7734c8d3f2766ad746ae2a2884abe22e241a8b301bf5cac3279
url: "https://pub.dev"
source: hosted
version: "2.1.7"
version: "2.2.1"
path_provider_platform_interface:
dependency: transitive
description:
name: path_provider_platform_interface
sha256: f0abc8ebd7253741f05488b4813d936b4d07c6bae3e86148a09e342ee4b08e76
sha256: "94b1e0dd80970c1ce43d5d4e050a9918fce4f4a775e6142424c30a29a363265c"
url: "https://pub.dev"
source: hosted
version: "2.0.5"
version: "2.1.1"
path_provider_windows:
dependency: transitive
description:
name: path_provider_windows
sha256: d3f80b32e83ec208ac95253e0cd4d298e104fbc63cb29c5c69edaed43b0c69d6
sha256: "8bc9f22eee8690981c22aa7fc602f5c85b497a6fb2ceb35ee5a5e5ed85ad8170"
url: "https://pub.dev"
source: hosted
version: "2.1.6"
version: "2.2.1"
platform:
dependency: transitive
description:
Expand Down Expand Up @@ -449,7 +449,7 @@ packages:
path: "../../packages/talker_flutter"
relative: true
source: path
version: "3.4.0"
version: "3.5.1"
talker_logger:
dependency: transitive
description:
Expand Down Expand Up @@ -588,4 +588,4 @@ packages:
version: "0.2.0+3"
sdks:
dart: ">=3.1.0-185.0.dev <4.0.0"
flutter: ">=3.3.0"
flutter: ">=3.7.0"
5 changes: 5 additions & 0 deletions packages/talker/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 3.1.4
- Pad minutes and seconds for DateTime formatter

Thanks to [Reprevise](https://github.com/Reprevise)

# 3.1.3
- Fix analysis_options.yaml

Expand Down
5 changes: 4 additions & 1 deletion packages/talker/lib/src/utils/time_formatter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ class TalkerDateTimeFormatter {
/// Format ['HH:mm:s ms']
String get timeAndSeconds {
final d = date;
return '${d.hour}:${d.minute}:${d.second} ${d.millisecond}ms';
final minutesPadded = '${d.minute}'.padLeft(2, '0');
final secondsPadded = '${d.second}'.padLeft(2, '0');

return '${d.hour}:$minutesPadded:$secondsPadded ${d.millisecond}ms';
}
}
2 changes: 1 addition & 1 deletion packages/talker/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: talker
description: Advanced error handler and logger package for flutter and dart. App monitoring, logs history, report sharing, custom logs, and etc.
version: 3.1.3
version: 3.1.4
homepage: https://github.com/Frezyx/talker
repository: https://github.com/Frezyx/talker
issue_tracker: https://github.com/Frezyx/talker/issues
Expand Down
22 changes: 22 additions & 0 deletions packages/talker/test/time_formatter_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import 'package:talker/src/utils/time_formatter.dart';
import 'package:test/test.dart';

void main() {
group('TalkerDateTimeFormatter', () {
test('Pads small minutes and seconds', () {
final formatter = TalkerDateTimeFormatter(
DateTime(2023, 10, 17, 1, 1, 1),
);

expect(formatter.timeAndSeconds, equals('1:01:01 0ms'));
});

test("Large minutes and seconds aren't padded", () {
final formatter = TalkerDateTimeFormatter(
DateTime(2023, 10, 17, 1, 59, 35),
);

expect(formatter.timeAndSeconds, equals('1:59:35 0ms'));
});
});
}
3 changes: 3 additions & 0 deletions packages/talker_bloc_logger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.2.1
- Update **talker** version to 3.1.4

## 2.2.0
- Rename (fix typo) **recvie** -> **receive** in BlocEventLog
- Upgrade **talker** version to 3.1.0
Expand Down
2 changes: 1 addition & 1 deletion packages/talker_bloc_logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Follow these steps to use this package
### Add dependency
```yaml
dependencies:
talker_bloc_logger: ^2.2.0
talker_bloc_logger: ^2.2.1
```

### Usage
Expand Down
4 changes: 2 additions & 2 deletions packages/talker_bloc_logger/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: talker_bloc_logger
description: Lightweight and customizable BLoC state management library logger on talker base.
version: 2.2.0
version: 2.2.1
homepage: https://github.com/Frezyx/talker
repository: https://github.com/Frezyx/talker
issue_tracker: https://github.com/Frezyx/talker/issues
Expand All @@ -16,7 +16,7 @@ environment:
sdk: '>=2.15.0 <4.0.0'

dependencies:
talker: ^3.1.0
talker: ^3.1.4
bloc: ^8.1.1
meta: ^1.8.0

Expand Down
3 changes: 3 additions & 0 deletions packages/talker_dio_logger/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 2.3.1
- Update **talker** version to 3.1.4

## 2.3.0
- Update **talker** version to 3.1.0

Expand Down
2 changes: 1 addition & 1 deletion packages/talker_dio_logger/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Follow these steps to use this package
### Add dependency
```yaml
dependencies:
talker_dio_logger: ^2.3.0
talker_dio_logger: ^2.3.1
```

### Usage
Expand Down
12 changes: 6 additions & 6 deletions packages/talker_dio_logger/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -321,26 +321,26 @@ packages:
dependency: transitive
description:
name: talker
sha256: e0cb07e0bcab6045b86761593ff6f1878b335bfc1978ba48415d0968af68d81e
sha256: "9c587c0269e194ea5c161b01fa5c4e4120926f4b8fedcf9b3bd2466cb500b880"
url: "https://pub.dev"
source: hosted
version: "3.1.3"
version: "3.1.4"
talker_dio_logger:
dependency: "direct main"
description:
name: talker_dio_logger
sha256: b3bd0b009b8ba1f941de3b49c94a7e4d0b8bcfccbc0e261c19549a04a6ad9043
sha256: "5b8dd43e8d837b8e1d39d94157193ba691efe03ec009cd6f43c197bde6981ea5"
url: "https://pub.dev"
source: hosted
version: "2.3.0"
version: "2.3.1"
talker_flutter:
dependency: "direct main"
description:
name: talker_flutter
sha256: f627b29b96782e73a5eefdf906e716bfe3da7f8b21fd87955794884bf02d2d40
sha256: ade0ecf82a0e1adfdd001ec275fabc5097d647ea41032d3604894059877c4264
url: "https://pub.dev"
source: hosted
version: "3.4.0"
version: "3.5.2"
talker_logger:
dependency: transitive
description:
Expand Down
4 changes: 2 additions & 2 deletions packages/talker_dio_logger/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ dependencies:
flutter:
sdk: flutter
dio: ^5.0.0
talker_dio_logger: ^2.3.0
talker_flutter: ^3.5.1
talker_dio_logger: ^2.3.1
talker_flutter: ^3.5.2

dev_dependencies:
flutter_test:
Expand Down
4 changes: 2 additions & 2 deletions packages/talker_dio_logger/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: talker_dio_logger
description: Lightweight and customizable dio http client logger on talker base
version: 2.3.0
version: 2.3.1

homepage: https://github.com/Frezyx/talker
repository: https://github.com/Frezyx/talker
Expand All @@ -18,7 +18,7 @@ environment:

dependencies:
dio: ^5.2.0
talker: ^3.1.0
talker: ^3.1.4

dev_dependencies:
lints: ^2.0.0
Expand Down
4 changes: 4 additions & 0 deletions packages/talker_flutter/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.5.2
- Bump talker version to 3.1.4
- Pad minutes and seconds for DateTime formatter

# 3.5.1
- Add TalkerRouteObsever documentatuion
- Fix share_plus version 7.1.0
Expand Down
4 changes: 2 additions & 2 deletions packages/talker_flutter/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: talker_flutter
description: Advanced error handler and logger package for flutter and dart. App monitoring, logs history, report sharing, custom logs, and etc.
version: 3.5.1
version: 3.5.2
homepage: https://github.com/Frezyx/talker
repository: https://github.com/Frezyx/talker
issue_tracker: https://github.com/Frezyx/talker/issues
Expand All @@ -20,7 +20,7 @@ dependencies:
flutter:
sdk: flutter

talker: ^3.1.3
talker: ^3.1.4
group_button: ^5.3.3
path_provider: ^2.1.1
share_plus: ^7.1.0
Expand Down