@solar-taro/core 4.0.0 → 4.1.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/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## 4.0.1 (2026-10-14)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **core:** ensure correct type assertion for entity ID in entityToOption
6
+
7
+ ### ❤️ Thank You
8
+
9
+ - HyperLife1119
10
+
11
+ # 4.0.0 (2026-10-14)
12
+
13
+ ### 🚀 Features
14
+
15
+ - **core:** add entity to option conversion functions
16
+
17
+ ### 🩹 Fixes
18
+
19
+ - **core:** make value parameter optional in fixed function
20
+
21
+ ### ❤️ Thank You
22
+
23
+ - HyperLife1119
24
+
1
25
  ## 3.5.2 (2026-07-30)
2
26
 
3
27
  This was a version bump only for core to align it with other projects, there were no code changes.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solar-taro/core",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "sideEffects": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
package/ui.d.ts CHANGED
@@ -3,12 +3,12 @@ export declare function entityToOption<T extends {
3
3
  fullName: string;
4
4
  }>(entity: T): {
5
5
  label: string;
6
- value: string | number;
6
+ value: T["id"];
7
7
  } & T;
8
8
  export declare function entitiesToOptions<T extends {
9
9
  id: string | number;
10
10
  fullName: string;
11
11
  }>(entities: T[]): ({
12
12
  label: string;
13
- value: string | number;
13
+ value: T["id"];
14
14
  } & T)[];
package/ui.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../packages/core/src/ui.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAAsD,MAAS;IAC3F,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC;AACjE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAsD,QAAa;IAClG,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AACxD,CAAC"}
1
+ {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../packages/core/src/ui.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,cAAc,CAAsD,MAAS;IAC3F,OAAO,EAAE,KAAK,EAAE,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,MAAM,CAAC,EAAa,EAAE,GAAG,MAAM,EAAE,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAsD,QAAa;IAClG,OAAO,QAAQ,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;AACxD,CAAC"}