@idosgames/core 0.11.0 → 0.12.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 +38 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +189 -45
- package/dist/index.d.ts +189 -45
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,44 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.12.0] - 2026-09-12
|
|
18
|
+
|
|
19
|
+
Character skins, level-aware crafting, and an exact inventory cache: every response that carries an
|
|
20
|
+
instance delta is now applied in one step, so an unstackable grant no longer shows up twice.
|
|
21
|
+
Breaking — see below.
|
|
22
|
+
|
|
23
|
+
### Breaking
|
|
24
|
+
|
|
25
|
+
- **Item `CustomData` is a string map, not a string.** `ItemDefinition.CustomData` and the
|
|
26
|
+
unstackable instance's `CustomData` are now `Record<string, string>` — the shape the engine
|
|
27
|
+
actually sends. Read the keys directly instead of parsing a string.
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
- **Character skins** — `client.character.unlockSkin(characterID, skinID, { selectedOptionID,
|
|
32
|
+
payment, autoEquip })`, `equipSkin`, `unequipSkin`, `getCharacterSkins`; exports `SKIN_SLOT`,
|
|
33
|
+
`isReservedSlot`, `SKIN_ALREADY_OWNED`; events `character:skinUnlocked` / `skinEquipped` /
|
|
34
|
+
`skinUnequipped`. A skin is an item equipped in `Equipment[SKIN_SLOT]` — hide `@` keys from slot
|
|
35
|
+
UIs with `isReservedSlot`, but keep them in Power. Draw the "Buy" button from
|
|
36
|
+
`getCharacterSkins().Purchasable`, not from config. `SKIN_ALREADY_OWNED` is a normal outcome,
|
|
37
|
+
not an error. Skill `character-system` (section "Skins").
|
|
38
|
+
- **Craft output level** — `CraftDefinition.OutputLevelMode` / `InputSelection` /
|
|
39
|
+
`OutputLevelOverflow` (string enums exported as `CraftOutputLevelMode`,
|
|
40
|
+
`CraftInputSelectionMode`, `CraftOutputLevelOverflow`), `CraftSingleResult.OutputLevel` /
|
|
41
|
+
`BurnedInstances`, and `craft(…, inputInstanceIDs?)` for `ClientSelected` recipes. ⚠
|
|
42
|
+
`inputItemIDs` are catalog `ItemID`s, never instances. An unknown setting value from a newer
|
|
43
|
+
engine falls back to its default instead of failing the whole definitions parse.
|
|
44
|
+
- **`Inventory` instance delta** on every response that carries one (and on `zBatchResponse`),
|
|
45
|
+
applied through `UserData.applyResourcesWithDelta`.
|
|
46
|
+
|
|
47
|
+
### Fixed
|
|
48
|
+
|
|
49
|
+
- An unstackable grant (lootbox, skin purchase, …) no longer appears twice in the cache, and a
|
|
50
|
+
spend no longer drops an extra copy: the delta now reconciles the cache's guesses instead of
|
|
51
|
+
being applied on top of them.
|
|
52
|
+
- `purchase.validatePurchasesBatch` now applies every granted receipt to the cache — it applied
|
|
53
|
+
nothing before.
|
|
54
|
+
|
|
17
55
|
## [0.11.0] - 2026-09-10
|
|
18
56
|
|
|
19
57
|
Player chat, the creator reward programme, and push notifications all land at once, alongside a
|