Skip to content

Commit baf38f4

Browse files
[#4009] Update samples to support latest Node version - JavaScript (#4010)
* JS - Update samples and ARM templates to support latest LTS Node version * Use Node 20 as default in ARM templates * Update default value for Stack en linux * Update README files * Update botbuilder version in JS samples * Fix Node version in linux templates --------- Co-authored-by: Ivan K Berlot <[email protected]>
1 parent e5b6d01 commit baf38f4

File tree

135 files changed

+204
-204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

135 files changed

+204
-204
lines changed

samples/javascript_nodejs/01.console-echo/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
66

77
## Prerequisites
88

9-
- [Node.js](https://nodejs.org) version 16.16.0 or higher
9+
- [Node.js](https://nodejs.org) version 18 or higher
1010

1111
```bash
1212
# determine node version

samples/javascript_nodejs/01.console-echo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
1717
},
1818
"dependencies": {
19-
"botbuilder-core": "~4.17.0",
19+
"botbuilder-core": "~4.23.0",
2020
"dotenv": "^8.2.0",
2121
"path": "^0.12.7",
2222
"readline": "^1.3.0"

samples/javascript_nodejs/02.echo-bot/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
66

77
## Prerequisites
88

9-
- [Node.js](https://nodejs.org) version 16.16.0 or higher
9+
- [Node.js](https://nodejs.org) version 18 or higher
1010

1111
```bash
1212
# determine node version

samples/javascript_nodejs/02.echo-bot/deploymentTemplates/deployUseExistResourceGroup/template-BotApp-with-rg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"appSettings": [
159159
{
160160
"name": "WEBSITE_NODE_DEFAULT_VERSION",
161-
"value": "~16"
161+
"value": "~20"
162162
},
163163
{
164164
"name": "MicrosoftAppType",

samples/javascript_nodejs/02.echo-bot/deploymentTemplates/deployWithNewResourceGroup/template-BotApp-new-rg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@
175175
"appSettings": [
176176
{
177177
"name": "WEBSITE_NODE_DEFAULT_VERSION",
178-
"value": "~16"
178+
"value": "~20"
179179
},
180180
{
181181
"name": "MicrosoftAppType",

samples/javascript_nodejs/02.echo-bot/deploymentTemplates/linux/deployUseExistResourceGroup/template-BotApp-with-rg.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
},
5252
"linuxFxVersion": {
5353
"type": "string",
54-
"defaultValue": "NODE|16"
54+
"defaultValue": "NODE|20-LTS"
5555
},
5656
"appId": {
5757
"type": "string",
@@ -137,7 +137,7 @@
137137
"appSettings": [
138138
{
139139
"name": "WEBSITE_NODE_DEFAULT_VERSION",
140-
"value": "~16"
140+
"value": "~20"
141141
},
142142
{
143143
"name": "MicrosoftAppType",

samples/javascript_nodejs/02.echo-bot/deploymentTemplates/linux/deployWithNewResourceGroup/template-BotApp-new-rg.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"linuxFxVersion": {
5050
"type": "string",
51-
"defaultValue": "NODE|16"
51+
"defaultValue": "NODE|20-LTS"
5252
},
5353
"appId": {
5454
"type": "string",
@@ -156,7 +156,7 @@
156156
"appSettings": [
157157
{
158158
"name": "WEBSITE_NODE_DEFAULT_VERSION",
159-
"value": "~16"
159+
"value": "~20"
160160
},
161161
{
162162
"name": "MicrosoftAppType",

samples/javascript_nodejs/02.echo-bot/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"url": "https://github.com"
1717
},
1818
"dependencies": {
19-
"botbuilder": "~4.22.1",
19+
"botbuilder": "~4.23.0",
2020
"dotenv": "^8.2.0",
2121
"restify": "~10.0.0"
2222
},
@@ -29,4 +29,4 @@
2929
"eslint-plugin-standard": "^4.0.1",
3030
"nodemon": "~2.0.4"
3131
}
32-
}
32+
}

samples/javascript_nodejs/03.welcome-users/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
66

77
## Prerequisites
88

9-
- [Node.js](https://nodejs.org) version 16.16.0 or higher
9+
- [Node.js](https://nodejs.org) version 18 or higher
1010

1111
```bash
1212
# determine node version

samples/javascript_nodejs/03.welcome-users/deploymentTemplates/deployUseExistResourceGroup/template-BotApp-with-rg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
"appSettings": [
159159
{
160160
"name": "WEBSITE_NODE_DEFAULT_VERSION",
161-
"value": "~16"
161+
"value": "~20"
162162
},
163163
{
164164
"name": "MicrosoftAppType",

0 commit comments

Comments
 (0)