Skip to content

Commit 8dde0a7

Browse files
committed
fix warnings
1 parent b652e57 commit 8dde0a7

File tree

1 file changed

+31
-6
lines changed

1 file changed

+31
-6
lines changed

articles/azure-functions/durable/durable-functions-node-model-upgrade.md

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ zone_pivot_groups: programming-languages-set-functions-nodejs
1515
>[!NOTE]
1616
> Version 4 of the Node.js programming model is currently in public preview.
1717
18-
This article provides a guide to upgrade your existing Durable Functions app to newly-released version 4 of the Node.js programming model for Azure Functions from the existing version 3. If you are instead interested in creating a brand new v4 app, follow the Visual Studio Code quickstarts for [JavaScript](./quickstart-js-vscode.md?pivots=nodejs-model-v4) and [TypeScript](./quickstart-ts-vscode.md?pivots=nodejs-model-v4). This article uses "TIP" sections to highlight the most important concrete actions you should take to upgrade your app. Before following this guide, make sure you follow the general [version 4 upgrade guide](../functions-node-upgrade-v4.md). You can also learn more about the new v4 programming model through the [Node.js developer reference](../functions-reference-node.md?pivots=nodejs-model-v4).
18+
This article provides a guide to upgrade your existing Durable Functions app to newly released version 4 of the Node.js programming model for Azure Functions from the existing version 3. If you're instead interested in creating a brand new v4 app, follow the Visual Studio Code quickstarts for [JavaScript](./quickstart-js-vscode.md?pivots=nodejs-model-v4) and [TypeScript](./quickstart-ts-vscode.md?pivots=nodejs-model-v4). This article uses "TIP" sections to highlight the most important concrete actions you should take to upgrade your app. Before following this guide, make sure you follow the general [version 4 upgrade guide](../functions-node-upgrade-v4.md). You can also learn more about the new v4 programming model through the [Node.js developer reference](../functions-reference-node.md?pivots=nodejs-model-v4).
1919

2020
>[!TIP]
2121
> Before following this guide, make sure you follow the general [version 4 upgrade guide](../functions-node-upgrade-v4.md).
@@ -26,8 +26,8 @@ Before following this guide, make sure you follow these steps first:
2626

2727
- Install have [Node.js](https://nodejs.org/en/download/releases) version 18.x+.
2828
- Install [TypeScript](https://www.typescriptlang.org/) version 4.x+.
29-
- Run your app on [Azure Functions Runtime](https://learn.microsoft.com/azure/azure-functions/functions-versions?tabs=v4&pivots=programming-language-javascript) version 4.16.5+.
30-
- Install [Azure Functions Core Tools](https://learn.microsoft.com/azure/azure-functions/functions-run-local?tabs=v4) version 4.0.5095+.
29+
- Run your app on [Azure Functions Runtime](../functions-versions.md?tabs=v4&pivots=programming-language-javascript) version 4.16.5+.
30+
- Install [Azure Functions Core Tools](../functions-run-local.md?tabs=v4) version 4.0.5095+.
3131
- Follow the general [Azure Functions Node.js programming model v4 upgrade guide](../functions-node-upgrade-v4.md).
3232

3333
## Upgrade durable-functions npm package
@@ -155,7 +155,7 @@ export default orchestrator;
155155
156156
#### Migrating an entity
157157
158-
:::zone pivot="programming-model-javascript"
158+
:::zone pivot="programming-language-javascript"
159159
160160
# [v4 model](#tab/v4)
161161
@@ -216,7 +216,7 @@ module.exports = df.entity(function (context) {
216216
---
217217
:::zone-end
218218
219-
:::zone pivot="programming-model-typescript"
219+
:::zone pivot="programming-language-typescript"
220220
221221
# [v4 model](#tab/v4)
222222
@@ -361,4 +361,29 @@ export default helloActivity;
361361
```
362362
363363
---
364-
:::zone-end
364+
:::zone-end
365+
366+
>[!TIP]
367+
> Remove `function.json` files from your Durable Functions app. Instead, register your durable functions using the methods on the `app` namespace: `df.app.orchestration()`, `df.app.entity()`, and `df.app.activity()`.
368+
369+
370+
## Update your Durable Client input config
371+
372+
In the v4 model, registering extra inputs has been moved from `function.json` files to your own code! You can use the `input.durableClient()` method to register an extra durable client input to your preferred durable client function. You can then use `getClient()` to retrieve the client instance as before. See the example below using an HTTP trigger.
373+
374+
:::zone pivot="programming-language-javascript"
375+
376+
# [v4 model](#tab/v4)
377+
378+
```javascript
379+
380+
```
381+
382+
# [v3 model](#tab/v3)
383+
384+
---
385+
:::zone-end
386+
387+
:::zone pivot="programming-language-typescript"
388+
389+
:::zone-end

0 commit comments

Comments
 (0)