@simplysm/core-common 13.0.69 → 13.0.71

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 (151) hide show
  1. package/README.md +66 -267
  2. package/dist/common.types.d.ts +14 -14
  3. package/dist/errors/argument-error.d.ts +10 -10
  4. package/dist/errors/argument-error.d.ts.map +1 -1
  5. package/dist/errors/argument-error.js +2 -2
  6. package/dist/errors/argument-error.js.map +1 -1
  7. package/dist/errors/not-implemented-error.d.ts +8 -8
  8. package/dist/errors/not-implemented-error.js +2 -2
  9. package/dist/errors/not-implemented-error.js.map +1 -1
  10. package/dist/errors/sd-error.d.ts +10 -10
  11. package/dist/errors/sd-error.d.ts.map +1 -1
  12. package/dist/errors/timeout-error.d.ts +10 -10
  13. package/dist/errors/timeout-error.js +3 -3
  14. package/dist/errors/timeout-error.js.map +1 -1
  15. package/dist/extensions/arr-ext.d.ts +2 -2
  16. package/dist/extensions/arr-ext.helpers.d.ts +8 -8
  17. package/dist/extensions/arr-ext.helpers.js +1 -1
  18. package/dist/extensions/arr-ext.helpers.js.map +1 -1
  19. package/dist/extensions/arr-ext.js +13 -13
  20. package/dist/extensions/arr-ext.js.map +1 -1
  21. package/dist/extensions/arr-ext.types.d.ts +57 -57
  22. package/dist/extensions/arr-ext.types.d.ts.map +1 -1
  23. package/dist/extensions/map-ext.d.ts +16 -16
  24. package/dist/extensions/set-ext.d.ts +11 -11
  25. package/dist/features/debounce-queue.d.ts +17 -15
  26. package/dist/features/debounce-queue.d.ts.map +1 -1
  27. package/dist/features/debounce-queue.js +6 -6
  28. package/dist/features/debounce-queue.js.map +1 -1
  29. package/dist/features/event-emitter.d.ts +20 -20
  30. package/dist/features/event-emitter.js +17 -17
  31. package/dist/features/serial-queue.d.ts +11 -11
  32. package/dist/features/serial-queue.js +5 -5
  33. package/dist/features/serial-queue.js.map +1 -1
  34. package/dist/globals.d.ts +4 -4
  35. package/dist/types/date-only.d.ts +64 -64
  36. package/dist/types/date-only.d.ts.map +1 -1
  37. package/dist/types/date-only.js +63 -63
  38. package/dist/types/date-time.d.ts +37 -37
  39. package/dist/types/date-time.d.ts.map +1 -1
  40. package/dist/types/date-time.js +54 -37
  41. package/dist/types/date-time.js.map +1 -1
  42. package/dist/types/lazy-gc-map.d.ts +26 -26
  43. package/dist/types/lazy-gc-map.d.ts.map +1 -1
  44. package/dist/types/lazy-gc-map.js +26 -26
  45. package/dist/types/lazy-gc-map.js.map +1 -1
  46. package/dist/types/time.d.ts +25 -25
  47. package/dist/types/time.d.ts.map +1 -1
  48. package/dist/types/time.js +25 -25
  49. package/dist/types/time.js.map +1 -1
  50. package/dist/types/uuid.d.ts +11 -11
  51. package/dist/types/uuid.d.ts.map +1 -1
  52. package/dist/types/uuid.js +12 -12
  53. package/dist/types/uuid.js.map +1 -1
  54. package/dist/utils/bytes.d.ts +17 -17
  55. package/dist/utils/bytes.js +4 -4
  56. package/dist/utils/bytes.js.map +1 -1
  57. package/dist/utils/date-format.d.ts +45 -45
  58. package/dist/utils/date-format.js +1 -1
  59. package/dist/utils/date-format.js.map +1 -1
  60. package/dist/utils/error.d.ts +4 -4
  61. package/dist/utils/json.d.ts +17 -17
  62. package/dist/utils/json.js +3 -3
  63. package/dist/utils/json.js.map +1 -1
  64. package/dist/utils/num.d.ts +23 -23
  65. package/dist/utils/obj.d.ts +111 -111
  66. package/dist/utils/obj.d.ts.map +1 -1
  67. package/dist/utils/obj.js +3 -3
  68. package/dist/utils/obj.js.map +1 -1
  69. package/dist/utils/path.d.ts +10 -10
  70. package/dist/utils/primitive.d.ts +5 -5
  71. package/dist/utils/primitive.js +1 -1
  72. package/dist/utils/primitive.js.map +1 -1
  73. package/dist/utils/str.d.ts +46 -46
  74. package/dist/utils/str.d.ts.map +1 -1
  75. package/dist/utils/str.js +5 -5
  76. package/dist/utils/str.js.map +1 -1
  77. package/dist/utils/template-strings.d.ts +26 -26
  78. package/dist/utils/transferable.d.ts +18 -18
  79. package/dist/utils/transferable.js +1 -1
  80. package/dist/utils/transferable.js.map +1 -1
  81. package/dist/utils/wait.d.ts +9 -9
  82. package/dist/utils/xml.d.ts +13 -13
  83. package/dist/utils/xml.d.ts.map +1 -1
  84. package/dist/utils/xml.js +1 -0
  85. package/dist/utils/xml.js.map +1 -1
  86. package/dist/zip/sd-zip.d.ts +22 -22
  87. package/dist/zip/sd-zip.js +16 -16
  88. package/package.json +4 -4
  89. package/src/common.types.ts +17 -17
  90. package/src/errors/argument-error.ts +15 -15
  91. package/src/errors/not-implemented-error.ts +9 -9
  92. package/src/errors/sd-error.ts +12 -12
  93. package/src/errors/timeout-error.ts +12 -12
  94. package/src/extensions/arr-ext.helpers.ts +10 -10
  95. package/src/extensions/arr-ext.ts +57 -57
  96. package/src/extensions/arr-ext.types.ts +59 -59
  97. package/src/extensions/map-ext.ts +16 -16
  98. package/src/extensions/set-ext.ts +11 -11
  99. package/src/features/debounce-queue.ts +21 -19
  100. package/src/features/event-emitter.ts +25 -25
  101. package/src/features/serial-queue.ts +13 -13
  102. package/src/globals.ts +4 -4
  103. package/src/index.ts +1 -1
  104. package/src/types/date-only.ts +83 -83
  105. package/src/types/date-time.ts +64 -44
  106. package/src/types/lazy-gc-map.ts +45 -45
  107. package/src/types/time.ts +34 -34
  108. package/src/types/uuid.ts +17 -17
  109. package/src/utils/bytes.ts +35 -35
  110. package/src/utils/date-format.ts +65 -65
  111. package/src/utils/error.ts +4 -4
  112. package/src/utils/json.ts +39 -39
  113. package/src/utils/num.ts +23 -23
  114. package/src/utils/obj.ts +138 -138
  115. package/src/utils/path.ts +10 -10
  116. package/src/utils/primitive.ts +6 -6
  117. package/src/utils/str.ts +260 -261
  118. package/src/utils/template-strings.ts +29 -29
  119. package/src/utils/transferable.ts +284 -284
  120. package/src/utils/wait.ts +10 -10
  121. package/src/utils/xml.ts +20 -19
  122. package/src/zip/sd-zip.ts +25 -25
  123. package/tests/errors/errors.spec.ts +80 -0
  124. package/tests/extensions/array-extension.spec.ts +796 -0
  125. package/tests/extensions/map-extension.spec.ts +147 -0
  126. package/tests/extensions/set-extension.spec.ts +74 -0
  127. package/tests/types/date-only.spec.ts +638 -0
  128. package/tests/types/date-time.spec.ts +391 -0
  129. package/tests/types/lazy-gc-map.spec.ts +692 -0
  130. package/tests/types/time.spec.ts +559 -0
  131. package/tests/types/uuid.spec.ts +74 -0
  132. package/tests/utils/bytes-utils.spec.ts +230 -0
  133. package/tests/utils/date-format.spec.ts +373 -0
  134. package/tests/utils/debounce-queue.spec.ts +272 -0
  135. package/tests/utils/json.spec.ts +486 -0
  136. package/tests/utils/number.spec.ts +157 -0
  137. package/tests/utils/object.spec.ts +829 -0
  138. package/tests/utils/path.spec.ts +78 -0
  139. package/tests/utils/primitive.spec.ts +43 -0
  140. package/tests/utils/sd-event-emitter.spec.ts +216 -0
  141. package/tests/utils/serial-queue.spec.ts +365 -0
  142. package/tests/utils/string.spec.ts +281 -0
  143. package/tests/utils/template-strings.spec.ts +57 -0
  144. package/tests/utils/transferable.spec.ts +703 -0
  145. package/tests/utils/wait.spec.ts +145 -0
  146. package/tests/utils/xml.spec.ts +146 -0
  147. package/tests/zip/sd-zip.spec.ts +238 -0
  148. package/docs/extensions.md +0 -503
  149. package/docs/features.md +0 -109
  150. package/docs/types.md +0 -486
  151. package/docs/utils.md +0 -780
