Skip to content

Commit

Permalink
fix incorrect release
Browse files Browse the repository at this point in the history
  • Loading branch information
simc committed Jan 20, 2025
1 parent 0b959ca commit 009e25e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 0.4.0
# 0.4.0+1

- Bump dependencies, to support latest analyzer
- Fixed support for freezed classes and from factories
Expand Down
4 changes: 1 addition & 3 deletions lib/src/generator/class_decode.dart
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,7 @@ String _read(DartType type, bool nullable) {
return 'readNum$orNull()';
} else if (type.isDartCoreString) {
return 'readString$orNull()';
} else if (type.isDartCoreBool) {
return 'read() == true';
} else if (type is DynamicType) {
} else if (type is DynamicType || type.isDartCoreBool) {
return 'read()';
} else if (type.element?.name == 'DateTime') {
return '$skipNull DateTime.parse(readString())';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: crimson
description: Fast, efficient and easy-to-use JSON parser and serializer for Dart.
repository: https://github.com/simc/crimson
version: 0.4.0
version: 0.4.0+1

environment:
sdk: ">=3.0.0 <4.0.0"
Expand Down

0 comments on commit 009e25e

Please sign in to comment.