@idosgames/core 0.13.0 → 0.14.1
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 +51 -1
- package/README.md +7 -5
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +3727 -31
- package/dist/index.d.ts +3727 -31
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,9 +14,59 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.14.1] - 2026-09-16
|
|
18
|
+
|
|
19
|
+
Custom analytics events, A/B variants on the client, and data collections. A patch on purpose:
|
|
20
|
+
everything is additive, and a minor on `0.x` would force a range + version bump of wallet,
|
|
21
|
+
module-sdk, react and app-shell.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- **`client.analytics`** (`AnalyticsService`) — Firebase-style custom events: `logEvent(name,
|
|
26
|
+
params, value)`, `logScreenView`, `flush`, player consent via `setEnabled`. Batched (25 events /
|
|
27
|
+
30 s / tab hidden) and stored in `platform.storage`, retried with the same `BatchID` (the server
|
|
28
|
+
dedupes). Automatic events (`idos_first_open`, `idos_session_start`, `idos_app_update`,
|
|
29
|
+
`idos_os_update`) are sent only once the title config has `Analytics.Enabled === true`. The queue
|
|
30
|
+
belongs to the player: a different player signing in drops the previous player's tail. Exports
|
|
31
|
+
`AnalyticsEventNaming`, `AutomaticEvent`, `AnalyticsLimits`, `AnalyticsDropReason`,
|
|
32
|
+
`AnalyticsAction`, `EVENT_NAME_PATTERN`, `describeUserAgent`; events `analytics:flushed`,
|
|
33
|
+
`analytics:eventsDropped`. `TitlePublicConfigurationModel.Analytics` (optional). Skill
|
|
34
|
+
`analytics-events`.
|
|
35
|
+
- **`client.experiments`** (`ExperimentsService`) — the A/B variants in effect for this player:
|
|
36
|
+
`load()` once per session (`GetExperiments`), then `getVariant`, `getStatus`, `getParams`,
|
|
37
|
+
`getParam(id, key, default)` (typed by the default), `isInVariant`. Before the answer, getters
|
|
38
|
+
return this player's values from the previous session or the default. Events
|
|
39
|
+
`experiments:loaded`, `experiments:changed`. `ExperimentDefinition` gains optional `Goals`,
|
|
40
|
+
`ActivationEvent`, `RolloutVariantID`; new `ExperimentGoalKind`, `PlayerExperimentStatus`,
|
|
41
|
+
`ExperimentAction`. Skill `experiments-system`.
|
|
42
|
+
- **`client.dataCollections`** (`DataCollectionsService`) — the title's own data structures
|
|
43
|
+
(guilds, auctions, orders, catalogs, articles…) with declared fields, sort keys and access rules:
|
|
44
|
+
`getDefinitions`, `get`, `getMany`, `query`, `queryAll`, `count`, `create`, `update`, `set`,
|
|
45
|
+
`increment`, `delete`, `batch`, `getCounter`, `getMyRoles`, files (`beginFileUpload`,
|
|
46
|
+
`uploadFile`), and login-free reads of public collections (`getPublicViews`, `readPublicView`,
|
|
47
|
+
`getPublic`, `searchPublic`). `where(field, op, value)` builds a filter. Not to be confused with
|
|
48
|
+
`client.collection` (collectible card sets). Skill `data-collections`.
|
|
49
|
+
|
|
50
|
+
## [0.14.0] - 2026-09-14
|
|
51
|
+
|
|
52
|
+
Workshop — a catalog of player and publisher content handed out as licenses.
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
|
|
56
|
+
- **`client.workshop`** (`WorkshopService`) — browse the catalog (`browse`, `getContent`,
|
|
57
|
+
`getCollection`, `getCreatorProfile`), publish in one call (`publish`: declare → upload by signed
|
|
58
|
+
URLs → verify; `contentID` uploads a new revision; a `client.ai` asset can be published by URL),
|
|
59
|
+
`updateContent`, `unpublish`, `getMyContent`, get access (`acquire(contentID, option)` — sends the
|
|
60
|
+
option's price as `ExpectedPrice`, so a changed price is refused instead of charged), download
|
|
61
|
+
(`getDownload`, `downloadFiles`), `getMyLicenses`, likes, favorites, following authors, `report`.
|
|
62
|
+
Access options are ANY-of: `Free`, `Price`, `Holding` (`WhileHeld` — checked on every download, no
|
|
63
|
+
license; `UnlockOnce`). Definitions come from `getDefinitions()` only — the section is not part of
|
|
64
|
+
the public title config. Events `workshop:definitionsLoaded`, `workshop:published`,
|
|
65
|
+
`workshop:updated`, `workshop:acquired`, `workshop:reacted`. Skill `workshop-system`.
|
|
66
|
+
|
|
17
67
|
## [0.13.0] - 2026-09-13
|
|
18
68
|
|
|
19
|
-
|
|
69
|
+
InApp AI generation.
|
|
20
70
|
|
|
21
71
|
### Added
|
|
22
72
|
|
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`, `
|
|
63
|
-
`
|
|
64
|
-
`
|
|
65
|
-
`
|
|
66
|
-
`
|
|
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
|
|