diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 2fdf907..0000000 Binary files a/.DS_Store and /dev/null differ diff --git a/.pubignore b/.pubignore new file mode 100644 index 0000000..34bee9c --- /dev/null +++ b/.pubignore @@ -0,0 +1,6 @@ +# Exclude from published package (see https://dart.dev/go/pubignore). +.DS_Store +test/.DS_Store +test/mock/.DS_Store +coverage/ +coverage_badge.svg diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b68236..e978e5f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,12 +4,18 @@ #### Documentation +## 2.0.1 + - Add deprecation notice and migration guidance to the Content Delivery API. See [DEPRECATION.md](DEPRECATION.md). -## v1.1.1 +## 2.0.0 +- Dart 3 compatible (SDK `>=2.12.0 <4.0.0`) +- Improved error messages and publish workflow +- Test fixes and mock data for supercharged/GQL tests - Improved error messages -___________________ + +--- ## v1.1.0 @@ -18,14 +24,16 @@ Implemented SRTE functions: :tada: - Utils.jsonToHtml() - GQL.jsonToHtml() -___________________ +--- ## v1.0.0 :tada: Initial release :tada: -___________________ + +--- ## v0.1.0 :construction: contentstack-utils beta :construction: -___________________ + +--- diff --git a/lib/src/helper/Automate.dart b/lib/src/helper/Automate.dart index 09e4a42..52d4378 100644 --- a/lib/src/helper/Automate.dart +++ b/lib/src/helper/Automate.dart @@ -63,9 +63,7 @@ class Automate { if (availableKeys.length == 1) { var varContent = entry[key]; if (varContent is String || varContent is List || varContent is Map) { - if (callback != null) { - entry[key] = callback(varContent); - } + entry[key] = callback(varContent); } } else { availableKeys.remove(key); diff --git a/pubspec.yaml b/pubspec.yaml index cca5f5f..6639a8b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: contentstack_utils description: Utils package for Contentstack-dart -version: 1.1.1 +version: 2.0.1 homepage: https://www.contentstack.com environment: @@ -17,4 +17,3 @@ dev_dependencies: lints: ^2.0.0 test: ^1.24.0 # test_coverage: ^0.4.1 - \ No newline at end of file diff --git a/test/.DS_Store b/test/.DS_Store deleted file mode 100644 index 910c33b..0000000 Binary files a/test/.DS_Store and /dev/null differ diff --git a/test/mock/.DS_Store b/test/mock/.DS_Store deleted file mode 100644 index c8beb82..0000000 Binary files a/test/mock/.DS_Store and /dev/null differ