firebase_functions 0.7.0
firebase_functions: ^0.7.0 copied to clipboard
Cloud Functions for Dart with support for the Firebase Admin SDK, Cloud Storage and Firestore
0.7.0 #
-
BREAKING: Replace custom
HttpsErrorimplementation withHttpResponseExceptionfrompackage:google_cloud_shelf. Surfacing errors in HTTP and callable handlers now uses standardHttpResponseExceptionconstructors (e.g.,HttpResponseException.badRequest(...),HttpResponseException.unauthorized(...)). -
Re-export
HttpResponseExceptiondirectly frompackage:firebase_functions/firebase_functions.dart. -
BREAKING: Remove the
loggerfield fromlogger.dartand made its method functions.You can fix this with:
- import '../logger/logger.dart'; + import '../../logger.dart' as logger; -
BREAKING: Remove the
loggerexports frompackage:firebase_functions/firebase_functions.dart.You can fix this by explicitly importanting the logging library:
import '../../logger.dart' as logger; -
Fix secret name resolution in
defineSecret: the secret name is now taken from the argument passed todefineSecretrather than the Dart variable name. -
Added
RunFunctionsOptionswithpoweredByHeaderto override the shelf's default. -
Fix manifest generation for function options declared with named factories, including
Memory.fromIntinCallableOptions. -
Fix manifest discovery for functions registered with cascade syntax (e.g.
firebase.https..onCall(...)..onCall(...)), which were previously omitted fromfunctions.yaml. -
Emit a build warning when no functions are discovered instead of silently writing an endpoint-less
functions.yaml. -
Fix normalize function names by lowercasing only, not camelCase-to-kebab
-
Document and test
ServiceAccount('service-account@')project-relative shorthand parity with the Node.js SDK.
0.6.0 #
- Add
runFunctionsas the primary API. - Deprecate
fireUpin favor ofrunFunctions. - Split
README.mdinto multiple pages:docs/config.mddocs/triggers.mdtest/README.md
0.5.2 #
- Add a comment to the generated manifest (
functions.yaml) to indicate that it is managed by this package. - Add "Learn more" and "Usage" sections to README.md.
0.5.1 #
- Update constraint:
meta: ^1.17.0 - Remove the use of footnotes in README.md, since they are not supported by
package:markdown. - Add a landing page for the package examples.
0.5.0 #
- Initial release.