Skip to content

Commit 5b0526b

Browse files
wu-huihsubox76schmidt-sebastiansamtsternFeiyang1
authored
Bundles as free functions (#4006)
* Rolls a node app building bundles. * Build bundle files for given list of project IDs. * Build the bundle json map and save it for integration tests. * Add emulator_settings.ts to gulp * Move bundle.test.ts to api/ * Bundles passes all tests and expose in classic API * Add CI project ID to bundles. * Adhoc string replacement and length re-calculation * Fix lint errors. * Delete old changes from make node app * Address comments * Update yarn.lock for release (#3998) Temp fix where database version is bumped before firebase-admin can update deps * Manually prepares the bundle strings. * Update API * Update config.ts * Use Chrome for karma debugging (#4007) * Cache emulator between runs (#3956) * Remote Config Modularization (#3975) * rc exp init * Add apis * register rc exp * implement funcitonal APIs * fix tests * build rc exp * add api-extractor to rc types * cast directly witout function * delete changelog for rc exp * add code owners to rc exp * update dep version * Remove AuthErrorCode from core export (#4013) * Remove AuthErrorCode from core export * Api * Update config.ts to remove bundles * adds a root changelog (#4009) * adds a root changelog * Update CHANGELOG.md Co-authored-by: Feiyang <[email protected]> * Update dependency typescript to v4.0.5 (#3846) Co-authored-by: Renovate Bot <[email protected]> * Update dependency karma-firefox-launcher to v2 (#3987) Co-authored-by: Renovate Bot <[email protected]> * Update dependency google-closure-library to v20200830 (#3765) * Update dependency google-closure-library to v20200830 * Replace goog.isArray with Array.isArray https://github.com/google/closure-library/releases/tag/v20200628 Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Alex Volkovitsky <[email protected]> * exclude remote config exp packages in changeset (#4014) * Set 1s timeout for onBackgroundMessage Hook (#3780) * await onBackgroundMessage hook * Create fluffy-panthers-hide.md * block in onPush to let onBackgroundMessage to execute * polish wording * Update changeset to be more specific * Update fluffy-panthers-hide.md * Clarify PR is about a bug fix * Update fluffy-panthers-hide.md * A whole bunch of things to bring auth (compat) to parity (#3970) * Handle anonymous auth re-login edge case * Formatting * Initial fixes * Fix redirect * clean up additional user info * Formatting * PR feedback * Fix some tests * Fix tests & write some new ones * Fix broken build * Formatting * Formatting * PR feedback * Formatting * PR feedback Co-authored-by: avolkovi <[email protected]> * Add withFunctionsTriggersDisabled method to rules-unit-testing (#3928) * Update integration tests to use free functions * Functions compat package (#3739) * Add free functions to exports * Fix to avoid false failures on changeset checker (#4012) * Add changeset for Firestore (#4030) * Update functions-compat dep version and fix changeset script error (#4032) * Update integration tests. Minified tests fail. * Bump node memory limit for all test CI (#4035) * Compat Layer for Firestore (#4003) * Rename all public API types to PublicX (#4039) * Update all non-major dependencies (#3953) Co-authored-by: Renovate Bot <[email protected]> * Version Packages (#4033) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * Set up Storage modularization (#3499) Refactor storage for modularization. * Free functions removed from exp database.ts Co-authored-by: Christina Holland <[email protected]> Co-authored-by: Sebastian Schmidt <[email protected]> Co-authored-by: Sam Stern <[email protected]> Co-authored-by: Feiyang <[email protected]> Co-authored-by: Sam Horlbeck Olsen <[email protected]> Co-authored-by: Dimitri Mitropoulos <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovate Bot <[email protected]> Co-authored-by: Alex Volkovitsky <[email protected]> Co-authored-by: Kai Wu <[email protected]> Co-authored-by: Google Open Source Bot <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent b80c880 commit 5b0526b

File tree

273 files changed

+9757
-3001
lines changed

Some content is hidden

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

273 files changed

+9757
-3001
lines changed

.changeset/config.json

+3
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/fuzzy-impalas-brake.md

-5
This file was deleted.

.changeset/silly-boats-roll.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@firebase/storage': patch
3+
---
4+
5+
Refactored Storage to allow for modularization.

.github/CODEOWNERS

+5-1
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

+3-1
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

+2
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

+2
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

+2
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

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ 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
2729
yarn
2830
- name: build
29-
run: yarn build:changed firestore-integration --buildAppExp
31+
run: yarn build:changed firestore-integration --buildAppExp --buildAppCompat
3032
- name: Run tests if firestore or its dependencies has changed
3133
run: yarn test:changed firestore-integration

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ 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
2729
yarn
2830
- name: build
29-
run: yarn build:changed firestore --buildAppExp
31+
run: yarn build:changed firestore --buildAppExp --buildAppCompat
3032
- name: Run tests if firestore or its dependencies has changed
3133
run: yarn test:changed firestore

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

+2
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

+2
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-firebase-integration.yml

+2
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

+5
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

-190
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

+48
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)