@simondotm/nx-firebase 2.0.0-beta.1 → 2.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simondotm/nx-firebase",
3
- "version": "2.0.0-beta.1",
3
+ "version": "2.0.0",
4
4
  "description": "A Firebase plugin for Nx monorepo workspaces.",
5
5
  "author": "Simon Morris",
6
6
  "license": "MIT",
@@ -1,23 +1,19 @@
1
- // The Cloud Functions for Firebase SDK to create Cloud Functions and setup triggers.
2
- import * as functions from "firebase-functions";
1
+ /**
2
+ * Import function triggers from their respective submodules:
3
+ *
4
+ * import {onCall} from "firebase-functions/v2/https";
5
+ * import {onDocumentWritten} from "firebase-functions/v2/firestore";
6
+ *
7
+ * See a full list of supported triggers at https://firebase.google.com/docs/functions
8
+ */
3
9
 
4
- // The Firebase Admin SDK to access Firebase Features from within Cloud Functions.
5
- import * as admin from "firebase-admin";
6
- admin.initializeApp();
10
+ import {onRequest} from "firebase-functions/v2/https";
11
+ import * as logger from "firebase-functions/logger";
7
12
 
8
- // Set up extra settings. Since May 29, 2020, Firebase Firebase Added support for
9
- // calling FirebaseFirestore.settings with { ignoreUndefinedProperties: true }.
10
- // When this parameter is set, Cloud Firestore ignores undefined properties
11
- // inside objects rather than rejecting the API call.
12
- admin.firestore().settings({
13
- ignoreUndefinedProperties: true,
14
- });
15
-
16
- // Start writing Firebase Functions
13
+ // Start writing functions
17
14
  // https://firebase.google.com/docs/functions/typescript
18
15
 
19
- export const helloWorld = functions.https.onRequest((request, response) => {
20
- functions.logger.info("Hello logs!", {structuredData: true});
16
+ export const helloWorld = onRequest((request, response) => {
17
+ logger.info("Hello logs!", {structuredData: true});
21
18
  response.send("Hello from Firebase!");
22
19
  });
23
-
@@ -1,11 +1,11 @@
1
1
  export declare const pluginNxVersion = "^16.1.1";
2
2
  export declare const pluginNxVersionMajor = 16;
3
3
  export declare const tsLibVersion = "^2.0.0";
4
- export declare const firebaseAdminVersion = "^11.3.0";
5
- export declare const firebaseFunctionsVersion = "^4.1.0";
6
- export declare const firebaseToolsVersion = "^11.16.1";
4
+ export declare const firebaseAdminVersion = "^11.10.1";
5
+ export declare const firebaseFunctionsVersion = "^4.4.1";
6
+ export declare const firebaseToolsVersion = "^12.4.5";
7
7
  export declare const firebaseVersion = "^9.14.0";
8
- export declare const firebaseFunctionsTestVersion = "^0.2.0";
8
+ export declare const firebaseFunctionsTestVersion = "^3.1.0";
9
9
  export declare const firebaseNodeEngine = "16";
10
10
  export declare const firebaseNodeRuntime: string;
11
11
  export declare const nodeEsVersion: Record<string, string>;
@@ -8,11 +8,11 @@ exports.pluginNxVersionMajor = 16;
8
8
  exports.tsLibVersion = '^2.0.0';
9
9
  // Firebase packages are not managed by the plugin
10
10
  // but they are added if they do not exist already in the workspace
11
- exports.firebaseAdminVersion = '^11.3.0';
12
- exports.firebaseFunctionsVersion = '^4.1.0';
13
- exports.firebaseToolsVersion = '^11.16.1';
11
+ exports.firebaseAdminVersion = '^11.10.1';
12
+ exports.firebaseFunctionsVersion = '^4.4.1';
13
+ exports.firebaseToolsVersion = '^12.4.5';
14
14
  exports.firebaseVersion = '^9.14.0';
15
- exports.firebaseFunctionsTestVersion = '^0.2.0';
15
+ exports.firebaseFunctionsTestVersion = '^3.1.0';
16
16
  // Target node 16 for all firebase projects now
17
17
  exports.firebaseNodeEngine = '16';
18
18
  exports.firebaseNodeRuntime = `nodejs${exports.firebaseNodeEngine}`;
@@ -1 +1 @@
1
- {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/nx-firebase/src/utils/versions.ts"],"names":[],"mappings":";;;AAAA,4EAA4E;AAC/D,QAAA,eAAe,GAAG,SAAS,CAAA;AAC3B,QAAA,oBAAoB,GAAG,EAAE,CAAA;AAEtC,6CAA6C;AAChC,QAAA,YAAY,GAAG,QAAQ,CAAA;AAEpC,kDAAkD;AAClD,mEAAmE;AACtD,QA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