Skip to content

Commit c835488

Browse files
committed
Merge branch 'master' into jhuleatt-rc-emulator
2 parents a12bf7b + 70e6254 commit c835488

File tree

532 files changed

+27176
-5721
lines changed

Some content is hidden

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

532 files changed

+27176
-5721
lines changed

.changeset/config.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
"firebase-repo-scripts-prune-dts"
2222
],
2323
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
24-
"onlyUpdatePeerDependentsWhenOutOfRange": true,
25-
"useCalculatedVersionForSnapshots": true
24+
"onlyUpdatePeerDependentsWhenOutOfRange": true
25+
},
26+
"snapshot": {
27+
"useCalculatedVersion": true
2628
}
2729
}

.changeset/cyan-buses-float.md

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

.changeset/cyan-sheep-battle.md

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

.changeset/kind-pots-admire.md

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

.changeset/popular-bugs-draw.md

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

.github/CODEOWNERS

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
* @dwyfrequency @hsubox76 @firebase/jssdk-global-approvers
3737

3838
# Database Code
39-
packages/database @maneesht @jsdt @firebase/jssdk-global-approvers
40-
packages/database-compat @maneesht @jsdt @firebase/jssdk-global-approvers
41-
packages/database-types @maneesht @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
4242

4343
# Firestore Code
4444
packages/firestore @firebase/firestore-js-team @firebase/jssdk-global-approvers
@@ -55,7 +55,6 @@ packages/storage-types @maneesht @tonyjhuang @firebase/jssdk-global-approvers
5555
# Messaging Code
5656
packages/messaging @zwu52 @firebase/jssdk-global-approvers
5757
packages/messaging-compat @zwu52 @firebase/jssdk-global-approvers
58-
packages/messaging-types @zwu52 @firebase/jssdk-global-approvers
5958
packages/messaging-interop-types @zwu52 @firebase/jssdk-global-approvers
6059
integration/messaging @zwu52 @firebase/jssdk-global-approvers
6160

.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/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/release-prod.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: Production Release
22

3-
on: workflow_dispatch
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
release-branch:
7+
description: 'Release branch'
8+
type: string
9+
default: 'release'
10+
required: true
411

512
jobs:
613
deploy:
@@ -20,7 +27,7 @@ jobs:
2027
with:
2128
# Release script requires git history and tags.
2229
fetch-depth: 0
23-
ref: release
30+
ref: ${{ github.event.inputs.release-branch }}
2431
token: ${{ secrets.OSS_BOT_GITHUB_TOKEN }}
2532
- name: Yarn install
2633
run: yarn

.github/workflows/release-tweet.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Send Release Tweet
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version number'
8+
type: string
9+
required: true
10+
force:
11+
description: 'Force publish'
12+
type: boolean
13+
default: false
14+
required: true
15+
16+
jobs:
17+
tweet:
18+
name: Send Release Tweet
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout Repo
22+
uses: actions/checkout@master
23+
- name: Setup Node.js 14.x
24+
uses: actions/setup-node@master
25+
with:
26+
node-version: 14.x
27+
- name: Poll release notes page on devsite
28+
run: node scripts/ci/poll_release_notes.js
29+
env:
30+
VERSION: ${{ github.event.inputs.version }}
31+
FORCE_PUBLISH: ${{ github.event.inputs.force }}
32+
- name: Post to Twitter
33+
uses: firebase/firebase-admin-node/.github/actions/send-tweet@master
34+
with:
35+
status: >
36+
v${{github.event.inputs.version}} of @Firebase JavaScript client for Web / Node.js is available.
37+
Release notes: https://firebase.google.com/support/release-notes/js#${{github.event.inputs.version}}
38+
consumer-key: ${{ secrets.TWITTER_CONSUMER_KEY }}
39+
consumer-secret: ${{ secrets.TWITTER_CONSUMER_SECRET }}
40+
access-token: ${{ secrets.TWITTER_ACCESS_TOKEN }}
41+
access-token-secret: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}

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

Lines changed: 59 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,65 @@ env:
77
DETECT_CHROMEDRIVER_VERSION: true
88

