Skip to content

Commit 6556240

Browse files
committed
Merge remote-tracking branch 'origin/markduckworth/or-queries' into markduckworth/or-queries-pr-3
2 parents 9f6e216 + a722abc commit 6556240

File tree

131 files changed

+1878
-823
lines changed

Some content is hidden

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

131 files changed

+1878
-823
lines changed

.changeset/kind-pots-admire.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'@firebase/database': patch
3+
'@firebase/database-compat': patch
4+
'@firebase/database-types': patch
5+
---
6+
7+
Updated type of action parameter for DataSnapshot#forEach

.changeset/nervous-starfishes-crash.md

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

.changeset/rotten-tables-brush.md

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

.changeset/sharp-rules-enjoy.md

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

.changeset/tame-rice-peel.md

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

.changeset/tiny-donuts-draw.md

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

.changeset/witty-windows-unite.md

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

.github/CODEOWNERS

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
# - @lahirumaramba
1717
# - @hsubox76
1818
# - @allspain
19+
# - @dwyfrequency
1920

2021

2122
# ===========================================================
@@ -32,7 +33,7 @@
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
3839
packages/database @maneesht @jsdt @firebase/jssdk-global-approvers

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

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

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

Lines changed: 4 additions & 1 deletion
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 }}

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

.github/workflows/release-pr.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
release:
1111
name: Create Release PR
1212
runs-on: ubuntu-latest
13+
if: ${{ !startsWith(github.event.head_commit.message, 'Version Packages (#') }}
1314
steps:
1415
- name: Checkout Repo
1516
uses: actions/checkout@master

.github/workflows/release-prod.yml

Lines changed: 10 additions & 3 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,8 @@ 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 }}
31+
token: ${{ secrets.OSS_BOT_GITHUB_TOKEN }}
2432
- name: Yarn install
2533
run: yarn
2634
- name: Publish to NPM
@@ -31,7 +39,6 @@ jobs:
3139
# TODO: Make these flags defaults in the release script.
3240
run: yarn release --releaseType Production --ci --skipTests --skipReinstall --ignoreUnstaged
3341
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3542
NPM_TOKEN_ANALYTICS: ${{secrets.NPM_TOKEN_ANALYTICS}}
3643
NPM_TOKEN_ANALYTICS_INTEROP_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_INTEROP_TYPES}}
3744
NPM_TOKEN_ANALYTICS_TYPES: ${{secrets.NPM_TOKEN_ANALYTICS_TYPES}}

.github/workflows/test-all.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: Test All Packages
22

3-
on: push
3+
on:
4+
push:
5+
branches: ['**']
6+
47
env:
58
# make chromedriver detect installed Chrome version and download the corresponding driver
69
DETECT_CHROMEDRIVER_VERSION: true
@@ -17,10 +20,10 @@ jobs:
1720
sudo apt-get update
1821
sudo apt-get install google-chrome-stable
1922
- uses: actions/checkout@v2
20-
- name: Set up Node (14)
23+
- name: Set up Node (16)
2124
uses: actions/setup-node@v2
2225
with:
23-
node-version: 14.x
26+
node-version: 16.x
2427
- name: Bump Node memory limit
2528
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV
2629
- name: Test setup and yarn install
@@ -35,6 +38,8 @@ jobs:
3538
run: |
3639
xvfb-run yarn test:ci
3740
node scripts/print_test_logs.js
41+
env:
42+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
3843
- name: Generate coverage file
3944
run: yarn ci:coverage
4045
- name: Run coverage

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
with:
1414
# This makes Actions fetch all Git history so run-changed script can diff properly.
1515
fetch-depth: 0
16-
- name: Set up Node (14)
16+
- name: Set up Node (16)
1717
uses: actions/setup-node@v2
1818
with:
19-
node-version: 14.x
19+
node-version: 16.x
2020
- name: install Chrome stable
2121
run: |
2222
sudo apt-get update
@@ -30,4 +30,6 @@ jobs:
3030
- name: build
3131
run: yarn build:changed misc
3232
- name: Run tests
33-
run: yarn test:changed misc
33+
run: yarn test:changed misc
34+
env:
35+
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}

.github/workflows/update-api-reports.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@ jobs:
77
name: Update API reports
88
runs-on: ubuntu-latest
99

10+
permissions:
11+
contents: write
1012
steps:
1113
- name: Checkout Repo
1214
uses: actions/checkout@master
1315
with:
1416
# checkout HEAD commit instead of merge commit
1517
ref: ${{ github.event.pull_request.head.sha }}
16-
token: ${{ secrets.OSS_BOT_GITHUB_TOKEN }}
18+
token: ${{ github.token }}
1719
- name: Set up Node (14)
1820
uses: actions/setup-node@v2
1921
with:

common/api-review/analytics.api.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,20 @@ export interface AnalyticsSettings {
2121
config?: GtagConfigParams | EventParams;
2222
}
2323

24+
// @public
25+
export interface ConsentSettings {
26+
// (undocumented)
27+
[key: string]: unknown;
28+
ad_storage?: ConsentStatusString;
29+
analytics_storage?: ConsentStatusString;
30+
functionality_storage?: ConsentStatusString;
31+
personalization_storage?: ConsentStatusString;
32+
security_storage?: ConsentStatusString;
33+
}
34+
35+
// @public
36+
export type ConsentStatusString = 'granted' | 'denied';
37+
2438
// @public
2539
export interface ControlParams {
2640
// (undocumented)
@@ -388,9 +402,15 @@ export interface Promotion {
388402
// @public
389403
export function setAnalyticsCollectionEnabled(analyticsInstance: Analytics, enabled: boolean): void;
390404

405+
// @public
406+
export function setConsent(consentSettings: ConsentSettings): void;
407+
391408
// @public @deprecated
392409
export function setCurrentScreen(analyticsInstance: Analytics, screenName: string, options?: AnalyticsCallOptions): void;
393410

411+
// @public
412+
export function setDefaultEventParameters(customParams: CustomParams): void;
413+
394414
// @public
395415
export function settings(options: SettingsOptions): void;
396416

common/api-review/database.api.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ export class DataSnapshot {
3333
child(path: string): DataSnapshot;
3434
exists(): boolean;
3535
exportVal(): any;
36-
forEach(action: (child: DataSnapshot) => boolean | void): boolean;
36+
forEach(action: (child: DataSnapshot & {
37+
key: string;
38+
}) => boolean | void): boolean;
3739
hasChild(path: string): boolean;
3840
hasChildren(): boolean;
3941
get key(): string | null;

common/api-review/util.api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,11 @@ export function ordinal(i: number): string;
346346
// @public (undocumented)
347347
export type PartialObserver<T> = Partial<Observer<T>>;
348348

349+
// Warning: (ae-internal-missing-underscore) The name "promiseWithTimeout" should be prefixed with an underscore because the declaration is marked as @internal
350+
//
351+
// @internal
352+
export function promiseWithTimeout<T>(promise: Promise<T>, timeInMS?: number): Promise<T>;
353+
349354
// Warning: (ae-missing-release-tag) "querystring" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
350355
//
351356
// @public

config/functions/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"description": "Cloud Functions for Firebase",
44
"dependencies": {
55
"cors": "2.8.5",
6-
"firebase-admin": "10.2.0",
7-
"firebase-functions": "3.21.0"
6+
"firebase-admin": "11.0.0",
7+
"firebase-functions": "3.22.0"
88
},
99
"private": true,
1010
"engines": {
11-
"node": "10"
11+
"node": "16"
1212
}
1313
}

integration/compat-interop/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,20 @@
88
"test:debug": "karma start --browsers Chrome --auto-watch"
99
},
1010
"dependencies": {
11-
"@firebase/app": "0.7.26",
12-
"@firebase/app-compat": "0.1.27",
13-
"@firebase/analytics": "0.7.10",
14-
"@firebase/analytics-compat": "0.1.11",
15-
"@firebase/auth": "0.20.3",
16-
"@firebase/auth-compat": "0.2.16",
17-
"@firebase/functions": "0.8.2",
18-
"@firebase/functions-compat": "0.2.2",
19-
"@firebase/messaging": "0.9.14",
20-
"@firebase/messaging-compat": "0.1.14",
21-
"@firebase/performance": "0.5.10",
22-
"@firebase/performance-compat": "0.1.10",
23-
"@firebase/remote-config": "0.3.9",
24-
"@firebase/remote-config-compat": "0.1.10"
11+
"@firebase/app": "0.7.29",
12+
"@firebase/app-compat": "0.1.30",
13+
"@firebase/analytics": "0.8.0",
14+
"@firebase/analytics-compat": "0.1.13",
15+
"@firebase/auth": "0.20.5",
16+
"@firebase/auth-compat": "0.2.18",
17+
"@firebase/functions": "0.8.4",
18+
"@firebase/functions-compat": "0.2.4",
19+
"@firebase/messaging": "0.9.16",
20+
"@firebase/messaging-compat": "0.1.16",
21+
"@firebase/performance": "0.5.12",
22+
"@firebase/performance-compat": "0.1.12",
23+
"@firebase/remote-config": "0.3.11",
24+
"@firebase/remote-config-compat": "0.1.12"
2525
},
2626
"devDependencies": {
2727
"typescript": "4.2.2"

integration/firebase/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test"
88
},
99
"devDependencies": {
10-
"firebase": "9.8.3",
10+
"firebase": "9.9.1",
1111
"@types/chai": "4.3.1",
1212
"@types/mocha": "9.1.1",
1313
"chai": "4.3.6",

integration/firestore/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"test:memory:debug": "yarn build:memory; karma start --auto-watch --browsers Chrome"
1616
},
1717
"dependencies": {
18-
"@firebase/app": "0.7.26",
19-
"@firebase/firestore": "3.4.10"
18+
"@firebase/app": "0.7.29",
19+
"@firebase/firestore": "3.4.13"
2020
},
2121
"devDependencies": {
2222
"@types/mocha": "9.1.1",

integration/messaging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test:manual": "mocha --exit"
1010
},
1111
"devDependencies": {
12-
"firebase": "9.8.3",
12+
"firebase": "9.9.1",
1313
"chai": "4.3.6",
1414
"chromedriver": "98.0.1",
1515
"express": "4.18.1",

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@
106106
"eslint-plugin-unused-imports": "2.0.0",
107107
"express": "4.18.1",
108108
"find-free-port": "2.0.0",
109-
"firebase-functions": "3.21.0",
110-
"firebase-tools": "9.23.3",
109+
"firebase-functions": "3.22.0",
110+
"firebase-tools": "11.2.2",
111111
"glob": "7.2.0",
112112
"http-server": "14.1.0",
113113
"indexeddbshim": "8.0.0",
@@ -136,7 +136,6 @@
136136
"mocha": "9.2.2",
137137
"mz": "2.7.0",
138138
"npm-run-all": "4.1.5",
139-
"npm-run-path": "4.0.1",
140139
"nyc": "15.1.0",
141140
"ora": "5.4.1",
142141
"prettier": "2.6.2",
@@ -147,7 +146,7 @@
147146
"sinon": "9.2.4",
148147
"sinon-chai": "3.7.0",
149148
"source-map-loader": "1.1.3",
150-
"terser": "5.13.1",
149+
"terser": "5.14.2",
151150
"ts-loader": "8.4.0",
152151
"ts-node": "10.7.0",
153152
"tslint": "6.1.3",

0 commit comments

Comments
 (0)