firebase-functions 7.0.0-rc.2 → 7.0.0

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.
@@ -6,7 +6,7 @@ export { Change } from "../common/change";
6
6
  /**
7
7
  * Wire format for an event.
8
8
  */
9
- export interface Event {
9
+ export interface LegacyEvent {
10
10
  /**
11
11
  * Wire format for an event context.
12
12
  */
@@ -281,7 +281,7 @@ export interface BlockingFunction {
281
281
  * from your JavaScript file to define a Cloud Function.
282
282
  *
283
283
  * This type is a special JavaScript function which takes a templated
284
- * `Event` object as its only argument.
284
+ * `LegacyEvent` object as its only argument.
285
285
  */
286
286
  export interface CloudFunction<T> extends Runnable<T> {
287
287
  (input: any, context?: any): PromiseLike<any> | any;
@@ -1,7 +1,7 @@
1
1
  import * as firestore from "firebase-admin/firestore";
2
2
  import { Change } from "../../common/change";
3
3
  import { ParamsOf } from "../../common/params";
4
- import { CloudFunction, Event, EventContext } from "../cloud-functions";
4
+ import { CloudFunction, LegacyEvent, EventContext } from "../cloud-functions";
5
5
  import { DeploymentOptions } from "../function-configuration";
6
6
  export type DocumentSnapshot = firestore.DocumentSnapshot;
7
7
  export type QueryDocumentSnapshot = firestore.QueryDocumentSnapshot;
@@ -29,8 +29,8 @@ export declare class NamespaceBuilder {
29
29
  constructor(database: string, options: DeploymentOptions, namespace?: string);
30
30
  document<Path extends string>(path: Path): DocumentBuilder<Path>;
31
31
  }
32
- export declare function snapshotConstructor(event: Event): DocumentSnapshot;
33
- export declare function beforeSnapshotConstructor(event: Event): DocumentSnapshot;
32
+ export declare function snapshotConstructor(event: LegacyEvent): DocumentSnapshot;
33
+ export declare function beforeSnapshotConstructor(event: LegacyEvent): DocumentSnapshot;
34
34
  export declare class DocumentBuilder<Path extends string> {
35
35
  private triggerResource;
36
36
  private options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firebase-functions",
3
- "version": "7.0.0-rc.2",
3
+ "version": "7.0.0",
4
4
  "description": "Firebase SDK for Cloud Functions",
5
5
  "keywords": [
6
6
  "firebase",