Skip to content

Commit

Permalink
Merge branch 'hotfix/2021.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Ito committed Feb 2, 2022
2 parents edb8114 + 280553b commit b3c3b08
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 40 deletions.
6 changes: 6 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@
- FIX
- バグ修正

## 2021.2.2
- [FIX] fflate package のバージョンを 0.7.1 から 0.7.3 に更新する
- 0.7.3 https://github.com/101arrowz/fflate/blob/master/CHANGELOG.md#073
- 0.7.2 https://github.com/101arrowz/fflate/blob/master/CHANGELOG.md#072
- @yuitowest

## 2021.2.1
- [FIX] type redirect 時のシグナリングで接続エラーになった場合、例外が発火しなかった問題を修正する
- @yuitowest
Expand Down
24 changes: 11 additions & 13 deletions dist/sora.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* sora-js-sdk
* WebRTC SFU Sora JavaScript SDK
* @version: 2021.2.1
* @version: 2021.2.2
* @author: Shiguredo Inc.
* @license: Apache-2.0
**/
Expand Down Expand Up @@ -828,8 +828,10 @@
// u16 "map": index -> # of codes with bit length = index
var l = new u16(mb);
// length of cd must be 288 (total # of codes)
for (; i < s; ++i)
++l[cd[i] - 1];
for (; i < s; ++i) {
if (cd[i])
++l[cd[i] - 1];
}
// u16 "map": index -> minimum code for bit length = index
var le = new u16(mb);
for (i = 0; i < mb; ++i) {
Expand Down Expand Up @@ -915,7 +917,7 @@
if (e == null || e > v.length)
e = v.length;
// can't use .constructor in case user-supplied
var n = new (v instanceof u16 ? u16 : v instanceof u32 ? u32 : u8)(e - s);
var n = new (v.BYTES_PER_ELEMENT == 2 ? u16 : v.BYTES_PER_ELEMENT == 4 ? u32 : u8)(e - s);
n.set(v.subarray(s, e));
return n;
};
Expand Down Expand Up @@ -1363,15 +1365,11 @@
for (var i = 0; i <= s; i += 65535) {
// end
var e = i + 65535;
if (e < s) {
// write full block
pos = wfblk(w, pos, dat.subarray(i, e));
}
else {
if (e >= s) {
// write final block
w[i] = lst;
pos = wfblk(w, pos, dat.subarray(i, s));
w[pos >> 3] = lst;
}
pos = wfblk(w, pos + 1, dat.subarray(i, e));
}
}
else {
Expand Down Expand Up @@ -1635,7 +1633,7 @@
}
const message = {
type: "connect",
sora_client: "Sora JavaScript SDK 2021.2.1",
sora_client: "Sora JavaScript SDK 2021.2.2",
environment: window.navigator.userAgent,
role: role,
channel_id: channelId,
Expand Down Expand Up @@ -4378,7 +4376,7 @@
* @public
*/
version: function () {
return "2021.2.1";
return "2021.2.2";
},
/**
* WebRTC のユーティリティ関数群
Expand Down
2 changes: 1 addition & 1 deletion dist/sora.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/sora.min.js.map

Large diffs are not rendered by default.

24 changes: 11 additions & 13 deletions dist/sora.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* sora-js-sdk
* WebRTC SFU Sora JavaScript SDK
* @version: 2021.2.1
* @version: 2021.2.2
* @author: Shiguredo Inc.
* @license: Apache-2.0
**/
Expand Down Expand Up @@ -822,8 +822,10 @@ var hMap = (function (cd, mb, r) {
// u16 "map": index -> # of codes with bit length = index
var l = new u16(mb);
// length of cd must be 288 (total # of codes)
for (; i < s; ++i)
++l[cd[i] - 1];
for (; i < s; ++i) {
if (cd[i])
++l[cd[i] - 1];
}
// u16 "map": index -> minimum code for bit length = index
var le = new u16(mb);
for (i = 0; i < mb; ++i) {
Expand Down Expand Up @@ -909,7 +911,7 @@ var slc = function (v, s, e) {
if (e == null || e > v.length)
e = v.length;
// can't use .constructor in case user-supplied
var n = new (v instanceof u16 ? u16 : v instanceof u32 ? u32 : u8)(e - s);
var n = new (v.BYTES_PER_ELEMENT == 2 ? u16 : v.BYTES_PER_ELEMENT == 4 ? u32 : u8)(e - s);
n.set(v.subarray(s, e));
return n;
};
Expand Down Expand Up @@ -1357,15 +1359,11 @@ var dflt = function (dat, lvl, plvl, pre, post, lst) {
for (var i = 0; i <= s; i += 65535) {
// end
var e = i + 65535;
if (e < s) {
// write full block
pos = wfblk(w, pos, dat.subarray(i, e));
}
else {
if (e >= s) {
// write final block
w[i] = lst;
pos = wfblk(w, pos, dat.subarray(i, s));
w[pos >> 3] = lst;
}
pos = wfblk(w, pos + 1, dat.subarray(i, e));
}
}
else {
Expand Down Expand Up @@ -1629,7 +1627,7 @@ function createSignalingMessage(offerSDP, role, channelId, metadata, options, re
}
const message = {
type: "connect",
sora_client: "Sora JavaScript SDK 2021.2.1",
sora_client: "Sora JavaScript SDK 2021.2.2",
environment: window.navigator.userAgent,
role: role,
channel_id: channelId,
Expand Down Expand Up @@ -4372,7 +4370,7 @@ var sora = {
* @public
*/
version: function () {
return "2021.2.1";
return "2021.2.2";
},
/**
* WebRTC のユーティリティ関数群
Expand Down
20 changes: 10 additions & 10 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sora-js-sdk",
"version": "2021.2.1",
"version": "2021.2.2",
"description": "WebRTC SFU Sora JavaScript SDK",
"main": "dist/sora.min.js",
"module": "dist/sora.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
},
"dependencies": {
"@sora/e2ee": "^2021.1.0",
"fflate": "^0.7.1",
"fflate": "^0.7.3",
"rollup-plugin-terser": "^7.0.2"
}
}

0 comments on commit b3c3b08

Please sign in to comment.