-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Releases 2.0 #927
Open
afrokick
wants to merge
29
commits into
master
Choose a base branch
from
releases/2.0.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Releases 2.0 #927
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
9d6fd16
init
afrokick 6bfb586
add workflows
afrokick a930635
rename util to Utils
afrokick c8a0db3
Merge pull request #926 from afrokick/refactoring/target-es6
afrokick e4de8dd
separate dist files to esm, cjs and iife
afrokick 12e3a68
simplify import
afrokick fe7243e
Merge pull request #928 from afrokick/features/nodejs-support
afrokick 28a84ae
2.0.0-beta.0
afrokick b58ae5f
update readme
afrokick a578e0b
update example
afrokick 76636b7
update FAQ with empty stream
afrokick 73d72b8
add iOS question
afrokick 15539dc
add Edge to supported browsers
afrokick 27b37cf
clean empty connections
afrokick 59966a2
add 'change quality/codecs' to FAQ
afrokick 3e9f6f7
fix tests for nodejs
afrokick 4c035d3
fix buffered messaged #864
afrokick f08c81d
node 14 for tests
afrokick f524498
maybe fix tests(sigfault)
afrokick be8a5cf
revert Node version to 16 for tests
afrokick 8de0afe
update readme
afrokick d84e10c
2.0.0-beta.1
afrokick 764281b
fix build
afrokick 1294749
2.0.0-beta.2
afrokick 8a3a45d
fix api fetch
afrokick 1a54d1f
2.0.0-beta.3
afrokick 0e1efd0
style: cherry pick prettier config from master
jonasgloning 302b2b2
style: run prettier
jonasgloning e351bd4
tests: switch to wrtc fork
jonasgloning File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Template for commit messages from Prettifier. | ||
# Placeholders are: | ||
# - {{commitSha}}: the SHA of your commit that Prettifier formats | ||
commitMessage: "AutoFormat {{commitSha}}" | ||
|
||
fixByCommit: true | ||
|
||
fixByPullRequest: false | ||
|
||
prettified-message: > | ||
I have adjusted the formatting of this pull request for you. | ||
|
||
To stop seeing this message, please install Prettier on your machine and run | ||
`meteor npm run format` to format your changes before submitting them. | ||
|
||
# Whether to only check branches that have an active pull request. | ||
pulls-only: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Unit tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16.x | ||
cache: "npm" | ||
- run: npm i | ||
- name: Run tsc-check | ||
run: npm run tsc-check | ||
- name: Run tests | ||
run: npm test |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,4 +20,5 @@ npm-debug.log | |
test/output | ||
.tscache | ||
test/public | ||
.vscode/ | ||
.vscode/ | ||
dist |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dist | ||
docs | ||
package-json.lock | ||
|
||
# semantic-release | ||
CHANGELOG.md |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
trailingComma = "all" | ||
semi = true | ||
useTabs = true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,10 +2,100 @@ | |
|
||
All notable changes will be documented in this file. | ||
|
||
## vNEXT | ||
## vNext | ||
|
||
... | ||
|
||
<a name="2.0.0"></a> | ||
|
||
## v2.0.0 (upcoming) | ||
|
||
The main goals of the second version: | ||
|
||
- modernize the code base: use `es6` and latest tools; | ||
- target to the latest browsers API(you can use webrtc adapter to shim old browsers); | ||
- shrink the package size; | ||
- NodeJS support. | ||
|
||
### Breaking changes | ||
|
||
#### Drop ES5 supports | ||
|
||
If you need to support es5, you can recompile the lib from the sources or use the latest version from the v1 branch like `npm i peerjs@1`. | ||
|
||
#### Remove `webrtc-adapter` package from `dependencies` | ||
|
||
The modern browsers mostly works good without any additional libs like webrtc-adapter. | ||
|
||
You can increase cross browsers support by manually add `webrtc-adapter` package to your project: | ||
|
||
`npm install webrtc-adapter` | ||
|
||
Then import it as soon as possible. For example, you have an entry point for your application in the file `index.tsx`. So, lets add the import: | ||
|
||
``` | ||
import 'webrtc-adapter'; // as soon as possible | ||
|
||
// | ||
//... your startup code | ||
// | ||
|
||
``` | ||
|
||
See more: https://github.com/webrtcHacks/adapter | ||
|
||
#### Remove browser detection features from the library. | ||
|
||
The `browser` field was removed from the `util` class | ||
and the `OFFER` packet. | ||
|
||
#### The `main` field of `package.json` now points to the non minified version. | ||
|
||
Today, most projects use bundlers with a minification step. Sometimes, double minification can lead to issues. | ||
|
||
If you want to use the minified version, use it directly from the `dist` folder like: | ||
|
||
``` | ||
import Peer from 'peerjs/dist/peerjs.min.js'; | ||
|
||
... | ||
``` | ||
|
||
#### Remove `dist` folder from git | ||
|
||
Please, try to host the package by yourself. It is more securely and you don't depend on third party. | ||
|
||
In any case, you can use a CDN like `unpkg.com`: | ||
|
||
```html | ||
<script src="https://unpkg.com/[email protected]/dist/peerjs.min.js"></script> | ||
``` | ||
|
||
#### Replace `util.supports` to `Peer.getFeatures()` | ||
|
||
You can check the possible features of WebRTC by static method `Peer.getFeatures()` | ||
before instantiating a `Peer` object. | ||
|
||
#### Use `ESBuild` as bundler. | ||
|
||
Parcel 1 was a good choice years ago, but now esbuild seems like simple and good solution! | ||
|
||
### New | ||
|
||
#### NodeJS support | ||
|
||
Yeah! You can use `peerjs` in NodeJS! | ||
|
||
See details in https://github.com/peers/peerjs/pull/928 | ||
|
||
### Another changes | ||
|
||
- update `devDependencies` | ||
- apply `Prettier` for the code style | ||
- rename `util` to `Utils` | ||
- remove `peerjs` export. | ||
- fix #864 | ||
|
||
<a name="1.3.2"></a> | ||
|
||
## 1.3.2 (2021-03-11) | ||
|
@@ -61,7 +151,7 @@ All notable changes will be documented in this file. | |
## 1.0.3 (2019-08-21) | ||
|
||
- add pingInterval option | ||
|
||
<a name="1.0.2"></a> | ||
|
||
## 1.0.2 (2019-07-20) | ||
|
@@ -97,6 +187,7 @@ Almost all project was refactored!!! | |
- changed: fetch api instead of xhr | ||
|
||
### Features | ||
|
||
- added: heartbeat #502 | ||
|
||
### Bug Fixes | ||
|
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this message should be updated (not using
meteor
or having a script calledformat
).