@idosgames/core 0.21.4 → 0.21.6
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 +36 -0
- package/dist/{RealtimeSession-wV_8qMas.d.cts → RealtimeSession-BBJ3gAb8.d.cts} +1 -1
- package/dist/{RealtimeSession-C5VICo95.d.ts → RealtimeSession-D7evucmN.d.ts} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/platform/index.d.cts +2 -1
- package/dist/platform/index.d.ts +2 -1
- package/dist/realtime/index.d.cts +2 -2
- package/dist/realtime/index.d.ts +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,42 @@ and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.ht
|
|
|
14
14
|
|
|
15
15
|
## [Unreleased]
|
|
16
16
|
|
|
17
|
+
## [0.21.6] - 2026-10-13
|
|
18
|
+
|
|
19
|
+
Documentation only — no behaviour change in `core`. Released together with the shared interface language
|
|
20
|
+
switch in the companion packages.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- `PlatformTopUpResult` error codes now document `BUSY` (a top-up window is already open) and `COOLDOWN`
|
|
25
|
+
(the previous top-up failed less than 30 s ago — the site pauses repeat requests).
|
|
26
|
+
|
|
27
|
+
### Companion packages
|
|
28
|
+
|
|
29
|
+
- `@idosgames/react` 0.5.0: one interface language for the whole game — `setLanguage`, `onLanguageChange`,
|
|
30
|
+
`useLanguage`, `LanguageSwitch` (`@idosgames/react/ui`); the choice is stored and announced under the
|
|
31
|
+
`idos:language` key/event that game modules can read too.
|
|
32
|
+
- `@idosgames/module-sdk` 0.11.0: `FeatureDefinition.label` may be a function (a tab title in the current
|
|
33
|
+
language); `RouteEntry.ownExit` — a game that draws its own "to the lobby" button gets no host chrome.
|
|
34
|
+
- `@idosgames/app-shell` 0.13.0: the lobby, sign-in screen and account popup follow the language switch
|
|
35
|
+
(a `LanguageSwitch` in the account popup); feature labels are read live.
|
|
36
|
+
- `@idosgames/mcp` 0.1.33: bundles the current registry (new `voxelcraft-characters`, `voxelcraft-quests`
|
|
37
|
+
skills; updated module-contract, compose-modules, ui-kit, voxelcraft-worlds).
|
|
38
|
+
|
|
39
|
+
## [0.21.5] - 2026-10-10
|
|
40
|
+
|
|
41
|
+
Daily caps on crypto rewards are the publisher's own setting now. Additive — nothing that worked changes.
|
|
42
|
+
|
|
43
|
+
### Added
|
|
44
|
+
|
|
45
|
+
- `CryptoServerGrantPolicy.RefuseOverCap` (optional boolean) in the title config model. With a daily
|
|
46
|
+
reward cap set (`PerPlayerDailyTokens` / `TitleDailyTokens`), `true` makes the engine refuse a reward
|
|
47
|
+
over the cap with `CRYPTO_SERVER_GRANT_CAP_EXCEEDED:{currency}` instead of granting it as the
|
|
48
|
+
currency's IOU (the default). Both caps and this choice are editable for the title token (Main) too.
|
|
49
|
+
- `@idosgames/react` 0.4.6: `errorText()` (`@idosgames/react/ui`) turns that refusal into
|
|
50
|
+
"Today's reward limit is reached — come back tomorrow" / «Суточный лимит наград исчерпан — приходите
|
|
51
|
+
завтра» instead of showing the raw code.
|
|
52
|
+
|
|
17
53
|
## [0.21.4] - 2026-10-09
|
|
18
54
|
|
|
19
55
|
A 429 now waits exactly as long as the server says. Backwards-compatible: against an older server
|
|
@@ -146,7 +146,7 @@ type VirtualCurrencyDefinition = { CurrencyID: string; DisplayName?: null | stri
|
|
|
146
146
|
type CryptoNetworkBinding = { NetworkID: string; ContractAddress?: null | string; Decimals?: null | number; MinWithdraw?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
|
|
147
147
|
type CryptoLimits = { DailyWithdrawUsd?: null | string; MonthlyWithdrawUsd?: null | string; KycRequiredAboveUsd?: null | string; [key: string]: unknown; };
|
|
148
148
|
type CryptoCurrencyPermissions = { DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; SpendableInGame?: null | boolean; ConvertibleToVirtual?: null | boolean; [key: string]: unknown; };
|
|
149
|
-
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; UsdPriceRefreshMinutes?: null | number; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; PlayerTradeFeePercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
149
|
+
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; UsdPriceRefreshMinutes?: null | number; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; PlayerTradeFeePercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; RefuseOverCap?: null | boolean; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
150
150
|
/** The title's currency catalog (config), returned by getCurrencyDefinitions(). */
|
|
151
151
|
interface CurrencyDefinitions {
|
|
152
152
|
VirtualCurrencies?: Record<string, VirtualCurrencyDefinition> | null;
|
|
@@ -146,7 +146,7 @@ type VirtualCurrencyDefinition = { CurrencyID: string; DisplayName?: null | stri
|
|
|
146
146
|
type CryptoNetworkBinding = { NetworkID: string; ContractAddress?: null | string; Decimals?: null | number; MinWithdraw?: null | string; DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; [key: string]: unknown; };
|
|
147
147
|
type CryptoLimits = { DailyWithdrawUsd?: null | string; MonthlyWithdrawUsd?: null | string; KycRequiredAboveUsd?: null | string; [key: string]: unknown; };
|
|
148
148
|
type CryptoCurrencyPermissions = { DepositsEnabled?: null | boolean; WithdrawalsEnabled?: null | boolean; SpendableInGame?: null | boolean; ConvertibleToVirtual?: null | boolean; [key: string]: unknown; };
|
|
149
|
-
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; UsdPriceRefreshMinutes?: null | number; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; PlayerTradeFeePercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
149
|
+
type CryptoCurrencyDefinition = { CurrencyID: string; DisplayName?: null | string; AssetPaths?: null | Record<string, string>; DisplayDecimals?: null | number; ValueInUSD?: null | string; ValueInUSDUpdatedAt?: null | string; UsdPriceRefreshMinutes?: null | number; DeveloperWithdrawalFeePercent?: null | string; CommunityMarketingWithdrawalFeePercent?: null | string; WithdrawalBurnPercent?: null | string; PlayerTradeFeePercent?: null | string; Networks?: null | Array<CryptoNetworkBinding>; Limits?: null | CryptoLimits; Permissions?: null | CryptoCurrencyPermissions; Conversion?: null | CurrencyConversion; Audit?: null | CurrencyAudit; Status?: null | 'Active' | 'Hidden' | 'Deprecated' | 'Maintenance'; ServerGrantPolicy?: null | { Mode?: null | string; FundingNetworkID?: null | string; PerPlayerDailyTokens?: null | number; TitleDailyTokens?: null | number; RefuseOverCap?: null | boolean; [key: string]: unknown; }; UnbackedRewardCurrencyID?: null | string; [key: string]: unknown; };
|
|
150
150
|
/** The title's currency catalog (config), returned by getCurrencyDefinitions(). */
|
|
151
151
|
interface CurrencyDefinitions {
|
|
152
152
|
VirtualCurrencies?: Record<string, VirtualCurrencyDefinition> | null;
|