Skip to content

Commit 3c9279c

Browse files
Merge branch 'master' into mrschmidt/storagenode
2 parents 632b888 + 2e6d95a commit 3c9279c

File tree

1,210 files changed

+4903
-27128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,210 files changed

+4903
-27128
lines changed

.changeset/a-dark-knight.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"firebase-compat-interop-test",
1717
"firebase-compat-typings-test",
1818
"@firebase/app-exp",
19+
"@firebase/app-check-exp",
1920
"@firebase/analytics-compat",
2021
"@firebase/analytics-exp",
2122
"@firebase/auth-exp",

.github/CODEOWNERS

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,6 @@ packages/auth-types @bojeil-google @avolkovi @sam-gc @yuchenshi @firebase/jssdk
6262
packages/testing @avolkovi @sam-gc @yuchenshi @firebase/jssdk-global-approvers
6363
packages/rules-unit-testing @avolkovi @sam-gc @yuchenshi @firebase/jssdk-global-approvers
6464

65-
# RxFire Code
66-
packages/rxfire @davideast @jamesdaniels @firebase/jssdk-global-approvers
67-
6865
# Installations
6966
packages/installations @andirayo @ChaoqunCHEN @firebase/jssdk-global-approvers
7067
packages/installations-types @andirayo @ChaoqunCHEN @firebase/jssdk-global-approvers

.github/workflows/canary-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,4 @@ jobs:
6060
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
6161
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
6262
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}
63-
NPM_TOKEN_RXFIRE: ${{secrets.NPM_TOKEN_RXFIRE}}
6463
CI: true

.github/workflows/prerelease-manual-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,5 @@ jobs:
6161
NPM_TOKEN_UTIL: ${{secrets.NPM_TOKEN_UTIL}}
6262
NPM_TOKEN_WEBCHANNEL_WRAPPER: ${{secrets.NPM_TOKEN_WEBCHANNEL_WRAPPER}}
6363
NPM_TOKEN_FIREBASE: ${{secrets.NPM_TOKEN_FIREBASE}}
64-
NPM_TOKEN_RXFIRE: ${{secrets.NPM_TOKEN_RXFIRE}}
6564
CI: true
6665

.github/workflows/test-changed-misc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test rxFire and @firebase/rules-unit-testing
1+
name: Test @firebase/rules-unit-testing
22

33
on: pull_request
44

common/api-review/analytics-exp.api.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ export interface AnalyticsCallOptions {
1616
global: boolean;
1717
}
1818

