@uni-design-system/uni-core 9.0.0 → 9.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @uni-design-system/uni-core
2
2
 
3
+ ## 9.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`f926cd5`](https://github.com/uni-design-system/uni/commit/f926cd513a5cac593adef559e21bada4dada76ee) Thanks [@gaenglish](https://github.com/gaenglish)! - `uni-react`'s Switch reads the `success` color token instead of hand-rolling an
8
+ HSL string from a color-generation internal, and both packages now typecheck as
9
+ part of their build.
10
+
11
+ The Switch built its "on" color as `hsl(${RoleHues.success.default}, 32%, 50%)`
12
+ — a fixed green assembled from the HSL generation tables rather than the theme,
13
+ so it never recolored with the theme and broke when those tables were removed.
14
+ It now reads `useTheme().colors.success`.
15
+
16
+ The reason that reached a deploy is the build. `vite build` transpiles with
17
+ esbuild, which strips types without checking them, and it treats
18
+ `@uni-design-system/uni-core` as an external — so neither the type layer nor the
19
+ module graph ever verified that an imported core export exists. `pnpm turbo run
20
+ build` passed on a package whose source did not compile.
21
+ - `core` and `react` now run `tsc --noEmit` as the first half of `build`, so a
22
+ removed or renamed core export fails the consumer's build.
23
+ - A `type-check` turbo task exists for running that pass alone.
24
+ - CI builds **both** Storybooks, not just Angular's. These bundle uni-core
25
+ instead of externalizing it, so they are the step that resolves its exports
26
+ against real consumer source.
27
+
28
+ This also cleared four pre-existing type errors in `IconTextRow`, which did
29
+ arithmetic on `fontSize` / `lineHeight` — typed `CssLength` (`number | string`)
30
+ — and passed the result to props typed `number`. They are coerced through one
31
+ documented helper now.
32
+
3
33
  ## 9.0.0
4
34
 
5
35
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni-design-system/uni-core",
3
- "version": "9.0.0",
3
+ "version": "9.0.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,7 +37,7 @@
37
37
  "@uni-design-system/tsconfig": "0.1.0"
38
38
  },
39
39
  "scripts": {
40
- "build": "vite build",
40
+ "build": "tsc --noEmit && vite build",
41
41
  "dev": "vite build --watch",
42
42
  "test": "vitest run",
43
43
  "test:watch": "vitest",