Skip to content

Commit

Permalink
Merge branch 'main' into renovate/all-minor-patch
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewrobertson authored Dec 12, 2024
2 parents 2c0d68f + 90a8d80 commit 7721e8b
Show file tree
Hide file tree
Showing 28 changed files with 3,036 additions and 5,880 deletions.
10 changes: 10 additions & 0 deletions .github/blunderbuss.yml
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
assign_prs:
- HKwinterhalter
- jihuin
- chujchen
- liuyunnnn

assign_issues:
- HKwinterhalter
- jihuin
- chujchen
- liuyunnnn
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@

[1]: https://www.npmjs.com/package/@google-cloud/functions-framework?activeTab=versions

## [3.4.3](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/compare/v3.4.2...v3.4.3) (2024-12-12)


### Bug Fixes

* Fix typings for functions.cloudEvent to include callback. ([#631](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/issues/631)) ([47cd4c6](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/commit/47cd4c6c0f4446f455ffc0d96d0f8d48e211b8f6))

## [3.4.2](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/compare/v3.4.1...v3.4.2) (2024-07-22)


### Bug Fixes

* Don't set severity level for text log. ([#625](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/issues/625)) ([5bd82de](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/commit/5bd82de7fff4e41967974587dbe389a1d637f78b))

## [3.4.1](https://github.com/GoogleCloudPlatform/functions-framework-nodejs/compare/v3.4.0...v3.4.1) (2024-07-09)


Expand Down
23 changes: 7 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
[![Node unit CI][ff_node_unit_img]][ff_node_unit_link] [![Node lint CI][ff_node_lint_img]][ff_node_lint_link] [![Node conformace CI][ff_node_conformance_img]][ff_node_conformance_link] ![Security Scorecard](https://api.securityscorecards.dev/projects/github.com/GoogleCloudPlatform/functions-framework-nodejs/badge)

An open source FaaS (Function as a Service) framework based on [Express](https://expressjs.com/)
for writing portable Node.js functions -- brought to you by the Google Cloud Functions team.
for writing portable Node.js functions.

The Functions Framework lets you write lightweight functions that run in many
different environments, including:

* [Google Cloud Functions](https://cloud.google.com/functions/)
* [Google Cloud Run functions](https://cloud.google.com/functions/)
* Your local development machine
* [Cloud Run](https://cloud.google.com/run/) and [Cloud Run for Anthos](https://cloud.google.com/anthos/run)
* [Knative](https://github.com/knative/)-based environments
Expand Down Expand Up @@ -156,25 +156,16 @@ command-line arguments:

## Run your function on serverless platforms

### Google Cloud Functions
### Google Cloud Run functions

The
[Node.js 10 runtime on Google Cloud Functions](https://cloud.google.com/functions/docs/concepts/nodejs-10-runtime)
is based on the Functions Framework. On Cloud Functions, the Functions Framework
is completely optional: if you don't add it to your `package.json`, it will be
installed automatically.
The [Node.JS runtime on Cloud Run functions](https://cloud.google.com/functions/docs/concepts/nodejs-runtime) utilizes the Node.JS Functions Framework. On Cloud Run functions, the Functions Framework is completely optional: if you don't add it to your `package.json`, it will be
installed automatically. For

After you've written your function, you can simply deploy it from your local
machine using the `gcloud` command-line tool.
[Check out the Cloud Functions quickstart](https://cloud.google.com/functions/docs/quickstart).
### Cloud Run / Cloud Run for Anthos

After you've written your function, added the Functions Framework and updated your `start` script in `package.json`, deploy it to Cloud Run with `gcloud run deploy`. Check out the [Cloud Run quickstart for Node.js](https://cloud.google.com/run/docs/quickstarts/build-and-deploy/nodejs).
If you want even more control over the environment, you can [deploy to Cloud Run for Anthos](https://cloud.google.com/anthos/run/docs/quickstarts/prebuilt-deploy-gke). With Cloud Run for Anthos, you can run your function on a GKE cluster, which gives you additional control over the environment (including use of GPU-based instances, longer timeouts and more).
### Container environments based on Knative
### Container environments based on KNative
Cloud Run and Cloud Run for Anthos both implement the [Knative Serving API](https://www.knative.dev/docs/). The Functions Framework is designed to be compatible with Knative environments. Just build and deploy your container to a Knative environment.
Expand All @@ -201,7 +192,7 @@ For example:
}
```
## Enable Google Cloud Functions Events
## Enable Google Cloud Run functions Events
The Functions Framework can unmarshall incoming
Google Cloud Functions [event](https://cloud.google.com/functions/docs/concepts/events-triggers#events) payloads to `data` and `context` objects.
Expand Down
Loading

0 comments on commit 7721e8b

Please sign in to comment.