Skip to content

Commit 7617561

Browse files
committed
Merge branch 'master' into renovate/simple-git-2.x
2 parents 859e8b8 + cc235a5 commit 7617561

Some content is hidden

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

70 files changed

+1063
-647
lines changed

config/functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"dependencies": {
55
"cors": "2.8.5",
66
"firebase-admin": "8.13.0",
7-
"firebase-functions": "3.7.0"
7+
"firebase-functions": "3.8.0"
88
},
99
"private": true,
1010
"engines": {

integration/browserify/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"devDependencies": {
1111
"firebase": "7.17.1",
12-
"@babel/core": "7.10.4",
12+
"@babel/core": "7.10.5",
1313
"@babel/preset-env": "7.10.4",
1414
"browserify": "16.5.1",
1515
"chai": "4.2.0",

integration/firestore/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"mocha": "7.2.0",
3131
"ts-loader": "6.2.2",
3232
"typescript": "3.9.6",
33-
"webpack": "4.43.0",
33+
"webpack": "4.44.0",
3434
"webpack-stream": "5.2.1"
3535
}
3636
}

integration/messaging/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"devDependencies": {
1111
"firebase": "7.17.1",
1212
"chai": "4.2.0",
13-
"chromedriver": "83.0.1",
13+
"chromedriver": "84.0.1",
1414
"express": "4.17.1",
1515
"geckodriver": "1.19.1",
1616
"mocha": "7.2.0",

integration/typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
},
99
"devDependencies": {
1010
"firebase": "7.17.1",
11-
"@babel/core": "7.10.4",
11+
"@babel/core": "7.10.5",
1212
"@babel/preset-env": "7.10.4",
13-
"@types/chai": "4.2.11",
13+
"@types/chai": "4.2.12",
1414
"@types/mocha": "7.0.2",
1515
"chai": "4.2.0",
1616
"karma": "5.1.0",

integration/webpack/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"devDependencies": {
1111
"firebase": "7.17.1",
12-
"@babel/core": "7.10.4",
12+
"@babel/core": "7.10.5",
1313
"@babel/preset-env": "7.10.4",
1414
"chai": "4.2.0",
1515
"karma": "5.1.0",
@@ -20,7 +20,7 @@
2020
"karma-sauce-launcher": "1.2.0",
2121
"karma-spec-reporter": "0.0.32",
2222
"mocha": "7.2.0",
23-
"webpack": "4.43.0",
23+
"webpack": "4.44.0",
2424
"webpack-cli": "3.3.12"
2525
}
2626
}

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222
],
2323
"scripts": {
2424
"dev": "lerna run --parallel --scope @firebase/* --scope firebase --scope rxfire dev",
25-
"build": "lerna run --scope @firebase/* --scope firebase --scope rxfire build",
25+
"build": "lerna run --scope @firebase/app-exp build:deps && lerna run --scope @firebase/* --scope firebase --scope rxfire --ignore @firebase/app-exp build",
2626
"build:exp": "lerna run --scope @firebase/*-exp --scope firebase-exp build",
27-
"build:release": "lerna run --scope @firebase/app-exp build:deps && lerna run --scope @firebase/* --scope firebase --ignore @firebase/*-exp --ignore firebase-exp prepare",
27+
"build:release": "lerna run --scope @firebase/app-exp build:deps && lerna run --scope @firebase/* --scope firebase --scope rxfire --ignore @firebase/*-exp prepare",
2828
"build:exp:release": "yarn --cwd packages/app build:deps && lerna run --scope @firebase/*-exp --scope firebase-exp prepare && yarn --cwd packages-exp/app-exp typings:public",
2929
"link:packages": "lerna exec --scope @firebase/* --scope firebase --scope rxfire -- yarn link",
3030
"stage:packages": "./scripts/prepublish.sh",
@@ -66,14 +66,14 @@
6666
"@changesets/cli": "2.9.2",
6767
"@microsoft/api-documenter": "7.8.21",
6868
"@microsoft/api-extractor": "7.9.2",
69-
"@types/chai": "4.2.11",
69+
"@types/chai": "4.2.12",
7070
"@types/chai-as-promised": "7.1.3",
7171
"@types/child-process-promise": "2.2.1",
7272
"@types/clone": "0.1.30",
7373
"@types/inquirer": "6.5.0",
7474
"@types/long": "4.0.1",
7575
"@types/mocha": "7.0.2",
76-
"@types/node": "12.12.48",
76+
"@types/node": "12.12.53",
7777
"@types/sinon": "9.0.4",
7878
"@types/sinon-chai": "3.2.4",
7979
"@types/tmp": "0.2.0",
@@ -91,18 +91,18 @@
9191
"coveralls": "3.1.0",
9292
"del": "5.1.0",
9393
"dependency-graph": "0.9.0",
94-
"eslint": "7.4.0",
94+
"eslint": "7.5.0",
9595
"eslint-plugin-import": "2.22.0",
9696
"express": "4.17.1",
9797
"find-free-port": "2.0.0",
98-
"firebase-functions": "3.7.0",
99-
"firebase-tools": "8.5.0",
98+
"firebase-functions": "3.8.0",
99+
"firebase-tools": "8.6.0",
100100
"git-rev-sync": "2.0.0",
101101
"glob": "7.1.6",
102102
"http-server": "0.12.3",
103103
"husky": "4.2.5",
104104
"indexeddbshim": "6.6.0",
105-
"inquirer": "7.3.0",
105+
"inquirer": "7.3.3",
106106
"istanbul-instrumenter-loader": "3.0.1",
107107
"js-yaml": "3.14.0",
108108
"karma": "5.1.0",
@@ -130,7 +130,7 @@
130130
"npm-run-all": "4.1.5",
131131
"npm-run-path": "4.0.1",
132132
"nyc": "15.1.0",
133-
"ora": "4.0.4",
133+
"ora": "4.0.5",
134134
"prettier": "2.0.5",
135135
"protractor": "5.4.2",
136136
"rxjs": "6.6.0",
@@ -146,8 +146,8 @@
146146
"typedoc": "0.16.11",
147147
"typescript": "3.9.6",
148148
"watch": "1.0.2",
149-
"webpack": "4.43.0",
150-
"yargs": "15.4.0"
149+
"webpack": "4.44.0",
150+
"yargs": "15.4.1"
151151
},
152152
"husky": {
153153
"hooks": {

packages-exp/app-exp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"license": "Apache-2.0",
4040
"devDependencies": {
41-
"rollup": "2.21.0",
41+
"rollup": "2.23.0",
4242
"rollup-plugin-json": "4.0.0",
4343
"rollup-plugin-replace": "2.2.0",
4444
"rollup-plugin-typescript2": "0.27.1",

packages-exp/firebase-exp/functions/index.cdn.ts renamed to packages-exp/firebase-exp/firestore/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@
1414
* See the License for the specific language governing permissions and
1515
* limitations under the License.
1616
*/
17-
export * from '@firebase/functions-exp';
17+
18+
export * from '@firebase/firestore';
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/**
2+
* @license
3+
* Copyright 2020 Google LLC
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
export * from '@firebase/firestore/lite';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "firebase-exp/firestore/lite",
3+
"main": "dist/index.cjs.js",
4+
"browser": "dist/index.esm.js",
5+
"module": "dist/index.esm.js",
6+
"typings": "dist/firestore/lite/index.d.ts"
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"name": "firebase-exp/firestore",
3+
"main": "dist/index.cjs.js",
4+
"browser": "dist/index.esm.js",
5+
"module": "dist/index.esm.js",
6+
"typings": "dist/firestore/index.d.ts"
7+
}

packages-exp/firebase-exp/gulpfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ var sourcemaps = require('gulp-sourcemaps');
2121

2222
const OUTPUT_FILE = 'firebase.js';
2323
const pkgJson = require('./package.json');
24-
const files = [
25-
...pkgJson.components.map(component => `firebase-${component}.js`)
26-
];
24+
const files = pkgJson.components.map(component => {
25+
const componentName = component.replace('/', '-');
26+
return `firebase-${componentName}.js`;
27+
});
2728

2829
gulp.task('firebase-js', function () {
2930
return gulp

packages-exp/firebase-exp/package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@
3636
},
3737
"dependencies": {
3838
"@firebase/app-exp": "0.0.800",
39-
"@firebase/functions-exp": "0.0.800"
39+
"@firebase/functions-exp": "0.0.800",
40+
"@firebase/firestore": "1.16.1"
4041
},
4142
"devDependencies": {
42-
"rollup": "2.21.0",
43+
"rollup": "2.23.0",
4344
"rollup-plugin-commonjs": "10.1.0",
4445
"rollup-plugin-license": "2.1.0",
4546
"rollup-plugin-node-resolve": "5.2.0",
4647
"rollup-plugin-sourcemaps": "0.6.2",
47-
"rollup-plugin-terser": "5.3.0",
48+
"rollup-plugin-terser": "6.1.0",
4849
"rollup-plugin-typescript2": "0.27.1",
4950
"rollup-plugin-uglify": "6.0.4",
5051
"gulp": "4.0.2",
@@ -54,6 +55,8 @@
5455
},
5556
"components": [
5657
"app",
57-
"functions"
58+
"functions",
59+
"firestore",
60+
"firestore/lite"
5861
]
5962
}

packages-exp/firebase-exp/rollup.config.release.js

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import pkg from './package.json';
2828
import appPkg from './app/package.json';
2929

3030
// remove -exp from dependencies name
31-
const external = Object.keys(pkg.dependencies || {}).map(name =>
31+
const deps = Object.keys(pkg.dependencies || {}).map(name =>
3232
name.replace('-exp', '')
3333
);
3434

@@ -99,7 +99,7 @@ const appBuilds = [
9999
{ file: resolve('app', appPkg.module), format: 'es', sourcemap: true }
100100
],
101101
plugins: [...plugins, typescriptPlugin],
102-
external
102+
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
103103
},
104104
/**
105105
* App UMD Builds
@@ -121,6 +121,9 @@ const componentBuilds = pkg.components
121121
.filter(component => component !== 'app')
122122
.map(component => {
123123
const pkg = require(`./${component}/package.json`);
124+
// It is needed for handling sub modules, for example firestore/lite which should produce firebase-firestore-lite.js
125+
// Otherwise, we will create a directory with '/' in the name.
126+
const componentName = component.replace('/', '-');
124127
return [
125128
{
126129
input: `${component}/index.ts`,
@@ -137,11 +140,14 @@ const componentBuilds = pkg.components
137140
}
138141
],
139142
plugins: [...plugins, typescriptPlugin],
140-
external
143+
external: id => deps.some(dep => id === dep || id.startsWith(`${dep}/`))
141144
},
142145
{
143146
input: `${component}/index.ts`,
144-
output: createUmdOutputConfig(`firebase-${component}.js`, component),
147+
output: createUmdOutputConfig(
148+
`firebase-${componentName}.js`,
149+
componentName
150+
),
145151
plugins: [...plugins, typescriptPluginUMD],
146152
external: ['@firebase/app']
147153
}

packages-exp/functions-exp/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'",
1515
"build": "rollup -c && yarn api-report",
1616
"build:deps": "lerna run --scope @firebase/functions-exp --include-dependencies build",
17+
"build:release": "rollup -c rollup.config.release.js && yarn api-report",
1718
"dev": "rollup -c -w",
1819
"test": "yarn type-check && run-p lint test:browser test:node",
1920
"test:ci": "node ../../scripts/run_tests_in_ci.js",
@@ -22,7 +23,7 @@
2223
"test:browser:debug": "karma start --browsers=Chrome --auto-watch",
2324
"test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'src/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js",
2425
"test:emulator": "env FIREBASE_FUNCTIONS_EMULATOR_ORIGIN=http://localhost:5005 run-p test:node",
25-
"prepare": "rollup -c rollup.config.release.js && yarn api-report",
26+
"prepare": "yarn build:release",
2627
"api-report": "api-extractor run --local --verbose",
2728
"predoc": "node ../../scripts/exp/remove-exp.js temp",
2829
"doc": "api-documenter markdown --input temp --output docs",
@@ -35,7 +36,7 @@
3536
},
3637
"devDependencies": {
3738
"@firebase/app-exp": "0.0.800",
38-
"rollup": "2.21.0",
39+
"rollup": "2.23.0",
3940
"rollup-plugin-typescript2": "0.27.1",
4041
"typescript": "3.9.6"
4142
},

packages/analytics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
"license": "Apache-2.0",
3535
"devDependencies": {
36-
"rollup": "2.21.0",
36+
"rollup": "2.23.0",
3737
"rollup-plugin-commonjs": "10.1.0",
3838
"rollup-plugin-json": "4.0.0",
3939
"rollup-plugin-node-resolve": "5.2.0",

packages/app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"xmlhttprequest": "1.8.0"
3737
},
3838
"devDependencies": {
39-
"rollup": "2.21.0",
39+
"rollup": "2.23.0",
4040
"rollup-plugin-json": "4.0.0",
4141
"rollup-plugin-replace": "2.2.0",
4242
"rollup-plugin-typescript2": "0.27.1",

packages/auth/demo/functions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
"dependencies": {
1212
"firebase-admin": "8.13.0",
13-
"firebase-functions": "3.7.0"
13+
"firebase-functions": "3.8.0"
1414
},
1515
"private": true
1616
}

packages/auth/demo/functions/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,10 @@ [email protected]:
687687
"@google-cloud/firestore" "^3.0.0"
688688
"@google-cloud/storage" "^4.1.2"
689689

690-
firebase-functions@3.7.0:
691-
version "3.7.0"
692-
resolved "https://registry.npmjs.org/firebase-functions/-/firebase-functions-3.7.0.tgz#e9df62f2a46775eb887835839d8b3f39139ba113"
693-
integrity sha512-+ROj2Gs2/KyM+T8jYo7AKaHynFsN49sXbgZMll3zuGa9/8oiDsXp9e1Iy2JMkFmSZg67jeYw5Ue2OSpz0XiqFQ==
690+
firebase-functions@3.8.0:
691+
version "3.8.0"
692+
resolved "https://registry.npmjs.org/firebase-functions/-/firebase-functions-3.8.0.tgz#ac53c615ef365cd9a19604f84ec9835a340c7b76"
693+
integrity sha512-RFvoS7ZcXrk2sQ918czsjv94p4hnSoD0/e4cZ86XFpa1HbNZBI7ZuSgBCzRvlv6dJ1ArytAL13NpB1Bp2tJ6Yg==
694694
dependencies:
695695
"@types/express" "4.17.3"
696696
cors "^2.8.5"

packages/component/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
},
2828
"license": "Apache-2.0",
2929
"devDependencies": {
30-
"rollup": "2.21.0",
30+
"rollup": "2.23.0",
3131
"rollup-plugin-typescript2": "0.27.1",
3232
"typescript": "3.9.6"
3333
},

packages/database/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"devDependencies": {
3737
"@firebase/app": "0.6.9",
3838
"@firebase/app-types": "0.6.1",
39-
"rollup": "2.21.0",
39+
"rollup": "2.23.0",
4040
"rollup-plugin-typescript2": "0.27.1",
4141
"typescript": "3.9.6"
4242
},

packages/firebase/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@
6161
"@firebase/util": "0.3.0"
6262
},
6363
"devDependencies": {
64-
"rollup": "2.21.0",
64+
"rollup": "2.23.0",
6565
"rollup-plugin-commonjs": "10.1.0",
6666
"rollup-plugin-license": "2.1.0",
6767
"rollup-plugin-node-resolve": "5.2.0",
6868
"rollup-plugin-sourcemaps": "0.6.2",
69-
"rollup-plugin-terser": "5.3.0",
69+
"rollup-plugin-terser": "6.1.0",
7070
"rollup-plugin-typescript2": "0.27.1",
7171
"rollup-plugin-uglify": "6.0.4",
7272
"typescript": "3.9.6"

0 commit comments

Comments
 (0)