openfaas / templates

OpenFaaS Classic templates
https://www.openfaas.com
MIT License
278 stars 227 forks source link

Add a template for node18 #296

Open radicand opened 2 years ago

radicand commented 2 years ago

Expected Behaviour

Today there are templates for various NodeJS versions. Node 18 is out, but there is no template for it. Node 18 is particularly interesting because it bundles fetch() natively, reducing the need for dependencies within functions.

Current Behaviour

Use a current NodeJS image, but with a shim/package to add fetch support.

Are you a GitHub Sponsor (Yes/No?)

No

Check at: https://github.com/sponsors/openfaas

List All Possible Solutions and Workarounds

Create a new template for Node18 Continue to shim/add dependencies to functions

Which Solution Do You Recommend?

Creating a new template for Node18

Steps to Reproduce (for bugs)

N/A

Context

I'm writing functions that interact with http-based backends primarily and am looking to keep them as slim as possible.

Thanks for considering this!

Your Environment

N/A

maiermic commented 9 months ago

I assume that this issue can be closed, since there is a template for Node.js 18 in the meantime: https://github.com/openfaas/templates/tree/master/template/node18