Skip to content

Commit 635c9e3

Browse files
author
Brian Chen
committed
Merge branch 'master' into bc/types
2 parents 5a175a4 + cca8cdf commit 635c9e3

File tree

98 files changed

+1315
-502
lines changed

Some content is hidden

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

98 files changed

+1315
-502
lines changed

.changeset/big-lobsters-tell.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/storage': patch
3+
---
4+
5+
Change `ref()` to not throw if given a path with '..' in it.

.changeset/bright-clouds-pretend.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/messaging': minor
3+
'firebase': minor
4+
---
5+
6+
Allows retrieval of `messageId` from `MessagePayload`.

.changeset/witty-chicken-mate.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/firestore": patch
3+
---
4+
5+
Fixed a regression that prevented the garbage collector from running if multi-tab was disabled.

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ jobs:
3434
NPM_TOKEN_ANALYTICS_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_TYPES}}
3535
NPM_TOKEN_APP: ${{secrets.NPM_TOKEN_APP}}
3636
NPM_TOKEN_APP_TYPES: ${{secrets.NPM_TOKEN_APP_TYPES}}
37+
NPM_TOKEN_APP_CHECK: ${{secrets.NPM_TOKEN_APP_CHECK}}
38+
NPM_TOKEN_APP_CHECK_INTEROP_TYPES: ${{secrets.NPM_TOKEN_APP_CHECK_INTEROP_TYPES}}
39+
NPM_TOKEN_APP_CHECK_TYPES: ${{secrets.NPM_TOKEN_APP_CHECK_TYPES}}
3740
NPM_TOKEN_AUTH: ${{secrets.NPM_TOKEN_AUTH}}
3841
NPM_TOKEN_AUTH_INTEROP_TYPES: ${{secrets.NPM_TOKEN_AUTH_INTEROP_TYPES}}
3942
NPM_TOKEN_AUTH_TYPES: ${{secrets.NPM_TOKEN_AUTH_TYPES}}

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
},
1212
"typescript.tsdk": "node_modules/typescript/lib",
1313
"files.associations": { "*.json": "jsonc" }
14-
}
14+
}

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

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ export class AuthCredential {
101101
protected constructor(
102102
providerId: string,
103103
signInMethod: string);
104-
// Warning: (ae-forgotten-export) The symbol "AuthInternal" needs to be exported by the entry point index.d.ts
105-
// Warning: (ae-forgotten-export) The symbol "PhoneOrOauthTokenResponse" needs to be exported by the entry point index.d.ts
104+
// Warning: (ae-forgotten-export) The symbol "AuthInternal" needs to be exported by the entry point index.doc.d.ts
105+
// Warning: (ae-forgotten-export) The symbol "PhoneOrOauthTokenResponse" needs to be exported by the entry point index.doc.d.ts
106106
//
107107
// @internal (undocumented)
108108
_getIdTokenResponse(_auth: AuthInternal): Promise<PhoneOrOauthTokenResponse>;
109109
// @internal (undocumented)
110110
_getReauthenticationResolver(_auth: AuthInternal): Promise<IdTokenResponse>;
111-
// Warning: (ae-forgotten-export) The symbol "IdTokenResponse" needs to be exported by the entry point index.d.ts
111+
// Warning: (ae-forgotten-export) The symbol "IdTokenResponse" needs to be exported by the entry point index.doc.d.ts
112112
//
113113
// @internal (undocumented)
114114
_linkToIdToken(_auth: AuthInternal, _idToken: string): Promise<IdTokenResponse>;
@@ -276,6 +276,9 @@ export function connectAuthEmulator(auth: Auth, url: string, options?: {
276276
disableWarnings: boolean;
277277
}): void;
278278

279+
// @public
280+
export const cordovaPopupRedirectResolver: PopupRedirectResolver;
281+
279282
// @public
280283
export function createUserWithEmailAndPassword(auth: Auth, email: string, password: string): Promise<UserCredential>;
281284

@@ -339,7 +342,7 @@ export interface EmulatorConfig {
339342

340343
export { ErrorFn }
341344

342-
// Warning: (ae-forgotten-export) The symbol "BaseOAuthProvider" needs to be exported by the entry point index.d.ts
345+
// Warning: (ae-forgotten-export) The symbol "BaseOAuthProvider" needs to be exported by the entry point index.doc.d.ts
343346
//
344347
// @public
345348
export class FacebookAuthProvider extends BaseOAuthProvider {
@@ -481,7 +484,7 @@ export type NextOrObserver<T> = NextFn<T | null> | Observer<T | null>;
481484
export class OAuthCredential extends AuthCredential {
482485
accessToken?: string;
483486
static fromJSON(json: string | object): OAuthCredential | null;
484-
// Warning: (ae-forgotten-export) The symbol "OAuthCredentialParams" needs to be exported by the entry point index.d.ts
487+
// Warning: (ae-forgotten-export) The symbol "OAuthCredentialParams" needs to be exported by the entry point index.doc.d.ts
485488
//
486489
// @internal (undocumented)
487490
static _fromParams(params: OAuthCredentialParams): OAuthCredential;
@@ -560,7 +563,7 @@ export class PhoneAuthCredential extends AuthCredential {
560563
_getReauthenticationResolver(auth: AuthInternal): Promise<IdTokenResponse>;
561564
// @internal (undocumented)
562565
_linkToIdToken(auth: AuthInternal, idToken: string): Promise<IdTokenResponse>;
563-
// Warning: (ae-forgotten-export) The symbol "SignInWithPhoneNumberRequest" needs to be exported by the entry point index.d.ts
566+
// Warning: (ae-forgotten-export) The symbol "SignInWithPhoneNumberRequest" needs to be exported by the entry point index.doc.d.ts
564567
//
565568
// @internal (undocumented)
566569
_makeVerificationRequest(): SignInWithPhoneNumberRequest;
@@ -633,6 +636,9 @@ export interface ReactNativeAsyncStorage {
633636
setItem(key: string, value: string): Promise<void>;
634637
}
635638

639+
// @public
640+
export const reactNativeLocalPersistence: Persistence;
641+
636642
// @public
637643
export function reauthenticateWithCredential(user: User, credential: AuthCredential): Promise<UserCredential>;
638644

@@ -651,13 +657,13 @@ export interface RecaptchaParameters {
651657
[key: string]: any;
652658
}
653659

654-
// Warning: (ae-forgotten-export) The symbol "ApplicationVerifierInternal" needs to be exported by the entry point index.d.ts
660+
// Warning: (ae-forgotten-export) The symbol "ApplicationVerifierInternal" needs to be exported by the entry point index.doc.d.ts
655661
//
656662
// @public
657663
export class RecaptchaVerifier implements ApplicationVerifierInternal {
658664
constructor(containerOrId: HTMLElement | string, parameters: RecaptchaParameters, authExtern: Auth);
659665
clear(): void;
660-
// Warning: (ae-forgotten-export) The symbol "ReCaptchaLoader" needs to be exported by the entry point index.d.ts
666+
// Warning: (ae-forgotten-export) The symbol "ReCaptchaLoader" needs to be exported by the entry point index.doc.d.ts
661667
//
662668
// @internal (undocumented)
663669
readonly _recaptchaLoader: ReCaptchaLoader;
@@ -671,7 +677,7 @@ export class RecaptchaVerifier implements ApplicationVerifierInternal {
671677
// @public
672678
export function reload(user: User): Promise<void>;
673679

674-
// Warning: (ae-forgotten-export) The symbol "FederatedAuthProvider" needs to be exported by the entry point index.d.ts
680+
// Warning: (ae-forgotten-export) The symbol "FederatedAuthProvider" needs to be exported by the entry point index.doc.d.ts
675681
//
676682
// @public
677683
export class SAMLAuthProvider extends FederatedAuthProvider {
@@ -815,4 +821,6 @@ export function verifyBeforeUpdateEmail(user: User, newEmail: string, actionCode
815821
export function verifyPasswordResetCode(auth: Auth, code: string): Promise<string>;
816822

817823

824+
// (No @packageDocumentation comment for this package)
825+
818826
```
Lines changed: 69 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,69 @@
1-
## API Report File for "@firebase/messaging-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-
import { NextFn } from '@firebase/util';
9-
import { Observer } from '@firebase/util';
10-
import { Unsubscribe } from '@firebase/util';
11-
12-
// @public
13-
export function deleteToken(messaging: Messaging): Promise<boolean>;
14-
15-
// @public
16-
export interface FcmOptions {
17-
analyticsLabel?: string;
18-
link?: string;
19-
}
20-
21-
// @public
22-
export function getMessaging(app?: FirebaseApp): Messaging;
23-
24-
// @public
25-
export function getToken(messaging: Messaging, options?: GetTokenOptions): Promise<string>;
26-
27-
// @public
28-
export interface GetTokenOptions {
29-
serviceWorkerRegistration?: ServiceWorkerRegistration;
30-
vapidKey?: string;
31-
}
32-
33-
// @public
34-
export function isSupported(): Promise<boolean>;
35-
36-
// @public
37-
export interface MessagePayload {
38-
collapseKey: string;
39-
data?: {
40-
[key: string]: string;
41-
};
42-
fcmOptions?: FcmOptions;
43-
from: string;
44-
notification?: NotificationPayload;
45-
}
46-
47-
// @public
48-
export interface Messaging {
49-
}
50-
51-
export { NextFn }
52-
53-
// @public
54-
export interface NotificationPayload {
55-
body?: string;
56-
image?: string;
57-
title?: string;
58-
}
59-
60-
export { Observer }
61-
62-
// @public
63-
export function onMessage(messaging: Messaging, nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
64-
65-
export { Unsubscribe }
66-
67-
68-
```
1+
## API Report File for "@firebase/messaging-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+
import { NextFn } from '@firebase/util';
9+
import { Observer } from '@firebase/util';
10+
import { Unsubscribe } from '@firebase/util';
11+
12+
// @public
13+
export function deleteToken(messaging: Messaging): Promise<boolean>;
14+
15+
// @public
16+
export interface FcmOptions {
17+
analyticsLabel?: string;
18+
link?: string;
19+
}
20+
21+
// @public
22+
export function getMessaging(app?: FirebaseApp): Messaging;
23+
24+
// @public
25+
export function getToken(messaging: Messaging, options?: GetTokenOptions): Promise<string>;
26+
27+
// @public
28+
export interface GetTokenOptions {
29+
serviceWorkerRegistration?: ServiceWorkerRegistration;
30+
vapidKey?: string;
31+
}
32+
33+
// @public
34+
export function isSupported(): Promise<boolean>;
35+
36+
// @public
37+
export interface MessagePayload {
38+
collapseKey: string;
39+
data?: {
40+
[key: string]: string;
41+
};
42+
fcmOptions?: FcmOptions;
43+
from: string;
44+
messageId: string;
45+
notification?: NotificationPayload;
46+
}
47+
48+
// @public
49+
export interface Messaging {
50+
}
51+
52+
export { NextFn }
53+
54+
// @public
55+
export interface NotificationPayload {
56+
body?: string;
57+
image?: string;
58+
title?: string;
59+
}
60+
61+
export { Observer }
62+
63+
// @public
64+
export function onMessage(messaging: Messaging, nextOrObserver: NextFn<MessagePayload> | Observer<MessagePayload>): Unsubscribe;
65+
66+
export { Unsubscribe }
67+
68+
69+
```

0 commit comments

Comments
 (0)