From 664689c44217e351040b17555dde4f918d53f6df Mon Sep 17 00:00:00 2001 From: Mohammad Bagher Fakouri Date: Wed, 1 Feb 2023 21:16:51 +0330 Subject: [PATCH] fix: `ParseObject.fromJson` does not send proper payload to server (#818) --- packages/dart/CHANGELOG.md | 6 ++++++ packages/dart/lib/src/base/parse_constants.dart | 2 +- packages/dart/lib/src/objects/parse_base.dart | 1 + packages/dart/pubspec.yaml | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packages/dart/CHANGELOG.md b/packages/dart/CHANGELOG.md index 7b3ef574b..5a552369a 100644 --- a/packages/dart/CHANGELOG.md +++ b/packages/dart/CHANGELOG.md @@ -1,3 +1,9 @@ +## [3.1.12](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-3.1.11...dart-3.1.12) (2023-02-01) + +### Bug Fixes + +* `ParseObject.fromJson` does not send proper payload to server ([#688](https://github.com/parse-community/Parse-SDK-Flutter/issues/688)) + ## [3.1.11](https://github.com/parse-community/Parse-SDK-Flutter/compare/dart-3.1.10...dart-3.1.11) (2023-01-21) ### Features diff --git a/packages/dart/lib/src/base/parse_constants.dart b/packages/dart/lib/src/base/parse_constants.dart index 85aa470dc..4526a8c6d 100644 --- a/packages/dart/lib/src/base/parse_constants.dart +++ b/packages/dart/lib/src/base/parse_constants.dart @@ -1,7 +1,7 @@ part of flutter_parse_sdk; // Library -const String keySdkVersion = '3.1.11'; +const String keySdkVersion = '3.1.12'; const String keyLibraryName = 'Flutter Parse SDK'; // End Points diff --git a/packages/dart/lib/src/objects/parse_base.dart b/packages/dart/lib/src/objects/parse_base.dart index ee01e8fc4..2769c3ee2 100644 --- a/packages/dart/lib/src/objects/parse_base.dart +++ b/packages/dart/lib/src/objects/parse_base.dart @@ -139,6 +139,7 @@ abstract class ParseBase { _getObjectData()[keyVarAcl] = ParseACL().fromJson(value); } else { _getObjectData()[key] = parseDecode(value); + _unsavedChanges[key] = _getObjectData()[key]; } }); diff --git a/packages/dart/pubspec.yaml b/packages/dart/pubspec.yaml index 817ab0e17..113d0f485 100644 --- a/packages/dart/pubspec.yaml +++ b/packages/dart/pubspec.yaml @@ -1,6 +1,6 @@ name: parse_server_sdk description: Dart plugin for Parse Server, (https://parseplatform.org), (https://back4app.com) -version: 3.1.11 +version: 3.1.12 homepage: https://github.com/parse-community/Parse-SDK-Flutter environment: