@firebase/remote-config 0.8.5 → 0.9.0-20260707141122

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.
@@ -142,6 +142,12 @@ export declare interface FetchResponse {
142
142
  * @remarks Only defined for 200 responses.
143
143
  */
144
144
  experiments?: FirebaseExperimentDescription[];
145
+ /**
146
+ * Metadata for Remote Config Rollout experiments.
147
+ *
148
+ * @remarks Only defined for 200 responses.
149
+ */
150
+ rollouts?: FirebaseRolloutMetadata[];
145
151
  }
146
152
 
147
153
  /**
@@ -194,6 +200,12 @@ export declare interface FirebaseRemoteConfigObject {
194
200
  [key: string]: string;
195
201
  }
196
202
 
203
+ export declare interface FirebaseRolloutMetadata {
204
+ rolloutId: string;
205
+ variantId: string;
206
+ affectedParameterKeys: string[];
207
+ }
208
+
197
209
  /**
198
210
  * Gets all config.
199
211
  *
@@ -142,6 +142,12 @@ export declare interface FetchResponse {
142
142
  * @remarks Only defined for 200 responses.
143
143
  */
144
144
  experiments?: FirebaseExperimentDescription[];
145
+ /**
146
+ * Metadata for Remote Config Rollout experiments.
147
+ *
148
+ * @remarks Only defined for 200 responses.
149
+ */
150
+ rollouts?: FirebaseRolloutMetadata[];
145
151
  }
146
152
 
147
153
  /**
@@ -194,6 +200,12 @@ export declare interface FirebaseRemoteConfigObject {
194
200
  [key: string]: string;
195
201
  }
196
202
 
203
+ export declare interface FirebaseRolloutMetadata {
204
+ rolloutId: string;
205
+ variantId: string;
206
+ affectedParameterKeys: string[];
207
+ }
208
+
197
209
  /**
198
210
  * Gets all config.
199
211
  *
@@ -95,8 +95,11 @@ export declare class RealtimeHandler {
95
95
  */
96
96
  private getChangedParams;
97
97
  private areExperimentsEqual;
98
+ private areRolloutsEqual;
98
99
  /** Creates a map where the key is the config key and the value is the experiment description. */
99
100
  private createExperimentsMap;
101
+ /** Creates a map where the key is the config key and the value is the rollout metadata. */
102
+ private createRolloutsMap;
100
103
  private fetchLatestConfig;
101
104
  private autoFetch;
102
105
  /**
@@ -272,6 +272,11 @@ interface FirebaseExperimentDescription {
272
272
  timeToLiveMillis: string;
273
273
  affectedParameterKeys?: string[];
274
274
  }
275
+ interface FirebaseRolloutMetadata {
276
+ rolloutId: string;
277
+ variantId: string;
278
+ affectedParameterKeys: string[];
279
+ }
275
280
  /**
276
281
  * Defines a successful response (200 or 304).
277
282
  *
@@ -314,6 +319,12 @@ interface FetchResponse {
314
319
  * @remarks Only defined for 200 responses.
315
320
  */
316
321
  experiments?: FirebaseExperimentDescription[];
322
+ /**
323
+ * Metadata for Remote Config Rollout experiments.
324
+ *
325
+ * @remarks Only defined for 200 responses.
326
+ */
327
+ rollouts?: FirebaseRolloutMetadata[];
317
328
  }
318
329
  /**
319
330
  * Options for Remote Config initialization.
@@ -675,4 +686,4 @@ declare global {
675
686
  }
676
687
  }
677
688
 
678
- export { ConfigUpdate, ConfigUpdateObserver, CustomSignals, FetchResponse, FetchStatus, FetchType, FirebaseExperimentDescription, FirebaseRemoteConfigObject, LogLevel, RemoteConfig, RemoteConfigOptions, RemoteConfigSettings, Unsubscribe, Value, ValueSource, activate, ensureInitialized, fetchAndActivate, fetchConfig, getAll, getBoolean, getNumber, getRemoteConfig, getString, getValue, isSupported, onConfigUpdate, setCustomSignals, setLogLevel };
689
+ export { ConfigUpdate, ConfigUpdateObserver, CustomSignals, FetchResponse, FetchStatus, FetchType, FirebaseExperimentDescription, FirebaseRemoteConfigObject, FirebaseRolloutMetadata, LogLevel, RemoteConfig, RemoteConfigOptions, RemoteConfigSettings, Unsubscribe, Value, ValueSource, activate, ensureInitialized, fetchAndActivate, fetchConfig, getAll, getBoolean, getNumber, getRemoteConfig, getString, getValue, isSupported, onConfigUpdate, setCustomSignals, setLogLevel };
@@ -67,6 +67,11 @@ export interface FirebaseExperimentDescription {
67
67
  timeToLiveMillis: string;
68
68
  affectedParameterKeys?: string[];
69
69
  }
70
+ export interface FirebaseRolloutMetadata {
71
+ rolloutId: string;
72
+ variantId: string;
73
+ affectedParameterKeys: string[];
74
+ }
70
75
  /**
71
76
  * Defines a successful response (200 or 304).
72
77
  *
@@ -109,6 +114,12 @@ export interface FetchResponse {
109
114
  * @remarks Only defined for 200 responses.
110
115
  */
111
116
  experiments?: FirebaseExperimentDescription[];
117
+ /**
118
+ * Metadata for Remote Config Rollout experiments.
119
+ *
120
+ * @remarks Only defined for 200 responses.
121
+ */
122
+ rollouts?: FirebaseRolloutMetadata[];
112
123
  }
113
124
  /**
114
125
  * Options for Remote Config initialization.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firebase/remote-config",
3
- "version": "0.8.5",
3
+ "version": "0.9.0-20260707141122",
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",
@@ -18,10 +18,10 @@
18
18
  "dist"
19
19
  ],
20
20
  "scripts": {
21
- "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
22
- "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
21
+ "lint": "eslint --cache --cache-location '../../node_modules/.cache/eslint/' -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
22
+ "lint:fix": "eslint --cache --cache-location '../../node_modules/.cache/eslint/' --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
23
23
  "build": "rollup -c && yarn api-report",
24
- "build:deps": "lerna run --scope @firebase/remote-config --include-dependencies build",
24
+ "build:deps": "lerna run build --scope @firebase/remote-config",
25
25
  "build:release": "yarn build && yarn typings:public",
26
26
  "dev": "rollup -c -w",
27
27
  "test": "run-p --npm-path npm lint test:browser",
@@ -29,7 +29,7 @@
29
29
  "test:browser": "karma start",
30
30
  "test:debug": "karma start --browsers=Chrome --auto-watch",
31
31
  "trusted-type-check": "tsec -p tsconfig.json --noEmit",
32
- "prettier": "prettier --write '{src,test}/**/*.{js,ts}'",
32
+ "prettier": "prettier --cache --write '{src,test}/**/*.{js,ts}'",
33
33
  "api-report": "api-extractor run --local --verbose",
34
34
  "doc": "api-documenter markdown --input temp --output docs",
35
35
  "build:doc": "yarn build && yarn doc",