Firebase SDK for Cloud Functions Migration
In addition to the provided guide by Google.
Here is the changes I had to make in my code for futur reference:
| OLD <1.0 | NEW< >=1.0 |
| event.params.uid | context.params.uid |
| event.data.val() | change.after.val() |
| event.auth.variable.name | context.auth.token.name |
| event.data.ref.remove() | change.ref.remove() |
| .onWrite(event => { | .onWrite((change, context) => { |
| .onDelete((event) => { | .onDelete((snap, context) => { |
| event.auth.variable.email | context.auth.token.email |
| const object = event.data; | object |
| storage.object().onChange(event => { | storage.object().onFinalize((object, context) => { |
Firebase SDK for Cloud Functions Migration Read More ยป