firebase_rules 0.1.0+1 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
toFirestoreRoot
andStoragePath
toStorageRoot
RuleDataSnapshot.val()
is nowRuleDataSnapshot.val<T>()
to allow for type-safety- Adds a
customClaim<T>()
method toRulesToken
to allow access to custom claims - Functions are now declared on
Match
statements 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.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 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