firebase_functions 0.8.0
firebase_functions: ^0.8.0 copied to clipboard
Cloud Functions for Dart with support for the Firebase Admin SDK, Cloud Storage and Firestore
0.8.0 #
- Fix
extractAuthTokendropping custom claims fromAuthData.tokenfor verified (non-emulator) ID tokens; custom claims set viaauth.setCustomUserClaims()are now included alongside the standard claims. - Fix CORS to match the Node.js SDK: preflights echo
Access-Control-Request-Headersinstead of sending*, which the Fetch spec excludesAuthorizationfrom, breaking authenticated callables in the browser; error responses keep their CORS headers. - BREAKING:
Corsis nowOption<List<Object>>, accepting exact origins orCorsPatternregexes, withcorsAllowAnyOrigin,corsAnyOriginWildcardandcorsDisabledfor thecors: true/'*'/falseequivalents. - Support dependencies with native build hooks (e.g.
sqlite3): projects declaring an SDK constraint of^3.13.0or later now generate a manifestcommandpointing atdart build cli's bundle, and require firebase-tools 15.28.1 or later to deploy. Projects below that constraint keep building withdart compile exeas before. - Require
firebase_admin_sdk: ^0.5.4andgoogle_cloud_firestore: ^0.5.3.
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.