Skip to content

Commit c079ef7

Browse files
committed
Merge from master
1 parent ee78fa6 commit c079ef7

File tree

175 files changed

+5770
-461
lines changed

Some content is hidden

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

175 files changed

+5770
-461
lines changed

.changeset/config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,15 @@
1515
"@firebase/auth-exp",
1616
"@firebase/auth-compat",
1717
"@firebase/auth-types-exp",
18+
"@firebase/functions-compat",
1819
"@firebase/functions-exp",
1920
"@firebase/functions-types-exp",
2021
"@firebase/installations-exp",
2122
"@firebase/installations-types-exp",
2223
"@firebase/performance-exp",
2324
"@firebase/performance-types-exp",
25+
"@firebase/remote-config-exp",
26+
"@firebase/remote-config-types-exp",
2427
"firebase-exp",
2528
"@firebase/app-compat",
2629
"@firebase/changelog-generator",

.changeset/fluffy-panthers-hide.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@firebase/messaging': patch
3+
---
4+
5+
Adds a timeout for `onBackgroundMessage` hook so that silent-push warnings won't show if `showNotification` is called inside the hook within 1s.
6+
This fixes the issue where the silent-push warning is displayed along with the message shown with [ServiceWorkerRegistration.showNotification](https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification).

.changeset/lazy-elephants-suffer.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/rules-unit-testing': minor
3+
---
4+
5+
Add withFunctionTriggersDisabled function which runs a user-provided setup function with emulated Cloud Functions triggers disabled. This can be used to import data into the Realtime Database or Cloud Firestore emulators without triggering locally emulated Cloud Functions. This method only works with Firebase CLI version 8.13.0 or higher.

.changeset/my-random-name.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
---
3+
"@firebase/firestore": patch
4+
---
5+
6+
Internal changes to support upcoming modular API.

.github/CODEOWNERS

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,8 @@ packages/installations-types-exp @andirayo @ChaoqunCHEN @firebase/jssdk-global-a
9999

100100
# Perf-Exp Code
101101
packages/performance-exp @alikn @zijianjoy @firebase/jssdk-global-approvers
102-
packages/performance-types-exp @alikn @zijianjoy @firebase/jssdk-global-approvers
102+
packages/performance-types-exp @alikn @zijianjoy @firebase/jssdk-global-approvers
103+
104+
# RC-Exp Code
105+
packages/remote-config-exp @erikeldridge @firebase/jssdk-global-approvers
106+
packages/remote-config-types-exp @erikeldridge @firebase/jssdk-global-approvers

.github/workflows/check-changeset.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
id: check-changeset
2525
- name: Print changeset checker output
2626
run: echo "${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}"
27+
- name: Print blocking failure status
28+
run: echo "${{steps.check-changeset.outputs.BLOCKING_FAILURE}}"
2729
- name: Find Comment
2830
uses: peter-evans/find-comment@v1
2931
id: fc
@@ -59,5 +61,5 @@ jobs:
5961
- No changeset formatting errors detected.
6062
# Don't want it to throw before editing the comment.
6163
- name: Fail if checker script logged a blocking failure
62-
if: ${{steps.check-changeset.outputs.BLOCKING_FAILURE}}
64+
if: ${{steps.check-changeset.outputs.BLOCKING_FAILURE == 'true'}}
6365
run: exit 1

.github/workflows/test-all.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
run: |
1818
sudo apt-get update
1919
sudo apt-get install google-chrome-stable
20+
- name: Bump Node memory limit
21+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
2022
- name: Test setup and yarn install
2123
run: |
2224
cp config/ci.config.json config/project.json

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
run: |
2222
sudo apt-get update
2323
sudo apt-get install google-chrome-stable
24+
- name: Bump Node memory limit
25+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
2426
- name: Test setup and yarn install
2527
run: |
2628
cp config/ci.config.json config/project.json

.github/workflows/test-changed-fcm-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
run: |
2222
sudo apt-get update
2323
sudo apt-get install google-chrome-stable
24+
- name: Bump Node memory limit
25+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
2426
- name: Test setup and yarn install
2527
run: |
2628
cp config/ci.config.json config/project.json

