ultimatedarktower 4.1.0 → 5.0.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 +24 -0
- package/dist/esm/index.mjs +1490 -479
- package/dist/src/data/board/index.d.ts +9 -0
- package/dist/src/data/board/index.js +26 -0
- package/dist/src/data/board/index.js.map +1 -0
- package/dist/src/data/board/udtBoardAdjacency.js.map +1 -0
- package/dist/src/data/board/udtBoardAnchors.js.map +1 -0
- package/dist/src/data/board/udtGameBoard.js.map +1 -0
- package/dist/src/data/index.d.ts +19 -0
- package/dist/src/data/index.js +56 -0
- package/dist/src/data/index.js.map +1 -0
- package/dist/src/data/udtBoxInventory.d.ts +47 -0
- package/dist/src/data/udtBoxInventory.js +679 -0
- package/dist/src/data/udtBoxInventory.js.map +1 -0
- package/dist/src/{udtFoes.d.ts → data/udtFoes.d.ts} +1 -1
- package/dist/src/data/udtFoes.js.map +1 -0
- package/dist/src/data/udtGameContent.d.ts +418 -0
- package/dist/src/data/udtGameContent.js +293 -0
- package/dist/src/data/udtGameContent.js.map +1 -0
- package/dist/src/data/udtHeroes.js.map +1 -0
- package/dist/src/data/udtMonuments.js.map +1 -0
- package/dist/src/index.d.ts +2 -15
- package/dist/src/index.js +30 -55
- package/dist/src/index.js.map +1 -1
- package/dist/src/seed/index.d.ts +7 -0
- package/dist/src/seed/index.js +24 -0
- package/dist/src/seed/index.js.map +1 -0
- package/dist/src/seed/udtSeedParser.js.map +1 -0
- package/dist/src/seed/udtSystemRandom.js.map +1 -0
- package/package.json +1 -1
- package/dist/src/udtBoardAdjacency.js.map +0 -1
- package/dist/src/udtBoardAnchors.js.map +0 -1
- package/dist/src/udtFoes.js.map +0 -1
- package/dist/src/udtGameBoard.js.map +0 -1
- package/dist/src/udtHeroes.js.map +0 -1
- package/dist/src/udtMonuments.js.map +0 -1
- package/dist/src/udtSeedParser.js.map +0 -1
- package/dist/src/udtSystemRandom.js.map +0 -1
- /package/dist/src/{udtBoardAdjacency.d.ts → data/board/udtBoardAdjacency.d.ts} +0 -0
- /package/dist/src/{udtBoardAdjacency.js → data/board/udtBoardAdjacency.js} +0 -0
- /package/dist/src/{udtBoardAnchors.d.ts → data/board/udtBoardAnchors.d.ts} +0 -0
- /package/dist/src/{udtBoardAnchors.js → data/board/udtBoardAnchors.js} +0 -0
- /package/dist/src/{udtGameBoard.d.ts → data/board/udtGameBoard.d.ts} +0 -0
- /package/dist/src/{udtGameBoard.js → data/board/udtGameBoard.js} +0 -0
- /package/dist/src/{udtFoes.js → data/udtFoes.js} +0 -0
- /package/dist/src/{udtHeroes.d.ts → data/udtHeroes.d.ts} +0 -0
- /package/dist/src/{udtHeroes.js → data/udtHeroes.js} +0 -0
- /package/dist/src/{udtMonuments.d.ts → data/udtMonuments.d.ts} +0 -0
- /package/dist/src/{udtMonuments.js → data/udtMonuments.js} +0 -0
- /package/dist/src/{udtSeedParser.d.ts → seed/udtSeedParser.d.ts} +0 -0
- /package/dist/src/{udtSeedParser.js → seed/udtSeedParser.js} +0 -0
- /package/dist/src/{udtSystemRandom.d.ts → seed/udtSystemRandom.d.ts} +0 -0
- /package/dist/src/{udtSystemRandom.js → seed/udtSystemRandom.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,30 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [5.0.0] - 2026-06-20
|
|
10
|
+
|
|
11
|
+
### Changed
|
|
12
|
+
|
|
13
|
+
- **BREAKING — reference/game data and the seed subsystem moved off the flat root API into the `data` and `seed` namespaces.** The library's exports are now split by concern: tower control / BLE / protocol stay at the root (`UltimateDarkTower`, adapters, state, logger, diagnostics, helpers, all `udtConstants` like `GLYPHS`/`TOWER_AUDIO_LIBRARY` — unchanged), while browseable reference data lives under `data.*` and the seed encode/decode + RNG subsystem under `seed.*`. The modules also moved on disk into `src/data/` (with `src/data/board/`) and `src/seed/`. Migrate imports:
|
|
14
|
+
|
|
15
|
+
| Old (flat, `'ultimatedarktower'`) | New |
|
|
16
|
+
|---|---|
|
|
17
|
+
| `HEROES`, `HERO_BY_ID`, `Hero`, `HeroId`, `ContentSource` | `data.heroes.*` |
|
|
18
|
+
| `MONUMENTS`, `MONUMENT_BY_ID`, `Monument`, `MonumentId` | `data.monuments.*` |
|
|
19
|
+
| `FOE_STATUSES`, `FOES`, `ADVERSARY_ROSTER`, `ALL_FOES`, `FOE_BY_ID`, `FOE_BY_NAME`, `FoeStatus`/`FoeLevel`/`FoeId`/`FoeName`/`Foe` | `data.foes.*` |
|
|
20
|
+
| `BOARD_LOCATIONS`, `BOARD_LOCATION_BY_NAME`, `BOARD_GROUPINGS`, `BOARD_ANCHORS`, `BOARD_IMAGE_INFO`, `BOARD_ADJACENCY`, `neighborsOf`, `stepDistance`, `shortestPath` + board types | `data.board.*` |
|
|
21
|
+
| seed fns (`charToValue`…`dumpSeedChars`), rosters (`TIER1_FOES`…`GAME_SOURCES`), seed types | `seed.*` |
|
|
22
|
+
| `SystemRandom` | `seed.SystemRandom` |
|
|
23
|
+
|
|
24
|
+
Example: `import { HEROES } from 'ultimatedarktower'` → `import { data } from 'ultimatedarktower'; data.heroes.HEROES`. Sub-namespacing also lets the two distinct hero/foe datasets coexist (board roster `data.heroes.HEROES` vs gameplay content `data.content.HEROES`). This is a major (v5.0.0) change; downstream consumers (`ultimatedarktowerboard`, `ultimatedarktowerdigital`) migrate to the namespaces and bump their dependency.
|
|
25
|
+
|
|
26
|
+
### Added
|
|
27
|
+
|
|
28
|
+
- **`data.content` — gameplay reference content** (`src/data/udtGameContent.ts`). Keyed records with derived union types for the 10 playable heroes (`HEROES` with `defaultVirtues`/`unlockableVirtues`/`bannerAction`), the level 2–4 `FOES` and level-5 `ADVERSARIES`, `COMPANIONS`, and `KINGDOM_VIRTUES` (keyed East/North/South/West), plus list views (`heroes`/`foes`/`adversaries`/`companions`/`kingdomVirtues`). Uses the official spreadsheet wording — intentionally **not** reconciled with `TOWER_AUDIO_LIBRARY` keys (e.g. "Isa The Exile" vs the audio cue `IsatheHollow`).
|
|
29
|
+
- **`data.inventory` — box component counts** (`src/data/udtBoxInventory.ts`). `expansions` / `EXPANSIONS` (Base Game, Alliances, Covenant, Dark Horde) of categorized `Component` line-items, plus `coffers`, `coffers2`, `skullsPack`, and `sleeves`.
|
|
30
|
+
|
|
31
|
+
## [4.1.0] - 2026-06-18
|
|
32
|
+
|
|
9
33
|
### Added
|
|
10
34
|
|
|
11
35
|
- **`onTowerResponse` public callback (`UltimateDarkTower`).** A new assignable hook that fires with the **raw, verbatim bytes** (`Uint8Array`) of every non-battery tower notification (tower-state responses, command acknowledgements). It complements the decoded `onTowerStateUpdate` for consumers that need the exact packet rather than the parsed `TowerState` — e.g. a relay forwarding the tower's 20-byte state to other consumers. Documented in `docs/api/events.md`.
|