feat: Update Node Samples to SDK 4.20.0 and restify 10.0.0 for Compatibility with Node 18 (#3902)

* Update Node Samples to SDK 4.20.0 and restify 10.0.0

* Update README to require Node 16.16.0
This commit is contained in:
Anish Prasad 2023-07-20 09:46:07 -07:00 коммит произвёл GitHub
Родитель 353c61b4dc
Коммит d991983fea
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
54 изменённых файлов: 118 добавлений и 105 удалений

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,9 +16,9 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,9 +16,9 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,11 +16,11 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"path": "^0.12.7",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,9 +16,9 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,9 +16,9 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -9,6 +9,13 @@ 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
```bash
# determine node version
node --version
```
### Configure knowledge base of the project
- See the [quickstart][Quickstart] to create a Custom question answering project. You will need this project's name to be used as `ProjectName` in [.env file](.env).
- Go to [Language Studio][LS] and open the created project.

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.18.1",
"botbuilder-ai": "~4.18.1",
"botbuilder": "~4.20.0",
"botbuilder-ai": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -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 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -17,13 +17,13 @@
},
"dependencies": {
"@microsoft/recognizers-text-data-types-timex-expression": "1.1.4",
"botbuilder": "~4.17.0",
"botbuilder-ai": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder-testing": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-ai": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"botbuilder-testing": "~4.20.0",
"dotenv": "^8.2.0",
"moment-timezone": "~0.5.33",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -9,7 +9,7 @@ upload files to Teams from a bot and how to receive a file sent to a bot as an a
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -17,9 +17,9 @@
},
"dependencies": {
"axios": "^0.21.2",
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -15,7 +15,7 @@ all users who have previously messaged the bot.
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,13 +16,13 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"fetch-ponyfill": "^7.0.0",
"moment": "^2.29.1",
"path": "^0.12.7",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -21,7 +21,7 @@ The API uses the most modern neural machine translation technology, as well as o
This sample **requires** prerequisites in order to run.
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"node-fetch": "^2.6.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -10,7 +10,7 @@ NOTE: Microsoft Teams currently differs slightly in the way auth is integrated w
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -8,7 +8,7 @@ BotFramework provides a built-in base class called `Dialog`. By subclassing `Dia
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -19,7 +19,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
and [Application Insights](https://docs.microsoft.com/azure/azure-monitor/app/cloudservices), an extensible Application Performance Management (APM) service for web developers on multiple platforms.
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -17,13 +17,13 @@
"license": "MIT",
"dependencies": {
"@microsoft/recognizers-text-data-types-timex-expression": "1.1.4",
"botbuilder": "~4.17.0",
"botbuilder-ai": "~4.17.0",
"botbuilder-applicationinsights": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-ai": "~4.20.0",
"botbuilder-applicationinsights": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"path": "^0.12.7",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -8,7 +8,7 @@ More information about configuring a bot for Facebook Messenger can be found her
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -11,7 +11,7 @@ application setup for use in Azure Bot Service. The [scopes](https://developer.m
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -17,11 +17,11 @@
},
"dependencies": {
"@microsoft/microsoft-graph-client": "~2.0.0",
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"isomorphic-fetch": "^3.0.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -4,7 +4,7 @@ This sample creates a complex conversation with dialogs.
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -12,10 +12,10 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ The bot maintains user state to track the user's answers.
## Prerequisites
- Node.js version 10.14.1 or higher.
- Node.js version 16.16.0 or higher.
```bash
# determine node version

Просмотреть файл

@ -13,9 +13,9 @@
},
"dependencies": {
"@microsoft/recognizers-text-suite": "1.1.4",
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ The bot maintains user state to track the user's answers.
## Prerequisites
- Node.js version 10.14.1 or higher.
- Node.js version 16.16.0 or higher.
```bash
# determine node version

Просмотреть файл

@ -12,9 +12,9 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -12,7 +12,7 @@ More details are available [here](https://github.com/microsoft/BotFramework-Emul
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,9 +16,9 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -13,6 +13,12 @@ This bot was created using [Bot Framework][BF].
## Prerequisites
- This project requires a [Language resource](https://aka.ms/create-language-resource) with Custom question answering enabled.
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version
node --version
```
### Configure knowledge base of the project
- Follow instructions [here][Quickstart] to create a Custom question answering project. You will need this project's name to be used as `ProjectName` in [.env file](.env).

Просмотреть файл

@ -20,7 +20,7 @@
"botbuilder-ai": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botframework-connector": "~4.17.0",
"botbuilder": "~4.20.0",
"botframework-connector": "~4.20.0",
"dotenv": "~8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botframework-connector": "~4.17.0",
"botbuilder": "~4.20.0",
"botframework-connector": "~4.20.0",
"dotenv": "~8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using the [Bot Framework](https://dev.botframework.com
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher.
- [Node.js](https://nodejs.org) version 16.16.0 or higher.
```bash
# Determine node version.

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "~8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -17,11 +17,11 @@
},
"dependencies": {
"@microsoft/recognizers-text-data-types-timex-expression": "~1.1.4",
"botbuilder": "~4.17.0",
"botbuilder-ai": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-ai": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"dotenv": "~8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher.
- [Node.js](https://nodejs.org) version 16.16.0 or higher.
```bash
# Determine node version.

Просмотреть файл

@ -16,11 +16,11 @@
"url": "https://github.com/Microsoft/BotBuilder-Samples.git"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder-lg": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"botbuilder-lg": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -17,13 +17,13 @@
},
"dependencies": {
"@microsoft/recognizers-text-data-types-timex-expression": "1.1.4",
"botbuilder": "~4.17.0",
"botbuilder-ai": "~4.17.0",
"botbuilder-dialogs": "~4.17.0",
"botbuilder-testing": "~4.17.0",
"botbuilder-lg": "~4.17.0",
"botbuilder": "~4.20.0",
"botbuilder-ai": "~4.20.0",
"botbuilder-dialogs": "~4.20.0",
"botbuilder-testing": "~4.20.0",
"botbuilder-lg": "~4.20.0",
"dotenv": "^8.2.0",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",

Просмотреть файл

@ -6,7 +6,7 @@ This bot has been created using [Bot Framework](https://dev.botframework.com), i
## Prerequisites
- [Node.js](https://nodejs.org) version 10.14 or higher
- [Node.js](https://nodejs.org) version 16.16.0 or higher
```bash
# determine node version

Просмотреть файл

@ -16,10 +16,10 @@
"url": "https://github.com"
},
"dependencies": {
"botbuilder": "~4.17.0",
"botbuilder": "~4.20.0",
"dotenv": "^8.2.0",
"math-random": "^2.0.1",
"restify": "~8.6.0"
"restify": "~10.0.0"
},
"devDependencies": {
"eslint": "^7.0.0",