@idosgames/core 0.19.0 → 0.20.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 +49 -0
- package/dist/{ClientContext-CrMomCH-.d.ts → RealtimeSession-BGz4OCsQ.d.ts} +659 -102
- package/dist/{ClientContext-BYReJCTF.d.cts → RealtimeSession-Dhadp7UN.d.cts} +659 -102
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +16 -42
- package/dist/index.d.ts +16 -42
- package/dist/index.js +2 -2
- package/dist/realtime/index.cjs +1 -1
- package/dist/realtime/index.d.cts +3 -223
- package/dist/realtime/index.d.ts +3 -223
- package/dist/realtime/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,55 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.20.0] - 2026-10-02
|
|
18
|
+
|
|
19
|
+
Models and services checked against the engine's real C# handlers (types, requests, endpoints) and
|
|
20
|
+
against a deployed DEV title (`packages/harness`, `npm run e2e:module`).
|
|
21
|
+
|
|
22
|
+
### Changed (breaking types)
|
|
23
|
+
|
|
24
|
+
- **`purchase.getDefinitions()`** now returns `PurchaseDefinitionsResponse` (`{ Purchase, Availability }`).
|
|
25
|
+
The engine wraps `GetDefinitions` / `GetUserState` with the platform availability; the old code parsed
|
|
26
|
+
the bare shape and silently got empty data. `getUserState()` still returns the unwrapped state.
|
|
27
|
+
- **Marketplace `MyLeadingBids` → `MyBids`** (the engine's name); `getMyState(bidsFilter?)` and
|
|
28
|
+
`getHistory(token, size, historyFilter?)` gained the filters the engine accepts.
|
|
29
|
+
|
|
30
|
+
### Added
|
|
31
|
+
|
|
32
|
+
- **`client.debugCall(module, action, body?)`** — a raw `Client/{module}/{action}` call as the signed-in
|
|
33
|
+
player: no response schema, no auto-retry, its own throttle key. For tooling, not games: the AI Coder's
|
|
34
|
+
`CallGameApi` reaches it through `@idosgames/app-shell`'s agent bridge (published only inside the live
|
|
35
|
+
preview iframe).
|
|
36
|
+
- **Config `null`s are read the way the engine reads them.** The engine tolerates `null` list elements and
|
|
37
|
+
`null` dictionary values in a title config ("no entry"); one such `null` used to make the whole module
|
|
38
|
+
response unreadable (Lootbox, Reward, TimedEvent, Currency, Match). When a response fails validation as
|
|
39
|
+
received, the transport drops `null`s from lists and dictionaries and validates once more
|
|
40
|
+
(`transport/dropNulls.ts`); a response that validated before is read exactly as before.
|
|
41
|
+
- **`ClientState.User.TimedBoost`** (engine) is applied like every other container — active boosts survive a
|
|
42
|
+
game restart without a `timedBoost.getActive()` call. `ClientState.User.Character` is always present
|
|
43
|
+
(empty for a new player).
|
|
44
|
+
|
|
45
|
+
### Fixed
|
|
46
|
+
|
|
47
|
+
- **`ScheduleMode`** knew 3 of the engine's 6 modes: an `AlwaysOn` event was read as `Cyclic` and its
|
|
48
|
+
`Type` could not be passed to `timedEvent.grantTokens` / `claimMilestone`.
|
|
49
|
+
- **Tutorial**: closing a step that pays (a step `Effects.Grant` or the flow's `AutoClaim` reward) left the
|
|
50
|
+
cached balance stale — the response carries only the flow view. The inventory is now re-read once.
|
|
51
|
+
- **Blockchain**: deposit / withdrawal / confirm apply the server's `StateDelta` only, so a replayed request
|
|
52
|
+
cannot credit or debit the cache twice; crypto balances are always strings.
|
|
53
|
+
- **TimedEvent**: a milestone claim marks only the instance it was claimed in (`TokenEntityID`).
|
|
54
|
+
- **Leaderboard**: `claimMilestone(id, milestoneId, cycleKey?)` for past-cycle grace claims; a past-cycle claim
|
|
55
|
+
no longer marks the current cycle.
|
|
56
|
+
- **Social**: sending a request to someone who already asked you accepts it instead of adding an outgoing one.
|
|
57
|
+
- **Character**: equipped-item `Level` is mirrored after `item.upgradeLevel`.
|
|
58
|
+
- **AI**: `Reward` (re-reads the inventory once), `OutputJson`, `Variables`, `Context`.
|
|
59
|
+
- Reward, TimedBoost, GameLoop, DataCollections, Quest, CoopEvent, CommunityMarketing, Premium models brought
|
|
60
|
+
in line with the engine (missing / renamed fields; fields the engine strips for clients are not modelled).
|
|
61
|
+
|
|
62
|
+
### Deprecated
|
|
63
|
+
|
|
64
|
+
- `premium.purchaseRealMoney` — the engine does not route `Premium/PurchaseRealMoney`.
|
|
65
|
+
|
|
17
66
|
## [0.19.0] - 2026-09-27
|
|
18
67
|
|
|
19
68
|
Realtime multiplayer: a ready-made WebRTC transport on top of the engine's Multiplayer signaling,
|