@onlyworlds/sdk 4.84.0 → 4.84.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 +6 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ earlier history lives in git log only.
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.84.1] - 2026-10-26
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- **`validateCalendarConfig` answers with its errors, never a TypeError, when `bundles.months` has no names list** (`0`, `''`, `false`, `{}`, or `names` that is not an array). It read `months?.names.length` and threw where it should have listed the problem; such months now count as none for the festival-day check, and their own error is listed as before. `readCalendarValue` was not affected (it answered `null`). Found by comparing this reader with the Python package's port of it, input by input.
|
|
13
|
+
|
|
8
14
|
## [4.84.0] - 2026-10-26
|
|
9
15
|
|
|
10
16
|
### Changed
|
package/dist/index.js
CHANGED
|
@@ -4493,7 +4493,7 @@ function validateCalendarConfig(cfg) {
|
|
|
4493
4493
|
}
|
|
4494
4494
|
const inter = cfg.intercalary ?? [];
|
|
4495
4495
|
if (inter.length > 0 && !months) errors.push("Festival days need months");
|
|
4496
|
-
const monthCount = months?.names.length
|
|
4496
|
+
const monthCount = Array.isArray(months?.names) ? months.names.length : 0;
|
|
4497
4497
|
for (const ic of inter) {
|
|
4498
4498
|
if (!Number.isInteger(ic.after_month) || ic.after_month < 0 || ic.after_month > monthCount) {
|
|
4499
4499
|
errors.push(`Festival day "${ic.name}": pick the month it follows`);
|