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

Reverse pull the upstream peerjs #1

Open
wants to merge 493 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
493 commits
Select commit Hold shift + click to select a range
add542d
chore(deps): lock file maintenance
renovate[bot] Jun 21, 2023
9e8b6e8
chore(deps): lock file maintenance (#1072)
jonasgloning Jun 21, 2023
e3b67a6
Fix MediaStream remote close by using an aux RTCDataChannel (#963)
matallui Jun 22, 2023
0d14685
test(jest): skip broken test until a better solution is found
jonasgloning Jun 22, 2023
0836356
fix(MediaConnection): `close` event is fired on remote Peer
jonasgloning Jun 22, 2023
0fb6179
fix(datachannel): sending order is now preserved correctly (#1038)
jonasgloning Jun 22, 2023
da712f3
chore(deps): update parcel monorepo to v2.9.3
renovate[bot] Jun 25, 2023
ed84829
feat(MediaChannel): Add experimental `willCloseOnRemote` event to Med…
jonasgloning Jul 5, 2023
2f21f2f
chore(deps): update webdriverio monorepo to v8.11.3
renovate[bot] Jul 8, 2023
b804079
chore(deps): update dependency @wdio/cli to v8.12.0
renovate[bot] Jul 10, 2023
486483a
chore(deps): update dependency @swc/core to v1.3.69
renovate[bot] Jul 13, 2023
3f023b7
chore(deps): update dependency @swc/core to v1.3.70
renovate[bot] Jul 18, 2023
b006b64
chore(deps): update dependency @swc/jest to v0.2.27
renovate[bot] Jul 20, 2023
4cc401d
chore(deps): update webdriverio monorepo to v8.13.10
renovate[bot] Jul 24, 2023
d59a2fe
chore(deps): update dependency @swc/core to v1.3.71
renovate[bot] Jul 25, 2023
6b9ed7c
ci: use `package.json` version of prettier
jonasgloning Jul 31, 2023
4cc1c81
test(e2e): refactor e2e tests
jonasgloning Aug 6, 2023
b6d3fdd
refactor: Custom `DataConnection` classes can be plugged-in at runtime
jonasgloning Aug 6, 2023
4b59387
style: run prettier
jonasgloning Aug 6, 2023
5abd76a
test(e2e): retry flaky tests
jonasgloning Aug 6, 2023
42dac38
chore(deps): update dependency @swc/core to v1.3.74
renovate[bot] Aug 6, 2023
4b14f3c
chore(deps): update webdriverio monorepo
renovate[bot] Aug 6, 2023
de1724a
test(e2e): use random local-identifier
jonasgloning Aug 6, 2023
e5d5520
style: run prettier
jonasgloning Aug 6, 2023
2961598
test(e2e): retry whole spec files
jonasgloning Aug 6, 2023
dde08f0
build: only for tested browsers
jonasgloning Aug 7, 2023
573d7d7
build: `parcel-transformer-tsc-sourcemaps` is no longer necessary
jonasgloning Aug 7, 2023
a739882
Merge branch 'renovate/swc-monorepo' into fix-e2e-tests
jonasgloning Aug 7, 2023
f7f6a3b
Merge branch 'renovate/webdriverio-monorepo' into fix-e2e-tests
jonasgloning Aug 7, 2023
124817d
test(e2e): fix e2e tests (#1116)
jonasgloning Aug 7, 2023
b236e35
test(e2e): disable test parallelism
jonasgloning Aug 7, 2023
5395d48
chore(deps): update dependency @types/jasmine to v4.3.5
renovate[bot] Aug 7, 2023
f7fc2e7
chore(deps): update dependency wdio-geckodriver-service to v5.0.2
renovate[bot] Aug 7, 2023
5ecfa97
chore(deps): update jest monorepo to v29.6.2
renovate[bot] Aug 7, 2023
d37fc08
chore(deps): update dependency wdio-geckodriver-service to v5.0.2 (#1…
jonasgloning Aug 7, 2023
cc4cdac
chore(deps): update dependency @types/jasmine to v4.3.5 (#1096)
jonasgloning Aug 7, 2023
9222890
chore(deps): update jest monorepo to v29.6.2 (#1099)
jonasgloning Aug 7, 2023
60b845f
chore(deps): lock file maintenance
renovate[bot] Aug 7, 2023
d17a6a9
chore(deps): lock file maintenance (#1098)
jonasgloning Aug 7, 2023
a11fc7e
chore(deps): update paambaati/codeclimate-action action to v5
renovate[bot] Aug 7, 2023
bae829f
chore(deps): update paambaati/codeclimate-action action to v5 (#1119)
jonasgloning Aug 7, 2023
8d6073d
chore(deps): update actions/checkout action to v3
renovate[bot] Aug 7, 2023
e3c0af4
chore(deps): update actions/checkout action to v3 (#1117)
jonasgloning Aug 7, 2023
12f6ae2
chore(deps): update dependency prettier to v3
renovate[bot] Aug 7, 2023
c50e5cf
style: run prettier
jonasgloning Aug 7, 2023
64f962b
chore(deps): update dependency typescript to v5
renovate[bot] Aug 7, 2023
f364054
chore(deps): update dependency @swc/core to v1.3.75
renovate[bot] Aug 8, 2023
fcffbf2
feat: MsgPack/Cbor serialization
jonasgloning Aug 8, 2023
ffe47d8
[CodeFactor] Apply fixes
code-factor Aug 8, 2023
d1d7a88
add browserstack
afrokick Aug 8, 2023
5edae9c
add browserstack (#1121)
afrokick Aug 8, 2023
51baaff
style: run linter
jonasgloning Aug 8, 2023
e8694a0
docs(readme): update browser support
jonasgloning Jul 31, 2023
e98f04a
refactor: export `CborPeer` and `MsgPackPeer`
jonasgloning Aug 8, 2023
aefaefd
Merge branch 'master' into cbor-msgpack
jonasgloning Aug 8, 2023
d91f883
chore(deps): update dependency @swc/core to v1.3.76
renovate[bot] Aug 10, 2023
7358f1e
chore(deps): update dependency @swc/jest to v0.2.29
renovate[bot] Aug 12, 2023
99bf299
chore(deps): update webdriverio monorepo to v8.14.6
renovate[bot] Aug 14, 2023
3ef751c
chore(deps): lock file maintenance
renovate[bot] Aug 15, 2023
10684c0
chore(deps): update webdriverio monorepo to v8.15.0
renovate[bot] Aug 15, 2023
0fd2d7b
chore(deps): update dependency prettier to v3.0.2
renovate[bot] Aug 15, 2023
476cbf4
chore(deps): update dependency @swc/core to v1.3.77
renovate[bot] Aug 16, 2023
52eff66
chore(deps): update webdriverio monorepo to v8.15.4
renovate[bot] Aug 16, 2023
8f1d60a
chore(deps): update dependency @swc/core to v1.3.78
renovate[bot] Aug 17, 2023
59ace93
chore(deps): lock file maintenance
renovate[bot] Aug 21, 2023
fb622f2
chore(deps): update dependency jest to v29.6.3
renovate[bot] Aug 21, 2023
27128fa
chore(deps): update dependency jest-environment-jsdom to v29.6.3
renovate[bot] Aug 21, 2023
488a416
chore(deps): update dependency semantic-release to v21
renovate[bot] Aug 22, 2023
4895dcd
chore(deps): update webdriverio monorepo to v8.15.6
renovate[bot] Aug 22, 2023
7ba269c
chore(deps): update dependency semantic-release to v21.1.0
renovate[bot] Aug 24, 2023
1005bdf
test(e2e): add some tests for common `Peer` errors
jonasgloning Aug 24, 2023
c300d19
test(e2e): add some tests for common `Peer` errors (#1123)
jonasgloning Aug 24, 2023
a5a5cfc
chore(deps): update dependency jest-environment-jsdom to v29.6.4
renovate[bot] Aug 24, 2023
65e91c9
chore(deps): update dependency jest to v29.6.4
renovate[bot] Aug 24, 2023
51bd860
test(e2e): add test for "ID-TAKEN" twice in a row
WofWca Aug 24, 2023
97160bf
chore(deps): update dependency semantic-release to v21.1.1
renovate[bot] Aug 24, 2023
1f755a5
test(e2e): test it 10 times, to get a consistent result
jonasgloning Aug 24, 2023
769a211
chore(deps): update dependency typescript to v5.2.2
renovate[bot] Aug 24, 2023
fa7dc76
chore(deps): update dependency @swc/core to v1.3.79
renovate[bot] Aug 25, 2023
0d664e0
test(e2e): add test for "ID-TAKEN" twice in a row (#1124)
jonasgloning Aug 25, 2023
a17bbae
chore(deps): update dependency @swc/core to v1.3.80
renovate[bot] Aug 25, 2023
633cd84
chore(deps): update webdriverio monorepo
renovate[bot] Aug 26, 2023
ce14c27
chore(deps): update webdriverio monorepo to v8.15.9
renovate[bot] Aug 27, 2023
9a0c9ef
chore(deps): lock file maintenance
renovate[bot] Aug 28, 2023
64c85fc
Merge branch 'master' into cbor-msgpack
jonasgloning Aug 28, 2023
271455d
chore(deps): update dependency prettier to v3.0.3
renovate[bot] Aug 29, 2023
4367256
feat: MsgPack/Cbor serialization (#1120)
jonasgloning Aug 30, 2023
8058ac1
chore(deps): update webdriverio monorepo to v8.15.10
renovate[bot] Aug 30, 2023
99fd24f
chore(deps): update dependency @swc/core to v1.3.81
renovate[bot] Aug 30, 2023
c1f04ec
fix(deps): update dependency cbor-x to v1.5.4
renovate[bot] Aug 30, 2023
4320aed
chore(deps): update dependency @swc/core to v1.3.82
renovate[bot] Sep 1, 2023
880c486
chore(deps): update webdriverio monorepo to v8.16.0
renovate[bot] Sep 2, 2023
d43efa7
refactor: optimize imports
jonasgloning Sep 2, 2023
ad3a0cb
feat: `PeerError` from connections
jonasgloning Sep 2, 2023
debe7a6
feat: `.type` property on `Error`s emitted from connections (#1126)
jonasgloning Sep 2, 2023
cf4c6a7
chore: remove `browserstack.err`
jonasgloning Sep 2, 2023
ee8fce1
chore(deps): update webdriverio monorepo to v8.16.2
renovate[bot] Sep 2, 2023
7091f03
refactor: change `type SerializerMapping` to `interface`
jonasgloning Sep 3, 2023
d89099a
chore: release (#1130)
jonasgloning Sep 3, 2023
59cea73
chore(release): 1.5.0 [skip ci]
semantic-release-bot Sep 3, 2023
021960c
chore(deps): update webdriverio monorepo to v8.16.3
renovate[bot] Sep 3, 2023
d7371cd
chore(deps): lock file maintenance
renovate[bot] Sep 4, 2023
7f3e47f
chore(deps): update webdriverio monorepo to v8.16.4
renovate[bot] Sep 5, 2023
99a6b11
chore(deps): update dependency mock-socket to v9.3.0
renovate[bot] Sep 5, 2023
154954a
chore(deps): update dependency @swc/core to v1.3.83
renovate[bot] Sep 7, 2023
895a703
chore(deps): update webdriverio monorepo to v8.16.5
renovate[bot] Sep 7, 2023
86e3caa
chore(deps): update webdriverio monorepo to v8.16.6
renovate[bot] Sep 9, 2023
49c3e1d
chore(deps): lock file maintenance
renovate[bot] Sep 11, 2023
ef83e4c
chore(deps): update dependency mock-socket to v9.3.1
renovate[bot] Sep 11, 2023
bd8bc8f
chore(deps): update dependency @swc/core to v1.3.84
renovate[bot] Sep 11, 2023
734ddb1
chore(deps): update jest monorepo to v29.7.0
renovate[bot] Sep 12, 2023
4d60960
chore(deps): update webdriverio monorepo to v8.16.7
renovate[bot] Sep 13, 2023
29f86ca
chore(deps): update dependency @swc/core to v1.3.85
renovate[bot] Sep 15, 2023
9624d7e
chore(deps): update dependency @types/jasmine to v4.3.6
renovate[bot] Sep 15, 2023
f87e2c2
chore(deps): update webdriverio monorepo to v8.16.10
renovate[bot] Sep 16, 2023
b981f4e
chore(deps): update dependency semantic-release to v21.1.2
renovate[bot] Sep 16, 2023
bddb8ec
chore(deps): lock file maintenance
renovate[bot] Sep 18, 2023
3d06d48
chore(deps): lock file maintenance
renovate[bot] Sep 18, 2023
8b8aa6e
chore(deps): update webdriverio monorepo to v8.16.11
renovate[bot] Sep 18, 2023
2440c60
chore(deps): update dependency @swc/core to v1.3.86
renovate[bot] Sep 19, 2023
348afaa
chore(deps): update webdriverio monorepo to v8.16.12
renovate[bot] Sep 22, 2023
95bb0f7
fix: convert `Blob`s to `ArrayBuffer`s during `.send()`
jonasgloning Sep 23, 2023
094f849
fix: convert `Blob`s to `ArrayBuffer`s during `.send()` (#1142)
jonasgloning Sep 23, 2023
b0deea1
chore(release): 1.5.1 [skip ci]
semantic-release-bot Sep 23, 2023
47d4f5e
chore(deps): update dependency @swc/core to v1.3.87
renovate[bot] Sep 23, 2023
3218dbf
chore(deps): update dependency @swc/core to v1.3.88
renovate[bot] Sep 24, 2023
ec06997
chore(deps): update dependency @wdio/browserstack-service to v8.16.13
renovate[bot] Sep 25, 2023
083956a
chore(deps): lock file maintenance
renovate[bot] Sep 25, 2023
4f70363
chore(deps): update dependency @swc/core to v1.3.89
renovate[bot] Sep 25, 2023
0ea5bc5
chore(deps): update webdriverio monorepo to v8.16.15
renovate[bot] Sep 26, 2023
a6c6fb3
chore(deps): update dependency @swc/core to v1.3.90
renovate[bot] Sep 27, 2023
cc8c9ac
chore(deps): update webdriverio monorepo to v8.16.17
renovate[bot] Sep 29, 2023
30e0db1
chore(deps): update dependency @swc/core to v1.3.91
renovate[bot] Oct 1, 2023
f7c20af
chore(deps): update webdriverio monorepo to v8.16.18
renovate[bot] Oct 1, 2023
0d70217
Merge branch 'stable'
jonasgloning Oct 3, 2023
f8b9ba2
chore(deps): update webdriverio monorepo to v8.16.19
renovate[bot] Oct 4, 2023
58e392f
chore(deps): update webdriverio monorepo to v8.16.20
renovate[bot] Oct 4, 2023
2d5d59f
chore(deps): update dependency @wdio/types to v8.16.21
renovate[bot] Oct 4, 2023
e8f1d9e
chore(deps): update dependency @types/jasmine to v4.6.0
renovate[bot] Oct 5, 2023
740dbff
chore(deps): update dependency @swc/core to v1.3.92
renovate[bot] Oct 5, 2023
e06e98c
chore(deps): update webdriverio monorepo to v8.16.22
renovate[bot] Oct 6, 2023
b221eb1
chore(deps): update webdriverio monorepo to v8.17.0
renovate[bot] Oct 9, 2023
e8a3c07
chore(deps): update parcel monorepo to v2.10.0
renovate[bot] Oct 11, 2023
c0c8390
chore(deps): update webdriverio monorepo to v8.18.0
renovate[bot] Oct 12, 2023
0315eae
chore(deps): update dependency @wdio/spec-reporter to v8.18.1
renovate[bot] Oct 13, 2023
5f45994
chore(deps): update dependency @swc/core to v1.3.93
renovate[bot] Oct 13, 2023
a63d66b
chore(deps): update webdriverio monorepo to v8.18.2
renovate[bot] Oct 13, 2023
fa6193f
chore(deps): lock file maintenance
renovate[bot] Oct 16, 2023
5f5c6f2
chore(deps): update webdriverio monorepo to v8.19.0
renovate[bot] Oct 17, 2023
4d255d9
chore(deps): update dependency @types/jasmine to v4.6.1
renovate[bot] Oct 18, 2023
3da47a3
chore(deps): update webdriverio monorepo
renovate[bot] Oct 20, 2023
bf77399
chore(deps): update dependency @swc/core to v1.3.94
renovate[bot] Oct 21, 2023
2da49aa
chore(deps): lock file maintenance
renovate[bot] Oct 23, 2023
53e4c6d
chore(deps): update dependency @swc/core to v1.3.95
renovate[bot] Oct 24, 2023
8b62b39
chore(deps): update webdriverio monorepo to v8.20.3
renovate[bot] Oct 24, 2023
0aa80d1
chore(deps): update parcel monorepo to v2.10.1
renovate[bot] Oct 24, 2023
b3f0e0f
chore(deps): update webdriverio monorepo to v8.20.5
renovate[bot] Oct 25, 2023
649b520
chore(deps): lock file maintenance
renovate[bot] Oct 30, 2023
d53d037
chore(deps): update parcel monorepo to v2.10.2
renovate[bot] Nov 2, 2023
2f36d36
chore(deps): update webdriverio monorepo to v8.21.0
renovate[bot] Nov 2, 2023
74ce5ff
chore(deps): update dependency @swc/core to v1.3.96
renovate[bot] Nov 5, 2023
6a3333c
chore(deps): lock file maintenance
renovate[bot] Nov 6, 2023
9ab0968
chore(deps): update dependency @types/jasmine to v4.6.2
renovate[bot] Nov 7, 2023
ebfa546
chore(deps): update webdriverio monorepo to v8.22.0
renovate[bot] Nov 8, 2023
f069fed
chore(deps): update webdriverio monorepo to v8.22.1
renovate[bot] Nov 8, 2023
b9b9d4d
chore(deps): lock file maintenance
renovate[bot] Nov 13, 2023
3e07915
chore(deps): update dependency prettier to v3.1.0
renovate[bot] Nov 13, 2023
ab547a9
chore(deps): update dependency typescript to v5.3.2
renovate[bot] Nov 20, 2023
d5f2c91
chore(deps): update webdriverio monorepo
renovate[bot] Nov 21, 2023
f938880
chore(deps): update dependency @types/jasmine to v4.6.3
renovate[bot] Nov 21, 2023
addeca9
chore(deps): update dependency @swc/core to v1.3.99
renovate[bot] Nov 21, 2023
cdbdcd1
chore(deps): update parcel monorepo to v2.10.3
renovate[bot] Nov 21, 2023
5f99f90
chore(deps): update webdriverio monorepo to v8.23.4
renovate[bot] Nov 21, 2023
9c9f309
chore(deps): update dependency @types/jasmine to v4.6.4
renovate[bot] Nov 22, 2023
b63da95
chore(deps): update webdriverio monorepo to v8.23.5
renovate[bot] Nov 22, 2023
d5db8ec
chore(deps): update webdriverio monorepo to v8.24.0
renovate[bot] Nov 23, 2023
281a7a4
chore(deps): update webdriverio monorepo to v8.24.1
renovate[bot] Nov 23, 2023
5b82a48
chore(deps): update webdriverio monorepo to v8.24.2
renovate[bot] Nov 27, 2023
6638de3
chore(deps): update webdriverio monorepo to v8.24.3
renovate[bot] Nov 27, 2023
bb1c3dc
chore(deps): update webdriverio monorepo to v8.24.5
renovate[bot] Nov 29, 2023
59c0da8
chore(deps): update dependency @swc/core to v1.3.100
renovate[bot] Nov 30, 2023
ee531bd
chore(deps): update webdriverio monorepo to v8.24.6
renovate[bot] Nov 30, 2023
7956dd6
fix: support Blobs nested in objects
jonasgloning Dec 3, 2023
f40c311
chore: pin cbor
jonasgloning Dec 3, 2023
0857e05
Merge branch 'binarypack2.1'
jonasgloning Dec 3, 2023
9298952
test: use Github Actions concurrency group
jonasgloning Dec 3, 2023
c4455b0
chore(deps): lock file maintenance
renovate[bot] Dec 3, 2023
09f6c9b
chore(deps): lock file maintenance (#1158)
jonasgloning Dec 3, 2023
7d99f70
chore(deps): update actions/setup-node action to v4
renovate[bot] Dec 3, 2023
42a15d1
chore(deps): update actions/setup-node action to v4 (#1170)
jonasgloning Dec 4, 2023
1bf4006
chore(release): 1.5.2 [skip ci]
semantic-release-bot Dec 5, 2023
2d62f19
chore(deps): update webdriverio monorepo
renovate[bot] Dec 7, 2023
79354eb
chore(deps): update dependency @wdio/cli to v8.24.16
renovate[bot] Dec 7, 2023
d816e80
chore(deps): update dependency ts-node to v10.9.2
renovate[bot] Dec 8, 2023
2fe28fa
chore(deps): update webdriverio monorepo
renovate[bot] Dec 28, 2023
14afe10
chore(deps): lock file maintenance
renovate[bot] Dec 28, 2023
44fa820
chore(deps): update actions/checkout action to v4
renovate[bot] Jan 4, 2024
143b400
chore(deps): update actions/checkout action to v4 (#1169)
jonasgloning Jan 4, 2024
ceccc58
chore(deps): lock file maintenance
renovate[bot] Jan 4, 2024
2b24194
chore(deps): update parcel monorepo to v2.11.0
renovate[bot] Jan 4, 2024
085c4d1
chore(deps): update webdriverio monorepo
renovate[bot] Jan 20, 2024
7e6c1d0
chore(deps): update swc monorepo
renovate[bot] Feb 1, 2024
5e5dc14
chore(deps): update dependency prettier to v3.2.5
renovate[bot] Feb 4, 2024
0361654
chore(deps): lock file maintenance
renovate[bot] Feb 4, 2024
9770246
chore(deps): update swc monorepo
renovate[bot] Feb 5, 2024
39137c2
chore(deps): update webdriverio monorepo to v8.31.1
renovate[bot] Feb 9, 2024
3aa7666
chore(deps): lock file maintenance
renovate[bot] Feb 9, 2024
0d799c2
chore: update community link and add discord badge
psanders Feb 27, 2024
947676c
Update community link and add discord badge (#1240)
psanders Feb 27, 2024
d8b6c8c
chore: fix link to discord channel
psanders Feb 27, 2024
50592b1
chore: fix link to discord channel (#1241)
psanders Feb 27, 2024
e1ee5cd
chore(deps): lock file maintenance
renovate[bot] Feb 27, 2024
3e77bf0
chore: fix link to the discord community
psanders Mar 2, 2024
708c55c
chore: fix link to the discord community (#1244)
psanders Mar 2, 2024
7841e7b
chore(deps): update parcel monorepo to v2.12.0
renovate[bot] Mar 2, 2024
2c142ee
chore: fix typo
soonsouth Mar 15, 2024
98ee8da
chore: close `img` tag in `README`
jonasgloning Mar 9, 2024
ad798d2
chore(deps): update dependency typescript to v5.4.2
renovate[bot] Mar 16, 2024
9b7cf22
chore(deps): update webdriverio monorepo
renovate[bot] Mar 20, 2024
1a5bbc5
chore(deps): update dependency @swc/core to v1.4.17
renovate[bot] Apr 27, 2024
d2aff36
test(e2e): Bypass Cloudflare's WAF via API key
jonasgloning Apr 27, 2024
3fb31b3
fix: remove need for `unsafe-eval`
jonasgloning Mar 9, 2024
4b7a74d
fix: navigator is not defined. (#1202)
thePeeyush May 11, 2024
2c2b43a
style: run prettier
jonasgloning May 11, 2024
34e9c5f
chore(release): 1.5.3 [skip ci]
semantic-release-bot May 11, 2024
5536abf
fix(deps): update dependency webrtc-adapter to v9 (#1266)
renovate[bot] May 11, 2024
27787e6
chore(deps): update github/codeql-action action to v3 (#1264)
renovate[bot] May 11, 2024
572f6dc
chore(deps): update dependency typescript to v5.4.5 (#1255)
renovate[bot] May 11, 2024
e30662c
chore(deps): update paambaati/codeclimate-action action to v6 (#1265)
renovate[bot] May 11, 2024
76bf9cd
chore(deps): update crazy-max/ghaction-import-gpg action to v6 (#1175)
renovate[bot] May 11, 2024
badc9e8
fix: remove CBOR
jonasgloning May 14, 2024
867b1f7
chore(release): 1.5.4 [skip ci]
semantic-release-bot May 14, 2024
3963b8d
chore(deps): update dependency @swc/core to v1.5.7
renovate[bot] May 15, 2024
73601e4
Merge branch 'stable'
jonasgloning May 15, 2024
91bdf58
chore(deps): update webdriverio monorepo to v8.36.1
renovate[bot] May 15, 2024
4ede5c7
chore(e2e): unblock `webdriverio@8.36` and above.
jonasgloning May 15, 2024
52a7d11
chore(deps): update dependency semantic-release to v23
renovate[bot] May 16, 2024
6bfc320
chore(deps): lock file maintenance
renovate[bot] May 16, 2024
bc478ee
chore(deps): update dependency @swc/core to v1.5.25
renovate[bot] Jun 5, 2024
da595c6
chore(deps): update dependency prettier to v3.3.1
renovate[bot] Jun 5, 2024
932aec2
chore(deps): lock file maintenance
renovate[bot] Jun 5, 2024
39eb71f
chore(deps): update dependency @swc/core to v1.5.27
renovate[bot] Jun 10, 2024
f277722
chore(deps): update dependency prettier to v3.3.2
renovate[bot] Jun 11, 2024
4e59f8b
chore(deps): update dependency @swc/core to v1.6.12
renovate[bot] Jul 6, 2024
5287e5a
chore(deps): update dependency @swc/core to v1.7.0
renovate[bot] Jul 18, 2024
3722988
chore(deps): update dependency typescript to v5.5.4
renovate[bot] Jul 23, 2024
c298a64
chore(deps): update webdriverio monorepo
renovate[bot] Sep 1, 2024
ea67f68
chore(deps): update dependency prettier to v3.3.3
renovate[bot] Sep 1, 2024
a753e1d
chore(deps): update dependency @swc/core to v1.7.28
renovate[bot] Sep 24, 2024
c073252
chore(deps): update parcel monorepo to v2.13.1 (#1309)
renovate[bot] Nov 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions e2e/peer/id-taken.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,37 @@ <h1>ID-TAKEN</h1>
const messages = document.getElementById("messages");
const errorMessage = document.getElementById("error-message");

new Peer()
// Peer A should be created without an error
const peerA = new Peer()
.once(
"error",
(error) => void (errorMessage.textContent = JSON.stringify(error)),
(err) => (errorMessage.textContent += JSON.stringify(err)),
)
.once("open", (id) =>
new Peer(id).once(
"error",
(error) => void (messages.textContent = JSON.stringify(error)),
),
);
.once("open", (id) => {
// Create 10 new `Peer`s that will try to steel A's id
let peers_try_to_take = Array.from(
{ length: 10 },
(_, i) =>
new Promise((resolve, reject) =>
new Peer(id)
.once("open", () =>
reject(`Peer ${i} failed! Connection got established.`),
)
.once("error", (error) => {
if (error.type === "unavailable-id") {
resolve(`ID already taken. (${i})`);
} else {
reject(error);
}
}),
),
);
Promise.all(peers_try_to_take)
.then(() => (messages.textContent = "No ID takeover"))
.catch(
(error) => (errorMessage.textContent += JSON.stringify(error)),
);
});
</script>
</body>
</html>
2 changes: 1 addition & 1 deletion e2e/peer/peer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { browser, expect } from "@wdio/globals";
describe("Peer", () => {
it("should emit an error, when the ID is already taken", async () => {
await P.open("id-taken");
await P.waitForMessage('{"type":"unavailable-id"}');
await P.waitForMessage("No ID takeover");
expect(await P.errorMessage.getText()).toBe("");
});
it("should emit an error, when the server is unavailable", async () => {
Expand Down