@firebase/remote-config 0.9.3 → 0.10.0-20261110194028

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.
@@ -129,10 +129,19 @@ export interface FetchResponse {
129
129
  export interface RemoteConfigOptions {
130
130
  /**
131
131
  * The ID of the template to use. If not provided, defaults to "firebase".
132
+ *
133
+ * @deprecated Fetching server templates from client apps is not
134
+ * supported. Server templates (`"firebase-server"`) can only be read
135
+ * by the Admin SDK and are rejected by client fetch and real-time
136
+ * requests. This option will be removed in a future major release.
132
137
  */
133
138
  templateId?: string;
134
139
  /**
135
140
  * Hydrates the state with an initial fetch response.
141
+ *
142
+ * @deprecated Remote Config server-side rendering (SSR) hydration is
143
+ * no longer supported. This option will be removed in a future major
144
+ * release.
136
145
  */
137
146
  initialFetchResponse?: FetchResponse;
138
147
  }
package/dist/index.cjs.js CHANGED
@@ -9,7 +9,7 @@ var logger = require('@firebase/logger');
9
9
  require('@firebase/installations');
10
10
 
11
11
  const name = "@firebase/remote-config";
12
- const version = "0.9.3";
12
+ const version = "0.10.0-20261110194028";
13
13
 
14
14
  /**
15
15
  * @license
@@ -262,6 +262,7 @@ function getRemoteConfig(app$1 = app.getApp(), options = {}) {
262
262
  }
263
263
  rcProvider.initialize({ options });
264
264
  const rc = rcProvider.getImmediate();
265
+ // Deprecated: SSR hydration, see RemoteConfigOptions.initialFetchResponse.
265
266
  if (options.initialFetchResponse) {
266
267
  // We use these initial writes as the initialization promise since they will hydrate the same
267
268
  // fields that `storageCache.loadFromStorage` would set.
@@ -2220,6 +2221,8 @@ function registerRemoteConfig() {
2220
2221
  if (!appId) {
2221
2222
  throw ERROR_FACTORY.create("registration-app-id" /* ErrorCode.REGISTRATION_APP_ID */);
2222
2223
  }
2224
+ // Deprecated: `templateId` is deprecated, see RemoteConfigOptions.templateId.
2225
+ // Server templates ("firebase-server") can't be fetched from client apps.
2223
2226
  const namespace = options?.templateId || 'firebase';
2224
2227
  const storage = util.isIndexedDBAvailable()
2225
2228
  ? new IndexedDbStorage(appId, app$1.name, namespace)