neo.mjs 6.16.2 → 6.16.4

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.
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "author" : "Tobias Uhlig",
4
+ "authorImage" : "author_TobiasUhlig.jpeg",
5
+ "date" : "Jun 17, 2024",
6
+ "id" : 58,
7
+ "image" : "Sharing_real_time_data.png",
8
+ "name" : "Sharing real-time WebSocket data across multiple browser windows",
9
+ "provider" : "Medium",
10
+ "publisher" : "ITNEXT",
11
+ "selectedInto": [],
12
+ "type" : "Blog Post",
13
+ "url" : "https://itnext.io/sharing-real-time-websocket-data-across-multiple-browser-windows-4e0538dd7563?source=friends_link&sk=9efb3e4f38c82fb3e04899c61bb5fcb8"
14
+ },
2
15
  {
3
16
  "author" : "Torsten Dinkheller",
4
17
  "authorImage" : "author_TorstenDinkheller.jpg",
@@ -1,4 +1,17 @@
1
1
  [
2
+ {
3
+ "author" : "Tobias Uhlig",
4
+ "authorImage" : "author_TobiasUhlig.jpeg",
5
+ "date" : "Jun 17, 2024",
6
+ "id" : 58,
7
+ "image" : "Sharing_real_time_data.png",
8
+ "name" : "Sharing real-time WebSocket data across multiple browser windows",
9
+ "provider" : "Medium",
10
+ "publisher" : "ITNEXT",
11
+ "selectedInto": [],
12
+ "type" : "Blog Post",
13
+ "url" : "https://itnext.io/sharing-real-time-websocket-data-across-multiple-browser-windows-4e0538dd7563?source=friends_link&sk=9efb3e4f38c82fb3e04899c61bb5fcb8"
14
+ },
2
15
  {
3
16
  "author" : "Torsten Dinkheller",
4
17
  "authorImage" : "author_TorstenDinkheller.jpg",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "6.16.2",
3
+ "version": "6.16.4",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -826,7 +826,7 @@ class Base extends CoreBase {
826
826
  }
827
827
 
828
828
  /**
829
- * Returns the object associated to the key, or undefined if there is none.
829
+ * Returns the object associated to the key, or null if there is none.
830
830
  * @param key
831
831
  * @returns {Object|null}
832
832
  */
@@ -339,13 +339,14 @@ class Container extends BaseContainer {
339
339
  * @param {Object[]} records
340
340
  */
341
341
  bulkUpdateRecords(records) {
342
- let {view} = this;
342
+ let {store, view} = this,
343
+ {keyProperty} = store;
343
344
 
344
345
  if (view) {
345
346
  view.silentVdomUpdate = true;
346
347
 
347
- this.store.items.forEach((record, index) => {
348
- record.set(records[index])
348
+ records.forEach(item => {
349
+ store.get(item[keyProperty])?.set(item)
349
350
  });
350
351
 
351
352
  view.silentVdomUpdate = false;