From 251ccd2e2b7bf20251a2e4a7be83f2a2a47d8500 Mon Sep 17 00:00:00 2001 From: Phill Date: Thu, 7 Mar 2019 08:01:33 +0000 Subject: [PATCH] Hotfix for full bool null error --- CHANGELOG.md | 3 +++ README.md | 2 +- lib/src/base/parse_constants.dart | 2 +- lib/src/utils/parse_encoder.dart | 4 +++- pubspec.yaml | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ce20bba1..c333a7593 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.0.15 +Fixed 'full' bool issue + ## 1.0.14 Corrected delete & path issue Added Geo queries diff --git a/README.md b/README.md index 563d31260..411fdd69b 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Want to get involved? Join our Slack channel and help out! (http://flutter-parse To install, either add to your pubspec.yaml ``` dependencies: - parse_server_sdk: ^1.0.14 + parse_server_sdk: ^1.0.15 ``` or clone this repository and add to your project. As this is an early development with multiple contributors, it is probably best to download/clone and keep updating as an when a new feature is added. diff --git a/lib/src/base/parse_constants.dart b/lib/src/base/parse_constants.dart index dbdf3bb3f..b900b15a4 100644 --- a/lib/src/base/parse_constants.dart +++ b/lib/src/base/parse_constants.dart @@ -1,7 +1,7 @@ part of flutter_parse_sdk; // Library -const String keySdkVersion = '1.0.14'; +const String keySdkVersion = '1.0.15'; const String keyLibraryName = 'Flutter Parse SDK'; // End Points diff --git a/lib/src/utils/parse_encoder.dart b/lib/src/utils/parse_encoder.dart index e2d14bc72..ef0e564a9 100644 --- a/lib/src/utils/parse_encoder.dart +++ b/lib/src/utils/parse_encoder.dart @@ -9,7 +9,9 @@ dynamic dateTimeEncoder(dynamic item) { } /// Custom json encoder for types related to parse -dynamic parseEncode(dynamic value, {bool full = false}) { +dynamic parseEncode(dynamic value, {bool full}) { + full ??= false; + if (value is DateTime) return _encodeDate(value); if (value is List) { diff --git a/pubspec.yaml b/pubspec.yaml index f28937a4d..53fbb7f49 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: parse_server_sdk description: Flutter plugin for Parse Server, (https://parseplatform.org), (https://back4app.com) -version: 1.0.14 +version: 1.0.15 homepage: https://github.com/phillwiggins/flutter_parse_sdk author: PhillWiggins