Skip to content

Commit 1007bfd

Browse files
committed
Merge branch 'master' of github.com:firebase/firebase-js-sdk into mrschmidt/initflag
2 parents b90cfd5 + b993aee commit 1007bfd

File tree

538 files changed

+24757
-11479
lines changed

Some content is hidden

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

538 files changed

+24757
-11479
lines changed

.changeset/empty-falcons-sit.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

.changeset/good-bears-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/database": patch
3+
---
4+
5+
Included experimental support for Deno

.changeset/happy-eels-confess.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@firebase/auth": patch
3+
---
4+
5+
Fix proactive refresh logic in Auth when RTDB/Firestore/Storage are in use

.changeset/pretty-mayflies-worry.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/quick-moons-play.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/smart-plants-sparkle.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+
Fix FAILED_PRECONDITION when writing to a deleted document in a transaction (#5871)

.changeset/sweet-pumas-dance.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
# Source files
2+
# ============
3+
*.md text eol=lf
4+
15
*.json linguist-language=JSON-with-Comments

.github/CODEOWNERS

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
# Used for approving minor changes, large-scale refactorings, and emergency situations.
1414
# (secret team to avoid review requests)
1515
#
16-
# - @hiranya911
16+
# - @lahirumaramba
1717
# - @hsubox76
1818
# - @allspain
19+
# - @dwyfrequency
1920

2021

2122
# ===========================================================
@@ -32,12 +33,12 @@
3233

3334

3435
# These owners will be the default owners for everything in the repo.
35-
* @allspain @hsubox76 @firebase/jssdk-global-approvers
36+
* @dwyfrequency @hsubox76 @firebase/jssdk-global-approvers
3637

3738
# Database Code
38-
packages/database @schmidt-sebastian @jsdt @firebase/jssdk-global-approvers
39-
packages/database-compat @schmidt-sebastian @jsdt @firebase/jssdk-global-approvers
40-
packages/database-types @schmidt-sebastian @jsdt @firebase/jssdk-global-approvers
39+
packages/database @maneesht @jsdt @IanWyszynski @firebase/jssdk-global-approvers
40+
packages/database-compat @maneesht @jsdt @IanWyszynski @firebase/jssdk-global-approvers
41+
packages/database-types @maneesht @jsdt @IanWyszynski @firebase/jssdk-global-approvers
4142

4243
# Firestore Code
4344
packages/firestore @firebase/firestore-js-team @firebase/jssdk-global-approvers
@@ -47,16 +48,16 @@ packages/firestore-types @firebase/firestore-js-team @firebase/jssdk-global-app
4748
integration/firestore @firebase/firestore-js-team @firebase/jssdk-global-approvers
4849

4950
# Storage Code
50-
packages/storage @schmidt-sebastian @firebase/jssdk-global-approvers
51-
packages/storage-compat @schmidt-sebastian @firebase/jssdk-global-approvers
52-
packages/storage-types @schmidt-sebastian @firebase/jssdk-global-approvers
51+
packages/storage @maneesht @tonyjhuang @firebase/jssdk-global-approvers
52+
packages/storage-compat @maneesht @tonyjhuang @firebase/jssdk-global-approvers
53+
packages/storage-types @maneesht @tonyjhuang @firebase/jssdk-global-approvers
5354

5455
# Messaging Code
55-
packages/messaging @zwu52 @chliangGoogle @ciarand @firebase/jssdk-global-approvers
56-
packages/messaging-compat @zwu52 @chliangGoogle @ciarand @firebase/jssdk-global-approvers
57-
packages/messaging-types @zwu52 @chliangGoogle @ciarand @firebase/jssdk-global-approvers
58-
packages/messaging-interop-types @zwu52 @chliangGoogle @ciarand @firebase/jssdk-global-approvers
59-
integration/messaging @zwu52 @chliangGoogle @ciarand @firebase/jssdk-global-approvers
56+
packages/messaging @zwu52 @firebase/jssdk-global-approvers
57+
packages/messaging-compat @zwu52 @firebase/jssdk-global-approvers
58+
packages/messaging-types @zwu52 @firebase/jssdk-global-approvers
59+
packages/messaging-interop-types @zwu52 @firebase/jssdk-global-approvers
60+
integration/messaging @zwu52 @firebase/jssdk-global-approvers
6061

6162
# Auth Code
6263
packages/auth @avolkovi @lisajian @sam-gc @yuchenshi @firebase/jssdk-global-approvers

.github/workflows/assign-tech-writers.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/check-changeset.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Check Changeset
22

3-
on: pull_request
3+
on:
4+
pull_request:
5+
branches-ignore:
6+
- release
47

58
env:
69
GITHUB_PULL_REQUEST_HEAD_SHA: ${{ github.event.pull_request.head.sha }}

.github/workflows/check-pkg-paths.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Test Package Paths
2+
3+
on: pull_request
4+
5+
jobs:
6+
test:
7+
name: Test Package Paths
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout Repo
12+
uses: actions/checkout@master
13+
with:
14+
# This makes Actions fetch all Git history so run-changed script can diff properly.
15+
fetch-depth: 0
16+
- name: Set up Node (14)
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: 14.x
20+
- name: Yarn install
21+
run: yarn
22+
- name: Yarn build
23+
run: yarn build
24+
- name: Swap in public typings
25+
run: yarn release:prepare
26+
- name: Check paths
27+
run: yarn ts-node scripts/ci-test/check-paths.ts

.github/workflows/cross-browser-test.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/deploy-config.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy Project Config
2+
3+
on: pull_request
4+
5+
# Detects if any project config files (rules or functions) have changed,
6+
# and deploys them to the test project used for CI if so.
7+
# Run this in its own workflow instead of as a step before each test
8+
# workflow to avoid too many deploys, possibly causing race conditions.
9+
# Since the build step of each test workflow takes a long time, this
10+
# this should finish before the tests begin running.
11+
12+
jobs:
13+
test:
14+
name: Deploy Firebase Project Rules and Functions
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout Repo
19+
uses: actions/checkout@master
20+
with:
21+
# This makes Actions fetch all Git history so run-changed script can diff properly.
22+
fetch-depth: 0
23+
- name: Set up Node (14)
24+
uses: actions/setup-node@v2
25+
with:
26+
node-version: 14.x
27+
- name: Yarn install
28+
run: yarn
29+
- name: Deploy project config if needed
30+
run: yarn ts-node scripts/ci-test/deploy-if-needed.ts
31+
env:
32+
FIREBASE_CLI_TOKEN: ${{secrets.FIREBASE_CLI_TOKEN}}

.github/workflows/e2e-test.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ name: E2E Smoke Tests
22

33
# Allows REST trigger. Currently triggered by release-cli script during a staging run.
44
on:
5-
workflow_dispatch:
6-
inputs:
7-
versionOrTag:
8-
description: 'release version or tag'
9-
required: true
10-
default: 'next'
5+
repository_dispatch:
6+
types: [staging-tests]
117

128
jobs:
139
test:
@@ -21,10 +17,10 @@ jobs:
2117
steps:
2218
- name: Checkout Repo
2319
uses: actions/checkout@master
24-
- name: Set up Node (12)
20+
- name: Set up Node (14)
2521
uses: actions/setup-node@v2
2622
with:
27-
node-version: 12.x
23+
node-version: 14.x
2824
- name: install Chrome stable
2925
run: |
3026
sudo apt-get update
@@ -39,8 +35,8 @@ jobs:
3935
echo "export const config = $PROJECT_CONFIG; export const testAccount = $TEST_ACCOUNT" > firebase-config.js
4036
- name: Yarn install
4137
run: |
42-
echo "Installing firebase@${{ github.event.inputs.versionOrTag }}"
43-
yarn add firebase@${{ github.event.inputs.versionOrTag }}
38+
echo "Installing firebase@${{ github.event.client_payload.versionOrTag }}"
39+
yarn add firebase@${{ github.event.client_payload.versionOrTag }}
4440
yarn
4541
- name: Deploy "callTest" cloud function
4642
run: |
@@ -65,6 +61,7 @@ jobs:
6561
env:
6662
WEBHOOK_URL: ${{ secrets.JSCORE_CHAT_WEBHOOK_URL }}
6763
RELEASE_TRACKER_URL: ${{ secrets.RELEASE_TRACKER_URL }}
64+
VERSION_OR_TAG: ${{ github.event.client_payload.versionOrTag }}
6865
# run in root
6966
working-directory: '.'
7067
- name: Tests failed
@@ -73,5 +70,6 @@ jobs:
7370
env:
7471
WEBHOOK_URL: ${{ secrets.JSCORE_CHAT_WEBHOOK_URL }}
7572
RELEASE_TRACKER_URL: ${{ secrets.RELEASE_TRACKER_URL }}
73+
VERSION_OR_TAG: ${{ github.event.client_payload.versionOrTag }}
7674
# run in root
7775
working-directory: '.'

.github/workflows/health-metrics-pull-request.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Health Metrics
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: ['**']
6+
pull_request:
47

58
env:
69
GITHUB_PULL_REQUEST_NUMBER: ${{ github.event.pull_request.number }}
@@ -24,9 +27,10 @@ jobs:
2427
- uses: actions/setup-node@v2
2528
with:
2629
node-version: 14.x
27-
- uses: google-github-actions/setup-gcloud@master
30+
- uses: 'google-github-actions/auth@v0'
2831
with:
29-
service_account_key: ${{ secrets.GCP_SA_KEY }}
32+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
33+
- uses: google-github-actions/setup-gcloud@v0
3034
- run: yarn install
3135
- run: yarn build
3236
- name: Run health-metrics/binary-size test
@@ -40,9 +44,10 @@ jobs:
4044
- uses: actions/setup-node@v2
4145
with:
4246
node-version: 14.x
43-
- uses: google-github-actions/setup-gcloud@master
47+
- uses: 'google-github-actions/auth@v0'
4448
with:
45-
service_account_key: ${{ secrets.GCP_SA_KEY }}
49+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
50+
- uses: google-github-actions/setup-gcloud@v0
4651
- run: yarn install
4752
- run: yarn build
4853
- name: Run health-metrics/modular-exports-binary-size test

.github/workflows/health-metrics-release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ jobs:
99
name: Release Diffing
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: google-github-actions/setup-gcloud@master
12+
- uses: 'google-github-actions/auth@v0'
1313
with:
14-
service_account_key: ${{ secrets.GCP_SA_KEY }}
14+
credentials_json: '${{ secrets.GCP_SA_KEY }}'
15+
- uses: google-github-actions/setup-gcloud@v0
1516
- uses: FirebaseExtended/github-actions/health-metrics/release-diffing@master
1617
with:
1718
repo: ${{ github.repository }}

.github/workflows/label-doc-changes.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,9 @@ jobs:
3333
if: ${{steps.check-doc-changes.outputs.DOC_CHANGED == 'true'}}
3434
with:
3535
labels: doc-changes
36-
github_token: ${{ secrets.OSS_BOT_GITHUB_TOKEN }}
36+
github_token: ${{ github.token }}
37+
- name: assign techwriters to PR
38+
if: ${{steps.check-doc-changes.outputs.DOC_CHANGED == 'true'}}
39+
uses: kentaro-m/[email protected]
40+
with:
41+
configuration-path: ".github/auto_assign.yml"
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Merge Release Into Master
2+
3+
on: workflow_dispatch
4+
5+
jobs:
6+
merge_to_master:
7+
runs-on: ubuntu-latest
8+
# Allow GITHUB_TOKEN to have write permissions
9+
permissions:
10+
contents: write
11+
steps:
12+
- name: Checkout Release Branch
13+
uses: actions/checkout@master
14+
with:
15+
ref: release
16+
- name: Get release version
17+
id: get-version
18+
run: |
19+
export VERSION_SCRIPT="const pkg = require('./packages/firebase/package.json'); console.log(pkg.version);"
20+
export VERSION=`node -e "${VERSION_SCRIPT}"`
21+
echo "::set-output name=RELEASE_VERSION::$VERSION"
22+
- name: Echo version in shell
23+
run: |
24+
echo "Merging release ${{ steps.get-version.outputs.RELEASE_VERSION }}"
25+
- name: Merge to master
26+
uses: actions/github-script@v6
27+
with:
28+
github-token: ${{ secrets.GITHUB_TOKEN }}
29+
script: |
30+
github.rest.repos.merge({
31+
owner: context.repo.owner,
32+
repo: context.repo.repo,
33+
base: 'master',
34+
head: 'release',
35+
commit_message: 'Release ${{ steps.get-version.outputs.RELEASE_VERSION }}'
36+
})

.github/workflows/release-log.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
pull_request:
55
branches:
66
- release
7-
- v8-releasebranch
7+
- '*-releasebranch'
88

99
jobs:
1010
release:

0 commit comments

Comments
 (0)