@libs-ui/pipes-convert-object-to-signal 0.2.357-7 → 0.2.357-9

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 +1 -9
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -208,7 +208,7 @@ WritableSignal<[
208
208
  | Kiểu dữ liệu | Kết quả |
209
209
  |---|---|
210
210
  | `null` / `undefined` | Trả về nguyên (không convert) |
211
- | Primitive (`string`, `number`, `boolean`) | Wrapped trong `WritableSignal<T>` |
211
+ | Primitive (`string`, `number`, `boolean`) | **Trả về nguyên, KHÔNG wrap thành signal** — pipe chỉ truyền 2 tham số (`data`, `isCloneDeep`) cho `convertObjectToSignal`, nên tham số `isSignalPrimitiveType` (thứ 3, mặc định `false`) không được bật |
212
212
  | Plain object | `WritableSignal<{ [key]: WritableSignal<V> }>` — mỗi property là signal |
213
213
  | Array | `WritableSignal<WritableSignal<T>[]>` — mỗi phần tử là signal |
214
214
  | Nested object | Đệ quy — mọi cấp độ đều được convert |
@@ -253,11 +253,3 @@ protected userSig = this.convertPipe.transform({ name: 'John', email: 'john@exam
253
253
  this.userSig().name.set('Jane');
254
254
  // => Chỉ phần template dùng user().name() re-render, email() KHÔNG re-render
255
255
  ```
256
-
257
- ## Demo
258
-
259
- ```bash
260
- npx nx serve core-ui
261
- ```
262
-
263
- Truy cập: [http://localhost:4500/pipes/convert-object-to-signal](http://localhost:4500/pipes/convert-object-to-signal)
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@libs-ui/pipes-convert-object-to-signal",
3
- "version": "0.2.357-7",
3
+ "version": "0.2.357-9",
4
4
  "peerDependencies": {
5
5
  "@angular/core": ">=18.0.0",
6
- "@libs-ui/utils": "0.2.357-7"
6
+ "@libs-ui/utils": "0.2.357-9"
7
7
  },
8
8
  "sideEffects": false,
9
9
  "module": "fesm2022/libs-ui-pipes-convert-object-to-signal.mjs",