Releases: GoogleCloudPlatform/functions-framework-java
Functions Framework 1.0.0
-
Adds a function type for functions that receive CloudEvents.
-
Adds logic to translate incoming GCF legacy events to the new CloudEvents handlers.
-
Fixes a problem with the
deploy.envvarsfile
property of the deploy plugin. (Contribution from @felixgborrego. Thanks!)
Functions Framework API 1.0.2
-
Expanded and improved javadoc.
-
Added an experimental API for CloudEvents functions.
Functions Framework 1.0.0-beta2
- Removed code for old-style function signatures.
The old style was package.name.ClassName.methodName, which was the only form
recognized by the obsolete GCF java8 runtime. The new style is just
package.name.ClassName, which we retain. This change makes for a less confusing
error message when you try to deploy or invoke a function using a class name
that doesn't exist.
- Fixed a bug in the plugin concerning dependencies.
We were using compile
dependencies only when doing mvn function:run
,
where we should have been using runtime
dependencies. Thanks to
@graemerocher for the fix.
Functions Framework 1.0.0-beta1
This is identical to 1.0.0-alpha-2-rc5 but with a new name reflecting the imminent Beta release.
Functions Framework 1.0.0-alpha-2-rc5
-
Set context class loader to the loader of the user's function while that function is running.
-
When running on GCF, install a log handler that produces better results with StackDriver logging by emitting lines that use the
LogEntry
JSON format. Whether on GCF or not, don't use a specialSimpleFormatter.format
; that meant we didn't get exception traces in log messages. -
Fixed a bug which prevented Multipart content from being handled correctly in HTTP functions.
-
Include original
ClassNotFoundException
when function is not found. -
Include extra attributes when being invoked for a CloudEvents source.
-
IntegrationTest
could sometimes fail because we didn't wait for the subprocess in one test method to complete before starting the next one.
Functions Framework API 1.0.1
-
The
accept
method in theBackgroundFunction
andRawBackgroundFunction
interfaces now declaresthrows Exception
. This means that implementations don't have to catch checked exceptions and rethrow them as unchecked. -
The
Context
interface gains anattributes()
method which is useful in particular when the incoming event follows the CloudEvents specification.
Functions Framework 1.0.0-alpha-2-rc4
-
Removed URL-rewriting logic from the Functions Framework.
-
Intercept requests for
/favicon.ico
and/robots.txt
and return a 404. -
After calling the user function, flush either the OutputStream or the Writer as appropriate. Calling
getWriter().flush()
will fail ifgetOutputStream()
has previously been called. -
Add a mvn function:deploy goal to deploy a Java function.
v1.0.0-alpha-1
First version of Functions Framework API published to Maven Central.