Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@
"typings": "./lib/installations/index.d.ts",
"dist": "./lib/installations/index.js"
},
"firebase-admin/instance-id": {
"typings": "./lib/instance-id/index.d.ts",
"dist": "./lib/instance-id/index.js"
},
"firebase-admin/messaging": {
"typings": "./lib/messaging/index.d.ts",
"dist": "./lib/messaging/index.js"
Expand Down
11 changes: 0 additions & 11 deletions etc/firebase-admin.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ export namespace app {
firestore(): firestore.Firestore;
// (undocumented)
installations(): installations.Installations;
// @deprecated (undocumented)
instanceId(): instanceId.InstanceId;
// (undocumented)
machineLearning(): machineLearning.MachineLearning;
// (undocumented)
Expand Down Expand Up @@ -336,15 +334,6 @@ export namespace installations {
export type Installations = Installations;
}

// @public
export function instanceId(app?: App): instanceId.InstanceId;

// @public (undocumented)
export namespace instanceId {
// Warning: (ae-forgotten-export) The symbol "InstanceId" needs to be exported by the entry point default-namespace.d.ts
export type InstanceId = InstanceId;
}

// @public
export function machineLearning(app?: App): machineLearning.MachineLearning;

Expand Down
40 changes: 0 additions & 40 deletions etc/firebase-admin.instance-id.api.md

This file was deleted.

8 changes: 0 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@
"installations": [
"lib/installations"
],
"instance-id": [
"lib/instance-id"
],
"machine-learning": [
"lib/machine-learning"
],
Expand Down Expand Up @@ -177,11 +174,6 @@
"require": "./lib/installations/index.js",
"import": "./lib/esm/installations/index.js"
},
"./instance-id": {
"types": "./lib/instance-id/index.d.ts",
"require": "./lib/instance-id/index.js",
"import": "./lib/esm/instance-id/index.js"
},
"./machine-learning": {
"types": "./lib/machine-learning/index.d.ts",
"require": "./lib/machine-learning/index.js",
Expand Down
20 changes: 1 addition & 19 deletions src/app/firebase-namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { App as AppCore } from './core';
import { AppStore, defaultAppStore } from './lifecycle';
import {
app, appCheck, auth, messaging, machineLearning, storage, firestore, database,
instanceId, installations, projectManagement, securityRules , remoteConfig, AppOptions,
installations, projectManagement, securityRules, remoteConfig, AppOptions,
} from '../firebase-namespace-api';
import { cert, refreshToken, applicationDefault } from './credential-factory';
import { getSdkVersion } from '../utils/index';
Expand All @@ -30,7 +30,6 @@ import Auth = auth.Auth;
import Database = database.Database;
import Firestore = firestore.Firestore;
import Installations = installations.Installations;
import InstanceId = instanceId.InstanceId;
import MachineLearning = machineLearning.MachineLearning;
import Messaging = messaging.Messaging;
import ProjectManagement = projectManagement.ProjectManagement;
Expand Down Expand Up @@ -217,18 +216,6 @@ export class FirebaseNamespace {
return Object.assign(fn, { Installations: installations });
}

/**
* Gets the `InstanceId` service namespace. The returned namespace can be used to get the
* `Instance` service for the default app or an explicitly specified app.
*/
get instanceId(): FirebaseServiceNamespace<InstanceId> {
const fn: FirebaseServiceNamespace<InstanceId> = (app?: App) => {
return this.ensureApp(app).instanceId();
};
const instanceId = require('../instance-id/instance-id').InstanceId;
return Object.assign(fn, { InstanceId: instanceId });
}

/**
* Gets the `ProjectManagement` service namespace. The returned namespace can be used to get the
* `ProjectManagement` service for the default app or an explicitly specified app.
Expand Down Expand Up @@ -365,11 +352,6 @@ function extendApp(app: AppCore): App {
return fn(app);
};

result.instanceId = () => {
const fn = require('../instance-id/index').getInstanceId;
return fn(app);
}

result.installations = () => {
const fn = require('../installations/index').getInstallations;
return fn(app);
Expand Down
6 changes: 0 additions & 6 deletions src/firebase-namespace-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import { appCheck } from './app-check/app-check-namespace';
import { auth } from './auth/auth-namespace';
import { database } from './database/database-namespace';
import { firestore } from './firestore/firestore-namespace';
import { instanceId } from './instance-id/instance-id-namespace';
import { installations } from './installations/installations-namespace';
import { machineLearning } from './machine-learning/machine-learning-namespace';
import { messaging } from './messaging/messaging-namespace';
Expand Down Expand Up @@ -46,10 +45,6 @@ export namespace app {
database(url?: string): database.Database;
firestore(): firestore.Firestore;
installations(): installations.Installations;
/**
* @deprecated Use {@link firebase-admin.installations#Installations} instead.
*/
instanceId(): instanceId.InstanceId;
machineLearning(): machineLearning.MachineLearning;
messaging(): messaging.Messaging;
projectManagement(): projectManagement.ProjectManagement;
Expand Down Expand Up @@ -83,7 +78,6 @@ export { appCheck } from './app-check/app-check-namespace';
export { auth } from './auth/auth-namespace';
export { database } from './database/database-namespace';
export { firestore } from './firestore/firestore-namespace';
export { instanceId } from './instance-id/instance-id-namespace';
export { installations } from './installations/installations-namespace';
export { machineLearning } from './machine-learning/machine-learning-namespace';
export { messaging } from './messaging/messaging-namespace';
Expand Down
69 changes: 0 additions & 69 deletions src/instance-id/error.ts

This file was deleted.

77 changes: 0 additions & 77 deletions src/instance-id/index.ts

This file was deleted.

40 changes: 0 additions & 40 deletions src/instance-id/instance-id-namespace.ts

This file was deleted.

Loading