@solar-taro/core 4.0.0 → 4.0.1

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,17 @@
1
+ # 4.0.0 (2026-10-14)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **core:** add entity to option conversion functions
6
+
7
+ ### 🩹 Fixes
8
+
9
+ - **core:** make value parameter optional in fixed function
10
+
11
+ ### ❤️ Thank You
12
+
13
+ - HyperLife1119
14
+
1
15
  ## 3.5.2 (2026-07-30)
2
16
 
3
17
  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.0.1",
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"}