firebase_rules 0.1.0
firebase_rules: ^0.1.0 copied to clipboard
A type-safe Firebase rules generator for Firestore, Storage, and Realtime Database
0.1.0 #
- Renames
FirestorePathtoFirestoreRootandStoragePathtoStorageRoot RuleDataSnapshot.val()is nowRuleDataSnapshot.val<T>()to allow for type-safety- Adds a
customClaim<T>()method toRulesTokento allow access to custom claims - Functions are now declared on
Matchstatements instead of the annotation firestore.get<T>()andfirestore.getAfter<T>()now properly return aFirestoreResource<T>- The conversion to rules types is now
.rules()instead of.rulesto allow for casting iterables and maps - Enum conversion maps can now be passed into the
FirebaseRulesannotation - Paths are now just a string parameter on a match. Wildcards are all strings anyways, and this is more flexible.
- Adds a globally accessible
requestobject if type-safe access to the resource is not required rules.raw()is nowrules.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