teamplay 0.4.0-alpha.27 → 0.4.0-alpha.28

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.
@@ -362,7 +362,7 @@ Compatibility mode intentionally aligns mutators with Racer. This differs from c
362
362
  | `set` | Uses deep-diff path (`dataTree.set` + internal `setDiffDeep`). | Path-targeted replace semantics, Racer-like. `undefined` keeps delete semantics. |
363
363
  | `setEach` | Not a special API in core mutators. | Per-key compat `set` (not `assign` merge/delete behavior). |
364
364
  | `setDiffDeep` | Deep-diff engine (`utils/setDiffDeep.js`). | Explicit deep-diff mutator (`SignalCompat.setDiffDeep`) using base deep-diff path. |
365
- | `setDiff` | N/A as compat shim. | `setDiff(value)` -> base `Signal.set(value)` on current signal. `setDiff(path, value)` -> compat `set(path, value)`. |
365
+ | `setDiff` | N/A as compat shim. | Alias to compat `set` for both signatures: `setDiff(value)` and `setDiff(path, value)`. |
366
366
 
367
367
  Migration note: compat behavior is intentionally Racer-aligned and may differ from core mutators.
368
368
 
@@ -403,13 +403,13 @@ await $.users.user1.setDiffDeep({ profile: { name: 'Kate' } }) // deep-diff path
403
403
 
404
404
  ### setDiff(path?, value)
405
405
 
406
- `setDiff` has two branches in compat:
407
- - `setDiff(value)` calls base `Signal.set(value)` on current signal (deep-diff semantics).
408
- - `setDiff(path, value)` delegates to compat `set(path, value)`.
406
+ Alias for compat `set` in both forms:
407
+ - `setDiff(value)` -> same as `set(value)`
408
+ - `setDiff(path, value)` -> same as `set(path, value)`
409
409
 
410
410
  ```js
411
411
  await $.users.user1.setDiff({ profile: { name: 'Kate' } })
412
- await $.users.user1.setDiff('profile', { name: 'Bob' }) // compat set semantics
412
+ await $.users.user1.setDiff('profile', { name: 'Bob' })
413
413
  ```
414
414
 
415
415
  ### setEach(path?, object)
@@ -233,7 +233,7 @@ class SignalCompat extends Signal {
233
233
  if (forwarded) return forwarded
234
234
  if (arguments.length > 2) throw Error('Signal.setDiff() expects one or two arguments')
235
235
  if (arguments.length === 1) {
236
- return Signal.prototype.set.call(this, path)
236
+ return this.set(path)
237
237
  }
238
238
  return this.set(path, value)
239
239
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "teamplay",
3
- "version": "0.4.0-alpha.27",
3
+ "version": "0.4.0-alpha.28",
4
4
  "description": "Full-stack signals ORM with multiplayer",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -81,5 +81,5 @@
81
81
  ]
82
82
  },
83
83
  "license": "MIT",
84
- "gitHead": "f7a6412190f8b2ec9322331ad2dab7b8ac452f53"
84
+ "gitHead": "1c8386e20011333158e570ac4b3406e84fdc1f10"
85
85
  }