Skip to content

Bundles as free functions #4006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 49 commits into from
Nov 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
d3a3697
Rolls a node app building bundles.
wu-hui Oct 16, 2020
2b2dce8
Build bundle files for given list of project IDs.
wu-hui Oct 16, 2020
6d8020a
Build the bundle json map and save it for integration tests.
wu-hui Oct 16, 2020
2a5c796
Add emulator_settings.ts to gulp
wu-hui Oct 16, 2020
a31b115
Move bundle.test.ts to api/
wu-hui Oct 16, 2020
0ebd413
Bundles passes all tests and expose in classic API
wu-hui Oct 18, 2020
ee1ea5d
Add CI project ID to bundles.
wu-hui Oct 19, 2020
64e82db
Merge branch 'wuandy/Bundles' into wuandy/BundleIntegrationTests
wu-hui Oct 20, 2020
8cc3d8e
Merge branch 'wuandy/BundleIntegrationTests' into wuandy/MoveBundleTe…
wu-hui Oct 20, 2020
4fa0c08
Adhoc string replacement and length re-calculation
wu-hui Oct 22, 2020
f1086b0
Fix lint errors.
wu-hui Oct 22, 2020
9d0d0a5
Delete old changes from make node app
wu-hui Oct 23, 2020
7fda4c4
Address comments
wu-hui Oct 25, 2020
e3bf958
Update yarn.lock for release (#3998)
hsubox76 Oct 26, 2020
086d478
Manually prepares the bundle strings.
wu-hui Oct 27, 2020
f6dcd42
Update API
wu-hui Oct 27, 2020
8fe001b
Update config.ts
wu-hui Oct 28, 2020
6f06d84
Use Chrome for karma debugging (#4007)
schmidt-sebastian Oct 28, 2020
5999824
Merge branch 'wuandy/Bundles' into wuandy/BundleFreeFunctions
wu-hui Oct 29, 2020
973cdfa
Cache emulator between runs (#3956)
samtstern Oct 29, 2020
0c602aa
Remote Config Modularization (#3975)
Feiyang1 Oct 29, 2020
7e3846b
Remove AuthErrorCode from core export (#4013)
sam-gc Oct 29, 2020
7cd9eb3
Update config.ts to remove bundles
wu-hui Oct 29, 2020
de5237f
adds a root changelog (#4009)
dimitropoulos Oct 29, 2020
1cdd3ab
Update dependency typescript to v4.0.5 (#3846)
renovate[bot] Oct 29, 2020
a7991f4
Update dependency karma-firefox-launcher to v2 (#3987)
renovate[bot] Oct 29, 2020
3f6f5e4
Update dependency google-closure-library to v20200830 (#3765)
renovate[bot] Oct 29, 2020
f68ce24
exclude remote config exp packages in changeset (#4014)
Feiyang1 Oct 29, 2020
54a46f8
Set 1s timeout for onBackgroundMessage Hook (#3780)
zwu52 Oct 29, 2020
2ac31a1
A whole bunch of things to bring auth (compat) to parity (#3970)
sam-gc Oct 29, 2020
6ef39d4
Add withFunctionsTriggersDisabled method to rules-unit-testing (#3928)
samtstern Oct 30, 2020
bddca6b
Update integration tests to use free functions
wu-hui Nov 2, 2020
a74a1d1
Functions compat package (#3739)
hsubox76 Nov 3, 2020
830d948
Add free functions to exports
wu-hui Nov 3, 2020
d7c6d62
Fix to avoid false failures on changeset checker (#4012)
hsubox76 Nov 3, 2020
007ddd1
Add changeset for Firestore (#4030)
schmidt-sebastian Nov 3, 2020
ced4e02
Merge branch 'master' into release
hsubox76 Nov 3, 2020
8697166
Update functions-compat dep version and fix changeset script error (#…
hsubox76 Nov 3, 2020
81a777f
Merge branch 'master' into release
hsubox76 Nov 3, 2020
ac4bf09
Update integration tests. Minified tests fail.
wu-hui Nov 4, 2020
39847b8
Bump node memory limit for all test CI (#4035)
hsubox76 Nov 4, 2020
9d424f5
Compat Layer for Firestore (#4003)
schmidt-sebastian Nov 4, 2020
14d023d
Rename all public API types to PublicX (#4039)
schmidt-sebastian Nov 5, 2020
c47ba31
Update all non-major dependencies (#3953)
renovate[bot] Nov 5, 2020
fc358f6
Version Packages (#4033)
google-oss-bot Nov 5, 2020
996004f
Merge branch 'release'
hsubox76 Nov 5, 2020
f9dc50e
Set up Storage modularization (#3499)
hsubox76 Nov 6, 2020
8cb3c23
Merge branch 'master' into wuandy/BundleFreeFunctions
wu-hui Nov 6, 2020
462efdc
Free functions removed from exp database.ts
wu-hui Nov 6, 2020
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
3 changes: 3 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,15 @@
"@firebase/auth-exp",
"@firebase/auth-compat",
"@firebase/auth-types-exp",
"@firebase/functions-compat",
"@firebase/functions-exp",
"@firebase/functions-types-exp",
"@firebase/installations-exp",
"@firebase/installations-types-exp",
"@firebase/performance-exp",
"@firebase/performance-types-exp",
"@firebase/remote-config-exp",
"@firebase/remote-config-types-exp",
"firebase-exp",
"@firebase/app-compat",
"@firebase/changelog-generator",
Expand Down
5 changes: 0 additions & 5 deletions .changeset/fuzzy-impalas-brake.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/silly-boats-roll.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@firebase/storage': patch
---

Refactored Storage to allow for modularization.
6 changes: 5 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,8 @@ packages/installations-types-exp @andirayo @ChaoqunCHEN @firebase/jssdk-global-a

# Perf-Exp Code
packages/performance-exp @alikn @zijianjoy @firebase/jssdk-global-approvers
packages/performance-types-exp @alikn @zijianjoy @firebase/jssdk-global-approvers
packages/performance-types-exp @alikn @zijianjoy @firebase/jssdk-global-approvers

# RC-Exp Code
packages/remote-config-exp @erikeldridge @firebase/jssdk-global-approvers
packages/remote-config-types-exp @erikeldridge @firebase/jssdk-global-approvers
4 changes: 3 additions & 1 deletion .github/workflows/check-changeset.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ jobs:
id: check-changeset
- name: Print changeset checker output
run: echo "${{steps.check-changeset.outputs.CHANGESET_ERROR_MESSAGE}}"
- name: Print blocking failure status
run: echo "${{steps.check-changeset.outputs.BLOCKING_FAILURE}}"
- name: Find Comment
uses: peter-evans/find-comment@v1
id: fc
Expand Down Expand Up @@ -59,5 +61,5 @@ jobs:
- No changeset formatting errors detected.
# Don't want it to throw before editing the comment.
- name: Fail if checker script logged a blocking failure
if: ${{steps.check-changeset.outputs.BLOCKING_FAILURE}}
if: ${{steps.check-changeset.outputs.BLOCKING_FAILURE == 'true'}}
run: exit 1
2 changes: 2 additions & 0 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Bump Node memory limit
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-changed-auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Bump Node memory limit
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-changed-fcm-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Bump Node memory limit
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-changed-firestore-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Bump Node memory limit
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
yarn
- name: build
run: yarn build:changed firestore-integration --buildAppExp
run: yarn build:changed firestore-integration --buildAppExp --buildAppCompat
- name: Run tests if firestore or its dependencies has changed
run: yarn test:changed firestore-integration
4 changes: 3 additions & 1 deletion .github/workflows/test-changed-firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Bump Node memory limit
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
yarn
- name: build
run: yarn build:changed firestore --buildAppExp
run: yarn build:changed firestore --buildAppExp --buildAppCompat
- name: Run tests if firestore or its dependencies has changed
run: yarn test:changed firestore
2 changes: 2 additions & 0 deletions .github/workflows/test-changed-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Bump Node memory limit
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-changed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Bump Node memory limit
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test-firebase-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Bump Node memory limit
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
- name: Test setup and yarn install
run: |
cp config/ci.config.json config/project.json
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

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).

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).
190 changes: 0 additions & 190 deletions common/api-review/auth-exp.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,196 +61,6 @@ export class AuthCredential {
toJSON(): object;
}

// @public
export const enum AuthErrorCode {
// (undocumented)
ADMIN_ONLY_OPERATION = "admin-restricted-operation",
// (undocumented)
APP_NOT_AUTHORIZED = "app-not-authorized",
// (undocumented)
APP_NOT_INSTALLED = "app-not-installed",
// (undocumented)
ARGUMENT_ERROR = "argument-error",
// (undocumented)
CAPTCHA_CHECK_FAILED = "captcha-check-failed",
// (undocumented)
CODE_EXPIRED = "code-expired",
// (undocumented)
CORDOVA_NOT_READY = "cordova-not-ready",
// (undocumented)
CORS_UNSUPPORTED = "cors-unsupported",
// (undocumented)
CREDENTIAL_ALREADY_IN_USE = "credential-already-in-use",
// (undocumented)
CREDENTIAL_MISMATCH = "custom-token-mismatch",
// (undocumented)
CREDENTIAL_TOO_OLD_LOGIN_AGAIN = "requires-recent-login",
// (undocumented)
DYNAMIC_LINK_NOT_ACTIVATED = "dynamic-link-not-activated",
// (undocumented)
EMAIL_CHANGE_NEEDS_VERIFICATION = "email-change-needs-verification",
// (undocumented)
EMAIL_EXISTS = "email-already-in-use",
// (undocumented)
EMULATOR_CONFIG_FAILED = "emulator-config-failed",
// (undocumented)
EXPIRED_OOB_CODE = "expired-action-code",
// (undocumented)
EXPIRED_POPUP_REQUEST = "cancelled-popup-request",
// (undocumented)
INTERNAL_ERROR = "internal-error",
// (undocumented)
INVALID_API_KEY = "invalid-api-key",
// (undocumented)
INVALID_APP_CREDENTIAL = "invalid-app-credential",
// (undocumented)
INVALID_APP_ID = "invalid-app-id",
// (undocumented)
INVALID_AUTH = "invalid-user-token",
// (undocumented)
INVALID_AUTH_EVENT = "invalid-auth-event",
// (undocumented)
INVALID_CERT_HASH = "invalid-cert-hash",
// (undocumented)
INVALID_CODE = "invalid-verification-code",
// (undocumented)
INVALID_CONTINUE_URI = "invalid-continue-uri",
// (undocumented)
INVALID_CORDOVA_CONFIGURATION = "invalid-cordova-configuration",
// (undocumented)
INVALID_CUSTOM_TOKEN = "invalid-custom-token",
// (undocumented)
INVALID_DYNAMIC_LINK_DOMAIN = "invalid-dynamic-link-domain",
// (undocumented)
INVALID_EMAIL = "invalid-email",
// (undocumented)
INVALID_EMULATOR_SCHEME = "invalid-emulator-scheme",
// (undocumented)
INVALID_IDP_RESPONSE = "invalid-credential",
// (undocumented)
INVALID_MESSAGE_PAYLOAD = "invalid-message-payload",
// (undocumented)
INVALID_MFA_SESSION = "invalid-multi-factor-session",
// (undocumented)
INVALID_OAUTH_CLIENT_ID = "invalid-oauth-client-id",
// (undocumented)
INVALID_OAUTH_PROVIDER = "invalid-oauth-provider",
// (undocumented)
INVALID_OOB_CODE = "invalid-action-code",
// (undocumented)
INVALID_ORIGIN = "unauthorized-domain",
// (undocumented)
INVALID_PASSWORD = "wrong-password",
// (undocumented)
INVALID_PERSISTENCE = "invalid-persistence-type",
// (undocumented)
INVALID_PHONE_NUMBER = "invalid-phone-number",
// (undocumented)
INVALID_PROVIDER_ID = "invalid-provider-id",
// (undocumented)
INVALID_RECIPIENT_EMAIL = "invalid-recipient-email",
// (undocumented)
INVALID_SENDER = "invalid-sender",
// (undocumented)
INVALID_SESSION_INFO = "invalid-verification-id",
// (undocumented)
INVALID_TENANT_ID = "invalid-tenant-id",
// (undocumented)
MFA_INFO_NOT_FOUND = "multi-factor-info-not-found",
// (undocumented)
MFA_REQUIRED = "multi-factor-auth-required",
// (undocumented)
MISSING_ANDROID_PACKAGE_NAME = "missing-android-pkg-name",
// (undocumented)
MISSING_APP_CREDENTIAL = "missing-app-credential",
// (undocumented)
MISSING_AUTH_DOMAIN = "auth-domain-config-required",
// (undocumented)
MISSING_CODE = "missing-verification-code",
// (undocumented)
MISSING_CONTINUE_URI = "missing-continue-uri",
// (undocumented)
MISSING_IFRAME_START = "missing-iframe-start",
// (undocumented)
MISSING_IOS_BUNDLE_ID = "missing-ios-bundle-id",
// (undocumented)
MISSING_MFA_INFO = "missing-multi-factor-info",
// (undocumented)
MISSING_MFA_SESSION = "missing-multi-factor-session",
// (undocumented)
MISSING_OR_INVALID_NONCE = "missing-or-invalid-nonce",
// (undocumented)
MISSING_PHONE_NUMBER = "missing-phone-number",
// (undocumented)
MISSING_SESSION_INFO = "missing-verification-id",
// (undocumented)
MODULE_DESTROYED = "app-deleted",
// (undocumented)
NEED_CONFIRMATION = "account-exists-with-different-credential",
// (undocumented)
NETWORK_REQUEST_FAILED = "network-request-failed",
// (undocumented)
NO_AUTH_EVENT = "no-auth-event",
// (undocumented)
NO_SUCH_PROVIDER = "no-such-provider",
// (undocumented)
NULL_USER = "null-user",
// (undocumented)
OPERATION_NOT_ALLOWED = "operation-not-allowed",
// (undocumented)
OPERATION_NOT_SUPPORTED = "operation-not-supported-in-this-environment",
// (undocumented)
POPUP_BLOCKED = "popup-blocked",
// (undocumented)
POPUP_CLOSED_BY_USER = "popup-closed-by-user",
// (undocumented)
PROVIDER_ALREADY_LINKED = "provider-already-linked",
// (undocumented)
QUOTA_EXCEEDED = "quota-exceeded",
// (undocumented)
REDIRECT_CANCELLED_BY_USER = "redirect-cancelled-by-user",
// (undocumented)
REDIRECT_OPERATION_PENDING = "redirect-operation-pending",
// (undocumented)
REJECTED_CREDENTIAL = "rejected-credential",
// (undocumented)
SECOND_FACTOR_ALREADY_ENROLLED = "second-factor-already-in-use",
// (undocumented)
SECOND_FACTOR_LIMIT_EXCEEDED = "maximum-second-factor-count-exceeded",
// (undocumented)
TENANT_ID_MISMATCH = "tenant-id-mismatch",
// (undocumented)
TIMEOUT = "timeout",
// (undocumented)
TOKEN_EXPIRED = "user-token-expired",
// (undocumented)
TOO_MANY_ATTEMPTS_TRY_LATER = "too-many-requests",
// (undocumented)
UNAUTHORIZED_DOMAIN = "unauthorized-continue-uri",
// (undocumented)
UNSUPPORTED_FIRST_FACTOR = "unsupported-first-factor",
// (undocumented)
UNSUPPORTED_PERSISTENCE = "unsupported-persistence-type",
// (undocumented)
UNSUPPORTED_TENANT_OPERATION = "unsupported-tenant-operation",
// (undocumented)
UNVERIFIED_EMAIL = "unverified-email",
// (undocumented)
USER_CANCELLED = "user-cancelled",
// (undocumented)
USER_DELETED = "user-not-found",
// (undocumented)
USER_DISABLED = "user-disabled",
// (undocumented)
USER_MISMATCH = "user-mismatch",
// (undocumented)
USER_SIGNED_OUT = "user-signed-out",
// (undocumented)
WEAK_PASSWORD = "weak-password",
// (undocumented)
WEB_STORAGE_UNSUPPORTED = "web-storage-unsupported"
}

// @public
export const browserLocalPersistence: externs.Persistence;

Expand Down
48 changes: 48 additions & 0 deletions common/api-review/remote-config-exp.api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## API Report File for "@firebase/remote-config-exp"

> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).

```ts

import { FirebaseApp } from '@firebase/app-types-exp';
import { LogLevel } from '@firebase/remote-config-types-exp';
import { RemoteConfig } from '@firebase/remote-config-types-exp';
import { Value } from '@firebase/remote-config-types-exp';

// @public (undocumented)
export function activate(remoteConfig: RemoteConfig): Promise<boolean>;

// @public (undocumented)
export function ensureInitialized(remoteConfig: RemoteConfig): Promise<void>;

// @public (undocumented)
export function fetchAndActivate(remoteConfig: RemoteConfig): Promise<boolean>;

// @public (undocumented)
export function fetchConfig(remoteConfig: RemoteConfig): Promise<void>;

// @public (undocumented)
export function getAll(remoteConfig: RemoteConfig): Record<string, Value>;

// @public (undocumented)
export function getBoolean(remoteConfig: RemoteConfig, key: string): boolean;

// @public (undocumented)
export function getNumber(remoteConfig: RemoteConfig, key: string): number;

// @public (undocumented)
export function getRemoteConfig(app: FirebaseApp): RemoteConfig;

// @public (undocumented)
export function getString(remoteConfig: RemoteConfig, key: string): string;

// @public (undocumented)
export function getValue(remoteConfig: RemoteConfig, key: string): Value;

// @public (undocumented)
export function setLogLevel(remoteConfig: RemoteConfig, logLevel: LogLevel): void;


// (No @packageDocumentation comment for this package)

```
Loading