Skip to content

chore: complete removal of ua-parser-js dependency#5007

Open
PascalThuet wants to merge 1 commit intoDash-Industry-Forum:developmentfrom
PascalThuet:chore/remove-ua-parser-js
Open

chore: complete removal of ua-parser-js dependency#5007
PascalThuet wants to merge 1 commit intoDash-Industry-Forum:developmentfrom
PascalThuet:chore/remove-ua-parser-js

Conversation

@PascalThuet
Copy link
Copy Markdown
Contributor

Summary

Completes the work started in #4972, which replaced ua-parser-js in src/ with a lightweight Utils.parseUserAgent() but left the dependency in package.json.

  • Replace UAParser() with CoreUtils.parseUserAgent() in test/functional/src/Utils.js (only remaining active usage)
  • Remove commented-out ua-parser-js imports in test/unit/test/streaming/streaming.utils.Capabilities.js
  • Remove ua-parser-js from package.json dependencies (-31 packages)

Test plan

  • Unit tests pass (npm run test)
  • Functional tests still correctly filter excluded platforms by browser name

🤖 Generated with Claude Code

ua-parser-js was replaced in src/ by a lightweight browser detection in
Dash-Industry-Forum#4972 but the dependency itself was not removed. The only remaining
active usage was in test/functional/src/Utils.js, which now uses
CoreUtils.parseUserAgent() from src/core/Utils.js.

Also removes commented-out ua-parser-js imports in the Capabilities
unit test.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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.

1 participant