functions_framework 0.4.3+1
functions_framework: ^0.4.3+1 copied to clipboard
FaaS (Function as a service) framework for writing portable Dart functions
0.4.3+1 #
- Migrate from
package:gcptopackage:google_cloud.
0.4.3 #
- Support
application/protobufevent encoding.
0.4.2 #
- Requires Dart
3.0.0. - Support
package:httpv1
0.4.1 #
- Improve package documentation.
0.4.0 #
-
Now null-safe.
-
Requires Dart
2.12.0. -
BREAKING
RequestContext: removed deprecatedheadersandheadersAllproperties. -
BREAKING
serve.dart:- Changed the signature for
servefunction acceptFunctionTarget Function(String) nameToFunctionTargetinstead ofSet<FunctionTarget> targets. This will allow more flexibility in futureFunctionTargetimplementations. FunctionTargetno longer has aconstconstructor. Thenameparameter has also been removed.
- Changed the signature for
-
Allow the latest versions of
args,http,http_parser, andshelfpackages.
0.3.1 #
-
functions_framework.dartRequestContext- Added
requestproperty to access original request. - Deprecated
headersandheadersAll- userequestinstead.
- Added
- Fix exception on Windows due to SIGTERM handler (PR #153).
0.3.0 #
-
Added support for functions that handle and return JSON data.
-
Added support for defining and hosting Cloud Events.
-
functions_framework.dart- Added
CloudEventHandler,CloudEventWithContextHandler, andCloudEventclass to support Cloud Events. - Added
JsonHandlerandJsonWithContextHandlerto support functions that handle and return JSON data. - Added
RequestLogger,LogSeverity, andHandlerWithLoggerto support logging from handlers. RequestContextto get access to request headers, logging, and ability to set response headers forCloudEventand custom handlers.- Added
BadRequestExceptionclass. Functions can throw this exception to cause a4xxstatus code to be returned to a request source.
- Added
-
serve.dart- Added
JsonFunctionTarget,JsonWithContextFunctionTarget, andBadRequestExceptionclasses to support generated code for functions that handle and return JSON data. - Added
FunctionTargetclass. This is the abstract base class that wraps user written functions and links them to a name. - BREAKING The signature for
serve is now:
Future<void> serve(List<String> args, Set<FunctionTarget> targets)
- Added
0.2.0 #
- BREAKING
CloudFunctionconstructor parameterstargetis now named and optional. If not specified, it defaults to the name of the annotated function. (Previously, it defaulted to the string'function'.) - Detect if running on Google Cloud and generate logs appropriately.
- Improved the error messages and exit codes for failures.
- Correctly respond with
404with requests forrobots.txtandfavicon.ico.
0.1.0 #
This is a preview release of the Functions Framework for Dart to demonstrate http functions support only (cloudevent support is not yet implemented). This is a work in progress and currently does not pass conformance testing.