Skip to content

Bump web-speech-cognitive-services@8.1.3#5516

Merged
compulim merged 2 commits intomainfrom
bump-web-speech-cognitive-services
Jul 19, 2025
Merged

Bump web-speech-cognitive-services@8.1.3#5516
compulim merged 2 commits intomainfrom
bump-web-speech-cognitive-services

Conversation

@compulim
Copy link
Contributor

@compulim compulim commented Jul 19, 2025

Changelog Entry

Fixed

  • Updated file-based import with .js extension and removed the file extension from build config, by @compulim, in PR #5516

Changed

Description

For create-react-app to work, we should have .js file extension in the import, than adding file extension during bundling.

Without this PR, create-react-app would fail with the following error.

Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
  npx update-browserslist-db@latest
  Why you should do it regularly: https://github.com/browserslist/update-db#readme
Failed to compile.

Module not found: Error: Can't resolve 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents' in '/home/.../node_modules/web-speech-cognitive-services/dist'
Did you mean 'AudioSourceEvents.js'?
BREAKING CHANGE: The request 'microsoft-cognitiveservices-speech-sdk/distrib/lib/src/common/AudioSourceEvents' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.

Design

Specific Changes

  • Bumped web-speech-cognitive-services@8.1.2
  • Updated tsup.config.ts not to include .js file extension
  • Updated imports to include .js file extension
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@compulim compulim marked this pull request as ready for review July 19, 2025 07:54
@compulim compulim merged commit cf546fb into main Jul 19, 2025
28 checks passed
@compulim compulim deleted the bump-web-speech-cognitive-services branch July 19, 2025 19:12
This was referenced Dec 19, 2025
compulim added a commit that referenced this pull request Jan 27, 2026
* Bump web-speech-cognitive-services@8.1.3

* Update PR number
@compulim compulim mentioned this pull request Mar 5, 2026
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants