Skip to content

Commit 54b6bb5

Browse files
Merge pull request #232074 from ejizba/ej/v3v4choices
Clean up notes about choice of v3/v4 node.js model
2 parents de3fc9f + bea2a97 commit 54b6bb5

15 files changed

+45
-47
lines changed

articles/azure-functions/create-first-function-cli-node.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ zone_pivot_groups: functions-nodejs-model
1212

1313
In this article, you use command-line tools to create a JavaScript function that responds to HTTP requests. After testing the code locally, you deploy it to the serverless environment of Azure Functions.
1414

15-
>[!NOTE]
16-
>The v4 programming model for authoring Functions in Node.js is currently in Preview. Compared to the current v3 model, the v4 model is designed to have a more idiomatic and intuitive experience for JavaScript and TypeScript developers. To learn more, see the [Developer Reference Guide](functions-reference-node.md).
15+
[!INCLUDE [functions-nodejs-model-pivot-description](../../includes/functions-nodejs-model-pivot-description.md)]
1716

18-
Use the selector at the top to choose the programming model of your choice for completing this quickstart. Note that completion will incur a small cost of a few USD cents or less in your Azure account.
17+
Note that completion will incur a small cost of a few USD cents or less in your Azure account.
1918

2019
There is also a [Visual Studio Code-based version](create-first-function-vs-code-node.md) of this article.
2120

articles/azure-functions/create-first-function-cli-typescript.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ zone_pivot_groups: functions-nodejs-model
1212

1313
In this article, you use command-line tools to create a TypeScript function that responds to HTTP requests. After testing the code locally, you deploy it to the serverless environment of Azure Functions.
1414

15-
>[!NOTE]
16-
>The v4 programming model for authoring Functions in Node.js is currently in Preview. Compared to the current v3 model, the v4 model is designed to have a more idiomatic and intuitive experience for JavaScript and TypeScript developers. To learn more, see the [Developer Reference Guide](functions-reference-node.md).
15+
[!INCLUDE [functions-nodejs-model-pivot-description](../../includes/functions-nodejs-model-pivot-description.md)]
1716

18-
Use the selector at the top to choose the programming model of your choice for completing this quickstart. Note that completion will incur a small cost of a few USD cents or less in your Azure account.
17+
Note that completion will incur a small cost of a few USD cents or less in your Azure account.
1918

2019
There's also a [Visual Studio Code-based version](create-first-function-vs-code-typescript.md) of this article.
2120

articles/azure-functions/create-first-function-vs-code-node.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ zone_pivot_groups: functions-nodejs-model
1616

1717
Use Visual Studio Code to create a JavaScript function that responds to HTTP requests. Test the code locally, then deploy it to the serverless environment of Azure Functions.
1818

19-
>[!NOTE]
20-
>The v4 programming model for authoring Functions in Node.js is currently in Preview. Compared to the current v3 model, the v4 model is designed to have a more idiomatic and intuitive experience for JavaScript and TypeScript developers. To learn more, see the [Developer Reference Guide](functions-reference-node.md).
19+
[!INCLUDE [functions-nodejs-model-pivot-description](../../includes/functions-nodejs-model-pivot-description.md)]
2120

22-
Use the selector at the top to choose the programming model of your choice for completing this quickstart. Note that completion will incur a small cost of a few USD cents or less in your Azure account.
21+
Note that completion will incur a small cost of a few USD cents or less in your Azure account.
2322

2423
There's also a [CLI-based version](create-first-function-cli-node.md) of this article.
2524

articles/azure-functions/create-first-function-vs-code-typescript.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ zone_pivot_groups: functions-nodejs-model
1212

1313
In this article, you use Visual Studio Code to create a TypeScript function that responds to HTTP requests. After testing the code locally, you deploy it to the serverless environment of Azure Functions.
1414

15-
>[!NOTE]
16-
>The v4 programming model for authoring Functions in Node.js is currently in Preview. Compared to the current v3 model, the v4 model is designed to have a more idiomatic and intuitive experience for JavaScript and TypeScript developers. To learn more, see the [Developer Reference Guide](functions-reference-node.md).
15+
[!INCLUDE [functions-nodejs-model-pivot-description](../../includes/functions-nodejs-model-pivot-description.md)]
1716

18-
Use the selector at the top to choose the programming model of your choice for completing this quickstart. Note that completion will incur a small cost of a few USD cents or less in your Azure account.
17+
Note that completion will incur a small cost of a few USD cents or less in your Azure account.
1918

2019
There's also a [CLI-based version](create-first-function-cli-typescript.md) of this article.
2120

articles/azure-functions/durable/durable-functions-cloud-backup.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ ms.author: azfuncdf
1010

1111
*Fan-out/fan-in* refers to the pattern of executing multiple functions concurrently and then performing some aggregation on the results. This article explains a sample that uses [Durable Functions](durable-functions-overview.md) to implement a fan-in/fan-out scenario. The sample is a durable function that backs up all or some of an app's site content into Azure Storage.
1212

