firestore_api_parser 2.0.0 firestore_api_parser: ^2.0.0 copied to clipboard
A Flutter and Dart plugin allowing you to convert the JSON format used by firestore REST API to represent its documents or collections to the conventional and usable JSON format
1.0.0 #
Initial version. A simple parser allowing you to convert a json that is in firebase cloud firestore format to the conventional json format. For the moment the API only allows to convert cloud firestore documents. An update to support the conversion of cloud firestore collection is planned for the next updates of the package
1.0.1 #
Adding support for meta^1.3.0
1.0.2 #
Adding support these package :
- json_serializable: ^4.1.4
- json_annotation: ^4.0.1
1.0.3 #
In this update, we
- Support for parsing and converting cloud firestore collection to standard json format, by using parseCollection method
- have fixed some minor bugs
- Added support for parsing doubleValue. Sorry to have forgotten, we are sorry for the inconvenience caused
1.0.4 #
- Fix minor bugs about parsing of a cloud firestore arrayValue
- Deprecating toJson and toFirestoreJson methods
1.0.5 #
- Fixed the bug that unintentionally converted a string into a timestamp. Now, for a string to be recognized in timestamp format in Firestore, it must be in Iso8601 utc format (so it must end with Z) otherwise it will be stored in Firestore as stringValue if the conversion fails.
- Updated plugin example use
- Updated plugin description
1.0.6 #
- Updated README.md file
1.1.0 #
BREAKING CHANGES!
-
Improvement of the method
parseCollection()
. in order to meet the need to convert the documents returned by cloud firestore following a structuredQuery, we have made some modifications to theparseCollection()
method so that it is able to convert the data from a structured query to standard json format. So we introduced the optional parameterisStructuredQuery
which by default isfalse
. When you perform structuredQuery with the cloud firestore REST API, you will only have to set theisStructuredQuery
parameter totrue
so that it can parse and convert the data from the collection you provide. -
Fixed the bug that prevented the conversion/parsing of documents from a Firestore collection obtained from the result of a structuredQuery
-
Suppression of depreciated methods
toFirestoreJson()
,toJson()
-
Updated README.md file
1.1.1 #
- intl package upgraded to ^0.18.0
- environnement constraint upgraded to '>=2.12.0 <4.0.0'
2.0.0 #
BREAKING CHANGES!
- Parsing a structured query collection support was removed until we can implement a solid, viable solution... Coming soon :).
- Adding extension methods
toFirestoreJson
andtoStandardJson
to encode and decode documents. Also addedparseCollection
extension method to decode a firestore collection. - Improved code structure to enhance maintainability.
- Map and Array firestore now return empty values instead of throwing an exception when "fields" or "values" are not supplied.
- Updated project dependencies.
- Improved package tests.
- Updated example and README file.