Skip to content

Commit

Permalink
[#4009] Update samples to support latest Node version - JavaScript (#…
Browse files Browse the repository at this point in the history
…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 <ivanberlot@gmail.com>
  • Loading branch information
ceciliaavila and iberlot authored Sep 25, 2024
1 parent e5b6d01 commit baf38f4
Show file tree
Hide file tree
Showing 135 changed files with 204 additions and 204 deletions.
2 changes: 1 addition & 1 deletion samples/javascript_nodejs/01.console-echo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i

## Prerequisites

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

```bash
# determine node version
Expand Down
2 changes: 1 addition & 1 deletion samples/javascript_nodejs/01.console-echo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder-core": "~4.17.0",
"botbuilder-core": "~4.23.0",
"dotenv": "^8.2.0",
"path": "^0.12.7",
"readline": "^1.3.0"
Expand Down
2 changes: 1 addition & 1 deletion samples/javascript_nodejs/02.echo-bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i

## Prerequisites

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

```bash
# determine node version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"linuxFxVersion": {
"type": "string",
"defaultValue": "NODE|16"
"defaultValue": "NODE|20-LTS"
},
"appId": {
"type": "string",
Expand Down Expand Up @@ -137,7 +137,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
},
"linuxFxVersion": {
"type": "string",
"defaultValue": "NODE|16"
"defaultValue": "NODE|20-LTS"
},
"appId": {
"type": "string",
Expand Down Expand Up @@ -156,7 +156,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
4 changes: 2 additions & 2 deletions samples/javascript_nodejs/02.echo-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder": "~4.23.0",
"dotenv": "^8.2.0",
"restify": "~10.0.0"
},
Expand All @@ -29,4 +29,4 @@
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
}
}
2 changes: 1 addition & 1 deletion samples/javascript_nodejs/03.welcome-users/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i

## Prerequisites

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

```bash
# determine node version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
4 changes: 2 additions & 2 deletions samples/javascript_nodejs/03.welcome-users/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder": "~4.23.0",
"dotenv": "^8.2.0",
"restify": "~10.0.0"
},
Expand All @@ -29,4 +29,4 @@
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
}
}
2 changes: 1 addition & 1 deletion samples/javascript_nodejs/05.multi-turn-prompt/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i

## Prerequisites

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

```bash
# determine node version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
6 changes: 3 additions & 3 deletions samples/javascript_nodejs/05.multi-turn-prompt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder-dialogs": "~4.22.1",
"botbuilder": "~4.23.0",
"botbuilder-dialogs": "~4.23.0",
"dotenv": "^8.2.0",
"path": "^0.12.7",
"restify": "~10.0.0"
Expand All @@ -31,4 +31,4 @@
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
}
}
2 changes: 1 addition & 1 deletion samples/javascript_nodejs/06.using-cards/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i

## Prerequisites

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

```bash
# determine node version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
6 changes: 3 additions & 3 deletions samples/javascript_nodejs/06.using-cards/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder-dialogs": "~4.22.1",
"botbuilder": "~4.23.0",
"botbuilder-dialogs": "~4.23.0",
"dotenv": "^8.2.0",
"restify": "~10.0.0"
},
Expand All @@ -30,4 +30,4 @@
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i

## Prerequisites

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

```bash
# determine node version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder": "~4.23.0",
"dotenv": "^8.2.0",
"restify": "~10.0.0"
},
Expand All @@ -29,4 +29,4 @@
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
}
}
2 changes: 1 addition & 1 deletion samples/javascript_nodejs/08.suggested-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i

## Prerequisites

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

```bash
# determine node version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
4 changes: 2 additions & 2 deletions samples/javascript_nodejs/08.suggested-actions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder": "~4.23.0",
"dotenv": "^8.2.0",
"restify": "~10.0.0"
},
Expand All @@ -29,4 +29,4 @@
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
}
}
4 changes: 2 additions & 2 deletions samples/javascript_nodejs/12.customQABot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This bot has been created using the [Bot Framework SDK][BF], it shows how to cre
## Prerequisites
- This project requires a [Language service resource](https://aka.ms/create-language-resource) with Custom question answering enabled.

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

```bash
# determine node version
Expand Down Expand Up @@ -92,4 +92,4 @@ If you are new to Microsoft Azure, please refer to [Getting started with Azure][
[BF]: https://dev.botframework.com/
[Quickstart]: https://docs.microsoft.com/azure/cognitive-services/language-service/question-answering/quickstart/sdk
[Azure]: https://portal.azure.com
[BFE]: https://github.com/Microsoft/BotFramework-Emulator/releases
[BFE]: https://github.com/Microsoft/BotFramework-Emulator/releases
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
6 changes: 3 additions & 3 deletions samples/javascript_nodejs/12.customQABot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.22.1",
"botbuilder-ai": "~4.22.1",
"botbuilder": "~4.23.0",
"botbuilder-ai": "~4.23.0",
"dotenv": "^8.2.0",
"restify": "~10.0.0"
},
Expand All @@ -30,4 +30,4 @@
"eslint-plugin-standard": "^4.0.1",
"nodemon": "~2.0.4"
}
}
}
2 changes: 1 addition & 1 deletion samples/javascript_nodejs/13.core-bot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This sample **requires** prerequisites in order to run.

This bot uses [LUIS](https://www.luis.ai), an AI based cognitive service, to implement language understanding.

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

```bash
# determine node version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
"appSettings": [
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~16"
"value": "~20"
},
{
"name": "MicrosoftAppType",
Expand Down
Loading

0 comments on commit baf38f4

Please sign in to comment.