@idosgames/core 0.14.0 → 0.15.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 CHANGED
@@ -14,6 +14,62 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
14
14
 
15
15
  ## [Unreleased]
16
16
 
17
+ ## [0.15.0] - 2026-09-16
18
+
19
+ ### Added
20
+
21
+ - **`client.purchase.buyWithTelegramStars(productID, { open? })`**: buys a product priced in
22
+ Telegram Stars — asks the server for an invoice link and opens it via
23
+ `Telegram.WebApp.openInvoice` (or returns the link for the host to open itself with
24
+ `open: false`). Nothing is granted locally: Telegram reports the payment to the title bot's
25
+ webhook and the server grants from there, same as store receipts.
26
+ - `IapStore` gained a `"TelegramStars"` member, and `IapProductDefinition` gained an optional
27
+ `TelegramStarsPrice` — unset means the product isn't sold for Stars.
28
+
29
+ ## [0.14.2] - 2026-09-16
30
+
31
+ Found by the first live run of the Workshop against a deployed backend.
32
+
33
+ ### Changed
34
+
35
+ - **`client.workshop`**: a failed upload/download of workshop files (`publish`, `downloadFiles`)
36
+ now says that a storage bucket without a CORS rule for the page's origin is the usual cause if the
37
+ network is fine. A browser reports that rejection as a bare network error, which read like a dropped
38
+ connection.
39
+
40
+ ## [0.14.1] - 2026-09-16
41
+
42
+ Custom analytics events, A/B variants on the client, and data collections. A patch on purpose:
43
+ everything is additive, and a minor on `0.x` would force a range + version bump of wallet,
44
+ module-sdk, react and app-shell.
45
+
46
+ ### Added
47
+
48
+ - **`client.analytics`** (`AnalyticsService`) — Firebase-style custom events: `logEvent(name,
49
+ params, value)`, `logScreenView`, `flush`, player consent via `setEnabled`. Batched (25 events /
50
+ 30 s / tab hidden) and stored in `platform.storage`, retried with the same `BatchID` (the server
51
+ dedupes). Automatic events (`idos_first_open`, `idos_session_start`, `idos_app_update`,
52
+ `idos_os_update`) are sent only once the title config has `Analytics.Enabled === true`. The queue
53
+ belongs to the player: a different player signing in drops the previous player's tail. Exports
54
+ `AnalyticsEventNaming`, `AutomaticEvent`, `AnalyticsLimits`, `AnalyticsDropReason`,
55
+ `AnalyticsAction`, `EVENT_NAME_PATTERN`, `describeUserAgent`; events `analytics:flushed`,
56
+ `analytics:eventsDropped`. `TitlePublicConfigurationModel.Analytics` (optional). Skill
57
+ `analytics-events`.
58
+ - **`client.experiments`** (`ExperimentsService`) — the A/B variants in effect for this player:
59
+ `load()` once per session (`GetExperiments`), then `getVariant`, `getStatus`, `getParams`,
60
+ `getParam(id, key, default)` (typed by the default), `isInVariant`. Before the answer, getters
61
+ return this player's values from the previous session or the default. Events
62
+ `experiments:loaded`, `experiments:changed`. `ExperimentDefinition` gains optional `Goals`,
63
+ `ActivationEvent`, `RolloutVariantID`; new `ExperimentGoalKind`, `PlayerExperimentStatus`,
64
+ `ExperimentAction`. Skill `experiments-system`.
65
+ - **`client.dataCollections`** (`DataCollectionsService`) — the title's own data structures
66
+ (guilds, auctions, orders, catalogs, articles…) with declared fields, sort keys and access rules:
67
+ `getDefinitions`, `get`, `getMany`, `query`, `queryAll`, `count`, `create`, `update`, `set`,
68
+ `increment`, `delete`, `batch`, `getCounter`, `getMyRoles`, files (`beginFileUpload`,
69
+ `uploadFile`), and login-free reads of public collections (`getPublicViews`, `readPublicView`,
70
+ `getPublic`, `searchPublic`). `where(field, op, value)` builds a filter. Not to be confused with
71
+ `client.collection` (collectible card sets). Skill `data-collections`.
72
+
17
73
  ## [0.14.0] - 2026-09-14
18
74
 
19
75
  Workshop — a catalog of player and publisher content handed out as licenses.
package/README.md CHANGED
@@ -59,11 +59,13 @@ const off = client.on("currency:converted", (payload) => {
59
59
 
60
60
  ## What's on the client
61
61
 
62
- `client.auth`, `user`, `currency`, `item`, `store`, `lootbox`, `reward`, `quest`,
63
- `timedEvent`, `leaderboard`, `season`, `premium`, `character`, `match`, `craft`,
64
- `collection`, `coopEvent`, `dealOffer`, `referral`, `social`, `timedBoost`,
65
- `userCustomData`, `title`, `gameLoop` — plus `client.data` (local cache) and
66
- `client.on/once/off` (events).
62
+ `client.auth`, `user`, `currency`, `item`, `store`, `purchase`, `checkout`, `lootbox`,
63
+ `reward`, `quest`, `tutorial`, `analytics`, `experiments`, `communityMarketing`, `chat`,
64
+ `push`, `localization`, `timedEvent`, `leaderboard`, `season`, `premium`, `character`,
65
+ `match`, `craft`, `ai`, `collection`, `coopEvent`, `dealOffer`, `referral`, `social`,
66
+ `timedBoost`, `userCustomData`, `titleCustomData`, `title`, `gameLoop`, `cloudCode`,
67
+ `blockchain`, `marketplace`, `multiplayer`, `workshop`, `dataCollections` — plus
68
+ `client.data` (local cache) and `client.on/once/off` (events).
67
69
 
68
70
  ## Entry points
69
71