@iyulab/enterprise 0.10.1 → 0.10.2
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 +10 -0
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.10.2
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- **`CurrencyHelper` now logs a one-time `console.warn`** (per process) the first time any of its
|
|
8
|
+
`format*` methods (`formatCurrency`/`formatKRW`/`formatUSD`/`formatEUR`/`formatJPY`/`formatCNY`)
|
|
9
|
+
is called, pointing callers to `formatCurrency`/`formatNumber`/`formatDate` from
|
|
10
|
+
`@iyulab/components` directly. `parseCurrency` is unaffected (no equivalent exists elsewhere yet).
|
|
11
|
+
No behavior change — this is usage telemetry ahead of a future removal, not a functional change.
|
|
12
|
+
|
|
3
13
|
## 0.10.1
|
|
4
14
|
|
|
5
15
|
### Added
|
package/dist/index.js
CHANGED
|
@@ -126,6 +126,12 @@ messages.register("ko", {
|
|
|
126
126
|
var EMPTY_VALUE_DISPLAY = "—";
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region src/helpers/CurrencyHelper.ts
|
|
129
|
+
var warnedCurrencyHelperDeprecated = false;
|
|
130
|
+
function warnCurrencyHelperDeprecatedOnce() {
|
|
131
|
+
if (warnedCurrencyHelperDeprecated) return;
|
|
132
|
+
warnedCurrencyHelperDeprecated = true;
|
|
133
|
+
console.warn("[@iyulab/enterprise] \"CurrencyHelper\" is deprecated and will be removed in a future major version. Use `formatCurrency`/`formatNumber`/`formatDate` from `@iyulab/components` directly instead. This warning fires once per process.");
|
|
134
|
+
}
|
|
129
135
|
/**
|
|
130
136
|
* Currency formatting utility class.
|
|
131
137
|
*
|
|
@@ -143,6 +149,7 @@ var CurrencyHelper = class {
|
|
|
143
149
|
* @param locale - Locale for formatting (default: 'ko-KR')
|
|
144
150
|
*/
|
|
145
151
|
static formatCurrency(amount, currency = "KRW", locale = "ko-KR") {
|
|
152
|
+
warnCurrencyHelperDeprecatedOnce();
|
|
146
153
|
if (amount === null || amount === void 0) return "—";
|
|
147
154
|
return formatCurrency(amount, currency, {
|
|
148
155
|
minimumFractionDigits: 0,
|