@ktjs/mui-icon 0.36.1 → 0.38.0

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/README.md CHANGED
@@ -17,14 +17,20 @@
17
17
 
18
18
  ## Recent Updates
19
19
 
20
- 1. 0.36.x - override 0.35.x. Now refs and computeds have 2 new apis:
20
+ 1. 0.38.x - reactive helper additions
21
+ 1. `reactive.is(target)`: create a boolean computed based on `Object.is` comparison.
22
+ 2. `reactive.match(pattern)`: create a boolean computed using deep object/array pattern matching.
23
+ 2. 0.37.x - fixes and refactors
24
+ 1. fix schedulers clear issue. Which would occur when some handler throws an error.
25
+ 2. `Fragment` is refactored. Fixes memory leak issues and makes it more robust.
26
+ 3. 0.36.x - override 0.35.x. Now refs and computeds have 2 new apis:
21
27
  1. `get(...keys)`: create a `KTSubComputed` object. It is a light version of computed, used to bind values
22
28
  2. `subref(...keys)`: create a `KTSubRef` object. It is a light version of ref, used to bind values and also support two-way binding with `k-model`.
23
- 2. 0.34.x - `ref.notify()` no-longer has an optional argument.
24
- 3. 0.33.x - `ref.value` remains the standard read API, and it can also replace the whole outer value with `ref.value = nextValue`.
25
- 4. 0.33.x - `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.
29
+ 4. 0.34.x - `ref.notify()` no-longer has an optional argument.
30
+ 5. 0.33.x - `ref.value` remains the standard read API, and it can also replace the whole outer value with `ref.value = nextValue`.
31
+ 6. 0.33.x - `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.
26
32
  1. `ref.draft` itself is **not assignable**.
27
- 5. `addOnChange((newValue, oldValue) => ...)` keeps `oldValue` as the previous reference, not a deep snapshot.
33
+ 7. `addOnChange((newValue, oldValue) => ...)` keeps `oldValue` as the previous reference, not a deep snapshot.
28
34
 
29
35
  ## Community
30
36
 
package/dist/index.mjs CHANGED
@@ -19,7 +19,7 @@ function svg(...args) {
19
19
  return a0.forEach(e => s.appendChild(e)), "string" == typeof a1 && s.setAttribute("title", a1),
20
20
  s;
21
21
  }
22
- return console.warn("[@ktjs/muiIcon warn]", "Invalid arguments for svg function:", args),
22
+ return console.warn("[kt.js warn]", "Invalid arguments for svg function:", args),
23
23
  document.createElementNS("http://www.w3.org/2000/svg", "svg");
24
24
  }
25
25