@@ -1,8 +1,8 @@
1
1
  /**
2
- * 날짜 클래스 (시간제외: yyyy-MM-dd, 불변)
2
+ * Date class (without time: yyyy-MM-dd, immutable)
3
3
  *
4
- * 시간 정보 없이 날짜만 저장하는 불변 클래스이다.
5
- * 로컬 타임존을 기준으로 동작한다.
4
+ * An immutable class that stores only the date without time information.
5
+ * Operates based on local timezone.
6
6
  *
7
7
  * @example
8
8
  * const today = new DateOnly();
@@ -12,38 +12,38 @@
12
12
  export declare class DateOnly {
13
13
  private static readonly MS_PER_DAY;
14
14
  readonly date: Date;
15
- /** 현재시간 */
15
+ /** Current time */
16
16
  constructor();
17
- /** 연월일로 초기화 */
17
+ /** Initialize with year, month, day */
18
18
  constructor(year: number, month: number, day: number);
19
- /** tick (millisecond)으로 생성 */
19
+ /** Create from tick (millisecond) */
20
20
  constructor(tick: number);
21
- /** Date 타입으로 생성 */
21
+ /** Create from Date type */
22
22
  constructor(date: Date);
23
23
  /**
24
- * 문자열을 DateOnly로 파싱
25
- * @param str 날짜 문자열
26
- * @returns DateOnly 인스턴스
24
+ * Parse a string into DateOnly
25
+ * @param str Date string
26
+ * @returns DateOnly instance
27
27
  *
28
- * 지원 형식:
29
- * - `yyyy-MM-dd` (예: '2024-01-15') - 문자열에서 직접 추출, 타임존 영향 없음
30
- * - `yyyyMMdd` (예: '20240115') - 문자열에서 직접 추출, 타임존 영향 없음
31
- * - ISO 8601 (예: '2024-01-15T00:00:00Z') - UTC 해석 로컬 타임존 변환
28
+ * Supported formats:
29
+ * - `yyyy-MM-dd` (e.g., '2024-01-15') - Extracted directly from string, timezone-independent
30
+ * - `yyyyMMdd` (e.g., '20240115') - Extracted directly from string, timezone-independent
31
+ * - ISO 8601 (e.g., '2024-01-15T00:00:00Z') - Interpreted as UTC, then converted to local timezone
32
32
  *
33
- * @note 서버/클라이언트 타임존이 다른 경우 `yyyy-MM-dd` 형식 사용 권장
34
- * @note DST(일광절약시간) 지역에서 ISO 8601 형식 파싱 시, 파싱 대상 날짜의 오프셋을 사용합니다.
33
+ * @note For different server/client timezones, `yyyy-MM-dd` format is recommended
34
+ * @note For DST regions when parsing ISO 8601 format, the offset of the parsing target date is used.
35
35
  */
