- Add cloud functions v2 support
- Update to use firebase_admin_interop
2.0.0
- Added
functions.pubsub.schedule()
. Note that this requires officialfirebase-functions
NPM package version2.3.0
or later.
- Updated dependency on
node_io
to1.0.1
andnode_http
to1.0.0
.
- Readme fixes.
This is the first stable release. It includes some breaking changes described below and in UPGRADING.md.
Breaking change: all static fields on FirebaseFunctions
class were converted to regular
instance fields. This change was required to introduce new region
and runWith
methods on
FirebaseFunctions
.
To migrate your existing code simply replace FirebaseFunctions
with functions
. E.g.
void main() {
// Before
functions['myfunc'] = FirebaseFunctions.https.onRequest(myHandler);
// After
functions['myfunc'] = functions.https.onRequest(myHandler);
}
- Added:
FirebaseFunctions.region
andFirebaseFunctions.runWith
methods. - Removed: Deprecated
firebaseFunctions
library field, usefunctions
instead.
- Log console error when callable response cannot be
jsify
-ed, with details about the data (simplifies debugging).
- Breaking change: upgraded to JS module firebase-functions
v2.0.5
which introduced breaking changes inDocumentSnapshot.createTime
,DocumentSnapshot.updateTime
- Upgraded to
firebase_admin_interop
v1.0.0-dev.20.0 which also introduced breaking changes around Timestamps. See changelog and readme infirebase_admin_interop
for more details.
- Fixed: EventContext.resource type changed from String to object.
- Misc: removed strong-mode analyzer option from test functions.
- Fixed analysis warnings and declared support for Dart 2 stable.
- Internal: upgraded example functions to use latest build_runner.
- Internal: strong mode fix for tests setup script.
- Fixed: strong mode issue in Firestore
EventContext
after deploying tests with--preview-dart-2
instead of--checked
. - Fixed: strong mode issue in Database event handlers instantiating
DataSnapshot
with proper generic type argument.
- Added:
FirebaseFunctions.https.onCall
as well asHttpsError
andCallableContext
.
- Breaking: Upgraded to Functions SDK 1.0.1 and Admin SDK 5.12.0
Official migration guide is located here: https://firebase.google.com/docs/functions/beta-v1-diff
Changes in this library are identical and slightly adapted to Dart
semantics:
admin.config().firebase
field has been removed- Background functions (that is everything except HTTPS) now
expect two arguments
data
andcontext
instead of singleevent
argument. - See
UPGRADING.md
for more details and instructions. Also check updated examples inexample/
folder.
- Added: Pubsub (#10), Storage (#12) and Auth (#17) triggers support.
- Fixed: expose Firestore functions namespace in
FirebaseFunctions.firestore
(#8). - Other: update readme and development docs (#8).
- Depends on Dart SDK >= 2.0.0-dev.19.0.
- Depends on firebase_admin_interop >= 1.0.0-dev.1.0 (as well as node_* packages).
- Breaking: Removed built_value support.
- Added Firestore triggers support.
- Deprecated
firebaseFunctions
, to be replaced with shorterfunctions
. - Breaking: firebaseFunctions.https is now
static const
. UseFirebaseFunctions.https
. - Breaking: firebaseFunctions.database is now
static const
. UseFirebaseFunctions.database
.
- Fixed dependency constraints
- Fixed: RefBuilder onCreate, onUpdate and onDelete were subscribing to JS onWrite (see #5)
This version marks first attempt to stabilize API layer provided by this library, which (ironically) means there are some breaking changes.
- Updated for
node_interop: 0.1.0-beta
. - Updated for
firebase_admin_interop: 0.1.0-beta
. - Removed
stringify
from bindings, usejsonStringify
from node_interop instead (available since0.1.0-beta.6
). - Reorganized bindings in single file.
- Finalized bindings for HTTPS and Realtime Database functions.
- Added support for
built_value
serializers in Realtime Database functions - HTTPS functions
onRequest
method now accepts handler function with single parameter of typeHttpRequest
(fromnode_interop/http
). This request is fully compatible with "dart:io" and acts mostly as a proxy to JS native request and response objects. This should also make it easier to build integrations with Dart server-side web frameworks. - Gitter: https://gitter.im/pulyaevskiy/firebase-functions-interop
- Added
<0.1.0
constraint onnode_interop
dependency.
- Added
toJson
toDeltaSnapshot
. - Added top-level
firebaseFunctions
getter. - Deprecated
FirebaseFunctions
constructor. UsefirebaseFunctions
instead. - Implemented
firebaseFunctions.config()
. - Added
DEVELOPMENT.md
docs.
- Added generics to Event class (#3)
- Added basic integration testing infrastructure
- Minor dartdoc updates
- Initial version