99
jobs:
10-
test:
11-
name: Test Auth If Changed
10+
test-chrome:
11+
name: Test Auth on Chrome and Node If Changed
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
# install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo
16-
- name: install Chrome stable
17-
run: |
18-
sudo apt-get update
19-
sudo apt-get install google-chrome-stable
20-
- name: Checkout Repo
21-
uses: actions/checkout@master
22-
with:
23-
# This makes Actions fetch all Git history so run-changed script can diff properly.
24-
fetch-depth: 0
25-
- name: Set up Node (14)
26-
uses: actions/setup-node@v2
27-
with:
28-
node-version: 14.x
29-
- name: Bump Node memory limit
30-
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
31-
- name: Test setup and yarn install
32-
run: |
33-
cp config/ci.config.json config/project.json
34-
yarn
35-
- name: build
36-
run: yarn build:changed auth
37-
- name: Run tests on changed packages
38-
run: xvfb-run yarn test:changed auth
15+
# install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo
16+
- name: install Chrome stable
17+
run: |
18+
sudo apt-get update
19+
sudo apt-get install google-chrome-stable
20+
- name: Checkout Repo
21+
uses: actions/checkout@master
22+
with:
23+
# This makes Actions fetch all Git history so run-changed script can diff properly.
24+
fetch-depth: 0
25+
- name: Set up Node (14)
26+
uses: actions/setup-node@v2
27+
with:
28+
node-version: 14.x
29+
- name: Bump Node memory limit
30+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
31+
- name: Test setup and yarn install
32+
run: |
33+
cp config/ci.config.json config/project.json
34+
yarn
35+
- name: build
36+
run: yarn build:changed auth
37+
- name: Run tests on changed packages
38+
run: xvfb-run yarn test:changed auth
39+
test-firefox:
40+
name: Test Auth on Firefox If Changed
41+
# Whatever version of Firefox comes with 22.04 is causing Firefox
42+
# startup to hang when launched by karma. Need to look further into
43+
# why.
44+
runs-on: ubuntu-20.04
45+
46+
steps:
47+
- name: install Firefox stable
48+
run: |
49+
sudo apt-get update
50+
sudo apt-get install firefox
51+
- name: Checkout Repo
52+
uses: actions/checkout@master
53+
with:
54+
# This makes Actions fetch all Git history so run-changed script can diff properly.
55+
fetch-depth: 0
56+
- name: Set up Node (14)
57+
uses: actions/setup-node@v2
58+
with:
59+
node-version: 14.x
60+
- name: Bump Node memory limit
61+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
62+
- name: Test setup and yarn install
63+
run: |
64+
cp config/ci.config.json config/project.json
65+
yarn
66+
- name: build
67+
run: yarn build:changed auth
68+
- name: Run tests on auth changed packages
69+
run: xvfb-run yarn test:changed auth
70+
env:
71+
BROWSERS: 'Firefox'

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

Lines changed: 59 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,65 @@ name: Test Firestore
33
on: pull_request
44

55
jobs:
6-
test:
7-
name: Test Firestore If Changed
6+
test-chrome:
7+
name: Test Firestore on Chrome and Node If Changed
88
runs-on: ubuntu-latest
99

1010
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: install Chrome stable
21-
run: |
22-
sudo apt-get update
23-
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
26-
- name: Test setup and yarn install
27-
run: |
28-
cp config/ci.config.json config/project.json
29-
yarn
30-
- name: build
31-
run: yarn build:changed firestore
32-
- name: Run tests if firestore or its dependencies has changed
33-
run: yarn test:changed firestore
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: install Chrome stable
21+
run: |
22+
sudo apt-get update
23+
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
26+
- name: Test setup and yarn install
27+
run: |
28+
cp config/ci.config.json config/project.json
29+
yarn
30+
- name: build
31+
run: yarn build:changed firestore
32+
- name: Run tests if firestore or its dependencies has changed
33+
run: yarn test:changed firestore
34+
35+
test-firefox:
36+
name: Test Firestore on Firefox If Changed
37+
# Whatever version of Firefox comes with 22.04 is causing Firefox
38+
# startup to hang when launched by karma. Need to look further into
39+
# why.
40+
runs-on: ubuntu-20.04
41+
42+
steps:
43+
- name: install Firefox stable
44+
run: |
45+
sudo apt-get update
46+
sudo apt-get install firefox
47+
- name: Checkout Repo
48+
uses: actions/checkout@master
49+
with:
50+
# This makes Actions fetch all Git history so run-changed script can diff properly.
51+
fetch-depth: 0
52+
- name: Set up Node (14)
53+
uses: actions/setup-node@v2
54+
with:
55+
node-version: 14.x
56+
- name: Bump Node memory limit
57+
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
58+
- name: Test setup and yarn install
59+
run: |
60+
cp config/ci.config.json config/project.json
61+
yarn
62+
- name: build
63+
run: yarn build:changed firestore
64+
- name: Run tests if firestore or its dependencies has changed
65+
run: xvfb-run yarn test:changed firestore
66+
env:
67+
BROWSERS: 'Firefox'

0 commit comments

Comments
 (0)