The v4 programming model for Node.js is now Generally Available! 🎉 #152
Replies: 11 comments 21 replies
-
Nice work @ejizba! Loving all of the changes made. Does this mean we can now remove the |
Beta Was this translation helpful? Give feedback.
-
v3 was painful. When will Azure Static Webapps (with managed functions) be able to support host v4.25? |
Beta Was this translation helpful? Give feedback.
-
I migrated my project to the v4 programming model and it works great. Am I correct?
Is there a better solution? |
Beta Was this translation helpful? Give feedback.
-
I think the new model is quite easy to approach and the added type safety is a big plus. I did run into some magic when I was converting one of our functions. const blobOutput = output.storageBlob({
path: "container/{id}",
connection: "storagekey",
});
export async function worker(
request: HttpRequest,
context: InvocationContext
): Promise<HttpResponseInit> {
const jobId = request.params["id"];
const jsonBody = await request.json();
context.extraOutputs.set(blobOutput, jsonBody);
return {body: "ok"};
}
app.http("worker", {
methods: ["POST"],
route: "worker/{id}",
extraOutputs: [blobOutput],
handler: worker,
}); It's unclear to me how I can modify or set the variable |
Beta Was this translation helpful? Give feedback.
-
Hi @ejizba, I am working with Azure Functions that use SignalR bindings. Can you suggest some articles or documents related to the v4 programming model for the signalR bindings? |
Beta Was this translation helpful? Give feedback.
-
Hi, can you please help me to setup a call to create a v4 Function App using Resource Manager API ( Basically I am trying to deploy a Function App on the fly, per user request, using |
Beta Was this translation helpful? Give feedback.
-
It doesn't look like you've released Docker images for the newest core tools and function runtimes? (I'm looking at the release announcement:
But when running locally with
It was working beautifully locally on the beta, but now it just doesn't find any job functions (Presumably because I removed the flag and tried updating the functions runtime). Any advice? |
Beta Was this translation helpful? Give feedback.
-
Just started playing around. The ability to use nested directories & define routes via code is a game changer. In just a little bit of playing around, I'm able to pass __dirname from my index.ts files to utility functions to grab both the route and the method for a function based on following directory conventions. Which leads to things like: Translating to: Method: |
Beta Was this translation helpful? Give feedback.
-
Hi, I just started playing with the v4 model to migrate our v3 functions. Our v3 functions is in internal production env, so i deployed changes leveraging v4 model and for unknown reasons the functions are not showing up anymore in the web portal. Any ideas? I'm not seeing any errors in logger. I don't see y'all document potential issues folks may run into and how to deal with it anywhere. My functions are written in Typescript, Env is Node 18 running on Linux. Any help will be appreciated. i have my package.json like
|
Beta Was this translation helpful? Give feedback.
-
i've created a new azure function service and tried to deploy v4 functions but it seems its not listing any functions, |
Beta Was this translation helpful? Give feedback.
-
We upgraded our Node.js functions from the v3 model to the v4 model around August 2024, using Node.js 18 at the time. As part of the migration, we also upgraded the underlying .NET framework to version 6. Now, we’re planning to upgrade the Node.js version to 20 in the v4 model. Do we also need to upgrade the underlying .NET framework version as part of this update? Thanks! |
Beta Was this translation helpful? Give feedback.
-
The v4 model was designed to give JavaScript and TypeScript developers a more flexible & intuitive experience when authoring apps on Azure Functions. Read our blog post for more information.
Please use this discussion thread to let us know what you think of the new model, good or bad! We can't wait to make it even better!
Beta Was this translation helpful? Give feedback.
All reactions