firebase_rules 0.1.0+1 copy "firebase_rules: ^0.1.0+1" to clipboard
firebase_rules: ^0.1.0+1 copied to clipboard

A type-safe Firebase rules generator for Firestore, Storage, and Realtime Database

0.1.0+1 #

  • Documentation updates

0.1.0 #

  • Renames FirestorePath to FirestoreRoot and StoragePath to StorageRoot
  • RuleDataSnapshot.val() is now RuleDataSnapshot.val<T>() to allow for type-safety
  • Adds a customClaim<T>() method to RulesToken to allow access to custom claims
  • Functions are now declared on Match statements instead of the annotation
  • firestore.get<T>() and firestore.getAfter<T>() now properly return a FirestoreResource<T>
  • The conversion to rules types is now .rules() instead of .rules to allow for casting iterables and maps
  • Enum conversion maps can now be passed into the FirebaseRules annotation
  • Paths are now just a string parameter on a match. Wildcards are all strings anyways, and this is more flexible.
  • Adds a globally accessible request object if type-safe access to the resource is not required
  • rules.raw() is now rules.raw<T>() to allow for returning any type

0.0.1+2 #

  • Readme fixes

0.0.1+1 #

  • Readme fixes

0.0.1 #

  • Initial release

0.0.0 #

  • Early bird special
14
likes
0
pub points
60%
popularity

Publisher

verified publisheriodesignteam.com

A type-safe Firebase rules generator for Firestore, Storage, and Realtime Database

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

meta

More

Packages that depend on firebase_rules