@iyulab/modern-app 0.18.17 → 0.18.18
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 +13 -0
- package/dist/components/InfoField.d.ts +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.18.18] - 2026-09-04
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- **The React JSX declaration for `<u-info-field>`'s `value` prop was narrowed to
|
|
8
|
+
`string`, while the component's own class field type (`unknown`) and documented
|
|
9
|
+
behavior explicitly accept `null` and numbers.** TypeScript-strict consumers hit
|
|
10
|
+
`TS2322` passing a nullable or numeric value — a very common shape for
|
|
11
|
+
API-sourced data — even though rendering already coerces whatever is passed via
|
|
12
|
+
`String()`/the format helpers. Widened the JSX type to `unknown` to match. Added
|
|
13
|
+
a compile-only regression fixture (`tests/types/react-consumption.tsx`) covering
|
|
14
|
+
the `string | null` and `number | undefined` shapes that previously failed.
|
|
15
|
+
|
|
3
16
|
## [0.18.17] - 2026-09-03
|
|
4
17
|
|
|
5
18
|
### Fixed
|
|
@@ -98,7 +98,9 @@ declare module 'react' {
|
|
|
98
98
|
interface IntrinsicElements {
|
|
99
99
|
'u-info-field': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> & {
|
|
100
100
|
label?: string;
|
|
101
|
-
value
|
|
101
|
+
/** 클래스 필드와 동일하게 `unknown` — 렌더 로직이 `String(value)`/포맷터로 무엇이
|
|
102
|
+
* 오든 처리하므로 `null`·숫자를 그대로 넘길 수 있다(위 클래스 필드 JSDoc 참조). */
|
|
103
|
+
value?: unknown;
|
|
102
104
|
blank?: string;
|
|
103
105
|
numeric?: boolean;
|
|
104
106
|
format?: InfoFieldFormat;
|