19+
// @public
20+
export interface AnalyticsOptions {
21+
config?: GtagConfigParams | EventParams;
22+
}
23+
1924
// @public
2025
export interface ControlParams {
2126
// (undocumented)
@@ -45,6 +50,8 @@ export type EventNameString = 'add_payment_info' | 'add_shipping_info' | 'add_to
4550

4651
// @public
4752
export interface EventParams {
53+
// (undocumented)
54+
[key: string]: unknown;
4855
// (undocumented)
4956
affiliation?: string;
5057
// (undocumented)
@@ -110,6 +117,31 @@ export interface EventParams {
110117
// @public
111118
export function getAnalytics(app?: FirebaseApp): Analytics;
112119

120+
// @public
121+
export interface GtagConfigParams {
122+
'allow_google_signals?': boolean;
123+
// (undocumented)
124+
[key: string]: unknown;
125+
'allow_ad_personalization_signals'?: boolean;
126+
'anonymize_ip'?: boolean;
127+
'cookie_domain'?: string;
128+
'cookie_expires'?: number;
129+
'cookie_flags'?: string;
130+
'cookie_prefix'?: string;
131+
'cookie_update'?: boolean;
132+
'custom_map'?: {
133+
[key: string]: unknown;
134+
};
135+
'link_attribution'?: boolean;
136+
'page_location'?: string;
137+
'page_path'?: string;
138+
'page_title'?: string;
139+
'send_page_view'?: boolean;
140+
}
141+
142+
// @public
143+
export function initializeAnalytics(app: FirebaseApp, options?: AnalyticsOptions): Analytics;
144+
113145
// @public
114146
export function isSupported(): Promise<boolean>;
115147

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
## API Report File for "@firebase/app-check-exp"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
import { FirebaseApp } from '@firebase/app-exp';
8+
9+
// @public
10+
export interface AppCheck {
11+
app: FirebaseApp;
12+
}
13+
14+
// @internal (undocumented)
15+
export type _AppCheckComponentName = 'app-check-exp';
16+
17+
// @internal (undocumented)
18+
export type _AppCheckInternalComponentName = 'app-check-internal';
19+
20+
// @public
21+
export interface AppCheckOptions {
22+
isTokenAutoRefreshEnabled?: boolean;
23+
provider: CustomProvider | ReCaptchaV3Provider;
24+
}
25+
26+
// @public
27+
export interface AppCheckToken {
28+
readonly expireTimeMillis: number;
29+
// (undocumented)
30+
readonly token: string;
31+
}
32+
33+
// Warning: (ae-forgotten-export) The symbol "AppCheckProvider" needs to be exported by the entry point index.d.ts
34+
//
35+
// @public
36+
export class CustomProvider implements AppCheckProvider {
37+
constructor(_customProviderOptions: CustomProviderOptions);
38+
// Warning: (ae-forgotten-export) The symbol "AppCheckTokenInternal" needs to be exported by the entry point index.d.ts
39+
//
40+
// @internal (undocumented)
41+
getToken(): Promise<AppCheckTokenInternal>;
42+
// @internal (undocumented)
43+
initialize(app: FirebaseApp): void;
44+
}
45+
46+
// @public
47+
export interface CustomProviderOptions {
48+
getToken: () => Promise<AppCheckToken>;
49+
}
50+
51+
// @public
52+
export function initializeAppCheck(app: FirebaseApp | undefined, options: AppCheckOptions): AppCheck;
53+
54+
// @public
55+
export class ReCaptchaV3Provider implements AppCheckProvider {
56+
constructor(_siteKey: string);
57+
// @internal
58+
getToken(): Promise<AppCheckTokenInternal>;
59+
// @internal (undocumented)
60+
initialize(app: FirebaseApp): void;
61+
}
62+
63+
// @public
64+
export function setTokenAutoRefreshEnabled(app: FirebaseApp, isTokenAutoRefreshEnabled: boolean): void;
65+
66+
67+
// (No @packageDocumentation comment for this package)
68+
69+
```

common/api-review/auth-exp.api.md

Lines changed: 40 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ export interface ActionCodeInfo {
2020
multiFactorInfo?: MultiFactorInfo | null;
2121
previousEmail?: string | null;
2222
};
23-
operation: ActionCodeOperation;
23+
operation: typeof ActionCodeOperation[keyof typeof ActionCodeOperation];
2424
}
2525

2626
// @public
27-
export const enum ActionCodeOperation {
28-
EMAIL_SIGNIN = "EMAIL_SIGNIN",
29-
PASSWORD_RESET = "PASSWORD_RESET",
30-
RECOVER_EMAIL = "RECOVER_EMAIL",
31-
REVERT_SECOND_FACTOR_ADDITION = "REVERT_SECOND_FACTOR_ADDITION",
32-
VERIFY_AND_CHANGE_EMAIL = "VERIFY_AND_CHANGE_EMAIL",
33-
VERIFY_EMAIL = "VERIFY_EMAIL"
34-
}
27+
export const ActionCodeOperation: {
28+
readonly EMAIL_SIGNIN: "EMAIL_SIGNIN";
29+
readonly PASSWORD_RESET: "PASSWORD_RESET";
30+
readonly RECOVER_EMAIL: "RECOVER_EMAIL";
31+
readonly REVERT_SECOND_FACTOR_ADDITION: "REVERT_SECOND_FACTOR_ADDITION";
32+
readonly VERIFY_AND_CHANGE_EMAIL: "VERIFY_AND_CHANGE_EMAIL";
33+
readonly VERIFY_EMAIL: "VERIFY_EMAIL";
34+
};
3535

3636
// @public
3737
export interface ActionCodeSettings {
@@ -56,7 +56,7 @@ export class ActionCodeURL {
5656
readonly code: string;
5757
readonly continueUrl: string | null;
5858
readonly languageCode: string | null;
59-
readonly operation: ActionCodeOperation;
59+
readonly operation: string;
6060
static parseLink(link: string): ActionCodeURL | null;
6161
readonly tenantId: string | null;
6262
}
@@ -239,9 +239,9 @@ export class FacebookAuthProvider extends BaseOAuthProvider {
239239
}
240240

241241
// @public
242-
export const enum FactorId {
243-
PHONE = "phone"
244-
}
242+
export const FactorId: {
243+
readonly PHONE: "phone";
244+
};
245245

246246
// @public
247247
export function fetchSignInMethodsForEmail(auth: Auth, email: string): Promise<string[]>;
@@ -324,19 +324,19 @@ export function multiFactor(user: User): MultiFactorUser;
324324

325325
// @public
326326
export interface MultiFactorAssertion {
327-
readonly factorId: FactorId;
327+
readonly factorId: typeof FactorId[keyof typeof FactorId];
328328
}
329329

330330
// @public
331331
export interface MultiFactorError extends AuthError {
332-
readonly operationType: OperationType;
332+
readonly operationType: typeof OperationType[keyof typeof OperationType];
333333
}
334334

335335
// @public
336336
export interface MultiFactorInfo {
337337
readonly displayName?: string | null;
338338
readonly enrollmentTime: string;
339-
readonly factorId: FactorId;
339+
readonly factorId: typeof FactorId[keyof typeof FactorId];
340340
readonly uid: string;
341341
}
342342

@@ -405,11 +405,11 @@ export function onAuthStateChanged(auth: Auth, nextOrObserver: NextOrObserver<Us
405405
export function onIdTokenChanged(auth: Auth, nextOrObserver: NextOrObserver<User>, error?: ErrorFn, completed?: CompleteFn): Unsubscribe;
406406

407407
// @public
408-
export const enum OperationType {
409-
LINK = "link",
410-
REAUTHENTICATE = "reauthenticate",
411-
SIGN_IN = "signIn"
412-
}
408+
export const OperationType: {
409+
readonly LINK: "link";
410+
readonly REAUTHENTICATE: "reauthenticate";
411+
readonly SIGN_IN: "signIn";
412+
};
413413

414414
// @public
415415
export function parseActionCodeURL(link: string): ActionCodeURL | null;
@@ -502,20 +502,14 @@ export interface PopupRedirectResolver {
502502
export const prodErrorMap: AuthErrorMap;
503503

504504
// @public
505-
export const enum ProviderId {
506-
// @internal (undocumented)
507-
ANONYMOUS = "anonymous",
508-
// @internal (undocumented)
509-
CUSTOM = "custom",
510-
FACEBOOK = "facebook.com",
511-
// @internal (undocumented)
512-
FIREBASE = "firebase",
513-
GITHUB = "github.com",
514-
GOOGLE = "google.com",
515-
PASSWORD = "password",
516-
PHONE = "phone",
517-
TWITTER = "twitter.com"
518-
}
505+
export const ProviderId: {
506+
readonly FACEBOOK: "facebook.com";
507+
readonly GITHUB: "github.com";
508+
readonly GOOGLE: "google.com";
509+
readonly PASSWORD: "password";
510+
readonly PHONE: "phone";
511+
readonly TWITTER: "twitter.com";
512+
};
519513

520514
// @public
521515
export interface ReactNativeAsyncStorage {
@@ -583,17 +577,15 @@ export function setPersistence(auth: Auth, persistence: Persistence): Promise<vo
583577
export function signInAnonymously(auth: Auth): Promise<UserCredential>;
584578

585579
// @public
586-
export const enum SignInMethod {
587-
// @internal (undocumented)
588-
ANONYMOUS = "anonymous",
589-
EMAIL_LINK = "emailLink",
590-
EMAIL_PASSWORD = "password",
591-
FACEBOOK = "facebook.com",
592-
GITHUB = "github.com",
593-
GOOGLE = "google.com",
594-
PHONE = "phone",
595-
TWITTER = "twitter.com"
596-
}
580+
export const SignInMethod: {
581+
readonly EMAIL_LINK: "emailLink";
582+
readonly EMAIL_PASSWORD: "password";
583+
readonly FACEBOOK: "facebook.com";
584+
readonly GITHUB: "github.com";
585+
readonly GOOGLE: "google.com";
586+
readonly PHONE: "phone";
587+
readonly TWITTER: "twitter.com";
588+
};
597589

598590
// @public
599591
export function signInWithCredential(auth: Auth, credential: AuthCredential): Promise<UserCredential>;
@@ -630,7 +622,7 @@ export class TwitterAuthProvider extends BaseOAuthProvider {
630622
}
631623

632624
// @public
633-
export function unlink(user: User, providerId: ProviderId): Promise<User>;
625+
export function unlink(user: User, providerId: string): Promise<User>;
634626

635627
export { Unsubscribe }
636628

@@ -677,7 +669,7 @@ export interface User extends UserInfo {
677669

678670
// @public
679671
export interface UserCredential {
680-
operationType: OperationType;
672+
operationType: typeof OperationType[keyof typeof OperationType];
681673
providerId: string | null;
682674
user: User;
683675
}

docs-exp/analytics.analytics.app.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs-exp/analytics.analytics.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

docs-exp/analytics.analyticscalloptions.global.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)