pocketbase_utils 0.1.6
pocketbase_utils: ^0.1.6 copied to clipboard
pocketbase_utils is a dart library that generates Dart models code from a PocketBase collections scheme json file.
Changelog #
0.1.6 #
- Bump min dart sdk version to 3.8.0
- Upgrade packages
- Option to run the generator without adding to dependencies by using the
dart pub global activate
0.1.5 #
- Add
JsonKey.nullForUndefinedEnumValueofunknownEnumValuefor nullable select fields
0.1.4 #
- Apply 120 line length
- Add
very_good_analysispackage - Run
dart fix
0.1.3 #
- Remove "username" field from the "system" fields of the Auth collection.
- Making "email" Auth collection system field required only when the collection has both "emailVisibility" and "email" fields set to "required".
- Make boolean fields to be nullable only when "hidden" instead of "required".
- Loosen the "analyzer" dependency
0.1.2 #
- Add support for
geoPointfield type.
0.1.1 #
- Add support for collection fields that are not in camel case by default
- Improve enums to support the non camel case values
0.1.0 #
- Migrate the codebase to support only collection schema file from PocketBase version > 0.23.0
- Upgrade dependencies
0.0.7 #
- Added custom json convertion methods for the
datetype of field which allows to handle a case when the pocketbase backend returns an empty string when theDateTimevalue is empty. - Upgrade dependencies
0.0.6 #
- Determine if a field has an
intordoubletype - min/max values are added to the class definition as
staticconstvalues.
0.0.5 #
copyWithmethod is added to the gererated Records- Take the values from
toJSONwhen runningtakeDifforforCreateRequestof a Record
0.0.4 #
- Fix select field enums when an option isn't complient to variable name
0.0.3 #
AuthRecordextends fromBaseRecord- The
BaseRecordextendsEquatable - Added
_takeDiffmethod to the generated record class to get a Map of differences - Added
_forCreateRequestMethodmethod to the generated record class to get a Map of values for the "Create" request - Added
EmptyDateTimeto be able to diff it with null in_takeDiff - Generate options of the
selecttype of the field
0.0.2 #
- Add
fromRecordModelfactory to the generated class - Read
collectionIdandcollectionNamefrom the RecordModel - Set to read
jsonfield type asdynamic
0.0.1 #
- Create typesafe models from
pb_schema.json