Covert BrowserDetection to TS#69
Merged
jallamsetty1 merged 9 commits intojitsi:masterfrom Jun 3, 2025
Merged
Conversation
Remove BrowserCapabilities class since lib-jitsi-meet no longer uses it.
saghul
requested changes
Aug 14, 2024
| * the current browser version is unknown. | ||
| */ | ||
| isVersionGreaterThan(version) { | ||
| isVersionGreaterThan(version: number): boolean | undefined { |
Member
There was a problem hiding this comment.
Let's make this return a boolean always. If the version is not available, return false.
| * the current browser version is unknown. | ||
| */ | ||
| isVersionLessThan(version) { | ||
| isVersionLessThan(version: number): boolean | undefined { |
| * A loose-equality operator is used here so that it matches the sub-versions as well. | ||
| */ | ||
| isVersionEqualTo(version) { | ||
| isVersionEqualTo(version: number): boolean | undefined { |
| * the current engine version is unknown. | ||
| */ | ||
| isEngineVersionGreaterThan(version) { | ||
| isEngineVersionGreaterThan(version: number): boolean | undefined { |
| * the current engine version is unknown. | ||
| */ | ||
| isEngineVersionLessThan(version) { | ||
| isEngineVersionLessThan(version: number): boolean | undefined { |
| * A loose-equality operator is used here so that it matches the sub-versions as well. | ||
| */ | ||
| isEngineVersionEqualTo(version) { | ||
| isEngineVersionEqualTo(version: number): boolean | undefined { |
browser-detection/constants.ts
Outdated
| @@ -0,0 +1,36 @@ | |||
|
|
|||
| // TODO: Maybe fix the values to 'Chrome', 'Internet Explorer', etc. Currently | |||
| * Maps the names of the browsers from ua-parser to the internal names defined in | ||
| * ./browsers.js | ||
| */ | ||
| export const PARSER_TO_JITSI_NAME: { [key: string]: Browser } = { |
Member
There was a problem hiding this comment.
How do we parse Chromium engine browsers like Edge or Brave?
Member
Author
There was a problem hiding this comment.
Chromium based browsers like Brave, Edge and Vivaldi are detected as Chrome and Chromium based since they all have the same blink engine. That suffices since we treat them as Chrome functionality wise.
https://github.com/jitsi/js-utils/pull/69/files#diff-a805b39c7a52d0c0d5d8f31b025be8409294f04623d6384493fcbaf498620b18R170
package.json
Outdated
| { | ||
| "name": "@jitsi/js-utils", | ||
| "version": "2.2.1", | ||
| "version": "2.2.2", |
Member
There was a problem hiding this comment.
The auto-publisher ran because you used your master branch. Can you back out the version change?
21bfd52 to
094613a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Remove BrowserCapabilities class since lib-jitsi-meet no longer uses it.