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:gcp
topackage:google_cloud
.
0.4.3 #
- Support
application/protobuf
event encoding.
0.4.2 #
- Requires Dart
3.0.0
. - Support
package:http
v1
0.4.1 #
- Improve package documentation.
0.4.0 #
-
Now null-safe.
-
Requires Dart
2.12.0
. -
BREAKING
RequestContext
: removed deprecatedheaders
andheadersAll
properties. -
BREAKING
serve.dart
:- Changed the signature for
serve
function acceptFunctionTarget Function(String) nameToFunctionTarget
instead ofSet<FunctionTarget> targets
. This will allow more flexibility in futureFunctionTarget
implementations. FunctionTarget
no longer has aconst
constructor. Thename
parameter has also been removed.
- Changed the signature for
-
Allow the latest versions of
args
,http
,http_parser
, andshelf
packages.
0.3.1 #
-
functions_framework.dart
RequestContext
- Added
request
property to access original request. - Deprecated
headers
andheadersAll
- userequest
instead.
- 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
, andCloudEvent
class to support Cloud Events. - Added
JsonHandler
andJsonWithContextHandler
to support functions that handle and return JSON data. - Added
RequestLogger
,LogSeverity
, andHandlerWithLogger
to support logging from handlers. RequestContext
to get access to request headers, logging, and ability to set response headers forCloudEvent
and custom handlers.- Added
BadRequestException
class. Functions can throw this exception to cause a4xx
status code to be returned to a request source.
- Added
-
serve.dart
- Added
JsonFunctionTarget
,JsonWithContextFunctionTarget
, andBadRequestException
classes to support generated code for functions that handle and return JSON data. - Added
FunctionTarget
class. 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
CloudFunction
constructor parameterstarget
is 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
404
with requests forrobots.txt
andfavicon.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.