[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge branch 'master' of github.com:firebase/firebase-js-sdk into mar…
Browse files Browse the repository at this point in the history
…kduckworth/sum-avg
  • Loading branch information
MarkDuckworth committed Feb 9, 2023
2 parents db4b8e9 + 9874614 commit 83740c0
Show file tree
Hide file tree
Showing 146 changed files with 3,031 additions and 1,098 deletions.
5 changes: 0 additions & 5 deletions .changeset/nervous-ads-pretend.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pretty-carrots-kneel.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/quick-radios-obey.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/stupid-swans-fix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/tricky-ravens-stare.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-frogs-play.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wild-geckos-fetch.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/young-hornets-rescue.md

This file was deleted.

8 changes: 4 additions & 4 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ packages/messaging-interop-types @zwu52 @firebase/jssdk-global-approvers
integration/messaging @zwu52 @firebase/jssdk-global-approvers

# Auth Code
packages/auth @avolkovi @lisajian @sam-gc @yuchenshi @firebase/jssdk-global-approvers
packages/auth-compat @avolkovi @lisajian @sam-gc @yuchenshi @firebase/jssdk-global-approvers
packages/auth-types @avolkovi @lisajian @sam-gc @yuchenshi @firebase/jssdk-global-approvers
packages/auth-interop-types @avolkovi @lisajian @sam-gc @yuchenshi @firebase/jssdk-global-approvers
packages/auth @lisajian @prameshj @renkelvin @sam-gc @firebase/jssdk-global-approvers
packages/auth-compat @lisajian @prameshj @renkelvin @sam-gc @firebase/jssdk-global-approvers
packages/auth-types @lisajian @prameshj @renkelvin @sam-gc @firebase/jssdk-global-approvers
packages/auth-interop-types @lisajian @prameshj @renkelvin @sam-gc @firebase/jssdk-global-approvers

# Testing Code
packages/rules-unit-testing @avolkovi @sam-gc @yuchenshi @firebase/jssdk-global-approvers
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
working-directory: ./config
env:
FIREBASE_CLI_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
- name: Do modular build
run: yarn build:modular
- name: Do compat build
run: yarn build:compat
- name: Run modular tests
env:
APP_CHECK_DEBUG_TOKEN: ${{ secrets.APP_CHECK_DEBUG_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
run: |
export VERSION_SCRIPT="const pkg = require('./packages/firebase/package.json'); console.log(pkg.version);"
export VERSION=`node -e "${VERSION_SCRIPT}"`
echo "::set-output name=RELEASE_VERSION::$VERSION"
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Echo version in shell
run: |
echo "Merging release ${{ steps.get-version.outputs.RELEASE_VERSION }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
run: |
VERSION_SCRIPT="const pkg = require('./packages/firebase/package.json'); console.log(pkg.version);"
VERSION=`node -e "${VERSION_SCRIPT}"`
echo "::set-output name=BASE_VERSION::$VERSION"
echo "BASE_VERSION=$VERSION" >> $GITHUB_OUTPUT
- name: Echo version in shell
run: |
echo "Base version: ${{ steps.get-version.outputs.BASE_VERSION }}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,9 @@ jobs:
run: |
VERSION_SCRIPT="const pkg = require('./packages/firebase/package.json'); console.log(pkg.version);"
VERSION=`node -e "${VERSION_SCRIPT}"`
echo "::set-output name=STAGING_VERSION::$VERSION"
echo "STAGING_VERSION=$VERSION" >> $GITHUB_OUTPUT
BASE_VERSION=$(echo $VERSION | cut -d "-" -f 1)
echo "::set-output name=BASE_VERSION::$BASE_VERSION"
echo "BASE_VERSION=$BASE_VERSION" >> $GITHUB_OUTPUT
- name: Echo versions in shell
run: |
echo "Staging release ${{ steps.get-version.outputs.STAGING_VERSION }}"
Expand Down
6 changes: 2 additions & 4 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@
"--exit"
],
"env": {
"FIRESTORE_EMULATOR_PORT" : "8080",
"FIRESTORE_EMULATOR_PROJECT_ID" : "test-emulator"
"FIRESTORE_TARGET_BACKEND" : "emulator",
},
"sourceMaps": true,
"protocol": "inspector"
Expand All @@ -95,8 +94,7 @@
],
"env": {
"USE_MOCK_PERSISTENCE": "YES",
"FIRESTORE_EMULATOR_PORT" : "8080",
"FIRESTORE_EMULATOR_PROJECT_ID" : "test-emulator"
"FIRESTORE_TARGET_BACKEND" : "emulator",
},
"sourceMaps": true,
"protocol": "inspector"
Expand Down
79 changes: 70 additions & 9 deletions common/api-review/storage.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,11 @@ export function getStorage(app?: FirebaseApp, bucketUrl?: string): FirebaseStora
// @public
export function getStream(ref: StorageReference, maxDownloadSizeBytes?: number): NodeJS.ReadableStream;

// Warning: (ae-forgotten-export) The symbol "StorageError" needs to be exported by the entry point index.d.ts
//
// @internal (undocumented)
export function _invalidArgument(message: string): StorageError_2;
export function _invalidArgument(message: string): StorageError;

// @internal (undocumented)
export function _invalidRootOperation(name: string): StorageError_2;
export function _invalidRootOperation(name: string): StorageError;

// @public
export function list(ref: StorageReference, options?: ListOptions): Promise<ListResult>;
Expand Down Expand Up @@ -217,8 +215,71 @@ export interface SettableMetadata {
}

// @public
export interface StorageError extends FirebaseError {
serverResponse: string | null;
export class StorageError extends FirebaseError {
constructor(code: StorageErrorCode, message: string, status_?: number);
_codeEquals(code: StorageErrorCode): boolean;
customData: {
serverResponse: string | null;
};
get serverResponse(): null | string;
set serverResponse(serverResponse: string | null);
// (undocumented)
get status(): number;
set status(status: number);
}

// @public
export enum StorageErrorCode {
// (undocumented)
APP_DELETED = "app-deleted",
// (undocumented)
BUCKET_NOT_FOUND = "bucket-not-found",
// (undocumented)
CANCELED = "canceled",
// (undocumented)
CANNOT_SLICE_BLOB = "cannot-slice-blob",
// (undocumented)
INTERNAL_ERROR = "internal-error",
// (undocumented)
INVALID_ARGUMENT = "invalid-argument",
// (undocumented)
INVALID_ARGUMENT_COUNT = "invalid-argument-count",
// (undocumented)
INVALID_CHECKSUM = "invalid-checksum",
// (undocumented)
INVALID_DEFAULT_BUCKET = "invalid-default-bucket",
// (undocumented)
INVALID_EVENT_NAME = "invalid-event-name",
// (undocumented)
INVALID_FORMAT = "invalid-format",
// (undocumented)
INVALID_ROOT_OPERATION = "invalid-root-operation",
// (undocumented)
INVALID_URL = "invalid-url",
// (undocumented)
NO_DEFAULT_BUCKET = "no-default-bucket",
// (undocumented)
NO_DOWNLOAD_URL = "no-download-url",
// (undocumented)
OBJECT_NOT_FOUND = "object-not-found",
// (undocumented)
PROJECT_NOT_FOUND = "project-not-found",
// (undocumented)
QUOTA_EXCEEDED = "quota-exceeded",
// (undocumented)
RETRY_LIMIT_EXCEEDED = "retry-limit-exceeded",
// (undocumented)
SERVER_FILE_WRONG_SIZE = "server-file-wrong-size",
// (undocumented)
UNAUTHENTICATED = "unauthenticated",
// (undocumented)
UNAUTHORIZED = "unauthorized",
// (undocumented)
UNAUTHORIZED_APP = "unauthorized-app",
// (undocumented)
UNKNOWN = "unknown",
// (undocumented)
UNSUPPORTED_ENVIRONMENT = "unsupported-environment"
}

// @public
Expand Down Expand Up @@ -318,20 +379,20 @@ export class _UploadTask {
constructor(ref: _Reference, blob: _FbsBlob, metadata?: Metadata | null);
_blob: _FbsBlob;
cancel(): boolean;
catch<T>(onRejected: (p1: StorageError_2) => T | Promise<T>): Promise<T>;
catch<T>(onRejected: (p1: StorageError) => T | Promise<T>): Promise<T>;
// (undocumented)
isExponentialBackoffExpired(): boolean;
// Warning: (ae-forgotten-export) The symbol "Metadata" needs to be exported by the entry point index.d.ts
_metadata: Metadata | null;
// Warning: (ae-forgotten-export) The symbol "Unsubscribe" needs to be exported by the entry point index.d.ts
// Warning: (ae-forgotten-export) The symbol "Subscribe" needs to be exported by the entry point index.d.ts
on(type: _TaskEvent, nextOrObserver?: StorageObserver<UploadTaskSnapshot> | null | ((snapshot: UploadTaskSnapshot) => unknown), error?: ((a: StorageError_2) => unknown) | null, completed?: CompleteFn | null): Unsubscribe_2 | Subscribe_2<UploadTaskSnapshot>;
on(type: _TaskEvent, nextOrObserver?: StorageObserver<UploadTaskSnapshot> | null | ((snapshot: UploadTaskSnapshot) => unknown), error?: ((a: StorageError) => unknown) | null, completed?: CompleteFn | null): Unsubscribe_2 | Subscribe_2<UploadTaskSnapshot>;
pause(): boolean;
resume(): boolean;
get snapshot(): UploadTaskSnapshot;
// Warning: (ae-forgotten-export) The symbol "InternalTaskState" needs to be exported by the entry point index.d.ts
_state: InternalTaskState;
then<U>(onFulfilled?: ((value: UploadTaskSnapshot) => U | Promise<U>) | null, onRejected?: ((error: StorageError_2) => U | Promise<U>) | null): Promise<U>;
then<U>(onFulfilled?: ((value: UploadTaskSnapshot) => U | Promise<U>) | null, onRejected?: ((error: StorageError) => U | Promise<U>) | null): Promise<U>;
_transferred: number;
}

Expand Down
1 change: 1 addition & 0 deletions e2e/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
build/*.js
build/*.map
firebase-config.js
context.html
2 changes: 0 additions & 2 deletions e2e/karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ module.exports = function (config) {
resolve: {
directories: ['./node_modules'],
alias: {
'@firebase/messaging/sw':
'node_modules/@firebase/messaging/dist/index.sw.esm2017.js',
'idb': 'node_modules/idb/build/index.js'
}
},
Expand Down
6 changes: 4 additions & 2 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"watch": "webpack --watch",
"build": "webpack",
"start:modular": "webpack serve --config-name modular",
"start:compat": "webpack serve --config-name compat"
"start:compat": "webpack serve --config-name compat",
"build:modular": "webpack --config-name modular",
"build:compat": "webpack --config-name compat"
},
"author": "",
"license": "ISC",
Expand All @@ -32,7 +34,7 @@
"karma-typescript": "5.5.3",
"karma-typescript-es6-transform": "5.5.3",
"mocha": "9.2.2",
"typescript": "4.3.4",
"typescript": "4.7.4",
"webpack": "5.75.0",
"webpack-cli": "4.10.0",
"webpack-dev-server": "4.10.0"
Expand Down
6 changes: 0 additions & 6 deletions e2e/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ module.exports = [
}
]
},
resolve: {
mainFields: ['browser', 'module', 'main']
},
stats: {
colors: true
},
Expand Down Expand Up @@ -88,9 +85,6 @@ module.exports = [
}
]
},
resolve: {
mainFields: ['browser', 'module', 'main']
},
stats: {
colors: true
},
Expand Down
Loading

0 comments on commit 83740c0

Please sign in to comment.