@soundworks/core 5.1.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/package.json +1 -1
- package/src/client/ClientSocket.js +9 -1
- package/src/common/version.js +1 -1
- package/types/common/version.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## v5.1.1 - 2025-04-28
|
|
2
|
+
|
|
3
|
+
- Hotfix: run behind https proxy
|
|
4
|
+
|
|
5
|
+
## v5.1.0 - 2025-02-19
|
|
6
|
+
|
|
7
|
+
- Feat: add SharedStateCollection reduce
|
|
8
|
+
|
|
1
9
|
## v5.0.3 - 2025-02-13
|
|
2
10
|
|
|
3
11
|
- Fix: unexpected error when getting description of shared state class with required parameter
|
package/package.json
CHANGED
|
@@ -61,13 +61,21 @@ class ClientSocket {
|
|
|
61
61
|
path = `${this.#config.env.baseUrl}/${path}`;
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
const protocol = this.#config.env.useHttps ? 'wss:' : 'ws:';
|
|
65
64
|
const port = this.#config.env.port;
|
|
65
|
+
let protocol = this.#config.env.useHttps ? 'wss:' : 'ws:';
|
|
66
66
|
let serverAddress;
|
|
67
67
|
let webSocketOptions;
|
|
68
68
|
|
|
69
69
|
if (isBrowser()) {
|
|
70
70
|
const hostname = window.location.hostname;
|
|
71
|
+
// ## Hotfix - 20250428
|
|
72
|
+
// when running behind an https proxy (e.g. nginx) `useHttps` can be false
|
|
73
|
+
// but we need to open the socket in secure protocol
|
|
74
|
+
// This tends to confirm that we need more granularity with this config
|
|
75
|
+
// stuff, there are too much weird edge cases to handle
|
|
76
|
+
if (this.#config.env.useHttps === false && window.location.protocol === 'https:') {
|
|
77
|
+
protocol = 'wss:';
|
|
78
|
+
}
|
|
71
79
|
|
|
72
80
|
if (this.#config.env.serverAddress === '') {
|
|
73
81
|
serverAddress = hostname;
|
package/src/common/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// [WARNING] This file is generated, do not edit
|
|
2
|
-
export default '5.1.
|
|
2
|
+
export default '5.1.1';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "5.1.
|
|
1
|
+
declare const _default: "5.1.1";
|
|
2
2
|
export default _default;
|