@angular/fire 18.0.1 → 19.0.0-canary.35e0a98
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/README.md +11 -30
- package/analytics/analytics.module.d.ts +2 -2
- package/analytics/firebase.d.ts +3 -3
- package/analytics/screen-tracking.service.d.ts +1 -1
- package/app-check/app-check.d.ts +6 -0
- package/app-check/public_api.d.ts +1 -2
- package/auth/firebase.d.ts +1 -2
- package/auth/rxfire.d.ts +2 -2
- package/compat/auth/auth.d.ts +1 -0
- package/compat/database/database.d.ts +2 -1
- package/compat/database/list/create-reference.d.ts +2 -1
- package/compat/database/object/create-reference.d.ts +2 -1
- package/compat/firestore/collection/collection.d.ts +1 -0
- package/compat/firestore/collection-group/collection-group.d.ts +1 -0
- package/compat/firestore/document/document.d.ts +1 -0
- package/compat/firestore/firestore.d.ts +2 -1
- package/compat/remote-config/remote-config.d.ts +1 -0
- package/compat/storage/pipes/storageUrl.pipe.d.ts +2 -2
- package/compat/storage/ref.d.ts +2 -1
- package/compat/storage/storage.d.ts +2 -1
- package/compat/storage/storage.module.d.ts +1 -1
- package/core.d.ts +0 -7
- package/data-connect/data-connect.d.ts +9 -0
- package/data-connect/data-connect.module.d.ts +13 -0
- package/data-connect/firebase.d.ts +12 -0
- package/{vertexai-preview → data-connect}/index.d.ts +1 -1
- package/data-connect/package.json +3 -0
- package/data-connect/public_api.d.ts +3 -0
- package/database/firebase.d.ts +1 -2
- package/database/rxfire.d.ts +4 -4
- package/docs/install-and-setup.md +10 -5
- package/docs/vertexai.md +3 -3
- package/docs/zones.md +39 -0
- package/fesm2022/angular-fire-analytics.mjs +31 -58
- package/fesm2022/angular-fire-analytics.mjs.map +1 -1
- package/fesm2022/angular-fire-app-check.mjs +16 -11
- package/fesm2022/angular-fire-app-check.mjs.map +1 -1
- package/fesm2022/angular-fire-app.mjs +4 -4
- package/fesm2022/angular-fire-app.mjs.map +1 -1
- package/fesm2022/angular-fire-auth-guard.mjs +7 -7
- package/fesm2022/angular-fire-auth-guard.mjs.map +1 -1
- package/fesm2022/angular-fire-auth.mjs +48 -48
- package/fesm2022/angular-fire-auth.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-analytics.mjs +15 -15
- package/fesm2022/angular-fire-compat-analytics.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-auth-guard.mjs +7 -7
- package/fesm2022/angular-fire-compat-auth-guard.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-auth.mjs +12 -10
- package/fesm2022/angular-fire-compat-auth.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-database.mjs +25 -23
- package/fesm2022/angular-fire-compat-database.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-firestore.mjs +29 -24
- package/fesm2022/angular-fire-compat-firestore.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-functions.mjs +7 -7
- package/fesm2022/angular-fire-compat-functions.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-messaging.mjs +7 -7
- package/fesm2022/angular-fire-compat-messaging.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-performance.mjs +10 -10
- package/fesm2022/angular-fire-compat-performance.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-remote-config.mjs +12 -10
- package/fesm2022/angular-fire-compat-remote-config.mjs.map +1 -1
- package/fesm2022/angular-fire-compat-storage.mjs +28 -25
- package/fesm2022/angular-fire-compat-storage.mjs.map +1 -1
- package/fesm2022/angular-fire-compat.mjs +4 -4
- package/fesm2022/angular-fire-compat.mjs.map +1 -1
- package/fesm2022/angular-fire-data-connect.mjs +100 -0
- package/fesm2022/angular-fire-data-connect.mjs.map +1 -0
- package/fesm2022/angular-fire-database.mjs +35 -35
- package/fesm2022/angular-fire-database.mjs.map +1 -1
- package/fesm2022/angular-fire-firestore-lite.mjs +42 -45
- package/fesm2022/angular-fire-firestore-lite.mjs.map +1 -1
- package/fesm2022/angular-fire-firestore.mjs +46 -55
- package/fesm2022/angular-fire-firestore.mjs.map +1 -1
- package/fesm2022/angular-fire-functions.mjs +7 -6
- package/fesm2022/angular-fire-functions.mjs.map +1 -1
- package/fesm2022/angular-fire-messaging.mjs +16 -43
- package/fesm2022/angular-fire-messaging.mjs.map +1 -1
- package/fesm2022/angular-fire-performance.mjs +7 -7
- package/fesm2022/angular-fire-performance.mjs.map +1 -1
- package/fesm2022/angular-fire-remote-config.mjs +22 -48
- package/fesm2022/angular-fire-remote-config.mjs.map +1 -1
- package/fesm2022/angular-fire-storage.mjs +10 -9
- package/fesm2022/angular-fire-storage.mjs.map +1 -1
- package/fesm2022/{angular-fire-vertexai-preview.mjs → angular-fire-vertexai.mjs} +11 -10
- package/fesm2022/angular-fire-vertexai.mjs.map +1 -0
- package/fesm2022/angular-fire.mjs +74 -116
- package/fesm2022/angular-fire.mjs.map +1 -1
- package/firestore/firebase.d.ts +2 -12
- package/firestore/lite/firebase.d.ts +2 -6
- package/firestore/lite/rxfire.d.ts +4 -4
- package/firestore/rxfire.d.ts +7 -7
- package/messaging/firebase.d.ts +2 -2
- package/messaging/messaging.module.d.ts +2 -2
- package/package.json +21 -76
- package/performance/rxfire.d.ts +2 -2
- package/publish.sh +1 -0
- package/remote-config/firebase.d.ts +3 -2
- package/remote-config/remote-config.module.d.ts +2 -2
- package/remote-config/rxfire.d.ts +5 -5
- package/schematics/add/index.js +1 -13
- package/schematics/deploy/actions.js +138 -394
- package/schematics/deploy/builder.js +139 -61
- package/schematics/setup/index.js +94 -64
- package/schematics/update/index.js +1 -7
- package/schematics/update/v7/index.js +1 -67
- package/schematics/versions.json +2 -3
- package/vertexai/firebase.d.ts +4 -0
- package/vertexai/index.d.ts +5 -0
- package/vertexai/package.json +3 -0
- package/{vertexai-preview → vertexai}/vertexai.d.ts +1 -1
- package/{vertexai-preview → vertexai}/vertexai.module.d.ts +1 -1
- package/zones.d.ts +9 -15
- package/analytics/is-analytics-supported-factory.d.ts +0 -4
- package/analytics/overrides.d.ts +0 -1
- package/esm2022/analytics/analytics.mjs +0 -16
- package/esm2022/analytics/analytics.module.mjs +0 -101
- package/esm2022/analytics/angular-fire-analytics.mjs +0 -5
- package/esm2022/analytics/firebase.mjs +0 -17
- package/esm2022/analytics/is-analytics-supported-factory.mjs +0 -16
- package/esm2022/analytics/overrides.mjs +0 -3
- package/esm2022/analytics/public_api.mjs +0 -6
- package/esm2022/analytics/screen-tracking.service.mjs +0 -148
- package/esm2022/analytics/user-tracking.service.mjs +0 -44
- package/esm2022/angular-fire.mjs +0 -5
- package/esm2022/app/angular-fire-app.mjs +0 -5
- package/esm2022/app/app.mjs +0 -15
- package/esm2022/app/app.module.mjs +0 -91
- package/esm2022/app/firebase.mjs +0 -13
- package/esm2022/app/public_api.mjs +0 -4
- package/esm2022/app-check/angular-fire-app-check.mjs +0 -5
- package/esm2022/app-check/app-check.mjs +0 -10
- package/esm2022/app-check/app-check.module.mjs +0 -80
- package/esm2022/app-check/firebase.mjs +0 -10
- package/esm2022/app-check/public_api.mjs +0 -5
- package/esm2022/auth/angular-fire-auth.mjs +0 -5
- package/esm2022/auth/auth.mjs +0 -16
- package/esm2022/auth/auth.module.mjs +0 -73
- package/esm2022/auth/firebase.mjs +0 -59
- package/esm2022/auth/public_api.mjs +0 -5
- package/esm2022/auth/rxfire.mjs +0 -7
- package/esm2022/auth-guard/angular-fire-auth-guard.mjs +0 -5
- package/esm2022/auth-guard/auth-guard.mjs +0 -53
- package/esm2022/auth-guard/auth-guard.module.mjs +0 -20
- package/esm2022/auth-guard/public_api.mjs +0 -3
- package/esm2022/compat/analytics/analytics.mjs +0 -160
- package/esm2022/compat/analytics/analytics.module.mjs +0 -35
- package/esm2022/compat/analytics/angular-fire-compat-analytics.mjs +0 -5
- package/esm2022/compat/analytics/base.mjs +0 -11
- package/esm2022/compat/analytics/public_api.mjs +0 -5
- package/esm2022/compat/analytics/screen-tracking.service.mjs +0 -49
- package/esm2022/compat/analytics/user-tracking.service.mjs +0 -53
- package/esm2022/compat/angular-fire-compat.mjs +0 -5
- package/esm2022/compat/auth/angular-fire-compat-auth.mjs +0 -5
- package/esm2022/compat/auth/auth.mjs +0 -161
- package/esm2022/compat/auth/auth.module.mjs +0 -20
- package/esm2022/compat/auth/base.mjs +0 -39
- package/esm2022/compat/auth/public_api.mjs +0 -4
- package/esm2022/compat/auth-guard/angular-fire-compat-auth-guard.mjs +0 -5
- package/esm2022/compat/auth-guard/auth-guard.mjs +0 -53
- package/esm2022/compat/auth-guard/auth-guard.module.mjs +0 -20
- package/esm2022/compat/auth-guard/public_api.mjs +0 -3
- package/esm2022/compat/cache.mjs +0 -33
- package/esm2022/compat/database/angular-fire-compat-database.mjs +0 -5
- package/esm2022/compat/database/database.mjs +0 -119
- package/esm2022/compat/database/database.module.mjs +0 -20
- package/esm2022/compat/database/interfaces.mjs +0 -2
- package/esm2022/compat/database/list/audit-trail.mjs +0 -47
- package/esm2022/compat/database/list/changes.mjs +0 -85
- package/esm2022/compat/database/list/create-reference.mjs +0 -44
- package/esm2022/compat/database/list/data-operation.mjs +0 -11
- package/esm2022/compat/database/list/remove.mjs +0 -16
- package/esm2022/compat/database/list/snapshot-changes.mjs +0 -7
- package/esm2022/compat/database/list/state-changes.mjs +0 -9
- package/esm2022/compat/database/list/utils.mjs +0 -8
- package/esm2022/compat/database/object/create-reference.mjs +0 -19
- package/esm2022/compat/database/object/snapshot-changes.mjs +0 -7
- package/esm2022/compat/database/observable/fromRef.mjs +0 -48
- package/esm2022/compat/database/public_api.mjs +0 -9
- package/esm2022/compat/database/utils.mjs +0 -36
- package/esm2022/compat/firebase.app.mjs +0 -6
- package/esm2022/compat/firebase.app.module.mjs +0 -71
- package/esm2022/compat/firestore/angular-fire-compat-firestore.mjs +0 -5
- package/esm2022/compat/firestore/collection/changes.mjs +0 -108
- package/esm2022/compat/firestore/collection/collection.mjs +0 -123
- package/esm2022/compat/firestore/collection-group/collection-group.mjs +0 -86
- package/esm2022/compat/firestore/document/document.mjs +0 -87
- package/esm2022/compat/firestore/firestore.mjs +0 -257
- package/esm2022/compat/firestore/firestore.module.mjs +0 -32
- package/esm2022/compat/firestore/interfaces.mjs +0 -2
- package/esm2022/compat/firestore/observable/fromRef.mjs +0 -40
- package/esm2022/compat/firestore/public_api.mjs +0 -9
- package/esm2022/compat/functions/angular-fire-compat-functions.mjs +0 -5
- package/esm2022/compat/functions/base.mjs +0 -8
- package/esm2022/compat/functions/functions.mjs +0 -69
- package/esm2022/compat/functions/functions.module.mjs +0 -20
- package/esm2022/compat/functions/public_api.mjs +0 -4
- package/esm2022/compat/messaging/angular-fire-compat-messaging.mjs +0 -5
- package/esm2022/compat/messaging/base.mjs +0 -9
- package/esm2022/compat/messaging/messaging.mjs +0 -81
- package/esm2022/compat/messaging/messaging.module.mjs +0 -20
- package/esm2022/compat/messaging/public_api.mjs +0 -3
- package/esm2022/compat/performance/angular-fire-compat-performance.mjs +0 -5
- package/esm2022/compat/performance/base.mjs +0 -9
- package/esm2022/compat/performance/performance.mjs +0 -105
- package/esm2022/compat/performance/performance.module.mjs +0 -27
- package/esm2022/compat/performance/performance.service.mjs +0 -28
- package/esm2022/compat/performance/public_api.mjs +0 -4
- package/esm2022/compat/proxy.mjs +0 -58
- package/esm2022/compat/public_api.mjs +0 -5
- package/esm2022/compat/remote-config/angular-fire-compat-remote-config.mjs +0 -5
- package/esm2022/compat/remote-config/base.mjs +0 -20
- package/esm2022/compat/remote-config/interfaces.mjs +0 -2
- package/esm2022/compat/remote-config/public_api.mjs +0 -3
- package/esm2022/compat/remote-config/remote-config.mjs +0 -206
- package/esm2022/compat/remote-config/remote-config.module.mjs +0 -20
- package/esm2022/compat/storage/angular-fire-compat-storage.mjs +0 -5
- package/esm2022/compat/storage/interfaces.mjs +0 -2
- package/esm2022/compat/storage/observable/fromTask.mjs +0 -36
- package/esm2022/compat/storage/pipes/storageUrl.pipe.mjs +0 -56
- package/esm2022/compat/storage/public_api.mjs +0 -7
- package/esm2022/compat/storage/ref.mjs +0 -28
- package/esm2022/compat/storage/storage.mjs +0 -95
- package/esm2022/compat/storage/storage.module.mjs +0 -22
- package/esm2022/compat/storage/task.mjs +0 -21
- package/esm2022/core.mjs +0 -43
- package/esm2022/database/angular-fire-database.mjs +0 -5
- package/esm2022/database/database.mjs +0 -16
- package/esm2022/database/database.module.mjs +0 -76
- package/esm2022/database/firebase.mjs +0 -44
- package/esm2022/database/public_api.mjs +0 -5
- package/esm2022/database/rxfire.mjs +0 -13
- package/esm2022/firestore/angular-fire-firestore.mjs +0 -5
- package/esm2022/firestore/firebase.mjs +0 -73
- package/esm2022/firestore/firestore.mjs +0 -16
- package/esm2022/firestore/firestore.module.mjs +0 -76
- package/esm2022/firestore/lite/angular-fire-firestore-lite.mjs +0 -5
- package/esm2022/firestore/lite/firebase.mjs +0 -48
- package/esm2022/firestore/lite/lite.mjs +0 -16
- package/esm2022/firestore/lite/lite.module.mjs +0 -75
- package/esm2022/firestore/lite/public_api.mjs +0 -5
- package/esm2022/firestore/lite/rxfire.mjs +0 -12
- package/esm2022/firestore/public_api.mjs +0 -5
- package/esm2022/firestore/rxfire.mjs +0 -15
- package/esm2022/functions/angular-fire-functions.mjs +0 -5
- package/esm2022/functions/firebase.mjs +0 -9
- package/esm2022/functions/functions.mjs +0 -16
- package/esm2022/functions/functions.module.mjs +0 -76
- package/esm2022/functions/public_api.mjs +0 -5
- package/esm2022/functions/rxfire.mjs +0 -5
- package/esm2022/messaging/angular-fire-messaging.mjs +0 -5
- package/esm2022/messaging/firebase.mjs +0 -10
- package/esm2022/messaging/is-messaging-supported-factory.mjs +0 -16
- package/esm2022/messaging/messaging.mjs +0 -16
- package/esm2022/messaging/messaging.module.mjs +0 -93
- package/esm2022/messaging/overrides.mjs +0 -3
- package/esm2022/messaging/public_api.mjs +0 -4
- package/esm2022/performance/angular-fire-performance.mjs +0 -5
- package/esm2022/performance/firebase.mjs +0 -8
- package/esm2022/performance/performance.mjs +0 -16
- package/esm2022/performance/performance.module.mjs +0 -83
- package/esm2022/performance/public_api.mjs +0 -5
- package/esm2022/performance/rxfire.mjs +0 -8
- package/esm2022/public_api.mjs +0 -3
- package/esm2022/remote-config/angular-fire-remote-config.mjs +0 -5
- package/esm2022/remote-config/firebase.mjs +0 -17
- package/esm2022/remote-config/is-remote-config-supported-factory.mjs +0 -16
- package/esm2022/remote-config/overrides.mjs +0 -3
- package/esm2022/remote-config/public_api.mjs +0 -5
- package/esm2022/remote-config/remote-config.mjs +0 -16
- package/esm2022/remote-config/remote-config.module.mjs +0 -93
- package/esm2022/remote-config/rxfire.mjs +0 -9
- package/esm2022/storage/angular-fire-storage.mjs +0 -5
- package/esm2022/storage/firebase.mjs +0 -20
- package/esm2022/storage/public_api.mjs +0 -5
- package/esm2022/storage/rxfire.mjs +0 -6
- package/esm2022/storage/storage.mjs +0 -16
- package/esm2022/storage/storage.module.mjs +0 -76
- package/esm2022/vertexai-preview/angular-fire-vertexai-preview.mjs +0 -5
- package/esm2022/vertexai-preview/firebase.mjs +0 -7
- package/esm2022/vertexai-preview/public_api.mjs +0 -4
- package/esm2022/vertexai-preview/vertexai.mjs +0 -16
- package/esm2022/vertexai-preview/vertexai.module.mjs +0 -73
- package/esm2022/zones.mjs +0 -194
- package/fesm2022/angular-fire-vertexai-preview.mjs.map +0 -1
- package/messaging/is-messaging-supported-factory.d.ts +0 -4
- package/messaging/overrides.d.ts +0 -1
- package/remote-config/is-remote-config-supported-factory.d.ts +0 -4
- package/remote-config/overrides.d.ts +0 -1
- package/schematics/common.js +0 -81
- package/schematics/deploy/functions-templates.js +0 -57
- package/schematics/firebaseTools.js +0 -78
- package/schematics/interfaces.js +0 -16
- package/schematics/setup/prompts.js +0 -195
- package/schematics/utils.js +0 -189
- package/vertexai-preview/firebase.d.ts +0 -4
- package/vertexai-preview/package.json +0 -3
- /package/{vertexai-preview → vertexai}/public_api.d.ts +0 -0
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Version, Injectable } from '@angular/core';
|
|
2
|
+
import { Version, isDevMode, inject, NgZone, Injectable, runInInjectionContext, PendingTasks, EnvironmentInjector } from '@angular/core';
|
|
3
3
|
import { getApps } from 'firebase/app';
|
|
4
|
+
import { pendingUntilEvent } from '@angular/core/rxjs-interop';
|
|
4
5
|
import { queueScheduler, asyncScheduler, Observable } from 'rxjs';
|
|
5
|
-
import {
|
|
6
|
+
import { subscribeOn, observeOn } from 'rxjs/operators';
|
|
6
7
|
|
|
7
8
|
const VERSION = new Version('ANGULARFIRE2_VERSION');
|
|
8
9
|
const ɵisSupportedError = (module) => `The APP_INITIALIZER that is "making" isSupported() sync for the sake of convenient DI has not resolved in this
|
|
@@ -38,17 +39,16 @@ const ɵgetAllInstancesOf = (identifier, app) => {
|
|
|
38
39
|
});
|
|
39
40
|
return instances;
|
|
40
41
|
};
|
|
41
|
-
class ɵAppCheckInstances {
|
|
42
|
-
constructor() {
|
|
43
|
-
return ɵgetAllInstancesOf(ɵAPP_CHECK_PROVIDER_NAME);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
const ɵAPP_CHECK_PROVIDER_NAME = 'app-check';
|
|
47
42
|
|
|
48
43
|
/* eslint-disable @typescript-eslint/ban-ts-comment */
|
|
49
|
-
|
|
50
|
-
function
|
|
51
|
-
|
|
44
|
+
var LogLevel;
|
|
45
|
+
(function (LogLevel) {
|
|
46
|
+
LogLevel[LogLevel["SILENT"] = 0] = "SILENT";
|
|
47
|
+
LogLevel[LogLevel["WARN"] = 1] = "WARN";
|
|
48
|
+
LogLevel[LogLevel["VERBOSE"] = 2] = "VERBOSE";
|
|
49
|
+
})(LogLevel || (LogLevel = {}));
|
|
50
|
+
var currentLogLevel = (isDevMode() && typeof Zone !== "undefined") ? LogLevel.WARN : LogLevel.SILENT;
|
|
51
|
+
const setLogLevel = (logLevel) => currentLogLevel = logLevel;
|
|
52
52
|
/**
|
|
53
53
|
* Schedules tasks so that they are invoked inside the Zone that is passed in the constructor.
|
|
54
54
|
*/
|
|
@@ -67,9 +67,14 @@ class ɵZoneScheduler {
|
|
|
67
67
|
// Wrap the specified work function to make sure that if nested scheduling takes place the
|
|
68
68
|
// work is executed in the correct zone
|
|
69
69
|
const workInZone = function (state) {
|
|
70
|
-
targetZone
|
|
70
|
+
if (targetZone) {
|
|
71
|
+
targetZone.runGuarded(() => {
|
|
72
|
+
work.apply(this, [state]);
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
71
76
|
work.apply(this, [state]);
|
|
72
|
-
}
|
|
77
|
+
}
|
|
73
78
|
};
|
|
74
79
|
// Scheduling itself needs to be run in zone to ensure setInterval calls for async scheduling are done
|
|
75
80
|
// inside the correct zone. This scheduler needs to schedule asynchronously always to ensure that
|
|
@@ -77,132 +82,87 @@ class ɵZoneScheduler {
|
|
|
77
82
|
return this.delegate.schedule(workInZone, delay, state);
|
|
78
83
|
}
|
|
79
84
|
}
|
|
80
|
-
class BlockUntilFirstOperator {
|
|
81
|
-
zone;
|
|
82
|
-
// @ts-ignore
|
|
83
|
-
task = null;
|
|
84
|
-
constructor(zone) {
|
|
85
|
-
this.zone = zone;
|
|
86
|
-
}
|
|
87
|
-
call(subscriber, source) {
|
|
88
|
-
const unscheduleTask = this.unscheduleTask.bind(this);
|
|
89
|
-
// @ts-ignore
|
|
90
|
-
this.task = this.zone.run(() => Zone.current.scheduleMacroTask('firebaseZoneBlock', noop, {}, noop, noop));
|
|
91
|
-
return source.pipe(tap({ next: unscheduleTask, complete: unscheduleTask, error: unscheduleTask })).subscribe(subscriber).add(unscheduleTask);
|
|
92
|
-
}
|
|
93
|
-
unscheduleTask() {
|
|
94
|
-
// maybe this is a race condition, invoke in a timeout
|
|
95
|
-
// hold for 10ms while I try to figure out what is going on
|
|
96
|
-
setTimeout(() => {
|
|
97
|
-
if (this.task != null && this.task.state === 'scheduled') {
|
|
98
|
-
this.task.invoke();
|
|
99
|
-
this.task = null;
|
|
100
|
-
}
|
|
101
|
-
}, 10);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
85
|
class ɵAngularFireSchedulers {
|
|
105
|
-
ngZone;
|
|
106
86
|
outsideAngular;
|
|
107
87
|
insideAngular;
|
|
108
|
-
constructor(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
this.
|
|
112
|
-
// @ts-ignore
|
|
113
|
-
this.insideAngular = ngZone.run(() => new ɵZoneScheduler(Zone.current, asyncScheduler));
|
|
114
|
-
globalThis.ɵAngularFireScheduler ||= this;
|
|
88
|
+
constructor() {
|
|
89
|
+
const ngZone = inject(NgZone);
|
|
90
|
+
this.outsideAngular = ngZone.runOutsideAngular(() => new ɵZoneScheduler(typeof Zone === 'undefined' ? undefined : Zone.current));
|
|
91
|
+
this.insideAngular = ngZone.run(() => new ɵZoneScheduler(typeof Zone === 'undefined' ? undefined : Zone.current, asyncScheduler));
|
|
115
92
|
}
|
|
116
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
117
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
93
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ɵAngularFireSchedulers, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
94
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ɵAngularFireSchedulers, providedIn: 'root' });
|
|
118
95
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0", ngImport: i0, type: ɵAngularFireSchedulers, decorators: [{
|
|
120
97
|
type: Injectable,
|
|
121
98
|
args: [{
|
|
122
99
|
providedIn: 'root',
|
|
123
100
|
}]
|
|
124
|
-
}], ctorParameters: () => [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
if (!
|
|
128
|
-
|
|
129
|
-
|
|
101
|
+
}], ctorParameters: () => [] });
|
|
102
|
+
var alreadyWarned = false;
|
|
103
|
+
function warnOutsideInjectionContext(original, logLevel) {
|
|
104
|
+
if (!alreadyWarned && (currentLogLevel > LogLevel.SILENT || isDevMode())) {
|
|
105
|
+
alreadyWarned = true;
|
|
106
|
+
console.warn("Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md");
|
|
107
|
+
}
|
|
108
|
+
if (currentLogLevel >= logLevel) {
|
|
109
|
+
console.warn(`Firebase API called outside injection context: ${original.name}`);
|
|
130
110
|
}
|
|
131
|
-
return schedulers;
|
|
132
111
|
}
|
|
133
112
|
function runOutsideAngular(fn) {
|
|
134
|
-
|
|
113
|
+
const ngZone = inject(NgZone, { optional: true });
|
|
114
|
+
if (!ngZone) {
|
|
115
|
+
return fn();
|
|
116
|
+
}
|
|
117
|
+
return ngZone.runOutsideAngular(() => fn());
|
|
135
118
|
}
|
|
136
119
|
function run(fn) {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
function observeInsideAngular(obs$) {
|
|
143
|
-
return obs$.pipe(observeOn(getSchedulers().insideAngular));
|
|
144
|
-
}
|
|
145
|
-
function keepUnstableUntilFirst(obs$) {
|
|
146
|
-
return ɵkeepUnstableUntilFirstFactory(getSchedulers())(obs$);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Operator to block the zone until the first value has been emitted or the observable
|
|
150
|
-
* has completed/errored. This is used to make sure that universal waits until the first
|
|
151
|
-
* value from firebase but doesn't block the zone forever since the firebase subscription
|
|
152
|
-
* is still alive.
|
|
153
|
-
*/
|
|
154
|
-
function ɵkeepUnstableUntilFirstFactory(schedulers) {
|
|
155
|
-
return function keepUnstableUntilFirst(obs$) {
|
|
156
|
-
obs$ = obs$.lift(new BlockUntilFirstOperator(schedulers.ngZone));
|
|
157
|
-
return obs$.pipe(
|
|
158
|
-
// Run the subscribe body outside of Angular (e.g. calling Firebase SDK to add a listener to a change event)
|
|
159
|
-
subscribeOn(schedulers.outsideAngular),
|
|
160
|
-
// Run operators inside the angular zone (e.g. side effects via tap())
|
|
161
|
-
observeOn(schedulers.insideAngular)
|
|
162
|
-
// INVESTIGATE https://github.com/angular/angularfire/pull/2315
|
|
163
|
-
// share()
|
|
164
|
-
);
|
|
165
|
-
};
|
|
120
|
+
const ngZone = inject(NgZone, { optional: true });
|
|
121
|
+
if (!ngZone) {
|
|
122
|
+
return fn();
|
|
123
|
+
}
|
|
124
|
+
return ngZone.run(() => fn());
|
|
166
125
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
// function() is needed for the arguments object
|
|
172
|
-
return function () {
|
|
173
|
-
const _arguments = arguments;
|
|
174
|
-
if (macrotask) {
|
|
175
|
-
setTimeout(() => {
|
|
176
|
-
if (macrotask.state === 'scheduled') {
|
|
177
|
-
macrotask.invoke();
|
|
178
|
-
}
|
|
179
|
-
}, 10);
|
|
126
|
+
const zoneWrapFn = (it, taskDone, injector) => {
|
|
127
|
+
return (...args) => {
|
|
128
|
+
if (taskDone) {
|
|
129
|
+
setTimeout(taskDone, 0);
|
|
180
130
|
}
|
|
181
|
-
return run(() => it.apply(
|
|
131
|
+
return runInInjectionContext(injector, () => run(() => it.apply(this, args)));
|
|
182
132
|
};
|
|
183
133
|
};
|
|
184
|
-
const ɵzoneWrap = (it, blockUntilFirst) => {
|
|
134
|
+
const ɵzoneWrap = (it, blockUntilFirst, logLevel) => {
|
|
135
|
+
logLevel ||= blockUntilFirst ? LogLevel.WARN : LogLevel.VERBOSE;
|
|
185
136
|
// function() is needed for the arguments object
|
|
186
137
|
return function () {
|
|
187
|
-
|
|
188
|
-
let macrotask;
|
|
138
|
+
let taskDone;
|
|
189
139
|
const _arguments = arguments;
|
|
190
|
-
|
|
140
|
+
let schedulers;
|
|
141
|
+
let pendingTasks;
|
|
142
|
+
let injector;
|
|
143
|
+
try {
|
|
144
|
+
schedulers = inject(ɵAngularFireSchedulers);
|
|
145
|
+
pendingTasks = inject(PendingTasks);
|
|
146
|
+
injector = inject(EnvironmentInjector);
|
|
147
|
+
}
|
|
148
|
+
catch (e) {
|
|
149
|
+
warnOutsideInjectionContext(it, logLevel);
|
|
150
|
+
return it.apply(this, _arguments);
|
|
151
|
+
}
|
|
152
|
+
// if this is a callback function, e.g, onSnapshot, we should create a pending task and complete it
|
|
191
153
|
// only once one of the callback functions is tripped.
|
|
192
154
|
for (let i = 0; i < arguments.length; i++) {
|
|
193
155
|
if (typeof _arguments[i] === 'function') {
|
|
194
156
|
if (blockUntilFirst) {
|
|
195
|
-
|
|
196
|
-
macrotask ||= run(() => Zone.current.scheduleMacroTask('firebaseZoneBlock', noop, {}, noop, noop));
|
|
157
|
+
taskDone ||= run(() => pendingTasks.add());
|
|
197
158
|
}
|
|
198
159
|
// TODO create a microtask to track callback functions
|
|
199
|
-
_arguments[i] = zoneWrapFn(_arguments[i],
|
|
160
|
+
_arguments[i] = zoneWrapFn(_arguments[i], taskDone, injector);
|
|
200
161
|
}
|
|
201
162
|
}
|
|
202
163
|
const ret = runOutsideAngular(() => it.apply(this, _arguments));
|
|
203
164
|
if (!blockUntilFirst) {
|
|
204
165
|
if (ret instanceof Observable) {
|
|
205
|
-
const schedulers = getSchedulers();
|
|
206
166
|
return ret.pipe(subscribeOn(schedulers.outsideAngular), observeOn(schedulers.insideAngular));
|
|
207
167
|
}
|
|
208
168
|
else {
|
|
@@ -210,21 +170,19 @@ const ɵzoneWrap = (it, blockUntilFirst) => {
|
|
|
210
170
|
}
|
|
211
171
|
}
|
|
212
172
|
if (ret instanceof Observable) {
|
|
213
|
-
return ret.pipe(
|
|
173
|
+
return ret.pipe(subscribeOn(schedulers.outsideAngular), observeOn(schedulers.insideAngular), pendingUntilEvent(injector));
|
|
214
174
|
}
|
|
215
175
|
else if (ret instanceof Promise) {
|
|
216
176
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
217
|
-
return run(() => new Promise((resolve, reject) =>
|
|
177
|
+
return run(() => new Promise((resolve, reject) => {
|
|
178
|
+
pendingTasks.run(() => ret).then((it) => runInInjectionContext(injector, () => run(() => resolve(it))), (reason) => runInInjectionContext(injector, () => run(() => reject(reason))));
|
|
179
|
+
}));
|
|
218
180
|
}
|
|
219
|
-
else if (typeof ret === 'function' &&
|
|
181
|
+
else if (typeof ret === 'function' && taskDone) {
|
|
220
182
|
// Handle unsubscribe
|
|
221
183
|
// function() is needed for the arguments object
|
|
222
184
|
return function () {
|
|
223
|
-
setTimeout(
|
|
224
|
-
if (macrotask && macrotask.state === 'scheduled') {
|
|
225
|
-
macrotask.invoke();
|
|
226
|
-
}
|
|
227
|
-
}, 10);
|
|
185
|
+
setTimeout(taskDone, 0);
|
|
228
186
|
return ret.apply(this, arguments);
|
|
229
187
|
};
|
|
230
188
|
}
|
|
@@ -239,5 +197,5 @@ const ɵzoneWrap = (it, blockUntilFirst) => {
|
|
|
239
197
|
* Generated bundle index. Do not edit.
|
|
240
198
|
*/
|
|
241
199
|
|
|
242
|
-
export {
|
|
200
|
+
export { LogLevel, VERSION, setLogLevel, ɵAngularFireSchedulers, ɵZoneScheduler, ɵgetAllInstancesOf, ɵgetDefaultInstanceOf, ɵisSupportedError, ɵzoneWrap };
|
|
243
201
|
//# sourceMappingURL=angular-fire.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"angular-fire.mjs","sources":["../../../src/core.ts","../../../src/zones.ts","../../../src/angular-fire.ts"],"sourcesContent":["import { Version } from '@angular/core';\nimport { ComponentContainer } from '@firebase/component';\nimport { FirebaseApp, getApps } from 'firebase/app';\nimport type { AppCheck } from 'firebase/app-check';\n\nexport const VERSION = new Version('ANGULARFIRE2_VERSION');\n\nexport const ɵisSupportedError = (module: string) =>\n `The APP_INITIALIZER that is \"making\" isSupported() sync for the sake of convenient DI has not resolved in this\ncontext. Rather than injecting ${module} in the constructor, first ensure that ${module} is supported by calling\n\\`await isSupported()\\`, then retrieve the instance from the injector manually \\`injector.get(${module})\\`.`;\n\n// TODO is there a better way to get at the internal types?\ninterface FirebaseAppWithContainer extends FirebaseApp {\n container: ComponentContainer;\n}\n\nexport function ɵgetDefaultInstanceOf<T= unknown>(identifier: string, provided: T[]|undefined, defaultApp: FirebaseApp): T|undefined {\n if (provided) {\n // Was provide* only called once? If so grab that\n if (provided.length === 1) { return provided[0]; }\n const providedUsingDefaultApp = provided.filter((it: any) => it.app === defaultApp);\n // Was provide* only called once, using the default app? If so use that\n if (providedUsingDefaultApp.length === 1) { return providedUsingDefaultApp[0]; }\n }\n // Grab the default instance from the defaultApp\n const defaultAppWithContainer: FirebaseAppWithContainer = defaultApp as any;\n const provider = defaultAppWithContainer.container.getProvider(identifier as never);\n return provider.getImmediate({ optional: true });\n}\n\nexport const ɵgetAllInstancesOf = <T= unknown>(identifier: string, app?: FirebaseApp): T[] => {\n const apps = app ? [app] : getApps();\n const instances: any[] = [];\n apps.forEach((app: FirebaseAppWithContainer) => {\n const provider: any = app.container.getProvider(identifier as never);\n provider.instances.forEach((instance: any) => {\n if (!instances.includes(instance)) {\n instances.push(instance);\n }\n });\n });\n return instances;\n};\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface ɵAppCheckInstances extends Array<AppCheck> {}\n\nexport class ɵAppCheckInstances {\n constructor() {\n return ɵgetAllInstancesOf<AppCheck>(ɵAPP_CHECK_PROVIDER_NAME);\n }\n}\n\nexport const ɵAPP_CHECK_PROVIDER_NAME = 'app-check';\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport { Injectable, NgZone } from '@angular/core';\nimport {\n Observable,\n Operator,\n SchedulerAction,\n SchedulerLike,\n Subscriber,\n Subscription,\n TeardownLogic,\n asyncScheduler,\n queueScheduler\n} from 'rxjs';\nimport { observeOn, subscribeOn, tap } from 'rxjs/operators';\n\n// eslint-disable-next-line @typescript-eslint/no-empty-function\nfunction noop() {\n}\n\n/**\n * Schedules tasks so that they are invoked inside the Zone that is passed in the constructor.\n */\nexport class ɵZoneScheduler implements SchedulerLike {\n constructor(private zone: any, private delegate: any = queueScheduler) {\n }\n\n now() {\n return this.delegate.now();\n }\n\n schedule(work: (this: SchedulerAction<any>, state?: any) => void, delay?: number, state?: any): Subscription {\n const targetZone = this.zone;\n // Wrap the specified work function to make sure that if nested scheduling takes place the\n // work is executed in the correct zone\n const workInZone = function(this: SchedulerAction<any>, state: any) {\n targetZone.runGuarded(() => {\n work.apply(this, [state]);\n });\n };\n\n // Scheduling itself needs to be run in zone to ensure setInterval calls for async scheduling are done\n // inside the correct zone. This scheduler needs to schedule asynchronously always to ensure that\n // firebase emissions are never synchronous. Specifying a delay causes issues with the queueScheduler delegate.\n return this.delegate.schedule(workInZone, delay, state);\n }\n}\n\nclass BlockUntilFirstOperator<T> implements Operator<T, T> {\n // @ts-ignore\n private task: MacroTask | null = null;\n\n constructor(private zone: any) {\n }\n\n call(subscriber: Subscriber<T>, source: Observable<T>): TeardownLogic {\n const unscheduleTask = this.unscheduleTask.bind(this);\n // @ts-ignore\n this.task = this.zone.run(() => Zone.current.scheduleMacroTask('firebaseZoneBlock', noop, {}, noop, noop));\n\n return source.pipe(\n tap({ next: unscheduleTask, complete: unscheduleTask, error: unscheduleTask })\n ).subscribe(subscriber).add(unscheduleTask);\n }\n\n private unscheduleTask() {\n // maybe this is a race condition, invoke in a timeout\n // hold for 10ms while I try to figure out what is going on\n setTimeout(() => {\n if (this.task != null && this.task.state === 'scheduled') {\n this.task.invoke();\n this.task = null;\n }\n }, 10);\n }\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ɵAngularFireSchedulers {\n public readonly outsideAngular: ɵZoneScheduler;\n public readonly insideAngular: ɵZoneScheduler;\n\n constructor(public ngZone: NgZone) {\n // @ts-ignore\n this.outsideAngular = ngZone.runOutsideAngular(() => new ɵZoneScheduler(Zone.current));\n // @ts-ignore\n this.insideAngular = ngZone.run(() => new ɵZoneScheduler(Zone.current, asyncScheduler));\n globalThis.ɵAngularFireScheduler ||= this;\n }\n}\n\nfunction getSchedulers() {\n const schedulers = globalThis.ɵAngularFireScheduler as ɵAngularFireSchedulers|undefined;\n if (!schedulers) {\n throw new Error(\n`Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).`);\n }\n return schedulers;\n}\n\nfunction runOutsideAngular<T>(fn: (...args: any[]) => T): T {\n return getSchedulers().ngZone.runOutsideAngular(() => fn());\n}\n\nfunction run<T>(fn: (...args: any[]) => T): T {\n return getSchedulers().ngZone.run(() => fn());\n}\n\nexport function observeOutsideAngular<T>(obs$: Observable<T>): Observable<T> {\n return obs$.pipe(observeOn(getSchedulers().outsideAngular));\n}\n\nexport function observeInsideAngular<T>(obs$: Observable<T>): Observable<T> {\n return obs$.pipe(observeOn(getSchedulers().insideAngular));\n}\n\nexport function keepUnstableUntilFirst<T>(obs$: Observable<T>): Observable<T> {\n return ɵkeepUnstableUntilFirstFactory(getSchedulers())(obs$);\n}\n\n/**\n * Operator to block the zone until the first value has been emitted or the observable\n * has completed/errored. This is used to make sure that universal waits until the first\n * value from firebase but doesn't block the zone forever since the firebase subscription\n * is still alive.\n */\nexport function ɵkeepUnstableUntilFirstFactory(schedulers: ɵAngularFireSchedulers) {\n return function keepUnstableUntilFirst<T>(obs$: Observable<T>): Observable<T> {\n obs$ = obs$.lift(\n new BlockUntilFirstOperator(schedulers.ngZone)\n );\n\n return obs$.pipe(\n // Run the subscribe body outside of Angular (e.g. calling Firebase SDK to add a listener to a change event)\n subscribeOn(schedulers.outsideAngular),\n // Run operators inside the angular zone (e.g. side effects via tap())\n observeOn(schedulers.insideAngular)\n // INVESTIGATE https://github.com/angular/angularfire/pull/2315\n // share()\n );\n };\n}\n\n// @ts-ignore\nconst zoneWrapFn = (it: (...args: any[]) => any, macrotask: MacroTask|undefined) => {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const _this = this;\n // function() is needed for the arguments object\n return function() {\n const _arguments = arguments;\n if (macrotask) {\n setTimeout(() => {\n if (macrotask.state === 'scheduled') {\n macrotask.invoke();\n }\n }, 10);\n }\n return run(() => it.apply(_this, _arguments));\n };\n};\n\nexport const ɵzoneWrap = <T= unknown>(it: T, blockUntilFirst: boolean): T => {\n // function() is needed for the arguments object\n return function() {\n // @ts-ignore\n let macrotask: MacroTask | undefined;\n const _arguments = arguments;\n // if this is a callback function, e.g, onSnapshot, we should create a microtask and invoke it\n // only once one of the callback functions is tripped.\n for (let i = 0; i < arguments.length; i++) {\n if (typeof _arguments[i] === 'function') {\n if (blockUntilFirst) {\n // @ts-ignore\n macrotask ||= run(() => Zone.current.scheduleMacroTask('firebaseZoneBlock', noop, {}, noop, noop));\n }\n // TODO create a microtask to track callback functions\n _arguments[i] = zoneWrapFn(_arguments[i], macrotask);\n }\n }\n const ret = runOutsideAngular(() => (it as any).apply(this, _arguments));\n if (!blockUntilFirst) {\n if (ret instanceof Observable) {\n const schedulers = getSchedulers();\n return ret.pipe(\n subscribeOn(schedulers.outsideAngular),\n observeOn(schedulers.insideAngular),\n );\n } else {\n return run(() => ret);\n }\n }\n if (ret instanceof Observable) {\n return ret.pipe(keepUnstableUntilFirst) as any;\n } else if (ret instanceof Promise) {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n return run(() => new Promise((resolve, reject) => ret.then(it => run(() => resolve(it)), reason => run(() => reject(reason)))));\n } else if (typeof ret === 'function' && macrotask) {\n // Handle unsubscribe\n // function() is needed for the arguments object\n return function() {\n setTimeout(() => {\n if (macrotask && macrotask.state === 'scheduled') {\n macrotask.invoke();\n }\n }, 10);\n return ret.apply(this, arguments);\n };\n } else {\n // TODO how do we handle storage uploads in Zone? and other stuff with cancel() etc?\n return run(() => ret);\n }\n } as any;\n};\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["this"],"mappings":";;;;;;MAKa,OAAO,GAAG,IAAI,OAAO,CAAC,sBAAsB,EAAE;MAE9C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AC,MAAM,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,IAAI,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SACjI;AAAM,aAAA,IAAI,OAAO,GAAG,KAAK,UAAU,IAAI,SAAS,EAAE;;;YAGjD,OAAO,YAAA;gBACL,UAAU,CAAC,MAAK;oBACd,IAAI,SAAS,IAAI,SAAS,CAAC,KAAK,KAAK,WAAW,EAAE;wBAChD,SAAS,CAAC,MAAM,EAAE,CAAC;qBACpB;iBACF,EAAE,EAAE,CAAC,CAAC;gBACP,OAAO,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACpC,aAAC,CAAC;SACH;aAAM;;AAEL,YAAA,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;SACvB;AACH,KAAQ,CAAC;AACX;;ACtNA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"angular-fire.mjs","sources":["../../../src/core.ts","../../../src/zones.ts","../../../src/angular-fire.ts"],"sourcesContent":["import { Version } from '@angular/core';\nimport { ComponentContainer } from '@firebase/component';\nimport { FirebaseApp, getApps } from 'firebase/app';\n\nexport const VERSION = new Version('ANGULARFIRE2_VERSION');\n\nexport const ɵisSupportedError = (module: string) =>\n `The APP_INITIALIZER that is \"making\" isSupported() sync for the sake of convenient DI has not resolved in this\ncontext. Rather than injecting ${module} in the constructor, first ensure that ${module} is supported by calling\n\\`await isSupported()\\`, then retrieve the instance from the injector manually \\`injector.get(${module})\\`.`;\n\n// TODO is there a better way to get at the internal types?\ninterface FirebaseAppWithContainer extends FirebaseApp {\n container: ComponentContainer;\n}\n\nexport function ɵgetDefaultInstanceOf<T= unknown>(identifier: string, provided: T[]|undefined, defaultApp: FirebaseApp): T|undefined {\n if (provided) {\n // Was provide* only called once? If so grab that\n if (provided.length === 1) { return provided[0]; }\n const providedUsingDefaultApp = provided.filter((it: any) => it.app === defaultApp);\n // Was provide* only called once, using the default app? If so use that\n if (providedUsingDefaultApp.length === 1) { return providedUsingDefaultApp[0]; }\n }\n // Grab the default instance from the defaultApp\n const defaultAppWithContainer: FirebaseAppWithContainer = defaultApp as any;\n const provider = defaultAppWithContainer.container.getProvider(identifier as never);\n return provider.getImmediate({ optional: true });\n}\n\nexport const ɵgetAllInstancesOf = <T= unknown>(identifier: string, app?: FirebaseApp): T[] => {\n const apps = app ? [app] : getApps();\n const instances: any[] = [];\n apps.forEach((app: FirebaseAppWithContainer) => {\n const provider: any = app.container.getProvider(identifier as never);\n provider.instances.forEach((instance: any) => {\n if (!instances.includes(instance)) {\n instances.push(instance);\n }\n });\n });\n return instances;\n};\n","/* eslint-disable @typescript-eslint/ban-ts-comment */\nimport {\n EnvironmentInjector,\n Injectable,\n NgZone,\n PendingTasks,\n inject,\n isDevMode,\n runInInjectionContext\n} from '@angular/core';\nimport { pendingUntilEvent } from '@angular/core/rxjs-interop';\nimport {\n Observable,\n SchedulerAction,\n SchedulerLike,\n Subscription,\n asyncScheduler,\n queueScheduler\n} from 'rxjs';\nimport { observeOn, subscribeOn } from 'rxjs/operators';\n\ndeclare const Zone: {current: unknown} | undefined;\n\nexport enum LogLevel {\n \"SILENT\" = 0, \n \"WARN\" = 1,\n \"VERBOSE\" = 2,\n}\n\n\nvar currentLogLevel = (isDevMode() && typeof Zone !== \"undefined\") ? LogLevel.WARN : LogLevel.SILENT;\n\nexport const setLogLevel = (logLevel: LogLevel) => currentLogLevel = logLevel;\n\n/**\n * Schedules tasks so that they are invoked inside the Zone that is passed in the constructor.\n */\nexport class ɵZoneScheduler implements SchedulerLike {\n constructor(private zone: any, private delegate: any = queueScheduler) {\n }\n\n now() {\n return this.delegate.now();\n }\n\n schedule(work: (this: SchedulerAction<any>, state?: any) => void, delay?: number, state?: any): Subscription {\n const targetZone = this.zone;\n // Wrap the specified work function to make sure that if nested scheduling takes place the\n // work is executed in the correct zone\n const workInZone = function(this: SchedulerAction<any>, state: any) {\n if (targetZone) {\n targetZone.runGuarded(() => {\n work.apply(this, [state]);\n });\n } else {\n work.apply(this, [state]);\n }\n };\n\n // Scheduling itself needs to be run in zone to ensure setInterval calls for async scheduling are done\n // inside the correct zone. This scheduler needs to schedule asynchronously always to ensure that\n // firebase emissions are never synchronous. Specifying a delay causes issues with the queueScheduler delegate.\n return this.delegate.schedule(workInZone, delay, state);\n }\n}\n\n@Injectable({\n providedIn: 'root',\n})\nexport class ɵAngularFireSchedulers {\n public readonly outsideAngular: ɵZoneScheduler;\n public readonly insideAngular: ɵZoneScheduler;\n\n constructor() {\n const ngZone = inject(NgZone);\n this.outsideAngular = ngZone.runOutsideAngular(\n () => new ɵZoneScheduler(typeof Zone === 'undefined' ? undefined : Zone.current)\n );\n this.insideAngular = ngZone.run(\n () => new ɵZoneScheduler(\n typeof Zone === 'undefined' ? undefined : Zone.current,\n asyncScheduler\n )\n );\n }\n}\n\nvar alreadyWarned = false;\nfunction warnOutsideInjectionContext(original: any, logLevel: LogLevel) {\n if (!alreadyWarned && (currentLogLevel > LogLevel.SILENT || isDevMode())) {\n alreadyWarned = true;\n console.warn(\"Calling Firebase APIs outside of an Injection context may destabilize your application leading to subtle change-detection and hydration bugs. Find more at https://github.com/angular/angularfire/blob/main/docs/zones.md\");\n }\n if (currentLogLevel >= logLevel) {\n console.warn(`Firebase API called outside injection context: ${original.name}`);\n }\n}\n\nfunction runOutsideAngular<T>(fn: (...args: any[]) => T): T {\n const ngZone = inject(NgZone, { optional: true });\n if (!ngZone) {return fn();}\n return ngZone.runOutsideAngular(() => fn());\n}\n\nfunction run<T>(fn: (...args: any[]) => T): T {\n const ngZone = inject(NgZone, { optional: true });\n if (!ngZone) {return fn();}\n return ngZone.run(() => fn());\n}\n\nconst zoneWrapFn = (\n it: (...args: any[]) => any,\n taskDone: VoidFunction | undefined,\n injector: EnvironmentInjector,\n) => {\n return (...args: any[]) => {\n if (taskDone) {\n setTimeout(taskDone, 0);\n }\n return runInInjectionContext(injector, () => run(() => it.apply(this, args)));\n };\n};\n\nexport const ɵzoneWrap = <T= unknown>(it: T, blockUntilFirst: boolean, logLevel?: LogLevel): T => {\n logLevel ||= blockUntilFirst ? LogLevel.WARN : LogLevel.VERBOSE;\n // function() is needed for the arguments object\n return function () {\n let taskDone: VoidFunction | undefined;\n const _arguments = arguments;\n let schedulers: ɵAngularFireSchedulers;\n let pendingTasks: PendingTasks;\n let injector: EnvironmentInjector;\n try {\n schedulers = inject(ɵAngularFireSchedulers);\n pendingTasks = inject(PendingTasks);\n injector = inject(EnvironmentInjector);\n } catch(e) {\n warnOutsideInjectionContext(it, logLevel);\n return (it as any).apply(this, _arguments);\n }\n // if this is a callback function, e.g, onSnapshot, we should create a pending task and complete it\n // only once one of the callback functions is tripped.\n for (let i = 0; i < arguments.length; i++) {\n if (typeof _arguments[i] === 'function') {\n if (blockUntilFirst) {\n taskDone ||= run(() => pendingTasks.add());\n }\n // TODO create a microtask to track callback functions\n _arguments[i] = zoneWrapFn(_arguments[i], taskDone, injector);\n }\n }\n const ret = runOutsideAngular(() => (it as any).apply(this, _arguments));\n if (!blockUntilFirst) {\n if (ret instanceof Observable) {\n return ret.pipe(\n subscribeOn(schedulers.outsideAngular),\n observeOn(schedulers.insideAngular),\n );\n } else {\n return run(() => ret);\n }\n }\n if (ret instanceof Observable) {\n return ret.pipe(\n subscribeOn(schedulers.outsideAngular),\n observeOn(schedulers.insideAngular),\n pendingUntilEvent(injector),\n );\n } else if (ret instanceof Promise) {\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n return run(\n () =>\n new Promise((resolve, reject) => {\n pendingTasks.run(() => ret).then(\n (it) => runInInjectionContext(injector, () => run(() => resolve(it))),\n (reason) => runInInjectionContext(injector, () => run(() => reject(reason)))\n );\n }));\n } else if (typeof ret === 'function' && taskDone) {\n // Handle unsubscribe\n // function() is needed for the arguments object\n return function () {\n setTimeout(taskDone, 0);\n return ret.apply(this, arguments);\n };\n } else {\n // TODO how do we handle storage uploads in Zone? and other stuff with cancel() et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C,MAAM,GAAG,CAAC;;;AAGzB,QAAA,IAAI,GAAG,YAAY,UAAU,EAAE;YAC7B,OAAO,GAAG,CAAC,IAAI,CACb,WAAW,CAAC,UAAU,CAAC,cAAc,CAAC,EACtC,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,EACnC,iBAAiB,CAAC,QAAQ,CAAC,CAC5B;;AACI,aAAA,IAAI,GAAG,YAAY,OAAO,EAAE;;AAEjC,YAAA,OAAO,GAAG,CACR,MACE,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAI;gBAC9B,YAAY,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAC9B,CAAC,EAAE,KAAK,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC,EACrE,CAAC,MAAM,KAAK,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAC7E;aACN,CAAC,CAAC;;AACE,aAAA,IAAI,OAAO,GAAG,KAAK,UAAU,IAAI,QAAQ,EAAE;;;YAGhD,OAAO,YAAA;AACL,gBAAA,UAAU,CAAC,QAAQ,EAAE,CAAC,CAAC;gBACvB,OAAO,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC;AACnC,aAAC;;aACI;;AAEL,YAAA,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC;;AAEzB,KAAQ;AACV;;AC9LA;;AAEG;;;;"}
|
package/firestore/firebase.d.ts
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
export * from 'firebase/firestore';
|
|
2
|
-
import { addDoc as _addDoc, aggregateFieldEqual as _aggregateFieldEqual, aggregateQuerySnapshotEqual as _aggregateQuerySnapshotEqual, and as _and,
|
|
2
|
+
import { addDoc as _addDoc, aggregateFieldEqual as _aggregateFieldEqual, aggregateQuerySnapshotEqual as _aggregateQuerySnapshotEqual, and as _and, clearIndexedDbPersistence as _clearIndexedDbPersistence, collection as _collection, collectionGroup as _collectionGroup, connectFirestoreEmulator as _connectFirestoreEmulator, deleteAllPersistentCacheIndexes as _deleteAllPersistentCacheIndexes, deleteDoc as _deleteDoc, deleteField as _deleteField, disableNetwork as _disableNetwork, disablePersistentCacheIndexAutoCreation as _disablePersistentCacheIndexAutoCreation, doc as _doc, documentId as _documentId, enableIndexedDbPersistence as _enableIndexedDbPersistence, enableMultiTabIndexedDbPersistence as _enableMultiTabIndexedDbPersistence, enableNetwork as _enableNetwork, enablePersistentCacheIndexAutoCreation as _enablePersistentCacheIndexAutoCreation, endAt as _endAt, endBefore as _endBefore, getAggregateFromServer as _getAggregateFromServer, getCountFromServer as _getCountFromServer, getDoc as _getDoc, getDocFromCache as _getDocFromCache, getDocFromServer as _getDocFromServer, getDocs as _getDocs, getDocsFromCache as _getDocsFromCache, getDocsFromServer as _getDocsFromServer, getFirestore as _getFirestore, getPersistentCacheIndexManager as _getPersistentCacheIndexManager, increment as _increment, initializeFirestore as _initializeFirestore, limit as _limit, limitToLast as _limitToLast, loadBundle as _loadBundle, namedQuery as _namedQuery, onSnapshot as _onSnapshot, onSnapshotsInSync as _onSnapshotsInSync, or as _or, orderBy as _orderBy, query as _query, queryEqual as _queryEqual, refEqual as _refEqual, runTransaction as _runTransaction, setDoc as _setDoc, setIndexConfiguration as _setIndexConfiguration, setLogLevel as _setLogLevel, snapshotEqual as _snapshotEqual, startAfter as _startAfter, startAt as _startAt, sum as _sum, terminate as _terminate, updateDoc as _updateDoc, vector as _vector, waitForPendingWrites as _waitForPendingWrites, where as _where, writeBatch as _writeBatch } from 'firebase/firestore';
|
|
3
3
|
export declare const addDoc: typeof _addDoc;
|
|
4
4
|
export declare const aggregateFieldEqual: typeof _aggregateFieldEqual;
|
|
5
5
|
export declare const aggregateQuerySnapshotEqual: typeof _aggregateQuerySnapshotEqual;
|
|
6
6
|
export declare const and: typeof _and;
|
|
7
|
-
export declare const arrayRemove: typeof _arrayRemove;
|
|
8
|
-
export declare const arrayUnion: typeof _arrayUnion;
|
|
9
|
-
export declare const average: typeof _average;
|
|
10
7
|
export declare const clearIndexedDbPersistence: typeof _clearIndexedDbPersistence;
|
|
11
8
|
export declare const collection: typeof _collection;
|
|
12
9
|
export declare const collectionGroup: typeof _collectionGroup;
|
|
13
10
|
export declare const connectFirestoreEmulator: typeof _connectFirestoreEmulator;
|
|
14
|
-
export declare const count: typeof _count;
|
|
15
11
|
export declare const deleteAllPersistentCacheIndexes: typeof _deleteAllPersistentCacheIndexes;
|
|
16
12
|
export declare const deleteDoc: typeof _deleteDoc;
|
|
17
13
|
export declare const deleteField: typeof _deleteField;
|
|
@@ -40,22 +36,15 @@ export declare const initializeFirestore: typeof _initializeFirestore;
|
|
|
40
36
|
export declare const limit: typeof _limit;
|
|
41
37
|
export declare const limitToLast: typeof _limitToLast;
|
|
42
38
|
export declare const loadBundle: typeof _loadBundle;
|
|
43
|
-
export declare const memoryEagerGarbageCollector: typeof _memoryEagerGarbageCollector;
|
|
44
|
-
export declare const memoryLocalCache: typeof _memoryLocalCache;
|
|
45
|
-
export declare const memoryLruGarbageCollector: typeof _memoryLruGarbageCollector;
|
|
46
39
|
export declare const namedQuery: typeof _namedQuery;
|
|
47
40
|
export declare const onSnapshot: typeof _onSnapshot;
|
|
48
41
|
export declare const onSnapshotsInSync: typeof _onSnapshotsInSync;
|
|
49
42
|
export declare const or: typeof _or;
|
|
50
43
|
export declare const orderBy: typeof _orderBy;
|
|
51
|
-
export declare const persistentLocalCache: typeof _persistentLocalCache;
|
|
52
|
-
export declare const persistentMultipleTabManager: typeof _persistentMultipleTabManager;
|
|
53
|
-
export declare const persistentSingleTabManager: typeof _persistentSingleTabManager;
|
|
54
44
|
export declare const query: typeof _query;
|
|
55
45
|
export declare const queryEqual: typeof _queryEqual;
|
|
56
46
|
export declare const refEqual: typeof _refEqual;
|
|
57
47
|
export declare const runTransaction: typeof _runTransaction;
|
|
58
|
-
export declare const serverTimestamp: typeof _serverTimestamp;
|
|
59
48
|
export declare const setDoc: typeof _setDoc;
|
|
60
49
|
export declare const setIndexConfiguration: typeof _setIndexConfiguration;
|
|
61
50
|
export declare const setLogLevel: typeof _setLogLevel;
|
|
@@ -65,6 +54,7 @@ export declare const startAt: typeof _startAt;
|
|
|
65
54
|
export declare const sum: typeof _sum;
|
|
66
55
|
export declare const terminate: typeof _terminate;
|
|
67
56
|
export declare const updateDoc: typeof _updateDoc;
|
|
57
|
+
export declare const vector: typeof _vector;
|
|
68
58
|
export declare const waitForPendingWrites: typeof _waitForPendingWrites;
|
|
69
59
|
export declare const where: typeof _where;
|
|
70
60
|
export declare const writeBatch: typeof _writeBatch;
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
export * from 'firebase/firestore/lite';
|
|
2
|
-
import { addDoc as _addDoc, aggregateFieldEqual as _aggregateFieldEqual, aggregateQuerySnapshotEqual as _aggregateQuerySnapshotEqual, and as _and,
|
|
2
|
+
import { addDoc as _addDoc, aggregateFieldEqual as _aggregateFieldEqual, aggregateQuerySnapshotEqual as _aggregateQuerySnapshotEqual, and as _and, collection as _collection, collectionGroup as _collectionGroup, connectFirestoreEmulator as _connectFirestoreEmulator, deleteDoc as _deleteDoc, deleteField as _deleteField, doc as _doc, documentId as _documentId, endAt as _endAt, endBefore as _endBefore, getAggregate as _getAggregate, getCount as _getCount, getDoc as _getDoc, getDocs as _getDocs, getFirestore as _getFirestore, increment as _increment, initializeFirestore as _initializeFirestore, limit as _limit, limitToLast as _limitToLast, or as _or, orderBy as _orderBy, query as _query, queryEqual as _queryEqual, refEqual as _refEqual, runTransaction as _runTransaction, setDoc as _setDoc, setLogLevel as _setLogLevel, snapshotEqual as _snapshotEqual, startAfter as _startAfter, startAt as _startAt, sum as _sum, terminate as _terminate, updateDoc as _updateDoc, vector as _vector, where as _where, writeBatch as _writeBatch } from 'firebase/firestore/lite';
|
|
3
3
|
export declare const addDoc: typeof _addDoc;
|
|
4
4
|
export declare const aggregateFieldEqual: typeof _aggregateFieldEqual;
|
|
5
5
|
export declare const aggregateQuerySnapshotEqual: typeof _aggregateQuerySnapshotEqual;
|
|
6
6
|
export declare const and: typeof _and;
|
|
7
|
-
export declare const arrayRemove: typeof _arrayRemove;
|
|
8
|
-
export declare const arrayUnion: typeof _arrayUnion;
|
|
9
|
-
export declare const average: typeof _average;
|
|
10
7
|
export declare const collection: typeof _collection;
|
|
11
8
|
export declare const collectionGroup: typeof _collectionGroup;
|
|
12
9
|
export declare const connectFirestoreEmulator: typeof _connectFirestoreEmulator;
|
|
13
|
-
export declare const count: typeof _count;
|
|
14
10
|
export declare const deleteDoc: typeof _deleteDoc;
|
|
15
11
|
export declare const deleteField: typeof _deleteField;
|
|
16
12
|
export declare const doc: typeof _doc;
|
|
@@ -32,7 +28,6 @@ export declare const query: typeof _query;
|
|
|
32
28
|
export declare const queryEqual: typeof _queryEqual;
|
|
33
29
|
export declare const refEqual: typeof _refEqual;
|
|
34
30
|
export declare const runTransaction: typeof _runTransaction;
|
|
35
|
-
export declare const serverTimestamp: typeof _serverTimestamp;
|
|
36
31
|
export declare const setDoc: typeof _setDoc;
|
|
37
32
|
export declare const setLogLevel: typeof _setLogLevel;
|
|
38
33
|
export declare const snapshotEqual: typeof _snapshotEqual;
|
|
@@ -41,5 +36,6 @@ export declare const startAt: typeof _startAt;
|
|
|
41
36
|
export declare const sum: typeof _sum;
|
|
42
37
|
export declare const terminate: typeof _terminate;
|
|
43
38
|
export declare const updateDoc: typeof _updateDoc;
|
|
39
|
+
export declare const vector: typeof _vector;
|
|
44
40
|
export declare const where: typeof _where;
|
|
45
41
|
export declare const writeBatch: typeof _writeBatch;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { collection as _collection,
|
|
1
|
+
import { collection as _collection, collectionCount as _collectionCount, collectionCountSnap as _collectionCountSnap, collectionData as _collectionData, doc as _doc, docData as _docData, fromRef as _fromRef, snapToData as _snapToData } from 'rxfire/firestore/lite';
|
|
2
2
|
export declare const collectionSnapshots: typeof _collection;
|
|
3
|
-
export declare const collectionData: typeof _collectionData;
|
|
4
|
-
export declare const collectionCountSnap: typeof _collectionCountSnap;
|
|
5
3
|
export declare const collectionCount: typeof _collectionCount;
|
|
4
|
+
export declare const collectionCountSnap: typeof _collectionCountSnap;
|
|
5
|
+
export declare const collectionData: typeof _collectionData;
|
|
6
6
|
export declare const docSnapshots: typeof _doc;
|
|
7
7
|
export declare const docData: typeof _docData;
|
|
8
|
-
export declare const snapToData: typeof _snapToData;
|
|
9
8
|
export declare const fromRef: typeof _fromRef;
|
|
9
|
+
export declare const snapToData: typeof _snapToData;
|
package/firestore/rxfire.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const collectionChanges: typeof _collectionChanges;
|
|
3
|
-
export declare const collectionSnapshots: typeof _collection;
|
|
4
|
-
export declare const sortedChanges: typeof _sortedChanges;
|
|
1
|
+
import { auditTrail as _auditTrail, collection as _collection, collectionChanges as _collectionChanges, collectionCount as _collectionCount, collectionCountSnap as _collectionCountSnap, collectionData as _collectionData, doc as _doc, docData as _docData, fromRef as _fromRef, snapToData as _snapToData, sortedChanges as _sortedChanges } from 'rxfire/firestore';
|
|
5
2
|
export declare const auditTrail: typeof _auditTrail;
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const
|
|
3
|
+
export declare const collectionSnapshots: typeof _collection;
|
|
4
|
+
export declare const collectionChanges: typeof _collectionChanges;
|
|
8
5
|
export declare const collectionCount: typeof _collectionCount;
|
|
6
|
+
export declare const collectionCountSnap: typeof _collectionCountSnap;
|
|
7
|
+
export declare const collectionData: typeof _collectionData;
|
|
9
8
|
export declare const docSnapshots: typeof _doc;
|
|
10
9
|
export declare const docData: typeof _docData;
|
|
11
|
-
export declare const snapToData: typeof _snapToData;
|
|
12
10
|
export declare const fromRef: typeof _fromRef;
|
|
11
|
+
export declare const snapToData: typeof _snapToData;
|
|
12
|
+
export declare const sortedChanges: typeof _sortedChanges;
|
package/messaging/firebase.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from 'firebase/messaging';
|
|
2
|
-
import { deleteToken as _deleteToken, getMessaging as _getMessaging, getToken as _getToken, onMessage as _onMessage } from 'firebase/messaging';
|
|
3
|
-
export { isSupported } from './overrides';
|
|
2
|
+
import { deleteToken as _deleteToken, getMessaging as _getMessaging, getToken as _getToken, isSupported as _isSupported, onMessage as _onMessage } from 'firebase/messaging';
|
|
4
3
|
export declare const deleteToken: typeof _deleteToken;
|
|
5
4
|
export declare const getMessaging: typeof _getMessaging;
|
|
6
5
|
export declare const getToken: typeof _getToken;
|
|
6
|
+
export declare const isSupported: typeof _isSupported;
|
|
7
7
|
export declare const onMessage: typeof _onMessage;
|
|
@@ -3,8 +3,8 @@ import { FirebaseApp } from '@angular/fire/app';
|
|
|
3
3
|
import { Messaging as FirebaseMessaging } from 'firebase/messaging';
|
|
4
4
|
import { Messaging } from './messaging';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare function defaultMessagingInstanceFactory(provided: FirebaseMessaging[] | undefined, defaultApp: FirebaseApp): Messaging;
|
|
7
|
-
export declare function messagingInstanceFactory(fn: (injector: Injector) => FirebaseMessaging): (zone: NgZone, injector: Injector) => Messaging;
|
|
6
|
+
export declare function defaultMessagingInstanceFactory(provided: FirebaseMessaging[] | undefined, defaultApp: FirebaseApp, platformId: object): Messaging;
|
|
7
|
+
export declare function messagingInstanceFactory(fn: (injector: Injector) => FirebaseMessaging): (zone: NgZone, injector: Injector, platformId: object) => Messaging;
|
|
8
8
|
export declare class MessagingModule {
|
|
9
9
|
constructor();
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MessagingModule, never>;
|