@rudderstack/analytics-js 3.0.0-beta.1 → 3.0.0-beta.3

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
@@ -3,11 +3,24 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # 3.0.0-beta.1 (2023-07-25)
6
+ # [3.0.0-beta.3](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js@3.0.0-beta.2...@rudderstack/analytics-js@3.0.0-beta.3) (2023-08-10)
7
7
 
8
8
 
9
9
  ### Bug Fixes
10
10
 
11
+ * **analytics-js:** add polyfill and feature detection for CustomEvent ([92c565f](https://github.com/rudderlabs/rudder-sdk-js/commit/92c565fca6ee2c90e0d7c34426e9a502d06ca745))
12
+ * **analytics-js:** change default cdn paths to the beta ones ([8d4bbe4](https://github.com/rudderlabs/rudder-sdk-js/commit/8d4bbe4bbf8be60dbdf0d07244a11da8f1948e5f))
13
+
14
+
15
+
16
+
17
+
18
+ # 3.0.0-beta.2 (2023-08-09)
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * add missing load option to buffer data plane events ([#1265](https://github.com/rudderlabs/rudder-sdk-js/issues/1265)) ([8bca1b2](https://github.com/rudderlabs/rudder-sdk-js/commit/8bca1b253dd3be90a2e7e6c258847c417c578850))
11
24
  * **analytics-js:** add new flag in errorHandler, add state reset method ([#998](https://github.com/rudderlabs/rudder-sdk-js/issues/998)) ([4c76315](https://github.com/rudderlabs/rudder-sdk-js/commit/4c76315481793cd29ae4dc9b249a0684df2540d4))
12
25
  * **analytics-js:** data residency url detection issue ([#1163](https://github.com/rudderlabs/rudder-sdk-js/issues/1163)) ([4e80937](https://github.com/rudderlabs/rudder-sdk-js/commit/4e8093742935366918de2526eeabdf2b51851f55))
13
26
  * **analytics-js:** fix edge cases & add unit tests for error handler ([068f305](https://github.com/rudderlabs/rudder-sdk-js/commit/068f305a6f401b7b521b2f0b0bdd8124d31c67c0))
@@ -17,31 +30,38 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
17
30
  * auto capture anonymous id ([#1160](https://github.com/rudderlabs/rudder-sdk-js/issues/1160)) ([2947ead](https://github.com/rudderlabs/rudder-sdk-js/commit/2947ead0b431ea608f510939f1d68ca1bae58095))
18
31
  * auto detection of destSDKBaseUrl ([#1144](https://github.com/rudderlabs/rudder-sdk-js/issues/1144)) ([1d6a1d7](https://github.com/rudderlabs/rudder-sdk-js/commit/1d6a1d7788f03fcd3d0eb101c277737a5f758368))
19
32
  * avoid persisting user id in alias api ([#1057](https://github.com/rudderlabs/rudder-sdk-js/issues/1057)) ([273eb9e](https://github.com/rudderlabs/rudder-sdk-js/commit/273eb9e27fda917f443cd1eff63d74580b612662))
33
+ * config url deduction ([#1282](https://github.com/rudderlabs/rudder-sdk-js/issues/1282)) ([658dc24](https://github.com/rudderlabs/rudder-sdk-js/commit/658dc24e077035898871888bfd4c72e88f16deb2))
20
34
  * cookie storage options ([#1232](https://github.com/rudderlabs/rudder-sdk-js/issues/1232)) ([23970bc](https://github.com/rudderlabs/rudder-sdk-js/commit/23970bc88965b8a8631f406cd0c47b6bb949e0ea))
35
+ * error reporting ([#1285](https://github.com/rudderlabs/rudder-sdk-js/issues/1285)) ([1b9324e](https://github.com/rudderlabs/rudder-sdk-js/commit/1b9324e0be38eecbc25cb08be7650d8c1e474d35))
36
+ * ie11 incompatibility issues ([#1279](https://github.com/rudderlabs/rudder-sdk-js/issues/1279)) ([80c59ae](https://github.com/rudderlabs/rudder-sdk-js/commit/80c59ae6b1b5908087e36d39956becab5523027e))
21
37
  * issues in rudder event structure ([#1111](https://github.com/rudderlabs/rudder-sdk-js/issues/1111)) ([bed6210](https://github.com/rudderlabs/rudder-sdk-js/commit/bed6210cdc1097f1e3a75e9151cace1a7425401d))
22
38
  * issues post sanity checks, tidy up code structure, add uaCH, npm packaging ([#1132](https://github.com/rudderlabs/rudder-sdk-js/issues/1132)) ([0fa64c1](https://github.com/rudderlabs/rudder-sdk-js/commit/0fa64c1bb277cbd20b0d7c984347e5fe52e4d4fe))
23
39
  * native destinations queue options ([#1209](https://github.com/rudderlabs/rudder-sdk-js/issues/1209)) ([0341fc8](https://github.com/rudderlabs/rudder-sdk-js/commit/0341fc8a35433209a402f497cd92865bcec9f20f))
24
40
  * normalize all error messages ([#1191](https://github.com/rudderlabs/rudder-sdk-js/issues/1191)) ([b45f3f3](https://github.com/rudderlabs/rudder-sdk-js/commit/b45f3f324afd2df6e806a586fe7d281392b03d79))
25
41
  * storage option configuration ([#1217](https://github.com/rudderlabs/rudder-sdk-js/issues/1217)) ([7dc0488](https://github.com/rudderlabs/rudder-sdk-js/commit/7dc048895f7fae0783284dc5351b9a86df8981db))
42
+ * use destination display name throughout the app ([#1269](https://github.com/rudderlabs/rudder-sdk-js/issues/1269)) ([6e6a18c](https://github.com/rudderlabs/rudder-sdk-js/commit/6e6a18c5248654963130e24d94191350292a5f58))
26
43
  * xhr queue plugin retry mechanism ([#1171](https://github.com/rudderlabs/rudder-sdk-js/issues/1171)) ([6d8d2b9](https://github.com/rudderlabs/rudder-sdk-js/commit/6d8d2b9db554459061995494de0b42c1f35b3bb6))
27
44
 
28
45
 
29
46
  ### Features
30
47
 
31
48
  * add application state to bugsnag metadata ([#1168](https://github.com/rudderlabs/rudder-sdk-js/issues/1168)) ([7273e3a](https://github.com/rudderlabs/rudder-sdk-js/commit/7273e3af6683165c3c33265c64db6fb28a3ff5e5))
49
+ * add validations for load options ([#1277](https://github.com/rudderlabs/rudder-sdk-js/issues/1277)) ([1a276bf](https://github.com/rudderlabs/rudder-sdk-js/commit/1a276bf99471790080bc74f3e126e208cb416eaf))
32
50
  * **analytics-js-plugins:** new beacon queue plugin ([#1173](https://github.com/rudderlabs/rudder-sdk-js/issues/1173)) ([9e4602b](https://github.com/rudderlabs/rudder-sdk-js/commit/9e4602b67c7ce1345023388e09c3701820f71091))
33
51
  * **analytics-js:** add application lifecycle and analytics class ([71ceed5](https://github.com/rudderlabs/rudder-sdk-js/commit/71ceed5276a9a4da83df4654b76b1d012e72f766))
34
52
  * **analytics-js:** add external source loader, fix async tests, cleanup ([8ba7bdf](https://github.com/rudderlabs/rudder-sdk-js/commit/8ba7bdf260a6771bf4cfc154b9f84ab61846a622))
35
53
  * **analytics-js:** add global state initial structure ([f636227](https://github.com/rudderlabs/rudder-sdk-js/commit/f636227e0094a4a3f0bfdc17d52c4731ab17e20c))
36
- * **analytics-js:** add globaly exposed analytics instances ([03931a6](https://github.com/rudderlabs/rudder-sdk-js/commit/03931a67c51a62b41db1398a28f1e82d48b9a8a5))
54
+ * **analytics-js:** add globally exposed analytics instances ([03931a6](https://github.com/rudderlabs/rudder-sdk-js/commit/03931a67c51a62b41db1398a28f1e82d48b9a8a5))
37
55
  * **analytics-js:** add HttpClient, Logger & ErrorHandler services ([236f951](https://github.com/rudderlabs/rudder-sdk-js/commit/236f95198d8f2ae4a029339074fa063679fbaa38))
38
56
  * **analytics-js:** add more state slices ([#973](https://github.com/rudderlabs/rudder-sdk-js/issues/973)) ([7c1e627](https://github.com/rudderlabs/rudder-sdk-js/commit/7c1e6275ad9eeec2ccdd4a100b085437f78a2603))
39
57
  * **analytics-js:** add online status detection in capabilities mngr ([a4702da](https://github.com/rudderlabs/rudder-sdk-js/commit/a4702dab9718f66cacc8aa58add41840f1853a23))
58
+ * **analytics-js:** add RSA_Initialiser & RSA_Ready event dispatching ([#1283](https://github.com/rudderlabs/rudder-sdk-js/issues/1283)) ([612b388](https://github.com/rudderlabs/rudder-sdk-js/commit/612b3886b13c4ce9c6b616218b62c7c1041e671e))
40
59
  * **analytics-js:** add storage manager,fix issue with localhost cookies ([9a5bff7](https://github.com/rudderlabs/rudder-sdk-js/commit/9a5bff7ebbf76da9cbb768c401362b57da67d37b))
41
60
  * **analytics-js:** expose global analytics instances & preload buffer ([203919f](https://github.com/rudderlabs/rudder-sdk-js/commit/203919fd8efd263afb41732cb912898d50ca5781))
42
61
  * **analytics-js:** migrated js-plugin dependency to source code ([4be78ab](https://github.com/rudderlabs/rudder-sdk-js/commit/4be78abcddbc11bae85c5d5f2718a46a4b0119db))
43
62
  * bugsnag plugin ([#1159](https://github.com/rudderlabs/rudder-sdk-js/issues/1159)) ([c59cfd9](https://github.com/rudderlabs/rudder-sdk-js/commit/c59cfd9e6e4160e4759695dddf527bfc512f119e))
44
63
  * config manager ([#990](https://github.com/rudderlabs/rudder-sdk-js/issues/990)) ([cc48a29](https://github.com/rudderlabs/rudder-sdk-js/commit/cc48a29b414ffbbbba10980c73a3fa78c6fd5e7c))
64
+ * configurable storage type ([#1258](https://github.com/rudderlabs/rudder-sdk-js/issues/1258)) ([08e3616](https://github.com/rudderlabs/rudder-sdk-js/commit/08e3616bece2ad3df1c533833b344a9c811e70fe))
45
65
  * consent manager plugin ([#1096](https://github.com/rudderlabs/rudder-sdk-js/issues/1096)) ([7af1cce](https://github.com/rudderlabs/rudder-sdk-js/commit/7af1ccec03997cd55ce70aa1e4afba05b22da264))
46
66
  * create bundling and packaging for v3 ([#1098](https://github.com/rudderlabs/rudder-sdk-js/issues/1098)) ([3f14bbe](https://github.com/rudderlabs/rudder-sdk-js/commit/3f14bbe8d9d6af62d4366873c59c9c21df704675))
47
67
  * dataplane events queue ([#1088](https://github.com/rudderlabs/rudder-sdk-js/issues/1088)) ([17f45bc](https://github.com/rudderlabs/rudder-sdk-js/commit/17f45bc1a57f37edee56808aa1f337deef208528))
@@ -49,10 +69,12 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
49
69
  * events service ([#1000](https://github.com/rudderlabs/rudder-sdk-js/issues/1000)) ([7bb3025](https://github.com/rudderlabs/rudder-sdk-js/commit/7bb30251f4e5bfb169e69aca377e7e57df8ac58a))
50
70
  * hybrid mode ([#1147](https://github.com/rudderlabs/rudder-sdk-js/issues/1147)) ([e623214](https://github.com/rudderlabs/rudder-sdk-js/commit/e6232145818032aa6e33130511b1e1d41d4a293b))
51
71
  * improve adblocker detection ([#1176](https://github.com/rudderlabs/rudder-sdk-js/issues/1176)) ([6fb57ef](https://github.com/rudderlabs/rudder-sdk-js/commit/6fb57ef40c4ea73cb9d1c01844458702e2819ebc))
72
+ * improve destination loader logic ([#1263](https://github.com/rudderlabs/rudder-sdk-js/issues/1263)) ([c154155](https://github.com/rudderlabs/rudder-sdk-js/commit/c154155102f22ac17c6f82b8869b85000a5cc69d))
52
73
  * ketch consent manager plugin ([#1210](https://github.com/rudderlabs/rudder-sdk-js/issues/1210)) ([75d4588](https://github.com/rudderlabs/rudder-sdk-js/commit/75d4588481e3fe86bad804162663f332ce2f895d))
53
74
  * log messages language dictionary ([#1206](https://github.com/rudderlabs/rudder-sdk-js/issues/1206)) ([77a867e](https://github.com/rudderlabs/rudder-sdk-js/commit/77a867e9c109122a9223293cb5af25f1ccb48ecc))
54
75
  * native destinations events queue ([#1127](https://github.com/rudderlabs/rudder-sdk-js/issues/1127)) ([ead338c](https://github.com/rudderlabs/rudder-sdk-js/commit/ead338cb5a45c7d109428259459892ff896a0ccb))
55
76
  * plugins manager & capabilities manager ([#1062](https://github.com/rudderlabs/rudder-sdk-js/issues/1062)) ([9d03bbd](https://github.com/rudderlabs/rudder-sdk-js/commit/9d03bbdea3bf2658f56580aa9bb8df2af9baf9a0))
77
+ * refactor apis ([#1240](https://github.com/rudderlabs/rudder-sdk-js/issues/1240)) ([4f25a03](https://github.com/rudderlabs/rudder-sdk-js/commit/4f25a0377ef438a4e4b5dcad6f2504ec5da5f7a3))
56
78
  * remove crypto based encryption for persistent data ([#1197](https://github.com/rudderlabs/rudder-sdk-js/issues/1197)) ([187b701](https://github.com/rudderlabs/rudder-sdk-js/commit/187b7016e75f092c54698fe7fe3652656943e35f))
57
79
  * rename sdk file name ([#1190](https://github.com/rudderlabs/rudder-sdk-js/issues/1190)) ([0167e38](https://github.com/rudderlabs/rudder-sdk-js/commit/0167e384a05e1fa33b3da3b940f3952ee06ef21e))
58
80
  * session tracking ([#1061](https://github.com/rudderlabs/rudder-sdk-js/issues/1061)) ([e46e98c](https://github.com/rudderlabs/rudder-sdk-js/commit/e46e98c5211aaccb325e4c1109d8c26e4c41394d))
package/README.md CHANGED
@@ -1,11 +1,53 @@
1
- # `v3`
1
+ ## [![Release](https://img.shields.io/npm/v/%40rudderstack/analytics-js)](https://www.npmjs.com/package/@rudderstack/analytics-js) [![TypeScript](https://img.shields.io/badge/%3C%2F%3E-TypeScript-%230074c1.svg)](https://www.typescriptlang.org/) ![npm bundle size (scoped)](https://img.shields.io/bundlephobia/min/%40rudderstack/analytics-js) ![npm](https://img.shields.io/npm/dw/%40rudderstack/analytics-js)
2
2
 
3
- > TODO: description
3
+ <p align="center">
4
+ <a href="https://rudderstack.com/">
5
+ <img src="https://user-images.githubusercontent.com/59817155/121357083-1c571300-c94f-11eb-8cc7-ce6df13855c9.png">
6
+ </a>
7
+ <br />
8
+ <caption>The Customer Data Platform for Developers</caption>
9
+ </p>
10
+ <p align="center">
11
+ <b>
12
+ <a href="https://rudderstack.com">Website</a>
13
+ ·
14
+ <a href="https://rudderstack.com/docs/stream-sources/rudderstack-sdk-integration-guides/rudderstack-javascript-sdk/">Documentation</a>
15
+ ·
16
+ <a href="https://rudderstack.com/join-rudderstack-slack-community">Community Slack</a>
17
+ </b>
18
+ </p>
4
19
 
5
- ## Usage
20
+ ---
6
21
 
7
- ```
8
- const v3 = require('v3');
22
+ # [](https://github.com/rudderlabs/rudder-sdk-js/blob/main/packages/analytics-js/README.md#@rudderstack-analytics-js)@rudderstack/analytics-js
23
+
24
+ RudderStack Javascript SDK for browsers.
25
+
26
+ > For detailed documentation on the RudderStack JavaScript SDK, click [**here**](https://www.rudderstack.com/docs/sources/event-streams/sdks/rudderstack-javascript-sdk/).
27
+
28
+ ## Table of Contents
29
+
30
+ - [**Installing the package**](https://github.com/rudderlabs/rudder-sdk-js/blob/main/packages/analytics-js/README.md#installing-the-package)
31
+
32
+ ## [](https://github.com/rudderlabs/rudder-sdk-js/blob/main/packages/analytics-js/README.md#installing-the-package)Installing the package
33
+
34
+ To install the package via npm, run the following command:
9
35
 
10
- // TODO: DEMONSTRATE API
36
+ ```bash
37
+ npm install @rudderstack/analytics-js --save
11
38
  ```
39
+
40
+ **Note that this NPM module is only meant to be used for a browser installation**. If you want to integrate RudderStack with your Node.js application, refer to the [**RudderStack Node.js repository**](https://github.com/rudderlabs/rudder-sdk-node).
41
+
42
+ ## Usage in Chrome Extensions
43
+
44
+ RudderStack JS SDK can be used for browsers.
45
+
46
+ For examples and specific details look into [examples folder](https://github.com/rudderlabs/rudder-sdk-js/blob/main/examples)
47
+
48
+ ## [](https://github.com/rudderlabs/rudder-sdk-js/blob/main/packages/analytics-js/README.md#how-to-build-the-sdk)How to build the SDK
49
+
50
+ - Look for run scripts in the `package.json` file for getting the browser minified and non-minified builds. The builds are updated in the `dist` folder of the directory. Among the others, some of the important ones are:
51
+
52
+ - `npm run build:browser:modern`: This outputs **dist/cdn** folder that contains the cdn package contents.
53
+ - `npm run build:npm`: This outputs **dist/npm** folder that contains the npm package contents.
package/index.d.ts CHANGED
@@ -6,35 +6,43 @@ import { ApiObject } from '@rudderstack/analytics-js-common/types/ApiObject';
6
6
  export { ApiObject } from '@rudderstack/analytics-js-common/types/ApiObject';
7
7
  export { IntegrationOpts } from '@rudderstack/analytics-js-common/types/Integration';
8
8
  export { ResidencyServerRegion } from '@rudderstack/analytics-js-common/types/DataResidency';
9
- import { ILogger } from '@rudderstack/analytics-js-common/types/Logger';
9
+ import { LogLevel, ILogger } from '@rudderstack/analytics-js-common/types/Logger';
10
10
  export { LogLevel } from '@rudderstack/analytics-js-common/types/Logger';
11
11
  import { IPluginsManager } from '@rudderstack/analytics-js-common/types/PluginsManager';
12
12
  export { PluginName } from '@rudderstack/analytics-js-common/types/PluginsManager';
13
13
  import { IRudderAnalytics } from '@rudderstack/analytics-js-common/types/IRudderAnalytics';
14
14
  import { Nullable } from '@rudderstack/analytics-js-common/types/Nullable';
15
15
  import { IHttpClient } from '@rudderstack/analytics-js-common/types/HttpClient';
16
+ import { LifecycleStatus } from '@rudderstack/analytics-js-common/types/ApplicationLifecycle';
16
17
  import { IErrorHandler } from '@rudderstack/analytics-js-common/types/ErrorHandler';
17
18
  import { IExternalSrcLoader } from '@rudderstack/analytics-js-common/services/ExternalSrcLoader/types';
18
19
  import { IStore, IStorage, IStoreConfig, IStoreManager } from '@rudderstack/analytics-js-common/types/Store';
19
- import { LifecycleStatus } from '@rudderstack/analytics-js-common/types/ApplicationLifecycle';
20
20
  import { PageCallOptions, TrackCallOptions, IdentifyCallOptions, AliasCallOptions, GroupCallOptions } from '@rudderstack/analytics-js-common/utilities/eventMethodOverloads';
21
21
  import { ApplicationState } from '@rudderstack/analytics-js-common/types/ApplicationState';
22
22
 
23
- interface ICapabilitiesManager {
24
- logger?: ILogger;
25
- errorHandler?: IErrorHandler;
26
- externalSrcLoader?: IExternalSrcLoader;
27
- init(): void;
28
- detectBrowserCapabilities(): void;
29
- prepareBrowserCapabilities(): void;
30
- attachWindowListeners(): void;
31
- onReady(): void;
32
- }
23
+ type LoggerProvider = Record<Exclude<Lowercase<LogLevel>, Lowercase<LogLevel.None>>, (...data: any[]) => void>;
33
24
 
34
- interface IEventManager {
35
- init(): void;
36
- addEvent(event: APIEvent): void;
37
- }
25
+ /**
26
+ * Service to log messages/data to output provider, default is console
27
+ */
28
+ declare class Logger implements ILogger {
29
+ minLogLevel: number;
30
+ scope?: string;
31
+ logProvider: LoggerProvider;
32
+ constructor(minLogLevel?: LogLevel, scope?: string, logProvider?: Console);
33
+ log(...data: any[]): void;
34
+ info(...data: any[]): void;
35
+ debug(...data: any[]): void;
36
+ warn(...data: any[]): void;
37
+ error(...data: any[]): void;
38
+ outputLog(logMethod: LogLevel, data: any[]): void;
39
+ setScope(scopeVal: string): void;
40
+ setMinLogLevel(logLevel: LogLevel): void;
41
+ /**
42
+ * Formats the console message using `scope` and styles
43
+ */
44
+ formatLogData(data: any[]): any[];
45
+ }//# sourceMappingURL=Logger.d.ts.map
38
46
 
39
47
  /**
40
48
  * Store Implementation with dedicated storage
@@ -98,7 +106,7 @@ declare class Store implements IStore {
98
106
 
99
107
  interface IUserSessionManager {
100
108
  store?: IStore;
101
- init(storage: IStore): void;
109
+ init(store: IStore | undefined): void;
102
110
  setAnonymousId(anonymousId?: string, rudderAmpLinkerParam?: string): void;
103
111
  getAnonymousId(options?: AnonymousIdOptions): string;
104
112
  refreshSession(): void;
@@ -125,6 +133,24 @@ interface IConfigManager {
125
133
  processConfig: () => void;
126
134
  }
127
135
 
136
+ interface IEventManager {
137
+ init(): void;
138
+ addEvent(event: APIEvent): void;
139
+ }
140
+
141
+ interface ICapabilitiesManager {
142
+ logger?: ILogger;
143
+ errorHandler?: IErrorHandler;
144
+ externalSrcLoader?: IExternalSrcLoader;
145
+ init(): void;
146
+ detectBrowserCapabilities(): void;
147
+ prepareBrowserCapabilities(): void;
148
+ attachWindowListeners(): void;
149
+ onReady(): void;
150
+ }
151
+
152
+ type PreloadedEventCall = Array<string | any>;
153
+
128
154
  /**
129
155
  * A buffer queue to serve as a store for any type of data
130
156
  */
@@ -139,8 +165,6 @@ declare class BufferQueue<T = any> {
139
165
  }
140
166
  //# sourceMappingURL=BufferQueue.d.ts.map
141
167
 
142
- type PreloadedEventCall = Array<string | any>;
143
-
144
168
  interface IAnalytics {
145
169
  preloadBuffer: BufferQueue<PreloadedEventCall>;
146
170
  initialized: boolean;
@@ -193,21 +217,25 @@ interface IAnalytics {
193
217
  */
194
218
  loadPlugins(): void;
195
219
  /**
196
- * Trigger onLoaded callback if any is provided in config
220
+ * Trigger onLoaded callback if any is provided in config & emit initialised event
197
221
  */
198
- onLoaded(): void;
222
+ onInitialized(): void;
223
+ /**
224
+ * Emit ready event
225
+ */
226
+ onReady(): void;
199
227
  /**
200
228
  * Consume preloaded events buffer
201
229
  */
202
230
  processBufferedEvents(): void;
203
231
  /**
204
- * Load device mode integrations
232
+ * Load device mode destinations
205
233
  */
206
- loadIntegrations(): void;
234
+ loadDestinations(): void;
207
235
  /**
208
236
  * Invoke the ready callbacks if any exist
209
237
  */
210
- onReady(): void;
238
+ onDestinationsReady(): void;
211
239
  /**
212
240
  * To register a callback for SDK ready state
213
241
  */
@@ -278,6 +306,7 @@ declare class RudderAnalytics implements IRudderAnalytics<IAnalytics> {
278
306
  static globalSingleton: Nullable<RudderAnalytics>;
279
307
  analyticsInstances: Record<string, IAnalytics>;
280
308
  defaultAnalyticsKey: string;
309
+ logger: Logger;
281
310
  constructor();
282
311
  /**
283
312
  * Set instance to use if no specific writeKey is provided in methods
@@ -340,7 +369,7 @@ declare class RudderAnalytics implements IRudderAnalytics<IAnalytics> {
340
369
 
341
370
  /**
342
371
  * Exposed values that can be accessed as global objects per analytics instance
343
- * // TODO: find all values that need to be exposed in globals if anything else
372
+ * TODO: find all values that need to be exposed in globals if anything else
344
373
  */
345
374
  type ExposedGlobals = {
346
375
  state?: ApplicationState;