Skip to content

Commit 874d0c7

Browse files
authored
Removed deprecated dependencies (#5530)
* Move to fetch from request * Remove abort-controller-es5 * Add entries * Credit author * Add missing esbuild deps * Fix flaky
1 parent f026d55 commit 874d0c7

13 files changed

Lines changed: 273 additions & 1222 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ Notes: web developers are advised to use [`~` (tilde range)](https://github.com/
4040
- `sendBoxMiddleware`, related to PR [#5504](https://github.com/microsoft/BotFramework-WebChat/pull/5504)
4141
- `sendBoxToolbarMiddleware`, related to PR [#5504](https://github.com/microsoft/BotFramework-WebChat/pull/5504)
4242
- `styleOptions.hideUploadButton` is being deprecated in favor of `styleOptions.disableFileUpload`. The option will be removed on or after 2027-07-14
43+
- `botframework-directlinespeech-sdk` no longer ponyfill `AbortController`, it is supported by modern browsers, in PR [#5530](https://github.com/microsoft/BotFramework-WebChat/pull/5530)
4344

4445
### Added
4546

@@ -235,6 +236,8 @@ Notes: web developers are advised to use [`~` (tilde range)](https://github.com/
235236
- Fixed [#5476](https://github.com/microsoft/BotFramework-WebChat/issues/5476). Modernizing components through memoization and use [`valibot`](https://npmjs.com/package/valibot) for props validation, by [@compulim](https://github.com/compulim)
236237
- Ported `useSuggestedActions` to use React hooks as backend instead of Redux store, in PR [#5489](https://github.com/microsoft/BotFramework-WebChat/pull/5489), by [@compulim](https://github.com/compulim)
237238
- Removed `StarterPromptsCardAction` during `blueprint` ui state in PR [#5477](https://github.com/microsoft/BotFramework-WebChat/pull/5477), by [@jcheung824](https://github.com/jcheung824)
239+
- Removed `abort-controller-es5` package in `botframework-directlinespeech-sdk` package, in PR [#5530](https://github.com/microsoft/BotFramework-WebChat/pull/5530), by [@compulim](https://github.com/compulim)
240+
- Removed `request` and `request-progress` package in `cldr-data-downloader` package, in PR [#5530](https://github.com/microsoft/BotFramework-WebChat/pull/5530), by [@copilot](https://github.com/copilot) and [@compulim](https://github.com/compulim)
238241

239242
### Fixed
240243

__tests__/html/sendAttachmentOn/invalidImage.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
);
3333

3434
// THEN: It should send the file.
35-
await pageConditions.allOutgoingActivitiesSent();
3635
await pageConditions.numActivitiesShown(3);
36+
await pageConditions.allOutgoingActivitiesSent();
3737
await host.snapshot();
3838
},
3939
{ ignoreErrors: 'The source image could not be decoded.' }

__tests__/html/sendAttachmentOn/onAttach.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
await host.upload(pageElements.uploadButton(), 'seaofthieves.jpg');
2626

2727
// THEN: A thumbnail with the bot reply should show.
28-
await pageConditions.allOutgoingActivitiesSent();
2928
await pageConditions.numActivitiesShown(2);
29+
await pageConditions.allOutgoingActivitiesSent();
3030
await host.snapshot();
3131
});
3232
</script>

__tests__/html/sendAttachmentOn/onSend.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
await host.click(pageElements.sendButton());
3232

3333
// THEN: A thumbnail with the bot reply should show.
34-
await pageConditions.allOutgoingActivitiesSent();
3534
await pageConditions.numActivitiesShown(2);
35+
await pageConditions.allOutgoingActivitiesSent();
3636
await host.snapshot();
3737
});
3838
</script>

__tests__/html/sendAttachmentOn/simple.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
await host.click(pageElements.sendButton());
2929

3030
// THEN: A thumbnail with the bot reply should show.
31-
await pageConditions.allOutgoingActivitiesSent();
3231
await pageConditions.numActivitiesShown(2);
32+
await pageConditions.allOutgoingActivitiesSent();
3333
await host.snapshot();
3434
});
3535
</script>

__tests__/html/sendAttachmentOn/simple.keyboardOnly.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
await host.sendKeys(' ');
4444

4545
// THEN: A thumbnail with the bot reply should show.
46-
await pageConditions.allOutgoingActivitiesSent();
4746
await pageConditions.numActivitiesShown(2);
47+
await pageConditions.allOutgoingActivitiesSent();
4848
await host.snapshot();
4949
});
5050
</script>

__tests__/html/sendAttachmentOn/speech.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
await pageObjects.clickMicrophoneButton();
6161

6262
// THEN: A thumbnail with the bot reply should show.
63-
await pageConditions.allOutgoingActivitiesSent();
6463
await pageConditions.numActivitiesShown(2);
64+
await pageConditions.allOutgoingActivitiesSent();
6565
await host.snapshot();
6666
},
6767
{

package-lock.json

Lines changed: 195 additions & 1168 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/directlinespeech/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@
100100
"dependencies": {
101101
"@babel/runtime": "7.28.2",
102102
"abort-controller": "3.0.0",
103-
"abort-controller-es5": "2.0.1",
104103
"base64-arraybuffer": "1.0.2",
105104
"core-js": "3.44.0",
106105
"core-js-pure": "3.44.0",

packages/directlinespeech/src/createWebSpeechPonyfillFactory.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
/* eslint class-methods-use-this: ["error", { "exceptMethods": ["cancel", "getVoices", "speak"] }] */
22

3-
import { AbortController } from 'abort-controller-es5';
43
import { createSpeechRecognitionPonyfillFromRecognizer } from 'web-speech-cognitive-services';
54

65
import createTaskQueue from './createTaskQueue';
7-
import EventTarget, { Event, getEventAttributeValue, setEventAttributeValue } from 'event-target-shim';
6+
import EventTarget, { getEventAttributeValue, setEventAttributeValue } from 'event-target-shim';
87
import playCognitiveServicesStream from './playCognitiveServicesStream';
98
import playWhiteNoise from './playWhiteNoise';
109
import SpeechSynthesisAudioStreamUtterance from './SpeechSynthesisAudioStreamUtterance';

0 commit comments

Comments
 (0)