pocketbase_helpers 0.3.0 copy "pocketbase_helpers: ^0.3.0" to clipboard
pocketbase_helpers: ^0.3.0 copied to clipboard

Utilities for using typed data together with pocketbase.

0.3.0 #

  • Changed implementation of helper.getMultiple call to use only one api call instead of a seperate call for each id.
  • Reworked the baseHelper.update method to take id and map instead of an object that implements the PocketbaseRecord interface, this was done to improve consistency between the methods and allow the basehelper to be more flexible. The collectionHelper.update method stays the same.

0.2.0 #

  • added getMultiple method on helpers.
  • removed file related methods from BaseHelper and CollectionHelper and moved them to FileHelper.
  • FileHelper is now available on BaseHelper and CollectionHelper through the fileField method
  • change fileUrl method be named buildFileUrl

0.1.0 #

  • made getSingleOrNull method take an expression and parameters instead of a single id.

0.0.11 #

  • added count method to the CollectionHelper and BaseHelper
  • add getNameFromFileUrl to HelperUtils
  • changed the search method to take a list of keywords instead of a string where the words are seperated by commas. This gives more flexibility

0.0.10 #

  • made clean map work recursively on maps inside other maps

0.0.9 #

  • fixed breaking bug in getFileUrl method of collection helper

0.0.8 #

  • fixed mistake in readme
  • added body field to the delete methods

0.0.7 #

  • Renamed getSingle to getOne and getMaybeSingle to getOneOrNull, this should be more in line with general naming conventions

0.0.6 #

  • Renamed baseExpansions to just expansions on the CollectionHelper class
  • Added a getter for the raw RecordService object to CollectionHelper
  • added a new getMaybeSingle() method to CollectionHelper and BaseHelper
  • renamed otherFilters to additionalExpressions on search methods,
  • renamed otherParams to additionalParams on search methods
  • removed SearchParams class and put its fields directly into the search method. This was done to make the method more intuitive to use
  • added fields parameter to all methods, takes a list of fields to be included in the returning record if not given all fields are returned
  • Fixed an issue where expansions would not propegate in addFiles and removeFiles methods
  • added queryParameters optionalfields to the getFileUrl method
  • renamed creationHook and updateHook to preCreationHook and preUpdateHook
  • updated readme and inline docs

0.0.5 #

  • Fixed breaking bug with filtering in fullList fetch

0.0.4 #

  • Fixed breaking bugs related to expansions when creating or updating a record

0.0.3 #

  • added expansion merge utilities
  • changed fileUrls to fileNames in the removeFiles methods
  • changed filePaths to files in the addFiles methods, the expected input is now a map with filenames as keys and filedata as values. This change was done to add support for web.
  • added buildExpansionString, mergeExpansions and getNamesFromUrls utilityMethods.
  • added io_only method support, and added io only method: pathsToFiles

0.0.2 #

  • Updated Readme

0.0.1 #

  • Initial version.
2
likes
160
points
248
downloads

Publisher

verified publisherdart.share-a-bite.nl

Weekly Downloads

Utilities for using typed data together with pocketbase.

Repository (GitHub)
View/report issues

Topics

#pocketbase #models

Documentation

API reference

License

MIT (license)

Dependencies

http, pocketbase

More

Packages that depend on pocketbase_helpers