@sakura2333/kancolle-data 0.1.0 → 0.2.0
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 +39 -7
- package/README.md +11 -4
- package/RELEASES.json +23 -0
- package/assets/useitems/71.png +0 -0
- package/audit/build-report.json +20 -4
- package/equipment/drop-from.nedb +247 -1
- package/equipment/special-bonuses.nedb +348 -1
- package/improvement/list.json +2 -2
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/manifest.json +124 -26
- package/package.json +7 -3
- package/schemas/equipment-special-bonus.schema.json +38 -2
- package/scripts/check-fresh.js +26 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,21 +4,53 @@ All notable consumer-visible changes to `@sakura2333/kancolle-data` are document
|
|
|
4
4
|
|
|
5
5
|
## [Unreleased]
|
|
6
6
|
|
|
7
|
+
### Planned
|
|
8
|
+
|
|
9
|
+
- Add quest, development, exchange, ranking, and event acquisition methods.
|
|
10
|
+
- Add additional ship, map, and quest projections when stable schemas are available.
|
|
11
|
+
|
|
12
|
+
## [0.2.0] - 2026-06-28
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Added equipment-type targets to the KC3 special-bonus dataset instead of discarding rules that apply to an entire equipment category.
|
|
17
|
+
- Added use-item icon `71.png` to the shared package.
|
|
18
|
+
- Added required, available, and missing use-item ID lists to the icon manifest.
|
|
19
|
+
- Added `RELEASES.json` for machine-readable release metrics and content digests.
|
|
20
|
+
- Added per-source fetch audits containing freshness, cache-fallback, validation-time, and content-hash information.
|
|
21
|
+
- Added a prepublish freshness hook that rejects cache-only or stale package builds.
|
|
22
|
+
|
|
7
23
|
### Changed
|
|
8
24
|
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
25
|
+
- Upgraded the equipment special-bonus schema from version 1 to version 2.
|
|
26
|
+
- Special-bonus records now expose a `target` union for concrete equipment IDs or equipment-type IDs.
|
|
27
|
+
- Package publication now commits and pushes the prepared release state before npm publication, allowing a failed npm upload to be resumed without inventing another version.
|
|
28
|
+
- Automatic patch releases generate a versioned data summary in this changelog.
|
|
13
29
|
|
|
14
30
|
### Fixed
|
|
15
31
|
|
|
32
|
+
- Fixed seven KC3 equipment-type bonus groups being reported as missing equipment IDs and omitted from public data.
|
|
33
|
+
- Fixed referenced use-item icons being able to disappear while the package still passed its count-only quality gate.
|
|
34
|
+
- Fixed strict publication accepting stale cached source data after a network failure.
|
|
35
|
+
|
|
36
|
+
### Compatibility
|
|
37
|
+
|
|
38
|
+
- Improvement list schema: 2.
|
|
39
|
+
- Improvement detail schema: 3.
|
|
40
|
+
- Equipment drop-from schema: 1.
|
|
41
|
+
- Equipment special-bonus schema: 2.
|
|
42
|
+
|
|
43
|
+
## [0.1.1] - 2026-06-28
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- Added normalized `range` values for KC3 special equipment bonuses sourced from the upstream `leng` field.
|
|
16
48
|
- Fixed range-only bonus rules being rejected as empty bonus records during automatic publication.
|
|
17
49
|
|
|
18
|
-
###
|
|
50
|
+
### Changed
|
|
19
51
|
|
|
20
|
-
-
|
|
21
|
-
-
|
|
52
|
+
- Added automatic data-only patch publication after successful strict Spider runs.
|
|
53
|
+
- Added count, shape, source-status, and file-size release gates.
|
|
22
54
|
|
|
23
55
|
## [0.1.0] - 2026-06-28
|
|
24
56
|
|
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@ const data = require('@sakura2333/kancolle-data')
|
|
|
9
9
|
console.log(data.improvement.listPath)
|
|
10
10
|
console.log(data.equipment.dropFromPath)
|
|
11
11
|
console.log(data.equipment.specialBonusesPath)
|
|
12
|
-
console.log(data.assets.useitemPath(
|
|
12
|
+
console.log(data.assets.useitemPath(71))
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
Datasets:
|
|
@@ -17,7 +17,14 @@ Datasets:
|
|
|
17
17
|
- `improvement/list.json`: compact all + weekday list projection.
|
|
18
18
|
- `improvement/detail.nedb`: full improvement routes.
|
|
19
19
|
- `equipment/drop-from.nedb`: equipment obtainable from ship initial/remodel loadouts.
|
|
20
|
-
- `equipment/special-bonuses.nedb`:
|
|
21
|
-
- `assets/useitems/*.png`: use-item images
|
|
20
|
+
- `equipment/special-bonuses.nedb`: bonus rules targeting either concrete equipment IDs or equipment-type IDs.
|
|
21
|
+
- `assets/useitems/*.png`: use-item images required by improvement recipes.
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
Special-bonus targets are discriminated by `target.kind`:
|
|
24
|
+
|
|
25
|
+
```json
|
|
26
|
+
{"target":{"kind":"equipment","equipmentIds":[315]}}
|
|
27
|
+
{"target":{"kind":"equipment-type","equipmentTypeIds":[9]}}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Use `manifest.json` to verify schema versions, source freshness, icon-reference integrity and file hashes. `RELEASES.json` contains machine-readable release metrics.
|
package/RELEASES.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"date": "2026-06-28",
|
|
5
|
+
"contentDigest": "1c43f3ba5ab5fddf6ddd183bbea51f4be9f06688782a920f73476a7382884a92",
|
|
6
|
+
"metrics": {
|
|
7
|
+
"improvement.listViewCount": 8,
|
|
8
|
+
"improvement.listAllCount": 372,
|
|
9
|
+
"improvement.detailRecordCount": 372,
|
|
10
|
+
"equipmentDropFrom.recordCount": 247,
|
|
11
|
+
"equipmentDropFrom.relationCount": 1645,
|
|
12
|
+
"equipmentSpecialBonuses.recordCount": 348,
|
|
13
|
+
"equipmentSpecialBonuses.equipmentRecordCount": 341,
|
|
14
|
+
"equipmentSpecialBonuses.equipmentTypeRecordCount": 7,
|
|
15
|
+
"equipmentSpecialBonuses.ruleCount": 2320,
|
|
16
|
+
"useitemIcons.requiredCount": 13,
|
|
17
|
+
"useitemIcons.missingCount": 0,
|
|
18
|
+
"useitemIcons.count": 16,
|
|
19
|
+
"useitemIcons.totalBytes": 711604,
|
|
20
|
+
"publicData.totalBytes": 2028838
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
]
|
|
Binary file
|
package/audit/build-report.json
CHANGED
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"generatedAt": "2026-06-
|
|
3
|
-
"strict":
|
|
4
|
-
"dropFromIssueCount":
|
|
2
|
+
"generatedAt": "2026-06-28T11:13:26+00:00",
|
|
3
|
+
"strict": true,
|
|
4
|
+
"dropFromIssueCount": 2,
|
|
5
5
|
"specialBonusIssueCount": 0,
|
|
6
|
-
"iconCount":
|
|
6
|
+
"iconCount": 16,
|
|
7
|
+
"requiredUseitemIconIds": [
|
|
8
|
+
2,
|
|
9
|
+
57,
|
|
10
|
+
70,
|
|
11
|
+
71,
|
|
12
|
+
75,
|
|
13
|
+
77,
|
|
14
|
+
78,
|
|
15
|
+
91,
|
|
16
|
+
92,
|
|
17
|
+
94,
|
|
18
|
+
95,
|
|
19
|
+
100,
|
|
20
|
+
104
|
|
21
|
+
],
|
|
22
|
+
"missingUseitemIconIds": []
|
|
7
23
|
}
|