@soundworks/core 4.0.0-alpha.18 → 4.0.0-alpha.19

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## v4.0.0-alpha.19 - 17/01/2024
2
+
3
+ - Hotfix for #85
4
+
5
+ ## v4.0.0-alpha.18 - 15/01/2024
6
+
7
+ - Batch network message for SharedStates
8
+
1
9
  ## v4.0.0-alpha.17 - 16/12/2023
2
10
 
3
11
  - Support bundling the server to cjs for Max externals
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soundworks/core",
3
- "version": "4.0.0-alpha.18",
3
+ "version": "4.0.0-alpha.19",
4
4
  "description": "Open-source creative coding framework for distributed applications based on Web technologies",
5
5
  "authors": [
6
6
  "Benjamin Matuszewski",
@@ -126,7 +126,11 @@ class BaseSharedStateCollection {
126
126
  * current call and will be passed as third argument to all update listeners.
127
127
  */
128
128
  async set(updates, context = null) {
129
- return await this._controller.set(updates, context);
129
+ // hot fix for https://github.com/collective-soundworks/soundworks/issues/85
130
+ // to be cleaned soon
131
+ const promises = this._states.map(state => state.set(updates, context));
132
+ return Promise.all(promises);
133
+ // return await this._controller.set(updates, context);
130
134
  }
131
135
 
132
136
  /**