Skip to content

Commit 99a37f1

Browse files
compulimCopilot
andauthored
Bump dependencies (microsoft#5768)
* Initial bump * Bump microsoft-cognitiveservices-speech-sdk@1.48.0 * Pin global-agent@3.0.0 * Remove "Bearer" from speech token * Fix exports * Fix has-resolved * Debump react-wrap-with * Debump react[-dom]@18.3.0 * Add CHANGELOG entry * Use PromiseLike * Bump to react[-dom]@18.3.1 * Update entry * Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Rename to `credentials` * Clean up --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 6b157f1 commit 99a37f1

46 files changed

Lines changed: 2542 additions & 1775 deletions

File tree

Some content is hidden

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

CHANGELOG.md

Lines changed: 59 additions & 51 deletions
Large diffs are not rendered by default.

package-lock.json

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

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
"build:html2-samples": "cd __tests__/html2/samples/ && esbuild --bundle --format=esm --outbase=. --outdir=./dist/ --minify **/*.tsx --splitting",
6565
"build:production": "npm run build --if-present --workspaces",
6666
"build-browser": "npm run build:run --workspace ./packages/test/harness",
67-
"bump": "vg bump prod && vg bump dev && (npm audit fix || exit 0) && npm run bump:packages && npm run bump:samples",
67+
"bump": "vg bump prod && vg bump dev && (npm audit fix || exit 0) && npm run bump:packages && npm run bump:samples && npm dedupe",
6868
"bump:dev": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // []) as $L | (.devDependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install $PACKAGES_TO_BUMP || true",
6969
"bump:prod": "PACKAGES_TO_BUMP=$(cat package.json | jq -r '(.pinDependencies // {}) as $P | (.localPeerDependencies // []) as $L | (.dependencies // {}) | to_entries | map(select(.key as $K | $L | contains([$K]) | not)) | map(.key + \"@\" + ($P[.key] // [\"latest\"])[0]) | join(\" \")') && [ ! -z \"$PACKAGES_TO_BUMP\" ] && npm install --save-exact $PACKAGES_TO_BUMP || true",
7070
"bump:packages": "npm run bump --workspaces",
@@ -223,6 +223,11 @@
223223
"strip-ansi@7 dropped support of CommonJS"
224224
]
225225
},
226+
"overrides": {
227+
"adaptivecards": {
228+
"swiper": "12.1.2"
229+
}
230+
},
226231
"devDependencies": {
227232
"@babel/plugin-transform-runtime": "^7.28.5",
228233
"@babel/preset-env": "^7.28.5",

packages/api-graph/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"@testduet/given-when-then": "^0.1.0",
6262
"@types/use-sync-external-store": "^1.5.0",
6363
"botframework-webchat-core": "0.0.0-0",
64-
"type-fest": "^5.3.1",
64+
"type-fest": "^5.4.4",
6565
"typescript": "^5.9.3"
6666
},
6767
"peerDependencies": {

packages/api-middleware/package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,12 @@
7171
"preversion": "../../scripts/npm/preversion.sh",
7272
"start": "../../scripts/npm/notify-build.sh \"src\" \"../base/package.json\" \"../react-hooks/package.json\" \"../react-valibot/package.json\""
7373
},
74-
"pinDependencies": {},
74+
"pinDependencies": {
75+
"react-wrap-with": [
76+
"0.1.0",
77+
"0.2.0 is having compatibility issues with preact@10.25.4"
78+
]
79+
},
7580
"localDependencies": {
7681
"@msinternal/botframework-webchat-base": "development",
7782
"@msinternal/botframework-webchat-react-hooks": "development",
@@ -82,9 +87,9 @@
8287
"@msinternal/botframework-webchat-base": "0.0.0-0",
8388
"@msinternal/botframework-webchat-react-hooks": "0.0.0-0",
8489
"@msinternal/botframework-webchat-react-valibot": "0.0.0-0",
85-
"@types/node": "^25.0.3",
90+
"@types/node": "^25.3.3",
8691
"cross-env": "^10.1.0",
87-
"type-fest": "^5.3.1",
92+
"type-fest": "^5.4.4",
8893
"typescript": "^5.9.3"
8994
},
9095
"dependencies": {

packages/api/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@
119119
"botframework-webchat-core": "production"
120120
},
121121
"devDependencies": {
122-
"@babel/core": "^7.28.5",
123-
"@babel/preset-env": "^7.28.5",
122+
"@babel/core": "^7.29.0",
123+
"@babel/preset-env": "^7.29.0",
124124
"@babel/preset-react": "^7.28.5",
125125
"@babel/preset-typescript": "^7.28.5",
126126
"@msinternal/botframework-webchat-api-graph": "0.0.0-0",
@@ -133,30 +133,30 @@
133133
"@msinternal/botframework-webchat-tsconfig": "0.0.0-0",
134134
"@types/dom-speech-recognition": "^0.0.7",
135135
"@types/jest": "^29.5.14",
136-
"@types/node": "^25.0.3",
137-
"@types/react": "^16.14.68",
136+
"@types/node": "^25.3.3",
137+
"@types/react": "^16.14.69",
138138
"babel-plugin-istanbul": "^7.0.1",
139139
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
140-
"core-js": "^3.47.0",
140+
"core-js": "^3.48.0",
141141
"cross-env": "^10.1.0",
142142
"globalize-compiler": "^1.1.1",
143143
"iana-tz-data": "^2019.1.0",
144-
"nodemon": "^3.1.11",
145-
"type-fest": "^5.3.1",
144+
"nodemon": "^3.1.14",
145+
"type-fest": "^5.4.4",
146146
"typescript": "^5.9.3"
147147
},
148148
"dependencies": {
149149
"botframework-webchat-core": "0.0.0-0",
150150
"globalize": "1.7.1",
151-
"iter-fest": "0.3.0",
151+
"iter-fest": "0.3.1",
152152
"math-random": "2.0.1",
153153
"prop-types": "15.8.1",
154154
"react-chain-of-responsibility": "0.4.2",
155155
"react-redux": "7.2.9",
156156
"redux": "5.0.1",
157157
"simple-update-in": "2.2.0",
158158
"use-reduce-memo": "0.1.0",
159-
"use-ref-from": "0.1.0",
159+
"use-ref-from": "0.2.1",
160160
"valibot": "1.2.0"
161161
},
162162
"peerDependencies": {

packages/base/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@
7373
"pinDependencies": {},
7474
"devDependencies": {
7575
"@msinternal/botframework-webchat-tsconfig": "0.0.0-0",
76-
"@types/node": "^25.0.3",
77-
"core-js-pure": "^3.47.0",
76+
"@types/node": "^25.3.3",
77+
"core-js-pure": "^3.48.0",
7878
"cross-env": "^10.1.0",
79-
"type-fest": "^5.3.1",
79+
"type-fest": "^5.4.4",
8080
"typescript": "^5.9.3"
8181
},
8282
"peerDependencies": {

packages/bundle/package.json

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@
143143
"2",
144144
"tsd is complaining about shiki@3 lack of typing for named exports, https://arethetypeswrong.github.io/?p=shiki%403.9.1 says the same thing"
145145
],
146-
"swiper": [
147-
"^8.2.6",
148-
"required by Adaptive Cards but they forget to include in adaptivecards@3.0.2"
149-
],
150146
"uuid": [
151147
"8",
152148
"uuid@9 emit non-ES5 build because of default parameters"
@@ -177,9 +173,9 @@
177173
"botframework-webchat-core": "production"
178174
},
179175
"devDependencies": {
180-
"@babel/core": "^7.28.5",
181-
"@babel/plugin-transform-runtime": "^7.28.5",
182-
"@babel/preset-env": "^7.28.5",
176+
"@babel/core": "^7.29.0",
177+
"@babel/plugin-transform-runtime": "^7.29.0",
178+
"@babel/preset-env": "^7.29.0",
183179
"@babel/preset-react": "^7.28.5",
184180
"@babel/preset-typescript": "^7.28.5",
185181
"@msinternal/adaptivecards": "0.0.0-0",
@@ -200,50 +196,51 @@
200196
"@msinternal/react-dom-umd": "0.0.0-0",
201197
"@msinternal/react-is": "0.0.0-0",
202198
"@msinternal/react-umd": "0.0.0-0",
199+
"@testduet/given-when-then": "^0.1.0",
203200
"@types/dom-speech-recognition": "^0.0.7",
204201
"@types/mdast": "^4.0.4",
205-
"@types/node": "^25.0.3",
206-
"@types/react": "^16.14.68",
202+
"@types/node": "^25.3.3",
203+
"@types/react": "^16.14.69",
207204
"@types/react-dom": "^16.9.25",
208205
"@types/uuid": "^8.3.4",
209206
"babel-plugin-istanbul": "^7.0.1",
210207
"babel-plugin-transform-inline-environment-variables": "^0.4.4",
211208
"cross-env": "^10.1.0",
212-
"esbuild": "^0.27.2",
209+
"esbuild": "^0.27.3",
213210
"micromark-util-types": "^2.0.2",
214-
"read-pkg": "^10.0.0",
211+
"read-pkg": "^10.1.0",
215212
"tsd": "^0.33.0",
216-
"type-fest": "^5.3.1",
213+
"type-fest": "^5.4.4",
217214
"typescript": "^5.9.3"
218215
},
219216
"dependencies": {
220-
"@babel/runtime": "7.28.4",
217+
"@babel/runtime": "7.28.6",
221218
"adaptivecards": "3.0.5",
222219
"botframework-directlinejs": "0.15.8",
223220
"botframework-directlinespeech-sdk": "0.0.0-0",
224221
"botframework-webchat-api": "0.0.0-0",
225222
"botframework-webchat-component": "0.0.0-0",
226223
"botframework-webchat-core": "0.0.0-0",
227224
"classnames": "2.5.1",
228-
"core-js": "3.47.0",
229-
"katex": "0.16.27",
225+
"core-js": "3.48.0",
226+
"katex": "0.16.33",
230227
"math-random": "2.0.1",
231-
"mdast-util-from-markdown": "2.0.2",
228+
"mdast-util-from-markdown": "2.0.3",
232229
"memoize-one": "6.0.0",
233230
"micromark": "4.0.2",
234231
"micromark-extension-gfm": "3.0.0",
235232
"micromark-util-character": "2.1.1",
236233
"micromark-util-sanitize-uri": "2.0.1",
237-
"microsoft-cognitiveservices-speech-sdk": "1.17.0",
234+
"microsoft-cognitiveservices-speech-sdk": "1.48.0",
238235
"prop-types": "15.8.1",
239236
"punycode": "2.3.1",
240-
"sanitize-html": "2.17.0",
237+
"sanitize-html": "2.17.1",
241238
"shiki": "2.5.0",
242239
"url-search-params-polyfill": "8.2.5",
243-
"use-ref-from": "0.1.0",
240+
"use-ref-from": "0.2.1",
244241
"uuid": "8.3.2",
245242
"valibot": "1.2.0",
246-
"web-speech-cognitive-services": "8.1.3",
243+
"web-speech-cognitive-services": "8.1.4",
247244
"whatwg-fetch": "3.6.20"
248245
},
249246
"peerDependencies": {

packages/bundle/src/createCognitiveServicesSpeechServicesPonyfillFactory.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { AudioConfig } from 'microsoft-cognitiveservices-speech-sdk';
33
import { createSpeechServicesPonyfill } from 'web-speech-cognitive-services';
44

55
import createMicrophoneAudioConfigAndAudioContext from './speech/createMicrophoneAudioConfigAndAudioContext';
6+
import removeBearerInAuthorizationToken from './speech/removeBearerInAuthorizationToken';
67
import CognitiveServicesAudioOutputFormat from './types/CognitiveServicesAudioOutputFormat';
78
import CognitiveServicesCredentials from './types/CognitiveServicesCredentials';
89
import CognitiveServicesTextNormalization from './types/CognitiveServicesTextNormalization';
@@ -61,7 +62,7 @@ export default function createCognitiveServicesSpeechServicesPonyfillFactory({
6162
createSpeechServicesPonyfill({
6263
audioConfig,
6364
audioContext,
64-
credentials,
65+
credentials: removeBearerInAuthorizationToken(credentials),
6566
enableTelemetry,
6667
initialSilenceTimeout,
6768
referenceGrammars: referenceGrammarID ? [`luis/${referenceGrammarID}-PRODUCTION`] : [],

packages/bundle/src/speech/createMicrophoneAudioConfigAndAudioContext.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,8 @@ function createMicrophoneAudioConfig(options: MicrophoneAudioInputStreamOptions)
5353
const bufferDurationInMS = options.bufferDurationInMS || DEFAULT_BUFFER_DURATION_IN_MS;
5454

5555
// Related to #4523.
56-
// Pass "true" for microsoft-cognitiveservices-speech-sdk@1.45.0.
57-
// const pcmRecorder = new PcmRecorder(true);
58-
const pcmRecorder = new PcmRecorder();
56+
// Pass "true" as required by microsoft-cognitiveservices-speech-sdk (see #4523).
57+
const pcmRecorder = new PcmRecorder(true);
5958

6059
pcmRecorderWorkletUrl && pcmRecorder.setWorkletUrl(pcmRecorderWorkletUrl);
6160

0 commit comments

Comments
 (0)