@firebase/database 0.13.3-canary.691292b8d → 0.13.3-canary.82a6add13

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.
@@ -338,7 +338,9 @@ export declare class DataSnapshot {
338
338
  * @returns true if enumeration was canceled due to your callback returning
339
339
  * true.
340
340
  */
341
- forEach(action: (child: DataSnapshot) => boolean | void): boolean;
341
+ forEach(action: (child: DataSnapshot & {
342
+ key: string;
343
+ }) => boolean | void): boolean;
342
344
  /**
343
345
  * Returns true if the specified child path has (non-null) data.
344
346
  *
@@ -1150,12 +1152,11 @@ declare interface NodeFilter_2 {
1150
1152
  }
1151
1153
 
1152
1154
  /**
1153
- * Detaches a callback previously attached with `on()`.
1155
+ * Detaches a callback previously attached with the corresponding `on*()` (`onValue`, `onChildAdded`) listener.
1156
+ * Note: This is not the recommended way to remove a listener. Instead, please use the returned callback function from
1157
+ * the respective `on*` callbacks.
1154
1158
  *
1155
- * Detach a callback previously attached with `on()`. Note that if `on()` was
1156
- * called multiple times with the same eventType and callback, the callback
1157
- * will be called multiple times for each event, and `off()` must be called
1158
- * multiple times to remove the callback. Calling `off()` on a parent listener
1159
+ * Detach a callback previously attached with `on*()`. Calling `off()` on a parent listener
1159
1160
  * will not automatically remove listeners registered on child nodes, `off()`
1160
1161
  * must also be called on any child listeners to remove the callback.
1161
1162
  *
@@ -1241,7 +1241,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
1241
1241
  WebSocketConnection.healthyTimeout = 30000;
1242
1242
 
1243
1243
  const name = "@firebase/database";
1244
- const version = "0.13.3-canary.691292b8d";
1244
+ const version = "0.13.3-canary.82a6add13";
1245
1245
 
1246
1246
  /**
1247
1247
  * @license
@@ -13050,12 +13050,11 @@ function onChildRemoved(query, callback, cancelCallbackOrListenOptions, options)
13050
13050
  return addEventListener(query, 'child_removed', callback, cancelCallbackOrListenOptions, options);
13051
13051
  }
13052
13052
  /**
13053
- * Detaches a callback previously attached with `on()`.
13053
+ * Detaches a callback previously attached with the corresponding `on*()` (`onValue`, `onChildAdded`) listener.
13054
+ * Note: This is not the recommended way to remove a listener. Instead, please use the returned callback function from
13055
+ * the respective `on*` callbacks.
13054
13056
  *
13055
- * Detach a callback previously attached with `on()`. Note that if `on()` was
13056
- * called multiple times with the same eventType and callback, the callback
13057
- * will be called multiple times for each event, and `off()` must be called
13058
- * multiple times to remove the callback. Calling `off()` on a parent listener
13057
+ * Detach a callback previously attached with `on*()`. Calling `off()` on a parent listener
13059
13058
  * will not automatically remove listeners registered on child nodes, `off()`
13060
13059
  * must also be called on any child listeners to remove the callback.
13061
13060
  *