@arkadiuminc/sdk 2.60.9 → 2.62.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.
@@ -12,6 +12,9 @@ declare type LifecycleEventConfig = {
12
12
  gamesBlacklist: string[];
13
13
  };
14
14
  interface ConfigSchema {
15
+ host: {
16
+ supportsSubscriptions: string[];
17
+ };
15
18
  nakama: {
16
19
  isEnabled: boolean;
17
20
  envs: string[];
@@ -40,6 +43,19 @@ interface ConfigSchema {
40
43
  export declare const schema: {
41
44
  type: string;
42
45
  properties: {
46
+ host: {
47
+ type: string;
48
+ properties: {
49
+ supportsSubscriptions: {
50
+ type: string;
51
+ items: {
52
+ type: string;
53
+ };
54
+ };
55
+ };
56
+ required: string[];
57
+ additionalProperties: boolean;
58
+ };
43
59
  nakama: {
44
60
  type: string;
45
61
  properties: {
@@ -20,6 +20,7 @@ export interface IHost {
20
20
  getArenaNameSync?(): string;
21
21
  getGameSDKUrl(): Promise<string>;
22
22
  getArenaType(): Promise<ArenaType>;
23
+ isSubscriptionsSupported(): Promise<boolean>;
23
24
  }
24
25
  export declare type PurchaseRequest = {
25
26
  type?: string;
@@ -73,6 +74,7 @@ export declare class HostArena implements IHost {
73
74
  sendUrlState(urlState: UrlState): Promise<void>;
74
75
  private updateUrlState;
75
76
  subscribeToUrlStateChange(observer: ObserverFn<UrlState | undefined>): UrlStateUnsubscribeFn;
77
+ isSubscriptionsSupported(): Promise<boolean>;
76
78
  }
77
79
  export declare class HostGame implements IHost {
78
80
  private rpcProvider;
@@ -104,5 +106,6 @@ export declare class HostGame implements IHost {
104
106
  sendUrlState(urlState: UrlState): Promise<void>;
105
107
  private updateUrlState;
106
108
  subscribeToUrlStateChange(observer: ObserverFn<UrlState | undefined>): UrlStateUnsubscribeFn;
109
+ isSubscriptionsSupported(): Promise<boolean>;
107
110
  }
108
111
  export {};
@@ -45,7 +45,7 @@ export declare class PersistenceGame implements IPersistence {
45
45
  private getCollection;
46
46
  private getRemoteToLocalStorageKey;
47
47
  private isRemoteStorageBlacklisted;
48
- getRemoteStorageItem(key: string): Promise<RemoteStorageValueType | null>;
48
+ getRemoteStorageItem(key: string, shouldUnpack?: boolean): Promise<RemoteStorageValueType | null>;
49
49
  private setRemoteStorageItemInternal;
50
50
  setRemoteStorageItem(key: string, value: RemoteStorageValueType): Promise<boolean>;
51
51
  removeRemoteStorageItem(key: string): Promise<boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arkadiuminc/sdk",
3
- "version": "2.60.9",
3
+ "version": "2.62.0",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "main": "dist/pkg/arkadium-sdk.umd.js",