13-
> [!NOTE]
14-
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for JavaScript and TypeScript developers. To learn more, see the Azure Functions Node.js [developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
15-
>
16-
> In the following code snippets, JavaScript (PM4) denotes programming model V4, the new experience.
13+
[!INCLUDE [functions-nodejs-durable-model-description](../../../includes/functions-nodejs-durable-model-description.md)]
1714

1815
[!INCLUDE [durable-functions-prerequisites](../../../includes/durable-functions-prerequisites.md)]
1916

articles/azure-functions/durable/durable-functions-error-handling.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@ ms.devlang: csharp, javascript, powershell, python, java
1111

1212
Durable Function orchestrations are implemented in code and can use the programming language's built-in error-handling features. There really aren't any new concepts you need to learn to add error handling and compensation into your orchestrations. However, there are a few behaviors that you should be aware of.
1313

14-
> [!NOTE]
15-
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for JavaScript and TypeScript developers. To learn more, see the Azure Functions Node.js [developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
16-
>
17-
> In the following code snippets, JavaScript (PM4) denotes programming model V4, the new experience.
14+
[!INCLUDE [functions-nodejs-durable-model-description](../../../includes/functions-nodejs-durable-model-description.md)]
1815

1916
## Errors in activity functions
2017

articles/azure-functions/durable/durable-functions-orchestrations.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ When an orchestration function is given more work to do (for example, a response
5454

5555
The event-sourcing behavior of the Durable Task Framework is closely coupled with the orchestrator function code you write. Suppose you have an activity-chaining orchestrator function, like the following orchestrator function:
5656

57-
> [!NOTE]
58-
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for JavaScript and TypeScript developers. To learn more, see the Azure Functions Node.js [developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
59-
>
60-
> In the following code snippets, JavaScript (PM4) denotes programming model V4, the new experience.
57+
[!INCLUDE [functions-nodejs-durable-model-description](../../../includes/functions-nodejs-durable-model-description.md)]
6158

6259
# [C# (InProc)](#tab/csharp-inproc)
6360

articles/azure-functions/durable/durable-functions-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Durable Functions is designed to work with all Azure Functions programming langu
2929
| Java | Functions 4.0+ | Java 8+ | 4.x bundles |
3030

3131
> [!NOTE]
32-
> The new programming models for authoring Functions in Python (V2) and Node.js (V4) are currently in preview. Compared to the current models, the new experiences are designed to be more idiomatic and intuitive for Python and JavaScript/TypeScript developers. To learn more, see Azure Functions [Python developer guide](../functions-reference-python.md?pivots=python-mode-decorators) and [Node.js developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
32+
> The new programming models for authoring Functions in Python (V2) and Node.js (V4) are currently in preview. Compared to the current models, the new experiences are designed to be more flexible and intuitive for Python and JavaScript/TypeScript developers. Learn more about the differences between the models in the [Python developer guide](../functions-reference-python.md?pivots=python-mode-decorators) and [Node.js upgrade guide](../functions-node-upgrade-v4.md).
3333
>
3434
> In the following code snippets, Python (PM2) denotes programming model V2, and JavaScript (PM4) denotes programming model V4, the new experiences.
3535

articles/azure-functions/durable/durable-functions-phone-verification.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,7 @@ This sample demonstrates how to build a [Durable Functions](durable-functions-ov
1313

1414
This sample implements an SMS-based phone verification system. These types of flows are often used when verifying a customer's phone number or for multi-factor authentication (MFA). It is a powerful example because the entire implementation is done using a couple small functions. No external data store, such as a database, is required.
1515

16-
> [!NOTE]
17-
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for JavaScript and TypeScript developers. To learn more, see the Azure Functions Node.js [developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
18-
>
19-
> In the following code snippets, JavaScript (PM4) denotes programming model V4, the new experience.
16+
[!INCLUDE [functions-nodejs-durable-model-description](../../../includes/functions-nodejs-durable-model-description.md)]
2017

2118
[!INCLUDE [durable-functions-prerequisites](../../../includes/durable-functions-prerequisites.md)]
2219

articles/azure-functions/durable/durable-functions-sequence.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ Function chaining refers to the pattern of executing a sequence of functions in
1414

1515
[!INCLUDE [durable-functions-prerequisites](../../../includes/durable-functions-prerequisites.md)]
1616

17-
> [!NOTE]
18-
> The new programming model for authoring Functions in Node.js (V4) is currently in preview. Compared to the current model, the new experience is designed to be more idiomatic and intuitive for JavaScript and TypeScript developers. To learn more, see the Azure Functions Node.js [developer guide](../functions-reference-node.md?pivots=nodejs-model-v4).
19-
>
20-
> In the following code snippets, JavaScript (PM4) denotes programming model V4, the new experience.
17+
[!INCLUDE [functions-nodejs-durable-model-description](../../../includes/functions-nodejs-durable-model-description.md)]
2118

2219
## The functions
2320

0 commit comments

Comments
 (0)