.github/workflows/test-changed-firestore-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
run: |
2222
sudo apt-get update
2323
sudo apt-get install google-chrome-stable
24+
- name: Bump Node memory limit
25+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
2426
- name: Test setup and yarn install
2527
run: |
2628
cp config/ci.config.json config/project.json

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
run: |
2222
sudo apt-get update
2323
sudo apt-get install google-chrome-stable
24+
- name: Bump Node memory limit
25+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
2426
- name: Test setup and yarn install
2527
run: |
2628
cp config/ci.config.json config/project.json

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
run: |
2222
sudo apt-get update
2323
sudo apt-get install google-chrome-stable
24+
- name: Bump Node memory limit
25+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
2426
- name: Test setup and yarn install
2527
run: |
2628
cp config/ci.config.json config/project.json

.github/workflows/test-changed.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ jobs:
2323
run: |
2424
sudo apt-get update
2525
sudo apt-get install google-chrome-stable
26+
- name: Bump Node memory limit
27+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
2628
- name: Test setup and yarn install
2729
run: |
2830
cp config/ci.config.json config/project.json

.github/workflows/test-firebase-integration.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
run: |
2222
sudo apt-get update
2323
sudo apt-get install google-chrome-stable
24+
- name: Bump Node memory limit
25+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
2426
- name: Test setup and yarn install
2527
run: |
2628
cp config/ci.config.json config/project.json

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Changelog
2+
3+
You can view the changelog for the packages within this monorepo in `packages/<package name>/CHANGELOG.md`. For example, you will find the changelog for the Firestore package at [`packages/firestore/CHANGELOG.md`](./packages/firestore/CHANGELOG.md).
4+
5+
Additionally, you can view our official release notes for the entire monorepo at the [firebase support page](https://firebase.google.com/support/release-notes/js).

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

Lines changed: 0 additions & 190 deletions
Original file line numberDiff line numberDiff line change
@@ -61,196 +61,6 @@ export class AuthCredential {
6161
toJSON(): object;
6262
}
6363

64-
// @public
65-
export const enum AuthErrorCode {
66-
// (undocumented)
67-
ADMIN_ONLY_OPERATION = "admin-restricted-operation",
68-
// (undocumented)
69-
APP_NOT_AUTHORIZED = "app-not-authorized",
70-
// (undocumented)
71-
APP_NOT_INSTALLED = "app-not-installed",
72-
// (undocumented)
73-
ARGUMENT_ERROR = "argument-error",
74-
// (undocumented)
75-
CAPTCHA_CHECK_FAILED = "captcha-check-failed",
76-
// (undocumented)
77-
CODE_EXPIRED = "code-expired",
78-
// (undocumented)
79-
CORDOVA_NOT_READY = "cordova-not-ready",
80-
// (undocumented)
81-
CORS_UNSUPPORTED = "cors-unsupported",
82-
// (undocumented)
83-
CREDENTIAL_ALREADY_IN_USE = "credential-already-in-use",
84-
// (undocumented)
85-
CREDENTIAL_MISMATCH = "custom-token-mismatch",
86-
// (undocumented)
87-
CREDENTIAL_TOO_OLD_LOGIN_AGAIN = "requires-recent-login",
88-
// (undocumented)
89-
DYNAMIC_LINK_NOT_ACTIVATED = "dynamic-link-not-activated",
90-
// (undocumented)
91-
EMAIL_CHANGE_NEEDS_VERIFICATION = "email-change-needs-verification",
92-
// (undocumented)
93-
EMAIL_EXISTS = "email-already-in-use",
94-
// (undocumented)
95-
EMULATOR_CONFIG_FAILED = "emulator-config-failed",
96-
// (undocumented)
97-
EXPIRED_OOB_CODE = "expired-action-code",
98-
// (undocumented)
99-
EXPIRED_POPUP_REQUEST = "cancelled-popup-request",
100-
// (undocumented)
101-
INTERNAL_ERROR = "internal-error",
102-
// (undocumented)
103-
INVALID_API_KEY = "invalid-api-key",
104-
// (undocumented)
105-
INVALID_APP_CREDENTIAL = "invalid-app-credential",
106-
// (undocumented)
107-
INVALID_APP_ID = "invalid-app-id",
108-
// (undocumented)
109-
INVALID_AUTH = "invalid-user-token",
110-
// (undocumented)
111-
INVALID_AUTH_EVENT = "invalid-auth-event",
112-
// (undocumented)
113-
INVALID_CERT_HASH = "invalid-cert-hash",
114-
// (undocumented)
115-
INVALID_CODE = "invalid-verification-code",
116-
// (undocumented)
117-
INVALID_CONTINUE_URI = "invalid-continue-uri",
118-
// (undocumented)
119-
INVALID_CORDOVA_CONFIGURATION = "invalid-cordova-configuration",
120-
// (undocumented)
121-
INVALID_CUSTOM_TOKEN = "invalid-custom-token",
122-
// (undocumented)
123-
INVALID_DYNAMIC_LINK_DOMAIN = "invalid-dynamic-link-domain",
124-
// (undocumented)
125-
INVALID_EMAIL = "invalid-email",
126-
// (undocumented)
127-
INVALID_EMULATOR_SCHEME = "invalid-emulator-scheme",
128-
// (undocumented)
129-
INVALID_IDP_RESPONSE = "invalid-credential",
130-
// (undocumented)
131-
INVALID_MESSAGE_PAYLOAD = "invalid-message-payload",
132-
// (undocumented)
133-
INVALID_MFA_SESSION = "invalid-multi-factor-session",
134-
// (undocumented)
135-
INVALID_OAUTH_CLIENT_ID = "invalid-oauth-client-id",
136-
// (undocumented)
137-
INVALID_OAUTH_PROVIDER = "invalid-oauth-provider",
138-
// (undocumented)
139-
INVALID_OOB_CODE = "invalid-action-code",
140-
// (undocumented)
141-
INVALID_ORIGIN = "unauthorized-domain",
142-
// (undocumented)
143-
INVALID_PASSWORD = "wrong-password",
144-
// (undocumented)
145-
INVALID_PERSISTENCE = "invalid-persistence-type",
146-
// (undocumented)
147-
INVALID_PHONE_NUMBER = "invalid-phone-number",
148-
// (undocumented)
149-
INVALID_PROVIDER_ID = "invalid-provider-id",
150-
// (undocumented)
151-
INVALID_RECIPIENT_EMAIL = "invalid-recipient-email",
152-
// (undocumented)
153-
INVALID_SENDER = "invalid-sender",
154-
// (undocumented)
155-
INVALID_SESSION_INFO = "invalid-verification-id",
156-
// (undocumented)
157-
INVALID_TENANT_ID = "invalid-tenant-id",
158-
// (undocumented)
159-
MFA_INFO_NOT_FOUND = "multi-factor-info-not-found",
160-
// (undocumented)
161-
MFA_REQUIRED = "multi-factor-auth-required",
162-
// (undocumented)
163-
MISSING_ANDROID_PACKAGE_NAME = "missing-android-pkg-name",
164-
// (undocumented)
165-
MISSING_APP_CREDENTIAL = "missing-app-credential",
166-
// (undocumented)
167-
MISSING_AUTH_DOMAIN = "auth-domain-config-required",
168-
// (undocumented)
169-
MISSING_CODE = "missing-verification-code",
170-
// (undocumented)
171-
MISSING_CONTINUE_URI = "missing-continue-uri",
172-
// (undocumented)
173-
MISSING_IFRAME_START = "missing-iframe-start",
174-
// (undocumented)
175-
MISSING_IOS_BUNDLE_ID = "missing-ios-bundle-id",
176-
// (undocumented)
177-
MISSING_MFA_INFO = "missing-multi-factor-info",
178-
// (undocumented)
179-
MISSING_MFA_SESSION = "missing-multi-factor-session",
180-
// (undocumented)
181-
MISSING_OR_INVALID_NONCE = "missing-or-invalid-nonce",
182-
// (undocumented)
183-
MISSING_PHONE_NUMBER = "missing-phone-number",
184-
// (undocumented)
185-
MISSING_SESSION_INFO = "missing-verification-id",
186-
// (undocumented)
187-
MODULE_DESTROYED = "app-deleted",
188-
// (undocumented)
189-
NEED_CONFIRMATION = "account-exists-with-different-credential",
190-
// (undocumented)
191-
NETWORK_REQUEST_FAILED = "network-request-failed",
192-
// (undocumented)
193-
NO_AUTH_EVENT = "no-auth-event",
194-
// (undocumented)
195-
NO_SUCH_PROVIDER = "no-such-provider",
196-
// (undocumented)
197-
NULL_USER = "null-user",
198-
// (undocumented)
199-
OPERATION_NOT_ALLOWED = "operation-not-allowed",
200-
// (undocumented)
201-
OPERATION_NOT_SUPPORTED = "operation-not-supported-in-this-environment",
202-
// (undocumented)
203-
POPUP_BLOCKED = "popup-blocked",
204-
// (undocumented)
205-
POPUP_CLOSED_BY_USER = "popup-closed-by-user",
206-
// (undocumented)
207-
PROVIDER_ALREADY_LINKED = "provider-already-linked",
208-
// (undocumented)
209-
QUOTA_EXCEEDED = "quota-exceeded",
210-
// (undocumented)
211-
REDIRECT_CANCELLED_BY_USER = "redirect-cancelled-by-user",
212-
// (undocumented)
213-
REDIRECT_OPERATION_PENDING = "redirect-operation-pending",
214-
// (undocumented)
215-
REJECTED_CREDENTIAL = "rejected-credential",
216-
// (undocumented)
217-
SECOND_FACTOR_ALREADY_ENROLLED = "second-factor-already-in-use",
218-
// (undocumented)
219-
SECOND_FACTOR_LIMIT_EXCEEDED = "maximum-second-factor-count-exceeded",
220-
// (undocumented)
221-
TENANT_ID_MISMATCH = "tenant-id-mismatch",
222-
// (undocumented)
223-
TIMEOUT = "timeout",
224-
// (undocumented)
225-
TOKEN_EXPIRED = "user-token-expired",
226-
// (undocumented)
227-
TOO_MANY_ATTEMPTS_TRY_LATER = "too-many-requests",
228-
// (undocumented)
229-
UNAUTHORIZED_DOMAIN = "unauthorized-continue-uri",
230-
// (undocumented)
231-
UNSUPPORTED_FIRST_FACTOR = "unsupported-first-factor",
232-
// (undocumented)
233-
UNSUPPORTED_PERSISTENCE = "unsupported-persistence-type",
234-
// (undocumented)
235-
UNSUPPORTED_TENANT_OPERATION = "unsupported-tenant-operation",
236-
// (undocumented)
237-
UNVERIFIED_EMAIL = "unverified-email",
238-
// (undocumented)
239-
USER_CANCELLED = "user-cancelled",
240-
// (undocumented)
241-
USER_DELETED = "user-not-found",
242-
// (undocumented)
243-
USER_DISABLED = "user-disabled",
244-
// (undocumented)
245-
USER_MISMATCH = "user-mismatch",
246-
// (undocumented)
247-
USER_SIGNED_OUT = "user-signed-out",
248-
// (undocumented)
249-
WEAK_PASSWORD = "weak-password",
250-
// (undocumented)
251-
WEB_STORAGE_UNSUPPORTED = "web-storage-unsupported"
252-
}
253-
25464
// @public
25565
export const browserLocalPersistence: externs.Persistence;
25666

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
## API Report File for "@firebase/remote-config-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-types-exp';
8+
import { LogLevel } from '@firebase/remote-config-types-exp';
9+
import { RemoteConfig } from '@firebase/remote-config-types-exp';
10+
import { Value } from '@firebase/remote-config-types-exp';
11+
12+
// @public (undocumented)
13+
export function activate(remoteConfig: RemoteConfig): Promise<boolean>;
14+
15+
// @public (undocumented)
16+
export function ensureInitialized(remoteConfig: RemoteConfig): Promise<void>;
17+
18+
// @public (undocumented)
19+
export function fetchAndActivate(remoteConfig: RemoteConfig): Promise<boolean>;
20+
21+
// @public (undocumented)
22+
export function fetchConfig(remoteConfig: RemoteConfig): Promise<void>;
23+
24+
// @public (undocumented)
25+
export function getAll(remoteConfig: RemoteConfig): Record<string, Value>;
26+
27+
// @public (undocumented)
28+
export function getBoolean(remoteConfig: RemoteConfig, key: string): boolean;
29+
30+
// @public (undocumented)
31+
export function getNumber(remoteConfig: RemoteConfig, key: string): number;
32+
33+
// @public (undocumented)
34+
export function getRemoteConfig(app: FirebaseApp): RemoteConfig;
35+
36+
// @public (undocumented)
37+
export function getString(remoteConfig: RemoteConfig, key: string): string;
38+
39+
// @public (undocumented)
40+
export function getValue(remoteConfig: RemoteConfig, key: string): Value;
41+
42+
// @public (undocumented)
43+
export function setLogLevel(remoteConfig: RemoteConfig, logLevel: LogLevel): void;
44+
45+
46+
// (No @packageDocumentation comment for this package)
47+
48+
```

0 commit comments

Comments
 (0)