@ktjs/mui 0.33.5 → 0.33.6

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.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -17,9 +17,9 @@
17
17
  ## Recent Updates and Breaking Changes
18
18
 
19
19
  1. `ref.value` remains the standard read API, and it can also replace the whole outer value with `ref.value = nextValue`.
20
- 2. `ref.draft` is the deep-mutation entry for nested objects, arrays, `Map` / `Set`, and custom mutable objects. Just use `someRef.draft.a = someValue`, and kt.js will add it to microqueue and redraw it on the next tick.
21
- 3. `ref.draft` itself is not assignable; mutate nested fields or call mutating methods on the returned object instead.
22
- 4. `addOnChange((newValue, oldValue) => ...)` keeps `oldValue` as the previous reference, not a deep snapshot.
20
+ 2. `ref.draft` is the deep-mutation entry for literally any objects. Just use `someRef.draft.a = someValue`, and kt.js will add it to microqueue and redraw it on the next tick. Works for `Map`, `Set`, `Array`, `Date` and your custom objects.
21
+ 1. `ref.draft` itself is **not assignable**.
22
+ 3. `addOnChange((newValue, oldValue) => ...)` keeps `oldValue` as the previous reference, not a deep snapshot.
23
23
 
24
24
  ## Community
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ktjs/mui",
3
- "version": "0.33.5",
3
+ "version": "0.33.6",
4
4
  "description": "Material-UI inspired components for kt.js - pre-styled UI components",
5
5
  "description_zh": "面向 kt.js 的类 Material-UI 预设组件库。",
6
6
  "type": "module",