@firebase/remote-config 0.7.0-canary.f06cbf99b → 0.7.0-canary.f5fc6bf76
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/dist/esm/index.esm.js +6 -85
- package/dist/esm/index.esm.js.map +1 -1
- package/dist/esm/src/errors.d.ts +1 -5
- package/dist/esm/src/public_types.d.ts +0 -19
- package/dist/esm/src/remote_config.d.ts +1 -11
- package/dist/esm/src/storage/storage.d.ts +1 -3
- package/dist/index.cjs.js +6 -85
- package/dist/index.cjs.js.map +1 -1
- package/dist/remote-config-public.d.ts +0 -20
- package/dist/remote-config.d.ts +0 -20
- package/dist/src/errors.d.ts +1 -5
- package/dist/src/global_index.d.ts +1 -20
- package/dist/src/public_types.d.ts +0 -19
- package/dist/src/remote_config.d.ts +1 -11
- package/dist/src/storage/storage.d.ts +1 -3
- package/package.json +7 -7
- package/dist/esm/src/abt/experiment.d.ts +0 -13
- package/dist/src/abt/experiment.d.ts +0 -13
|
@@ -136,12 +136,6 @@ export declare interface FetchResponse {
|
|
|
136
136
|
* The version number of the config template fetched from the server.
|
|
137
137
|
*/
|
|
138
138
|
templateVersion?: number;
|
|
139
|
-
/**
|
|
140
|
-
* Metadata for A/B testing and Remote Config Rollout experiments.
|
|
141
|
-
*
|
|
142
|
-
* @remarks Only defined for 200 responses.
|
|
143
|
-
*/
|
|
144
|
-
experiments?: FirebaseExperimentDescription[];
|
|
145
139
|
}
|
|
146
140
|
|
|
147
141
|
/**
|
|
@@ -171,20 +165,6 @@ export declare type FetchStatus = 'no-fetch-yet' | 'success' | 'failure' | 'thro
|
|
|
171
165
|
*/
|
|
172
166
|
export declare type FetchType = 'BASE' | 'REALTIME';
|
|
173
167
|
|
|
174
|
-
/**
|
|
175
|
-
* Defines experiment and variant attached to a config parameter.
|
|
176
|
-
*
|
|
177
|
-
* @public
|
|
178
|
-
*/
|
|
179
|
-
export declare interface FirebaseExperimentDescription {
|
|
180
|
-
experimentId: string;
|
|
181
|
-
variantId: string;
|
|
182
|
-
experimentStartTime: string;
|
|
183
|
-
triggerTimeoutMillis: string;
|
|
184
|
-
timeToLiveMillis: string;
|
|
185
|
-
affectedParameterKeys?: string[];
|
|
186
|
-
}
|
|
187
|
-
|
|
188
168
|
/**
|
|
189
169
|
* Defines a self-descriptive reference for config key-value pairs.
|
|
190
170
|
*
|
package/dist/remote-config.d.ts
CHANGED
|
@@ -136,12 +136,6 @@ export declare interface FetchResponse {
|
|
|
136
136
|
* The version number of the config template fetched from the server.
|
|
137
137
|
*/
|
|
138
138
|
templateVersion?: number;
|
|
139
|
-
/**
|
|
140
|
-
* Metadata for A/B testing and Remote Config Rollout experiments.
|
|
141
|
-
*
|
|
142
|
-
* @remarks Only defined for 200 responses.
|
|
143
|
-
*/
|
|
144
|
-
experiments?: FirebaseExperimentDescription[];
|
|
145
139
|
}
|
|
146
140
|
|
|
147
141
|
/**
|
|
@@ -171,20 +165,6 @@ export declare type FetchStatus = 'no-fetch-yet' | 'success' | 'failure' | 'thro
|
|
|
171
165
|
*/
|
|
172
166
|
export declare type FetchType = 'BASE' | 'REALTIME';
|
|
173
167
|
|
|
174
|
-
/**
|
|
175
|
-
* Defines experiment and variant attached to a config parameter.
|
|
176
|
-
*
|
|
177
|
-
* @public
|
|
178
|
-
*/
|
|
179
|
-
export declare interface FirebaseExperimentDescription {
|
|
180
|
-
experimentId: string;
|
|
181
|
-
variantId: string;
|
|
182
|
-
experimentStartTime: string;
|
|
183
|
-
triggerTimeoutMillis: string;
|
|
184
|
-
timeToLiveMillis: string;
|
|
185
|
-
affectedParameterKeys?: string[];
|
|
186
|
-
}
|
|
187
|
-
|
|
188
168
|
/**
|
|
189
169
|
* Defines a self-descriptive reference for config key-value pairs.
|
|
190
170
|
*
|
package/dist/src/errors.d.ts
CHANGED
|
@@ -35,8 +35,7 @@ export declare const enum ErrorCode {
|
|
|
35
35
|
CONFIG_UPDATE_STREAM_ERROR = "stream-error",
|
|
36
36
|
CONFIG_UPDATE_UNAVAILABLE = "realtime-unavailable",
|
|
37
37
|
CONFIG_UPDATE_MESSAGE_INVALID = "update-message-invalid",
|
|
38
|
-
CONFIG_UPDATE_NOT_FETCHED = "update-not-fetched"
|
|
39
|
-
ANALYTICS_UNAVAILABLE = "analytics-unavailable"
|
|
38
|
+
CONFIG_UPDATE_NOT_FETCHED = "update-not-fetched"
|
|
40
39
|
}
|
|
41
40
|
interface ErrorParams {
|
|
42
41
|
[ErrorCode.STORAGE_OPEN]: {
|
|
@@ -78,9 +77,6 @@ interface ErrorParams {
|
|
|
78
77
|
[ErrorCode.CONFIG_UPDATE_NOT_FETCHED]: {
|
|
79
78
|
originalErrorMessage: string;
|
|
80
79
|
};
|
|
81
|
-
[ErrorCode.ANALYTICS_UNAVAILABLE]: {
|
|
82
|
-
originalErrorMessage: string;
|
|
83
|
-
};
|
|
84
80
|
}
|
|
85
81
|
export declare const ERROR_FACTORY: ErrorFactory<ErrorCode, ErrorParams>;
|
|
86
82
|
export declare function hasErrorCode(e: Error, errorCode: ErrorCode): boolean;
|
|
@@ -255,19 +255,6 @@ interface RemoteConfig {
|
|
|
255
255
|
interface FirebaseRemoteConfigObject {
|
|
256
256
|
[key: string]: string;
|
|
257
257
|
}
|
|
258
|
-
/**
|
|
259
|
-
* Defines experiment and variant attached to a config parameter.
|
|
260
|
-
*
|
|
261
|
-
* @public
|
|
262
|
-
*/
|
|
263
|
-
interface FirebaseExperimentDescription {
|
|
264
|
-
experimentId: string;
|
|
265
|
-
variantId: string;
|
|
266
|
-
experimentStartTime: string;
|
|
267
|
-
triggerTimeoutMillis: string;
|
|
268
|
-
timeToLiveMillis: string;
|
|
269
|
-
affectedParameterKeys?: string[];
|
|
270
|
-
}
|
|
271
258
|
/**
|
|
272
259
|
* Defines a successful response (200 or 304).
|
|
273
260
|
*
|
|
@@ -304,12 +291,6 @@ interface FetchResponse {
|
|
|
304
291
|
* The version number of the config template fetched from the server.
|
|
305
292
|
*/
|
|
306
293
|
templateVersion?: number;
|
|
307
|
-
/**
|
|
308
|
-
* Metadata for A/B testing and Remote Config Rollout experiments.
|
|
309
|
-
*
|
|
310
|
-
* @remarks Only defined for 200 responses.
|
|
311
|
-
*/
|
|
312
|
-
experiments?: FirebaseExperimentDescription[];
|
|
313
294
|
}
|
|
314
295
|
/**
|
|
315
296
|
* Options for Remote Config initialization.
|
|
@@ -671,4 +652,4 @@ declare global {
|
|
|
671
652
|
}
|
|
672
653
|
}
|
|
673
654
|
|
|
674
|
-
export { ConfigUpdate, ConfigUpdateObserver, CustomSignals, FetchResponse, FetchStatus, FetchType,
|
|
655
|
+
export { ConfigUpdate, ConfigUpdateObserver, CustomSignals, FetchResponse, FetchStatus, FetchType, FirebaseRemoteConfigObject, LogLevel, RemoteConfig, RemoteConfigOptions, RemoteConfigSettings, Unsubscribe, Value, ValueSource, activate, ensureInitialized, fetchAndActivate, fetchConfig, getAll, getBoolean, getNumber, getRemoteConfig, getString, getValue, isSupported, onConfigUpdate, setCustomSignals, setLogLevel };
|
|
@@ -54,19 +54,6 @@ export interface RemoteConfig {
|
|
|
54
54
|
export interface FirebaseRemoteConfigObject {
|
|
55
55
|
[key: string]: string;
|
|
56
56
|
}
|
|
57
|
-
/**
|
|
58
|
-
* Defines experiment and variant attached to a config parameter.
|
|
59
|
-
*
|
|
60
|
-
* @public
|
|
61
|
-
*/
|
|
62
|
-
export interface FirebaseExperimentDescription {
|
|
63
|
-
experimentId: string;
|
|
64
|
-
variantId: string;
|
|
65
|
-
experimentStartTime: string;
|
|
66
|
-
triggerTimeoutMillis: string;
|
|
67
|
-
timeToLiveMillis: string;
|
|
68
|
-
affectedParameterKeys?: string[];
|
|
69
|
-
}
|
|
70
57
|
/**
|
|
71
58
|
* Defines a successful response (200 or 304).
|
|
72
59
|
*
|
|
@@ -103,12 +90,6 @@ export interface FetchResponse {
|
|
|
103
90
|
* The version number of the config template fetched from the server.
|
|
104
91
|
*/
|
|
105
92
|
templateVersion?: number;
|
|
106
|
-
/**
|
|
107
|
-
* Metadata for A/B testing and Remote Config Rollout experiments.
|
|
108
|
-
*
|
|
109
|
-
* @remarks Only defined for 200 responses.
|
|
110
|
-
*/
|
|
111
|
-
experiments?: FirebaseExperimentDescription[];
|
|
112
93
|
}
|
|
113
94
|
/**
|
|
114
95
|
* Options for Remote Config initialization.
|
|
@@ -20,8 +20,6 @@ import { StorageCache } from './storage/storage_cache';
|
|
|
20
20
|
import { RemoteConfigFetchClient } from './client/remote_config_fetch_client';
|
|
21
21
|
import { Storage } from './storage/storage';
|
|
22
22
|
import { Logger } from '@firebase/logger';
|
|
23
|
-
import { FirebaseAnalyticsInternalName } from '@firebase/analytics-interop-types';
|
|
24
|
-
import { Provider } from '@firebase/component';
|
|
25
23
|
import { RealtimeHandler } from './client/realtime_handler';
|
|
26
24
|
/**
|
|
27
25
|
* Encapsulates business logic mapping network and storage dependencies to the public SDK API.
|
|
@@ -50,10 +48,6 @@ export declare class RemoteConfig implements RemoteConfigType {
|
|
|
50
48
|
* @internal
|
|
51
49
|
*/
|
|
52
50
|
readonly _realtimeHandler: RealtimeHandler;
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
|
-
readonly _analyticsProvider: Provider<FirebaseAnalyticsInternalName>;
|
|
57
51
|
/**
|
|
58
52
|
* Tracks completion of initialization promise.
|
|
59
53
|
* @internal
|
|
@@ -90,9 +84,5 @@ export declare class RemoteConfig implements RemoteConfigType {
|
|
|
90
84
|
/**
|
|
91
85
|
* @internal
|
|
92
86
|
*/
|
|
93
|
-
_realtimeHandler: RealtimeHandler
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
*/
|
|
97
|
-
_analyticsProvider: Provider<FirebaseAnalyticsInternalName>);
|
|
87
|
+
_realtimeHandler: RealtimeHandler);
|
|
98
88
|
}
|
|
@@ -43,7 +43,7 @@ export interface RealtimeBackoffMetadata {
|
|
|
43
43
|
*
|
|
44
44
|
* <p>This seems like a small price to avoid potentially subtle bugs caused by a typo.
|
|
45
45
|
*/
|
|
46
|
-
type ProjectNamespaceKeyFieldValue = 'active_config' | 'active_config_etag' | '
|
|
46
|
+
type ProjectNamespaceKeyFieldValue = 'active_config' | 'active_config_etag' | 'last_fetch_status' | 'last_successful_fetch_timestamp_millis' | 'last_successful_fetch_response' | 'settings' | 'throttle_metadata' | 'custom_signals' | 'realtime_backoff_metadata' | 'last_known_template_version';
|
|
47
47
|
export declare function openDatabase(): Promise<IDBDatabase>;
|
|
48
48
|
/**
|
|
49
49
|
* Abstracts data persistence.
|
|
@@ -59,8 +59,6 @@ export declare abstract class Storage {
|
|
|
59
59
|
setActiveConfig(config: FirebaseRemoteConfigObject): Promise<void>;
|
|
60
60
|
getActiveConfigEtag(): Promise<string | undefined>;
|
|
61
61
|
setActiveConfigEtag(etag: string): Promise<void>;
|
|
62
|
-
getActiveExperiments(): Promise<Set<string> | undefined>;
|
|
63
|
-
setActiveExperiments(experiments: Set<string>): Promise<void>;
|
|
64
62
|
getThrottleMetadata(): Promise<ThrottleMetadata | undefined>;
|
|
65
63
|
setThrottleMetadata(metadata: ThrottleMetadata): Promise<void>;
|
|
66
64
|
deleteThrottleMetadata(): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firebase/remote-config",
|
|
3
|
-
"version": "0.7.0-canary.
|
|
3
|
+
"version": "0.7.0-canary.f5fc6bf76",
|
|
4
4
|
"description": "The Remote Config package of the Firebase JS SDK",
|
|
5
5
|
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
|
|
6
6
|
"main": "dist/index.cjs.js",
|
|
@@ -37,18 +37,18 @@
|
|
|
37
37
|
"typings:internal": "node ../../scripts/build/use_typings.js ./dist/src/index.d.ts"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@firebase/app": "0.14.
|
|
40
|
+
"@firebase/app": "0.14.6-canary.f5fc6bf76"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@firebase/installations": "0.6.19-canary.
|
|
44
|
-
"@firebase/logger": "0.5.0-canary.
|
|
45
|
-
"@firebase/util": "1.13.0-canary.
|
|
46
|
-
"@firebase/component": "0.7.0-canary.
|
|
43
|
+
"@firebase/installations": "0.6.19-canary.f5fc6bf76",
|
|
44
|
+
"@firebase/logger": "0.5.0-canary.f5fc6bf76",
|
|
45
|
+
"@firebase/util": "1.13.0-canary.f5fc6bf76",
|
|
46
|
+
"@firebase/component": "0.7.0-canary.f5fc6bf76",
|
|
47
47
|
"tslib": "^2.1.0"
|
|
48
48
|
},
|
|
49
49
|
"license": "Apache-2.0",
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@firebase/app": "0.14.
|
|
51
|
+
"@firebase/app": "0.14.6-canary.f5fc6bf76",
|
|
52
52
|
"rollup": "2.79.2",
|
|
53
53
|
"rollup-plugin-dts": "5.3.1",
|
|
54
54
|
"rollup-plugin-typescript2": "0.36.0",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FirebaseExperimentDescription } from '../public_types';
|
|
2
|
-
import { RemoteConfig } from '../remote_config';
|
|
3
|
-
export declare class Experiment {
|
|
4
|
-
private storage;
|
|
5
|
-
private logger;
|
|
6
|
-
private analyticsProvider;
|
|
7
|
-
constructor(rc: RemoteConfig);
|
|
8
|
-
updateActiveExperiments(latestExperiments: FirebaseExperimentDescription[]): Promise<void>;
|
|
9
|
-
private createExperimentInfoMap;
|
|
10
|
-
private addActiveExperiments;
|
|
11
|
-
private removeInactiveExperiments;
|
|
12
|
-
private addExperimentToAnalytics;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FirebaseExperimentDescription } from '../public_types';
|
|
2
|
-
import { RemoteConfig } from '../remote_config';
|
|
3
|
-
export declare class Experiment {
|
|
4
|
-
private storage;
|
|
5
|
-
private logger;
|
|
6
|
-
private analyticsProvider;
|
|
7
|
-
constructor(rc: RemoteConfig);
|
|
8
|
-
updateActiveExperiments(latestExperiments: FirebaseExperimentDescription[]): Promise<void>;
|
|
9
|
-
private createExperimentInfoMap;
|
|
10
|
-
private addActiveExperiments;
|
|
11
|
-
private removeInactiveExperiments;
|
|
12
|
-
private addExperimentToAnalytics;
|
|
13
|
-
}
|