VirusTotalNet icon indicating copy to clipboard operation
VirusTotalNet copied to clipboard

Add a template for node18

Open radicand opened this issue 3 years ago • 1 comments

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

  • [ ] Yes
  • [x] No

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

radicand avatar Jul 03 '22 19:07 radicand

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

maiermic avatar Dec 12 '23 11:12 maiermic