Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust supported browser versions #1112

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,14 @@ peer.on("call", (call) => {
npm test
```

## Browsers support
## Browser support

| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](http://godban.github.io/browsers-support-badges/)<br/>Safari |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| last 4 versions | last 4 versions | 12.1+ |
| 80+ | 81+ | 14+ |

## Safari

1. Safari supports only string data when sending via DataConnection. Use JSON serialization type if you want to communicate with Safari. By default, DataConnection uses Binary serialization type.
We test PeerJS against these versions of Chrome, Firefox, and Safari to ensure compatibility.
It may work in other and older browsers, but we don't officially support them.

## FAQ

Expand Down
2 changes: 1 addition & 1 deletion e2e/wdio.bstack.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export const config: WebdriverIO.Config = {
],
capabilities: [
{
browserName: "Edge",
browserName: "Chrome",
"bstack:options": {
os: "Windows",
osVersion: "11",
Expand Down
9 changes: 6 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
"outputFormat": "global",
"optimize": true,
"engines": {
"browsers": "cover 99%, not dead"
"browsers": "safari >= 14 or firefox >= 80 or chrome >= 81"
},
"source": "lib/global.ts"
},
Expand All @@ -144,7 +144,7 @@
"outputFormat": "global",
"optimize": false,
"engines": {
"browsers": "cover 99%, not dead"
"browsers": "safari >= 14 or firefox >= 80 or chrome >= 81"
},
"source": "lib/global.ts"
}
Expand Down Expand Up @@ -194,7 +194,6 @@
"wdio-geckodriver-service": "^5.0.1"
},
"dependencies": {
"@swc/helpers": "^0.5.0",
"eventemitter3": "^4.0.7",
"peerjs-js-binarypack": "^2.0.0",
"webrtc-adapter": "^8.0.0"
Expand Down