36
36
  static parse(str: string): DateOnly;
37
37
  /**
38
- * 기준 연도와 월을 주차 정보를 기반으로 반환
39
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
40
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
41
- * @returns 해당 날짜가 속한 주차의 기준 연도와
38
+ * Return the base year and month based on week information
39
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
40
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
41
+ * @returns Base year and month of the week containing this date
42
42
  *
43
43
  * @example
44
- * // ISO 8601 표준 (월요일 시작, 최소 4)
44
+ * // ISO 8601 standard (Monday start, first week minimum 4 days)
45
45
  * new DateOnly(2024, 1, 1).getBaseYearMonthSeqForWeekSeq(1, 4)
46
- * // 미국식 (일요일 시작, 최소 1)
46
+ * // US style (Sunday start, first week minimum 1 day)
47
47
  * new DateOnly(2024, 1, 1).getBaseYearMonthSeqForWeekSeq(0, 1)
48
48
  */
49
49
  getBaseYearMonthSeqForWeekSeq(weekStartDay?: number, minDaysInFirstWeek?: number): {
@@ -51,23 +51,23 @@ export declare class DateOnly {
51
51
  monthSeq: number;
52
52
  };
53
53
  /**
54
- * 주차 정보를 기반으로 해당 주의 시작 날짜 계산
55
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
56
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
57
- * @returns 해당 날짜가 속한 주의 시작 날짜
54
+ * Calculate the start date of the week based on week information
55
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
56
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
57
+ * @returns Start date of the week containing this date
58
58
  */
59
59
  getWeekSeqStartDate(weekStartDay?: number, minDaysInFirstWeek?: number): DateOnly;
60
60
  /**
61
- * 연도 주차 순서 정보를 반환
62
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
63
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
64
- * @returns 연도와 해당 연도 기준 주차 번호
61
+ * Return year and week sequence information
62
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
63
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
64
+ * @returns Year and week number within that year
65
65
  *
66
66
  * @example
67
- * // ISO 8601 표준 (월요일 시작, 4 이상)
67
+ * // ISO 8601 standard (Monday start, first week minimum 4 days)
68
68
  * new DateOnly(2025, 1, 6).getWeekSeqOfYear(); // { year: 2025, weekSeq: 2 }
69
69
  *
70
- * // 미국식 (일요일 시작, 1 이상)
70
+ * // US style (Sunday start, first week minimum 1 day)
71
71
  * new DateOnly(2025, 1, 1).getWeekSeqOfYear(0, 1); // { year: 2025, weekSeq: 1 }
72
72
  */
73
73
  getWeekSeqOfYear(weekStartDay?: number, minDaysInFirstWeek?: number): {
@@ -75,16 +75,16 @@ export declare class DateOnly {
75
75
  weekSeq: number;
76
76
  };
77
77
  /**
78
- * 해당 날짜의 연도, 주차(weekSeq) 정보를 반환
79
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
80
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
81
- * @returns 연도, 해당 기준 주차 번호
78
+ * Return year, month and week sequence information for the given date
79
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
80
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
81
+ * @returns Year, month and week number within that month
82
82
  *
83
83
  * @example
84
- * // ISO 8601 표준 (월요일 시작, 4 이상)
84
+ * // ISO 8601 standard (Monday start, first week minimum 4 days)
85
85
  * new DateOnly(2025, 1, 15).getWeekSeqOfMonth(); // { year: 2025, monthSeq: 1, weekSeq: 3 }
86
86
  *
87
- * // 미국식 (일요일 시작, 1 이상)
87
+ * // US style (Sunday start, first week minimum 1 day)
88
88
  * new DateOnly(2025, 1, 15).getWeekSeqOfMonth(0, 1); // { year: 2025, monthSeq: 1, weekSeq: 3 }
89
89
  */
90
90
  getWeekSeqOfMonth(weekStartDay?: number, minDaysInFirstWeek?: number): {
@@ -93,58 +93,58 @@ export declare class DateOnly {
93
93
  weekSeq: number;
94
94
  };
95
95
  /**
96
- * 주차 정보를 기반으로 해당 주의 시작 날짜 가져오기
97
- * @param arg 연도, 선택적 월, 주차 번호
98
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
99
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
100
- * @returns 해당 주차의 시작 날짜
96
+ * Get the start date of a week based on week information
97
+ * @param arg Year, optional month, and week number
98
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
99
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
100
+ * @returns Start date of the specified week
101
101
  *
102
102
  * @example
103
- * // 2025년 2주차의 시작일 (ISO 8601 표준)
104
- * DateOnly.getDateByYearWeekSeq({ year: 2025, weekSeq: 2 }); // 2025-01-06 (월요일)
103
+ * // Start date of week 2 in 2025 (ISO 8601 standard)
104
+ * DateOnly.getDateByYearWeekSeq({ year: 2025, weekSeq: 2 }); // 2025-01-06 (Monday)
105
105
  *
106
- * // 2025년 1월 3주차의 시작일
107
- * DateOnly.getDateByYearWeekSeq({ year: 2025, month: 1, weekSeq: 3 }); // 2025-01-13 (월요일)
106
+ * // Start date of week 3 in January 2025
107
+ * DateOnly.getDateByYearWeekSeq({ year: 2025, month: 1, weekSeq: 3 }); // 2025-01-13 (Monday)
108
108
  */
109
109
  static getDateByYearWeekSeq(arg: {
110
110
  year: number;
111
111
  month?: number;
112
112
  weekSeq: number;
113
113
  }, weekStartDay?: number, minDaysInFirstWeek?: number): DateOnly;
114
- /** 날짜 세팅이 제대로 되었는지 여부 */
114
+ /** Whether the date is set correctly */
115
115
  get isValid(): boolean;
116
116
  get year(): number;
117
117
  get month(): number;
118
118
  get day(): number;
119
119
  get tick(): number;
120
- /** 요일 (일~토: 0~6) */
120
+ /** Day of week (Sunday~Saturday: 0~6) */
121
121
  get dayOfWeek(): number;
122
- /** 지정된 연도로 인스턴스 반환 */
122
+ /** Return new instance with specified year */
123
123
  setYear(year: number): DateOnly;
124
124
  /**
125
- * 지정된 월로 DateOnly 인스턴스를 반환
126
- * @param month 설정할 (1-12, 범위 값은 연도 조정)
127
- * @note 대상 월의 일수보다 현재 일자가 크면 해당 월의 마지막 날로 조정됨
128
- * (예: 1월 31일에서 setMonth(2) → 2월 28 또는 29)
125
+ * Return new DateOnly instance with specified month
126
+ * @param month Month to set (1-12, out-of-range values are adjusted in year)
127
+ * @note If current day is greater than target month's day count, it will be adjusted to last day of month
128
+ * (e.g., setMonth(2) on Jan 31 Feb 28 or 29)
129
129
  */
130
130
  setMonth(month: number): DateOnly;
131
131
  /**
132
- * 지정된 일자로 DateOnly 인스턴스를 반환
133
- * @param day 설정할 일자
134
- * @note 해당 월의 유효 범위를 벗어나는 일자는 JavaScript Date 기본 동작에 따라
135
- * 자동으로 다음/이전 달로 조정됨 (예: 1월에 day=32 → 2월 1)
132
+ * Return new DateOnly instance with specified day
133
+ * @param day Day to set
134
+ * @note Days outside valid month range are automatically adjusted to next/previous month per JavaScript Date behavior
135
+ * (e.g., day=32 in January February 1)
136
136
  */
137
137
  setDay(day: number): DateOnly;
138
- /** 지정된 연수를 더한 인스턴스 반환 */
138
+ /** Return new instance with specified years added */
139
139
  addYears(years: number): DateOnly;
140
- /** 지정된 월수를 더한 인스턴스 반환 */
140
+ /** Return new instance with specified months added */
141
141
  addMonths(months: number): DateOnly;
142
- /** 지정된 일수를 더한 인스턴스 반환 */
142
+ /** Return new instance with specified days added */
143
143
  addDays(days: number): DateOnly;
144
144
  /**
145
- * 지정된 포맷으로 문자열 변환
146
- * @param format 포맷 문자열
147
- * @see dtFormat 지원 포맷 문자열 참조
145
+ * Convert to string with specified format
146
+ * @param format Format string
147
+ * @see dtFormat for supported format strings
148
148
  */
149
149
  toFormatString(formatStr: string): string;
150
150
  toString(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"date-only.d.ts","sourceRoot":"","sources":["../../src/types/date-only.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,qBAAa,QAAQ;IACnB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAuB;IAEzD,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IAEpB,WAAW;;IAEX,eAAe;gBACH,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM;IACpD,8BAA8B;gBAClB,IAAI,EAAE,MAAM;IACxB,mBAAmB;gBACP,IAAI,EAAE,IAAI;IAiBtB;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ;IAwCnC;;;;;;;;;;;OAWG;IACH,6BAA6B,CAAC,YAAY,GAAE,MAAU,EAAE,kBAAkB,GAAE,MAAU;;;;IA2BtF;;;;;OAKG;IACH,mBAAmB,CAAC,YAAY,GAAE,MAAU,EAAE,kBAAkB,GAAE,MAAU;IAW5E;;;;;;;;;;;;OAYG;IACH,gBAAgB,CACd,YAAY,GAAE,MAAU,EACxB,kBAAkB,GAAE,MAAU,GAC7B;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAepC;;;;;;;;;;;;OAYG;IACH,iBAAiB,CACf,YAAY,GAAE,MAAU,EACxB,kBAAkB,GAAE,MAAU,GAC7B;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE;IAgBtD;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,oBAAoB,CACzB,GAAG,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE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AQ;IAKjC;;;;;OAKG;IACH,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ;IAQ7B,qDAAqD;IACrD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ;IAIjC,sDAAsD;IACtD,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,QAAQ;IAInC,oDAAoD;IACpD,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ;IAQ/B;;;;OAIG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM;IAQzC,QAAQ,IAAI,MAAM;CAKnB"}
@@ -19,17 +19,17 @@ class DateOnly {
19
19
  }
20
20
  }
21
21
  /**
22
- * 문자열을 DateOnly로 파싱
23
- * @param str 날짜 문자열
24
- * @returns DateOnly 인스턴스
22
+ * Parse a string into DateOnly
23
+ * @param str Date string
24
+ * @returns DateOnly instance
25
25
  *
26
- * 지원 형식:
27
- * - `yyyy-MM-dd` (예: '2024-01-15') - 문자열에서 직접 추출, 타임존 영향 없음
28
- * - `yyyyMMdd` (예: '20240115') - 문자열에서 직접 추출, 타임존 영향 없음
29
- * - ISO 8601 (예: '2024-01-15T00:00:00Z') - UTC 해석 로컬 타임존 변환
26
+ * Supported formats:
27
+ * - `yyyy-MM-dd` (e.g., '2024-01-15') - Extracted directly from string, timezone-independent
28
+ * - `yyyyMMdd` (e.g., '20240115') - Extracted directly from string, timezone-independent
29
+ * - ISO 8601 (e.g., '2024-01-15T00:00:00Z') - Interpreted as UTC, then converted to local timezone
30
30
  *
31
- * @note 서버/클라이언트 타임존이 다른 경우 `yyyy-MM-dd` 형식 사용 권장
32
- * @note DST(일광절약시간) 지역에서 ISO 8601 형식 파싱 시, 파싱 대상 날짜의 오프셋을 사용합니다.
31
+ * @note For different server/client timezones, `yyyy-MM-dd` format is recommended
32
+ * @note For DST regions when parsing ISO 8601 format, the offset of the parsing target date is used.
33
33
  */
34
34
  static parse(str) {
35
35
  const matchYMD = /^(\d{4})-(\d{2})-(\d{2})$/.exec(str);
@@ -52,23 +52,23 @@ class DateOnly {
52
52
  return new DateOnly(localTick);
53
53
  }
54
54
  throw new ArgumentError(
55
- `\uB0A0\uC9DC \uD615\uC2DD\uC744 \uD30C\uC2F1\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uC9C0\uC6D0 \uD615\uC2DD: 'yyyy-MM-dd', 'yyyyMMdd', ISO 8601 \uB0A0\uC9DC`,
55
+ `Failed to parse date format. Supported formats: 'yyyy-MM-dd', 'yyyyMMdd', ISO 8601 date`,
56
56
  {
57
57
  input: str
58
58
  }
59
59
  );
60
60
  }
61
- //#region 주차 계산
61
+ //#region Week calculation
62
62
  /**
63
- * 기준 연도와 월을 주차 정보를 기반으로 반환
64
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
65
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
66
- * @returns 해당 날짜가 속한 주차의 기준 연도와
63
+ * Return the base year and month based on week information
64
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
65
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
66
+ * @returns Base year and month of the week containing this date
67
67
  *
68
68
  * @example
69
- * // ISO 8601 표준 (월요일 시작, 최소 4)
69
+ * // ISO 8601 standard (Monday start, first week minimum 4 days)
70
70
  * new DateOnly(2024, 1, 1).getBaseYearMonthSeqForWeekSeq(1, 4)
71
- * // 미국식 (일요일 시작, 최소 1)
71
+ * // US style (Sunday start, first week minimum 1 day)
72
72
  * new DateOnly(2024, 1, 1).getBaseYearMonthSeqForWeekSeq(0, 1)
73
73
  */
74
74
  getBaseYearMonthSeqForWeekSeq(weekStartDay = 1, minDaysInFirstWeek = 4) {
@@ -90,10 +90,10 @@ class DateOnly {
90
90
  }
91
91
  }
92
92
  /**
93
- * 주차 정보를 기반으로 해당 주의 시작 날짜 계산
94
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
95
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
96
- * @returns 해당 날짜가 속한 주의 시작 날짜
93
+ * Calculate the start date of the week based on week information
94
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
95
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
96
+ * @returns Start date of the week containing this date
97
97
  */
98
98
  getWeekSeqStartDate(weekStartDay = 1, minDaysInFirstWeek = 4) {
99
99
  const dayOfWeek = (this.dayOfWeek + 7 - weekStartDay) % 7;
@@ -105,16 +105,16 @@ class DateOnly {
105
105
  }
106
106
  }
107
107
  /**
108
- * 연도 주차 순서 정보를 반환
109
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
110
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
111
- * @returns 연도와 해당 연도 기준 주차 번호
108
+ * Return year and week sequence information
109
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
110
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
111
+ * @returns Year and week number within that year
112
112
  *
113
113
  * @example
114
- * // ISO 8601 표준 (월요일 시작, 4 이상)
114
+ * // ISO 8601 standard (Monday start, first week minimum 4 days)
115
115
  * new DateOnly(2025, 1, 6).getWeekSeqOfYear(); // { year: 2025, weekSeq: 2 }
116
116
  *
117
- * // 미국식 (일요일 시작, 1 이상)
117
+ * // US style (Sunday start, first week minimum 1 day)
118
118
  * new DateOnly(2025, 1, 1).getWeekSeqOfYear(0, 1); // { year: 2025, weekSeq: 1 }
119
119
  */
120
120
  getWeekSeqOfYear(weekStartDay = 1, minDaysInFirstWeek = 4) {
@@ -130,16 +130,16 @@ class DateOnly {
130
130
  };
131
131
  }
132
132
  /**
133
- * 해당 날짜의 연도, 주차(weekSeq) 정보를 반환
134
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
135
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
136
- * @returns 연도, 해당 기준 주차 번호
133
+ * Return year, month and week sequence information for the given date
134
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
135
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
136
+ * @returns Year, month and week number within that month
137
137
  *
138
138
  * @example
139
- * // ISO 8601 표준 (월요일 시작, 4 이상)
139
+ * // ISO 8601 standard (Monday start, first week minimum 4 days)
140
140
  * new DateOnly(2025, 1, 15).getWeekSeqOfMonth(); // { year: 2025, monthSeq: 1, weekSeq: 3 }
141
141
  *
142
- * // 미국식 (일요일 시작, 1 이상)
142
+ * // US style (Sunday start, first week minimum 1 day)
143
143
  * new DateOnly(2025, 1, 15).getWeekSeqOfMonth(0, 1); // { year: 2025, monthSeq: 1, weekSeq: 3 }
144
144
  */
145
145
  getWeekSeqOfMonth(weekStartDay = 1, minDaysInFirstWeek = 4) {
@@ -156,18 +156,18 @@ class DateOnly {
156
156
  };
157
157
  }
158
158
  /**
159
- * 주차 정보를 기반으로 해당 주의 시작 날짜 가져오기
160
- * @param arg 연도, 선택적 월, 주차 번호
161
- * @param weekStartDay 주의 시작 요일 (0=일요일, 1=월요일, ..., 6=토요일). 기본값: 1(월요일)
162
- * @param minDaysInFirstWeek 주로 간주할 최소 일수 (1~7). 기본값: 4 (ISO 8601 표준)
163
- * @returns 해당 주차의 시작 날짜
159
+ * Get the start date of a week based on week information
160
+ * @param arg Year, optional month, and week number
161
+ * @param weekStartDay Week start day (0=Sunday, 1=Monday, ..., 6=Saturday). Default: 1(Monday)
162
+ * @param minDaysInFirstWeek Minimum days to be considered the first week (1~7). Default: 4 (ISO 8601 standard)
163
+ * @returns Start date of the specified week
164
164
  *
165
165
  * @example
166
- * // 2025년 2주차의 시작일 (ISO 8601 표준)
167
- * DateOnly.getDateByYearWeekSeq({ year: 2025, weekSeq: 2 }); // 2025-01-06 (월요일)
166
+ * // Start date of week 2 in 2025 (ISO 8601 standard)
167
+ * DateOnly.getDateByYearWeekSeq({ year: 2025, weekSeq: 2 }); // 2025-01-06 (Monday)
168
168
  *
169
- * // 2025년 1월 3주차의 시작일
170
- * DateOnly.getDateByYearWeekSeq({ year: 2025, month: 1, weekSeq: 3 }); // 2025-01-13 (월요일)
169
+ * // Start date of week 3 in January 2025
170
+ * DateOnly.getDateByYearWeekSeq({ year: 2025, month: 1, weekSeq: 3 }); // 2025-01-13 (Monday)
171
171
  */
172
172
  static getDateByYearWeekSeq(arg, weekStartDay = 1, minDaysInFirstWeek = 4) {
173
173
  return new DateOnly(arg.year, arg.month ?? 1, (arg.weekSeq - 1) * 7 + 1).getWeekSeqStartDate(
@@ -176,8 +176,8 @@ class DateOnly {
176
176
  );
177
177
  }
178
178
  //#endregion
179
- //#region Getters (읽기 전용)
180
- /** 날짜 세팅이 제대로 되었는지 여부 */
179
+ //#region Getters (read-only)
180
+ /** Whether the date is set correctly */
181
181
  get isValid() {
182
182
  return this.date instanceof Date && !Number.isNaN(this.date.getTime());
183
183
  }
@@ -193,55 +193,55 @@ class DateOnly {
193
193
  get tick() {
194
194
  return this.date.getTime();
195
195
  }
196
- /** 요일 (일~토: 0~6) */
196
+ /** Day of week (Sunday~Saturday: 0~6) */
197
197
  get dayOfWeek() {
198
198
  return this.date.getDay();
199
199
  }
200
200
  //#endregion
201
- //#region 불변 변환 메서드 ( 인스턴스 반환)
202
- /** 지정된 연도로 인스턴스 반환 */
201
+ //#region Immutable transformation methods (returns new instance)
202
+ /** Return new instance with specified year */
203
203
  setYear(year) {
204
204
  return new DateOnly(year, this.month, this.day);
205
205
  }
206
206
  /**
207
- * 지정된 월로 DateOnly 인스턴스를 반환
208
- * @param month 설정할 (1-12, 범위 값은 연도 조정)
209
- * @note 대상 월의 일수보다 현재 일자가 크면 해당 월의 마지막 날로 조정됨
210
- * (예: 1월 31일에서 setMonth(2) → 2월 28 또는 29)
207
+ * Return new DateOnly instance with specified month
208
+ * @param month Month to set (1-12, out-of-range values are adjusted in year)
209
+ * @note If current day is greater than target month's day count, it will be adjusted to last day of month
210
+ * (e.g., setMonth(2) on Jan 31 Feb 28 or 29)
211
211
  */
212
212
  setMonth(month) {
213
213
  const normalized = normalizeMonth(this.year, month, this.day);
214
214
  return new DateOnly(normalized.year, normalized.month, normalized.day);
215
215
  }
216
216
  /**
217
- * 지정된 일자로 DateOnly 인스턴스를 반환
218
- * @param day 설정할 일자
219
- * @note 해당 월의 유효 범위를 벗어나는 일자는 JavaScript Date 기본 동작에 따라
220
- * 자동으로 다음/이전 달로 조정됨 (예: 1월에 day=32 → 2월 1)
217
+ * Return new DateOnly instance with specified day
218
+ * @param day Day to set
219
+ * @note Days outside valid month range are automatically adjusted to next/previous month per JavaScript Date behavior
220
+ * (e.g., day=32 in January February 1)
221
221
  */
222
222
  setDay(day) {
223
223
  return new DateOnly(this.year, this.month, day);
224
224
  }
225
225
  //#endregion
226
- //#region 산술 메서드 ( 인스턴스 반환)
227
- /** 지정된 연수를 더한 인스턴스 반환 */
226
+ //#region Arithmetic methods (returns new instance)
227
+ /** Return new instance with specified years added */
228
228
  addYears(years) {
229
229
  return this.setYear(this.year + years);
230
230
  }
231
- /** 지정된 월수를 더한 인스턴스 반환 */
231
+ /** Return new instance with specified months added */
232
232
  addMonths(months) {
233
233
  return this.setMonth(this.month + months);
234
234
  }
235
- /** 지정된 일수를 더한 인스턴스 반환 */
235
+ /** Return new instance with specified days added */
236
236
  addDays(days) {
237
237
  return new DateOnly(this.tick + days * DateOnly.MS_PER_DAY);
238
238
  }
239
239
  //#endregion
240
- //#region 포맷팅
240
+ //#region Formatting
241
241
  /**
242
- * 지정된 포맷으로 문자열 변환
243
- * @param format 포맷 문자열
244
- * @see dtFormat 지원 포맷 문자열 참조
242
+ * Convert to string with specified format
243
+ * @param format Format string
244
+ * @see dtFormat for supported format strings
245
245
  */
246
246
  toFormatString(formatStr) {
247
247
  return formatDate(formatStr, {
@@ -1,8 +1,8 @@
1
1
  /**
2
- * 날짜시간 클래스 (불변)
2
+ * DateTime class (immutable)
3
3
  *
4
- * JavaScript Date 객체를 래핑하여 불변성과 편리한 API를 제공한다.
5
- * 밀리초 단위까지 지원하며, 로컬 타임존을 기준으로 동작한다.
4
+ * Wraps JavaScript Date object to provide immutability and convenient API.
5
+ * Supports millisecond precision and operates based on local timezone.
6
6
  *
7
7
  * @example
8
8
  * const now = new DateTime();
@@ -11,26 +11,26 @@
11
11
  */
12
12
  export declare class DateTime {
13
13
  readonly date: Date;
14
- /** 현재 시간으로 생성 */
14
+ /** Create with current time */
15
15
  constructor();
16
- /** 연월일시분초밀리초로 생성 */
16
+ /** Create with year, month, day, hour, minute, second, millisecond */
17
17
  constructor(year: number, month: number, day: number, hour?: number, minute?: number, second?: number, millisecond?: number);
18
- /** tick (밀리초)으로 생성 */
18
+ /** Create from tick (millisecond) */
19
19
  constructor(tick: number);
20
- /** Date 객체로 생성 */
20
+ /** Create from Date object */
21
21
  constructor(date: Date);
22
22
  /**
23
- * 문자열을 파싱하여 DateTime 인스턴스를 생성
23
+ * Parse a string to create DateTime instance
24
24
  *
25
- * @param str 날짜시간 문자열
26
- * @returns 파싱된 DateTime 인스턴스
27
- * @throws ArgumentError 지원하지 않는 형식인 경우
25
+ * @param str DateTime string
26
+ * @returns Parsed DateTime instance
27
+ * @throws ArgumentError If unsupported format
28
28
  *
29
29
  * @example
30
30
  * DateTime.parse("2025-01-15 10:30:00") // yyyy-MM-dd HH:mm:ss
31
31
  * DateTime.parse("2025-01-15 10:30:00.123") // yyyy-MM-dd HH:mm:ss.fff
32
32
  * DateTime.parse("20250115103000") // yyyyMMddHHmmss
33
- * DateTime.parse("2025-01-15 오전 10:30:00") // yyyy-MM-dd 오전/오후 HH:mm:ss
33
+ * DateTime.parse("2025-01-15 AM 10:30:00") // yyyy-MM-dd AM/PM HH:mm:ss
34
34
  * DateTime.parse("2025-01-15T10:30:00Z") // ISO 8601
35
35
  */
36
36
  static parse(str: string): DateTime;
@@ -42,53 +42,53 @@ export declare class DateTime {
42
42
  get second(): number;
43
43
  get millisecond(): number;
44
44
  get tick(): number;
45
- /** 요일 (일~토: 0~6) */
45
+ /** Day of week (Sunday~Saturday: 0~6) */
46
46
  get dayOfWeek(): number;
47
47
  get timezoneOffsetMinutes(): number;
48
- /** 날짜시간 세팅이 제대로 되었는지 여부 */
48
+ /** Whether the datetime is set correctly */
49
49
  get isValid(): boolean;
50
- /** 지정된 연도로 인스턴스 반환 */
50
+ /** Return new instance with specified year */
51
51
  setYear(year: number): DateTime;
52
52
  /**
53
- * 지정된 월로 DateTime 인스턴스를 반환
54
- * @param month 설정할 (1-12, 범위 값은 연도 조정)
55
- * @note 대상 월의 일수보다 현재 일자가 크면 해당 월의 마지막 날로 조정됨
56
- * (예: 1월 31일에서 setMonth(2) → 2월 28 또는 29)
53
+ * Return new DateTime instance with specified month
54
+ * @param month Month to set (1-12, out-of-range values are adjusted in year)
55
+ * @note If current day is greater than target month's day count, it will be adjusted to last day of month
56
+ * (e.g., setMonth(2) on Jan 31 Feb 28 or 29)
57
57
  */
58
58
  setMonth(month: number): DateTime;
59
59
  /**
60
- * 지정된 일자로 DateTime 인스턴스를 반환
61
- * @param day 설정할 일자
62
- * @note 해당 월의 유효 범위를 벗어나는 일자는 JavaScript Date 기본 동작에 따라
63
- * 자동으로 다음/이전 달로 조정됨 (예: 1월에 day=32 → 2월 1)
60
+ * Return new DateTime instance with specified day
61
+ * @param day Day to set
62
+ * @note Days outside valid month range are automatically adjusted to next/previous month per JavaScript Date behavior
63
+ * (e.g., day=32 in January February 1)
64
64
  */
65
65
  setDay(day: number): DateTime;
66
- /** 지정된 시로 인스턴스 반환 */
66
+ /** Return new instance with specified hour */
67
67
  setHour(hour: number): DateTime;
68
- /** 지정된 분으로 인스턴스 반환 */
68
+ /** Return new instance with specified minute */
69
69
  setMinute(minute: number): DateTime;
70
- /** 지정된 초로 인스턴스 반환 */
70
+ /** Return new instance with specified second */
71
71
  setSecond(second: number): DateTime;
72
- /** 지정된 밀리초로 인스턴스 반환 */
72
+ /** Return new instance with specified millisecond */
73
73
  setMillisecond(millisecond: number): DateTime;
74
- /** 지정된 연수를 더한 인스턴스 반환 */
74
+ /** Return new instance with specified years added */
75
75
  addYears(years: number): DateTime;
76
- /** 지정된 월수를 더한 인스턴스 반환 */
76
+ /** Return new instance with specified months added */
77
77
  addMonths(months: number): DateTime;
78
- /** 지정된 일수를 더한 인스턴스 반환 */
78
+ /** Return new instance with specified days added */
79
79
  addDays(days: number): DateTime;
80
- /** 지정된 시간을 더한 인스턴스 반환 */
80
+ /** Return new instance with specified hours added */
81
81
  addHours(hours: number): DateTime;
82
- /** 지정된 분을 더한 인스턴스 반환 */
82
+ /** Return new instance with specified minutes added */
83
83
  addMinutes(minutes: number): DateTime;
84
- /** 지정된 초를 더한 인스턴스 반환 */
84
+ /** Return new instance with specified seconds added */
85
85
  addSeconds(seconds: number): DateTime;
86
- /** 지정된 밀리초를 더한 인스턴스 반환 */
86
+ /** Return new instance with specified milliseconds added */
87
87
  addMilliseconds(milliseconds: number): DateTime;
88
88
  /**
89
- * 지정된 포맷으로 문자열 변환
90
- * @param format 포맷 문자열
91
- * @see dtFormat 지원 포맷 문자열 참조
89
+ * Convert to string with specified format
90
+ * @param format Format string
91
+ * @see dtFormat for supported format strings
92
92
  */
93
93
  toFormatString(formatStr: string): string;
94
94
  toString(): string;
@@ -1 +1 @@
1
- {"version":3,"file":"date-time.d.ts","sourceRoot":"","sources":["../../src/types/date-time.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,qBAAa,QAAQ;IACnB,QAAQ,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