diff --git a/.github/workflows/test-all.yml b/.github/workflows/test-all.yml index 4d75cd8d5ec..e9c1d2e4896 100644 --- a/.github/workflows/test-all.yml +++ b/.github/workflows/test-all.yml @@ -7,6 +7,10 @@ on: env: # make chromedriver detect installed Chrome version and download the corresponding driver DETECT_CHROMEDRIVER_VERSION: true + # The default behavior of chromedriver uses the older Chrome download URLs. We need to override + # the beahvior to use the new URLs. + CHROMEDRIVER_CDNURL: https://googlechromelabs.github.io/ + CHROMEDRIVER_CDNBINARIESURL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/ artifactRetentionDays: 14 jobs: @@ -17,14 +21,8 @@ jobs: # Install Chrome so the correct version of webdriver can be installed by chromedriver when # setting up the repo. This must be done to build and execute Auth properly. - name: install Chrome stable - # Pin Chrome version 114.0.5735.90-1 to avoid install failures like "No such object: chromedriver/LATEST_RELEASE_115.0.5790". - # The failure happens because https://chromedriver.chromium.org/downloads only goes up to version 114. - # TODO(b/297380444) Update script to install the latest Chrome and ChromeDriver. run: | - sudo apt-get update - sudo apt-get install wget - sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb - sudo apt-get install -f ./google-chrome-stable_114.0.5735.90-1_amd64.deb --allow-downgrades + npx @puppeteer/browsers install chrome@stable - uses: actions/checkout@v3 - name: Set up Node (16) uses: actions/setup-node@v3 @@ -101,16 +99,11 @@ jobs: needs: build runs-on: ubuntu-latest steps: - # install Chrome so the correct version of webdriver can be installed by chromedriver when setting up the repo - - name: install Chrome stable - # Pin Chrome version 114.0.5735.90-1 to avoid install failures like "No such object: chromedriver/LATEST_RELEASE_115.0.5790". - # The failure happens because https://chromedriver.chromium.org/downloads only goes up to version 114. - # TODO(b/297380444) Update script to install the latest Chrome and ChromeDriver. - run: | - sudo apt-get update - sudo apt-get install wget - sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb - sudo apt-get install -f ./google-chrome-stable_114.0.5735.90-1_amd64.deb --allow-downgrades + # install Chrome first, so the correct version of webdriver can be installed by chromedriver + # when setting up the repo + - name: install Chrome stable + run: | + npx @puppeteer/browsers install chrome@stable - name: Download build archive uses: actions/download-artifact@v3 with: diff --git a/.github/workflows/test-changed-auth.yml b/.github/workflows/test-changed-auth.yml index 03829022c84..61582abbf7d 100644 --- a/.github/workflows/test-changed-auth.yml +++ b/.github/workflows/test-changed-auth.yml @@ -5,6 +5,10 @@ on: pull_request env: # make chromedriver detect installed Chrome version and download the corresponding driver DETECT_CHROMEDRIVER_VERSION: true + # The default behavior of chromedriver uses the older Chrome download URLs. We need to override + # the beahvior to use the new URLs. + CHROMEDRIVER_CDNURL: https://googlechromelabs.github.io/ + CHROMEDRIVER_CDNBINARIESURL: https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing/ jobs: test-chrome: @@ -12,25 +16,20 @@ jobs: runs-on: ubuntu-latest steps: - # install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo + # install Chrome first, so the correct version of webdriver can be installed by chromedriver + # when setting up the repo - name: install Chrome stable - # Pin Chrome version 114.0.5735.90-1 to avoid install failures like "No such object: chromedriver/LATEST_RELEASE_115.0.5790". - # The failure happens because https://chromedriver.chromium.org/downloads only goes up to version 114. - # TODO(b/297380444) Update script to install the latest Chrome and ChromeDriver. run: | - sudo apt-get update - sudo apt-get install wget - sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb - sudo apt-get install -f ./google-chrome-stable_114.0.5735.90-1_amd64.deb --allow-downgrades + npx @puppeteer/browsers install chrome@stable - name: Checkout Repo uses: actions/checkout@master with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: Bump Node memory limit run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Test setup and yarn install @@ -49,27 +48,22 @@ jobs: runs-on: ubuntu-20.04 - # Pin Chrome version 114.0.5735.90-1 to avoid install failures like "No such object: chromedriver/LATEST_RELEASE_115.0.5790". - # The failure happens because https://chromedriver.chromium.org/downloads only goes up to version 114. - # TODO(b/297380444) Update script to install the latest Chrome and ChromeDriver. steps: - name: install Firefox stable run: | sudo apt-get update sudo apt-get install firefox sudo apt-get install wget - sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb - sudo apt-get install -f ./google-chrome-stable_114.0.5735.90-1_amd64.deb --allow-downgrades - name: Checkout Repo uses: actions/checkout@master with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: Bump Node memory limit run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Test setup and yarn install diff --git a/.github/workflows/test-changed-fcm-integration.yml b/.github/workflows/test-changed-fcm-integration.yml index 9ce62c941fe..a2bf4117634 100644 --- a/.github/workflows/test-changed-fcm-integration.yml +++ b/.github/workflows/test-changed-fcm-integration.yml @@ -22,10 +22,10 @@ jobs: with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: Bump Node memory limit run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Test setup and yarn install diff --git a/.github/workflows/test-changed-firestore-integration.yml b/.github/workflows/test-changed-firestore-integration.yml index d250e3f3392..c45a706d80d 100644 --- a/.github/workflows/test-changed-firestore-integration.yml +++ b/.github/workflows/test-changed-firestore-integration.yml @@ -13,10 +13,10 @@ jobs: with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: install Chrome stable run: | sudo apt-get update diff --git a/.github/workflows/test-changed-firestore.yml b/.github/workflows/test-changed-firestore.yml index f4b76db92c4..f8cc135380e 100644 --- a/.github/workflows/test-changed-firestore.yml +++ b/.github/workflows/test-changed-firestore.yml @@ -19,10 +19,10 @@ jobs: with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: install Chrome stable run: | sudo apt-get update @@ -68,10 +68,10 @@ jobs: needs: build if: ${{ needs.build.outputs.changed == 'true'}} steps: - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: install Chrome stable run: | sudo apt-get update @@ -98,10 +98,10 @@ jobs: needs: build if: ${{ needs.build.outputs.changed == 'true'}} steps: - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: install Chrome stable run: | sudo apt-get update @@ -132,10 +132,10 @@ jobs: run: | sudo apt-get update sudo apt-get install firefox - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: Download build archive uses: actions/download-artifact@v3 with: @@ -173,10 +173,10 @@ jobs: name: build.tar.gz - name: Unzip build artifact run: tar xf build.tar.gz - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: Bump Node memory limit run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV - name: Test setup and yarn install diff --git a/.github/workflows/test-changed.yml b/.github/workflows/test-changed.yml index 8a371e560e0..fa35c64c5e0 100644 --- a/.github/workflows/test-changed.yml +++ b/.github/workflows/test-changed.yml @@ -13,10 +13,10 @@ jobs: with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: install Chrome stable run: | sudo apt-get update @@ -44,10 +44,10 @@ jobs: uses: actions/checkout@master with: fetch-depth: 0 - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: install Firefox stable run: | sudo apt-get update diff --git a/.github/workflows/test-firebase-integration.yml b/.github/workflows/test-firebase-integration.yml index 4b96e0bba63..1f22a850333 100644 --- a/.github/workflows/test-firebase-integration.yml +++ b/.github/workflows/test-firebase-integration.yml @@ -13,10 +13,10 @@ jobs: with: # This makes Actions fetch all Git history so run-changed script can diff properly. fetch-depth: 0 - - name: Set up Node (14) + - name: Set up Node (16) uses: actions/setup-node@v3 with: - node-version: 14.x + node-version: 16.x - name: install Chrome stable run: | sudo apt-get update diff --git a/integration/messaging/package.json b/integration/messaging/package.json index f3e33cab0ef..f22a5621147 100644 --- a/integration/messaging/package.json +++ b/integration/messaging/package.json @@ -11,7 +11,7 @@ "devDependencies": { "firebase": "10.3.1", "chai": "4.3.7", - "chromedriver": "98.0.1", + "chromedriver": "114.0.2", "express": "4.18.2", "geckodriver": "2.0.4", "mocha": "9.2.2", diff --git a/packages/analytics-compat/package.json b/packages/analytics-compat/package.json index 85ec2676c9f..7d5f931f150 100644 --- a/packages/analytics-compat/package.json +++ b/packages/analytics-compat/package.json @@ -45,7 +45,7 @@ "build:deps": "lerna run --scope @firebase/analytics-compat --include-dependencies build", "build:release": "yarn build && yarn add-compat-overloads", "dev": "rollup -c -w", - "test": "run-p lint test:browser", + "test": "run-p --npm-path npm lint test:browser", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:browser", "test:browser": "karma start --single-run", "test:browser:debug": "karma start --browsers=Chrome --auto-watch", diff --git a/packages/analytics/package.json b/packages/analytics/package.json index 652d9777204..b81405be385 100644 --- a/packages/analytics/package.json +++ b/packages/analytics/package.json @@ -26,8 +26,8 @@ "build:release": "yarn build && yarn typings:public", "build:deps": "lerna run --scope @firebase/analytics --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:all", - "test:all": "run-p test:browser test:integration", + "test": "run-p --npm-path npm lint test:all", + "test:all": "run-p --npm-path npm test:browser test:integration", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", "test:browser": "karma start --single-run --nocache", "test:integration": "karma start ./karma.integration.conf.js --single-run --nocache", diff --git a/packages/app-check-compat/package.json b/packages/app-check-compat/package.json index 2a9a42c6403..e88d6766c9d 100644 --- a/packages/app-check-compat/package.json +++ b/packages/app-check-compat/package.json @@ -26,7 +26,7 @@ "build:release": "yarn build && yarn add-compat-overloads", "build:deps": "lerna run --scope @firebase/app-check-compat --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:browser", + "test": "run-p --npm-path npm lint test:browser", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:browser", "test:browser": "karma start --single-run --nocache", "add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../app-check/dist/app-check-public.d.ts -o dist/src/index.d.ts -a -r AppCheck:FirebaseAppCheck -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/app-check" diff --git a/packages/app-check/package.json b/packages/app-check/package.json index 3201429446f..e70951a5d4d 100644 --- a/packages/app-check/package.json +++ b/packages/app-check/package.json @@ -26,7 +26,7 @@ "build:release": "yarn build && yarn api-report && yarn typings:public", "build:deps": "lerna run --scope @firebase/app-check --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:browser", + "test": "run-p --npm-path npm lint test:browser", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:browser", "test:browser": "karma start --single-run --nocache", "api-report": "api-extractor run --local --verbose", diff --git a/packages/app-compat/package.json b/packages/app-compat/package.json index e05a2b03546..93c9d3d7e2f 100644 --- a/packages/app-compat/package.json +++ b/packages/app-compat/package.json @@ -29,8 +29,8 @@ "build": "rollup -c && yarn api-report", "build:deps": "lerna run --scope @firebase/app-compat --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:all", - "test:all": "run-p test:browser test:node", + "test": "run-p --npm-path npm lint test:all", + "test:all": "run-p --npm-path npm test:browser test:node", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", "test:browser": "karma start --single-run", "test:browser:debug": "karma start --browsers Chrome --auto-watch", diff --git a/packages/app/package.json b/packages/app/package.json index 80c602e4a82..21dbc0940e7 100644 --- a/packages/app/package.json +++ b/packages/app/package.json @@ -26,9 +26,9 @@ "build:release": "rollup -c rollup.config.release.js && yarn api-report && yarn typings:public", "build:deps": "lerna run --scope @firebase/app --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:all", + "test": "run-p --npm-path npm lint test:all", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", - "test:all": "run-p test:browser test:node", + "test:all": "run-p --npm-path npm test:browser test:node", "test:browser": "karma start --single-run", "test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha src/**/*.test.ts --config ../../config/mocharc.node.js", "api-report": "api-extractor run --local --verbose", diff --git a/packages/auth-compat/package.json b/packages/auth-compat/package.json index ea16b71c98f..d43f34aafd1 100644 --- a/packages/auth-compat/package.json +++ b/packages/auth-compat/package.json @@ -34,8 +34,8 @@ "build:deps": "lerna run --scope @firebase/auth-compat --include-dependencies build", "build:release": "yarn build && yarn add-compat-overloads", "dev": "rollup -c -w", - "test": "run-p lint test:all", - "test:all": "run-p test:browser test:node test:integration", + "test": "run-p --npm-path npm lint test:all", + "test:all": "run-p --npm-path npm test:browser test:node test:integration", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", "test:browser": "karma start --single-run", "test:browser:unit": "karma start --single-run --unit", @@ -43,7 +43,7 @@ "test:node": "ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts", "test:node:integration": "ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts --integration", "test:webdriver": "rollup -c test/integration/webdriver/static/rollup.config.js && ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts --webdriver", - "test:integration": "firebase emulators:exec --project demo-emulatedproject --only auth \"run-s test:browser:integration test:node:integration test:webdriver\"", + "test:integration": "firebase emulators:exec --project demo-emulatedproject --only auth \"run-s --npm-path npm test:browser:integration test:node:integration test:webdriver\"", "add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../auth/dist/auth-public.d.ts -o dist/auth-compat/index.d.ts -a -r Auth:types.FirebaseAuth -r User:types.User -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/auth" }, "peerDependencies": { diff --git a/packages/auth/package.json b/packages/auth/package.json index 33735b81b31..967aa7b4bdc 100644 --- a/packages/auth/package.json +++ b/packages/auth/package.json @@ -78,11 +78,11 @@ "build:release": "yarn build && yarn typings:public", "build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts && ls scripts/*.js | xargs -I % sh -c 'terser % -o %'", "dev": "rollup -c -w", - "test": "run-p lint test:all", - "test:all": "run-p test:browser:unit test:node:unit test:integration test:browser:integration:prodbackend", - "test:integration": "firebase emulators:exec --project emulatedproject --only auth \"run-s test:browser:integration:local test:node:integration:local test:webdriver\"", + "test": "run-p --npm-path npm lint test:all", + "test:all": "run-p --npm-path npm test:browser:unit test:node:unit test:integration test:browser:integration:prodbackend", + "test:integration": "firebase emulators:exec --project emulatedproject --only auth \"run-s --npm-path npm test:browser:integration:local test:node:integration:local test:webdriver\"", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", - "test:integration:local": "run-s test:node:integration:local test:browser:integration:local test:webdriver", + "test:integration:local": "run-s --npm-path npm test:node:integration:local test:browser:integration:local test:webdriver", "test:browser": "karma start --single-run --local", "test:browser:unit": "karma start --single-run --unit", "test:browser:integration": "karma start --single-run --integration", @@ -92,7 +92,7 @@ "test:browser:unit:debug": "karma start --auto-watch --unit", "test:cordova": "karma start --single-run --cordova", "test:cordova:debug": "karma start --auto-watch --cordova", - "test:node": "run-s test:node:unit test:node:integration:local", + "test:node": "run-s --npm-path npm test:node:unit test:node:integration:local", "test:node:unit": "ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts", "test:node:integration": "ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts --integration", "test:node:integration:local": "ts-node -O '{\"module\": \"commonjs\", \"target\": \"es6\"}' scripts/run_node_tests.ts --integration --local", @@ -124,7 +124,7 @@ "@rollup/plugin-json": "4.1.0", "@rollup/plugin-strip": "2.1.0", "@types/express": "4.17.17", - "chromedriver": "98.0.1", + "chromedriver": "114.0.2", "rollup": "2.79.1", "rollup-plugin-sourcemaps": "0.6.3", "rollup-plugin-typescript2": "0.31.2", diff --git a/packages/component/package.json b/packages/component/package.json index 90d3efe9231..055d6b81bc6 100644 --- a/packages/component/package.json +++ b/packages/component/package.json @@ -25,8 +25,8 @@ "build": "rollup -c", "build:deps": "lerna run --scope @firebase/component --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:all", - "test:all": "run-p test:browser test:node", + "test": "run-p --npm-path npm lint test:all", + "test:all": "run-p --npm-path npm test:browser test:node", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", "test:browser": "karma start --single-run", "test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha src/**/*.test.ts --config ../../config/mocharc.node.js" diff --git a/packages/database-compat/package.json b/packages/database-compat/package.json index 605a6739622..f5331dfd1fd 100644 --- a/packages/database-compat/package.json +++ b/packages/database-compat/package.json @@ -43,7 +43,7 @@ "build:release": "yarn build && yarn add-compat-overloads", "build:deps": "lerna run --scope @firebase/database-compat --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:browser test:node", + "test": "run-p --npm-path npm lint test:browser test:node", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test", "test:browser": "karma start --single-run", "test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js", diff --git a/packages/database/package.json b/packages/database/package.json index ed9e88910d9..ad9601294c7 100644 --- a/packages/database/package.json +++ b/packages/database/package.json @@ -35,9 +35,9 @@ "build": "rollup -c rollup.config.js && yarn api-report", "build:deps": "lerna run --scope @firebase/'{app,database}' --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:emulator", + "test": "run-p --npm-path npm lint test:emulator", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:emulator", - "test:all": "run-p lint test:browser test:node", + "test:all": "run-p --npm-path npm lint test:browser test:node", "test:browser": "karma start --single-run", "test:node": "TS_NODE_FILES=true TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha 'test/{,!(browser)/**/}*.test.ts' --file src/index.node.ts --config ../../config/mocharc.node.js", "test:emulator": "ts-node --compiler-options='{\"module\":\"commonjs\"}' ../../scripts/emulator-testing/database-test-runner.ts", diff --git a/packages/firestore-compat/package.json b/packages/firestore-compat/package.json index 18099689cd4..fddda653e1b 100644 --- a/packages/firestore-compat/package.json +++ b/packages/firestore-compat/package.json @@ -36,9 +36,9 @@ "build:console": "node tools/console.build.js", "build:deps": "lerna run --scope @firebase/firestore-compat --include-dependencies build", "build:release": "yarn build && yarn add-compat-overloads", - "test": "run-s lint test:all", + "test": "run-s --npm-path npm lint test:all", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", - "test:all": "run-p test:browser test:node", + "test:all": "run-p --npm-path npm test:browser test:node", "test:browser": "karma start --single-run", "test:node": "mocha --require babel-register.js --require src/index.node.ts --timeout 5000 'test/*.test.ts'", "add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../firestore/dist/index.d.ts -o dist/src/index.d.ts -a -r Firestore:types.FirebaseFirestore -r CollectionReference:types.CollectionReference -r DocumentReference:types.DocumentReference -r Query:types.Query -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/firestore" diff --git a/packages/firestore/package.json b/packages/firestore/package.json index 2d6cae5ecba..67585831d8e 100644 --- a/packages/firestore/package.json +++ b/packages/firestore/package.json @@ -9,7 +9,7 @@ "scripts": { "bundle": "rollup -c", "prebuild": "tsc --emitDeclarationOnly --declaration -p tsconfig.json; yarn api-report", - "build": "run-p build:lite build:main", + "build": "run-p --npm-path npm build:lite build:main", "build:release": "yarn build && yarn typings:public", "build:scripts": "tsc -moduleResolution node --module commonjs scripts/*.ts && ls scripts/*.js | xargs -I % sh -c 'terser % -o %'", "build:deps": "lerna run --scope @firebase/firestore --include-dependencies build", @@ -27,10 +27,10 @@ "test:lite:browser": "karma start --single-run --lite", "test:lite:browser:nameddb": "karma start --single-run --lite --databaseId=test-db", "test:lite:browser:debug": "karma start --browsers=Chrome --lite --auto-watch", - "test": "run-s lint test:all", + "test": "run-s --npm-path npm lint test:all", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all:ci", - "test:all:ci": "run-s test:browser test:travis test:lite:browser test:browser:prod:nameddb test:lite:browser:nameddb", - "test:all": "run-p test:browser test:lite:browser test:travis test:minified test:browser:prod:nameddb test:lite:browser:nameddb", + "test:all:ci": "run-s --npm-path npm test:browser test:travis test:lite:browser test:browser:prod:nameddb test:lite:browser:nameddb", + "test:all": "run-p --npm-path npm test:browser test:lite:browser test:travis test:minified test:browser:prod:nameddb test:lite:browser:nameddb", "test:browser": "karma start --single-run", "test:browser:emulator:debug": "karma start --browsers=Chrome --targetBackend=emulator", "test:browser:emulator": "karma start --single-run --targetBackend=emulator", @@ -49,7 +49,7 @@ "api-report:main": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore --packageRoot . --typescriptDts ./dist/firestore/src/index.d.ts --rollupDts ./dist/private.d.ts --untrimmedRollupDts ./dist/internal.d.ts --publicDts ./dist/index.d.ts", "api-report:lite": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' ts-node ../../repo-scripts/prune-dts/extract-public-api.ts --package firestore-lite --packageRoot . --typescriptDts ./dist/firestore/lite/index.d.ts --rollupDts ./dist/lite/private.d.ts --untrimmedRollupDts ./dist/lite/internal.d.ts --publicDts ./dist/lite/index.d.ts", "api-report:api-json": "rm -rf temp && api-extractor run --local --verbose", - "api-report": "run-s api-report:main api-report:lite && yarn api-report:api-json", + "api-report": "run-s --npm-path npm api-report:main api-report:lite && yarn api-report:api-json", "doc": "api-documenter markdown --input temp --output docs", "typings:public": "node ../../scripts/build/use_typings.js ./dist/index.d.ts" }, diff --git a/packages/functions-compat/package.json b/packages/functions-compat/package.json index 4944b464948..d7a91028c4a 100644 --- a/packages/functions-compat/package.json +++ b/packages/functions-compat/package.json @@ -52,13 +52,13 @@ "build:deps": "lerna run --scope @firebase/functions-compat --include-dependencies build", "build:release": "rollup -c rollup.config.release.js && yarn add-compat-overloads", "dev": "rollup -c -w", - "test": "run-p lint test:all", + "test": "run-p --npm-path npm lint test:all", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", - "test:all": "run-p test:browser test:node", + "test:all": "run-p --npm-path npm test:browser test:node", "test:browser": "karma start --single-run", "test:browser:debug": "karma start --browsers=Chrome --auto-watch", "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", - "test:emulator": "env FIREBASE_FUNCTIONS_HOST=http://localhost FIREBASE_FUNCTIONS_PORT=5005 run-p test:node", + "test:emulator": "env FIREBASE_FUNCTIONS_HOST=http://localhost FIREBASE_FUNCTIONS_PORT=5005 run-p --npm-path npm test:node", "add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../functions/dist/functions-public.d.ts -o dist/src/index.d.ts -a -r Functions:types.FirebaseFunctions -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/functions" }, "typings": "dist/src/index.d.ts", diff --git a/packages/functions/package.json b/packages/functions/package.json index fb350c19c56..7e148edb0d4 100644 --- a/packages/functions/package.json +++ b/packages/functions/package.json @@ -33,13 +33,13 @@ "build:deps": "lerna run --scope @firebase/functions --include-dependencies build", "build:release": "rollup -c rollup.config.release.js && yarn api-report", "dev": "rollup -c -w", - "test": "run-p lint test:all", + "test": "run-p --npm-path npm lint test:all", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", - "test:all": "run-p test:browser test:node", + "test:all": "run-p --npm-path npm test:browser test:node", "test:browser": "karma start --single-run", "test:browser:debug": "karma start --browsers=Chrome --auto-watch", "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", - "test:emulator": "env FIREBASE_FUNCTIONS_EMULATOR_ORIGIN=http://localhost:5005 run-p test:node", + "test:emulator": "env FIREBASE_FUNCTIONS_EMULATOR_ORIGIN=http://localhost:5005 run-p --npm-path npm test:node", "api-report": "api-extractor run --local --verbose", "doc": "api-documenter markdown --input temp --output docs", "build:doc": "yarn build && yarn doc", diff --git a/packages/logger/package.json b/packages/logger/package.json index 211ae9179ae..470e0e2367b 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -24,9 +24,9 @@ "build": "rollup -c", "build:deps": "lerna run --scope @firebase/logger --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:all", + "test": "run-p --npm-path npm lint test:all", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", - "test:all": "run-p test:browser test:node", + "test:all": "run-p --npm-path npm test:browser test:node", "test:browser": "karma start --single-run", "test:browser:debug": "karma start --browsers Chrome --auto-watch", "test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha test/**/*.test.* --config ../../config/mocharc.node.js" diff --git a/packages/messaging-compat/package.json b/packages/messaging-compat/package.json index fd1fe6129da..770ce950ea3 100644 --- a/packages/messaging-compat/package.json +++ b/packages/messaging-compat/package.json @@ -28,7 +28,7 @@ "build:deps": "lerna run --scope @firebase/'messaging-compat' --include-dependencies build", "build:release": "yarn build && yarn add-compat-overloads", "dev": "rollup -c -w", - "test": "run-p test:karma", + "test": "run-p --npm-path npm test:karma", "test:ci": "node ../../scripts/run_tests_in_ci.js", "test:karma": "karma start --single-run", "test:debug": "karma start --browsers=Chrome --auto-watch", diff --git a/packages/messaging/package.json b/packages/messaging/package.json index 5181215c09e..8ec2c5d7498 100644 --- a/packages/messaging/package.json +++ b/packages/messaging/package.json @@ -36,8 +36,8 @@ "build:deps": "lerna run --scope @firebase/'{app,messaging}' --include-dependencies build", "build:release": "yarn build && yarn typings:public", "dev": "rollup -c -w", - "test": "run-p test:karma type-check lint ", - "test:integration": "run-p test:karma type-check lint && cd ../../integration/messaging && npm run-script test", + "test": "run-p --npm-path npm test:karma type-check lint ", + "test:integration": "run-p --npm-path npm test:karma type-check lint && cd ../../integration/messaging && npm run-script test", "test:ci": "node ../../scripts/run_tests_in_ci.js", "test:karma": "karma start --single-run", "test:debug": "karma start --browsers=Chrome --auto-watch", diff --git a/packages/performance-compat/package.json b/packages/performance-compat/package.json index 4a501ac3e4d..a292817e24d 100644 --- a/packages/performance-compat/package.json +++ b/packages/performance-compat/package.json @@ -26,8 +26,8 @@ "build:release": "rollup -c rollup.config.release.js && yarn add-compat-overloads", "build:deps": "lerna run --scope @firebase/performance-compat --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:all", - "test:all": "run-p test:browser", + "test": "run-p --npm-path npm lint test:all", + "test:all": "run-p --npm-path npm test:browser", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", "test:browser": "karma start --single-run", "test:browser:debug": "karma start --browsers Chrome --auto-watch", diff --git a/packages/performance/package.json b/packages/performance/package.json index 3d41af11d87..c88e7f6e471 100644 --- a/packages/performance/package.json +++ b/packages/performance/package.json @@ -26,7 +26,7 @@ "build:deps": "lerna run --scope @firebase/performance --include-dependencies build", "build:release": "yarn build", "dev": "rollup -c -w", - "test": "run-p lint test:browser", + "test": "run-p --npm-path npm lint test:browser", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:browser", "test:browser": "karma start --single-run", "test:debug": "karma start --browsers=Chrome --auto-watch", diff --git a/packages/remote-config-compat/package.json b/packages/remote-config-compat/package.json index 9db1ba822d2..383be5f8b0f 100644 --- a/packages/remote-config-compat/package.json +++ b/packages/remote-config-compat/package.json @@ -26,8 +26,8 @@ "build:release": "yarn build && yarn add-compat-overloads", "build:deps": "lerna run --scope @firebase/remote-config-compat --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:all", - "test:all": "run-p test:browser", + "test": "run-p --npm-path npm lint test:all", + "test:all": "run-p --npm-path npm test:browser", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", "test:browser": "karma start --single-run", "test:browser:debug": "karma start --browsers Chrome --auto-watch", diff --git a/packages/remote-config/package.json b/packages/remote-config/package.json index 2ee930dd9e2..be35a6e8ff1 100644 --- a/packages/remote-config/package.json +++ b/packages/remote-config/package.json @@ -26,7 +26,7 @@ "build:deps": "lerna run --scope @firebase/remote-config --include-dependencies build", "build:release": "yarn build && yarn typings:public", "dev": "rollup -c -w", - "test": "run-p lint test:browser", + "test": "run-p --npm-path npm lint test:browser", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:browser", "test:browser": "karma start --single-run", "test:debug": "karma start --browsers=Chrome --auto-watch", diff --git a/packages/storage-compat/package.json b/packages/storage-compat/package.json index b0cbab2ad7d..93c78cf5557 100644 --- a/packages/storage-compat/package.json +++ b/packages/storage-compat/package.json @@ -24,7 +24,7 @@ "build": "rollup -c rollup.config.js", "build:deps": "lerna run --scope @firebase/storage-compat --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p test:browser test:node lint", + "test": "run-p --npm-path npm test:browser test:node lint", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:browser test:node", "test:browser:unit": "karma start --single-run --unit", "test:browser:integration": "karma start --single-run --integration", diff --git a/packages/storage/package.json b/packages/storage/package.json index 13641dff9a1..222483aa9a2 100644 --- a/packages/storage/package.json +++ b/packages/storage/package.json @@ -33,7 +33,7 @@ "build": "rollup -c rollup.config.js && yarn api-report", "build:deps": "lerna run --scope @firebase/storage --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p test:browser test:node lint", + "test": "run-p --npm-path npm test:browser test:node lint", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:browser test:node", "test:browser:unit": "karma start --single-run --unit", "test:browser:integration": "karma start --single-run --integration", diff --git a/packages/template/package.json b/packages/template/package.json index 2abdc68b936..d2ccf461712 100644 --- a/packages/template/package.json +++ b/packages/template/package.json @@ -33,9 +33,9 @@ "build": "rollup -c", "build:deps": "lerna run --scope @firebase/template --include-dependencies build", "dev": "rollup -c -w", - "test": "run-p lint test:all", + "test": "run-p --npm-path npm lint test:all", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", - "test:all": "run-p test:browser test:node", + "test:all": "run-p --npm-path npm test:browser test:node", "test:browser": "karma start --single-run", "test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha src/**/*.test.* --config ../../config/mocharc.node.js" }, diff --git a/packages/util/package.json b/packages/util/package.json index e95206cfaf9..80e3b6e9ed8 100644 --- a/packages/util/package.json +++ b/packages/util/package.json @@ -33,9 +33,9 @@ "build:deps": "lerna run --scope @firebase/util --include-dependencies build", "dev": "rollup -c -w", "prettier": "prettier --write 'src/**/*.ts' 'test/**/*.ts'", - "test": "run-p lint test:all", + "test": "run-p --npm-path npm lint test:all", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:all", - "test:all": "run-p test:browser test:node", + "test:all": "run-p --npm-path npm test:browser test:node", "test:browser": "karma start --single-run", "test:node": "TS_NODE_CACHE=NO TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha test/**/*.test.* --config ../../config/mocharc.node.js", "api-report": "api-extractor run --local --verbose", diff --git a/repo-scripts/size-analysis/package.json b/repo-scripts/size-analysis/package.json index 4aa66f15389..fdd11ae8c44 100644 --- a/repo-scripts/size-analysis/package.json +++ b/repo-scripts/size-analysis/package.json @@ -12,7 +12,7 @@ "scripts": { "lint": "eslint -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'", "lint:fix": "eslint --fix -c .eslintrc.js '**/*.ts' --ignore-path '../../.gitignore'", - "test": "run-p lint test:node", + "test": "run-p --npm-path npm lint test:node", "test:ci": "node ../../scripts/run_tests_in_ci.js -s test:node", "pretest:node": "tsc -p test/test-inputs && rollup -c", "test:node": "TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\"}' nyc --reporter lcovonly -- mocha **/*.test.ts --config ../../config/mocharc.node.js --timeout 60000", diff --git a/yarn.lock b/yarn.lock index 38a512364ad..23e5715084b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3137,10 +3137,10 @@ dependencies: defer-to-connect "^2.0.0" -"@testim/chrome-version@^1.1.2": - version "1.1.2" - resolved "https://registry.npmjs.org/@testim/chrome-version/-/chrome-version-1.1.2.tgz#092005c5b77bd3bb6576a4677110a11485e11864" - integrity sha512-1c4ZOETSRpI0iBfIFUqU4KqwBAB2lHUAlBjZz/YqOHqwM9dTTzjV6Km0ZkiEiSCx/tLr1BtESIKyWWMww+RUqw== +"@testim/chrome-version@^1.1.3": + version "1.1.3" + resolved "https://registry.npmjs.org/@testim/chrome-version/-/chrome-version-1.1.3.tgz#fbb68696899d7b8c1b9b891eded9c04fe2cd5529" + integrity sha512-g697J3WxV/Zytemz8aTuKjTGYtta9+02kva3C1xc7KXB8GdbfE1akGJIsZLyY/FSh2QrnE+fiB7vmWU3XNcb6A== "@tootallnate/once@1": version "1.1.2" @@ -4660,12 +4660,14 @@ aws4@^1.8.0: resolved "https://registry.npmjs.org/aws4/-/aws4-1.11.0.tgz#d61f46d83b2519250e2784daf5b09479a8b41c59" integrity sha512-xh1Rl34h6Fi1DC2WWKfxUTVqRsNnr6LsKz2+hfwDxQJWmrx8+c7ylaqBMcHfl1U1r2dsifOvKX3LQuLNZ+XSvA== -axios@^0.24.0: - version "0.24.0" - resolved "https://registry.npmjs.org/axios/-/axios-0.24.0.tgz#804e6fa1e4b9c5288501dd9dff56a7a0940d20d6" - integrity sha512-Q6cWsys88HoPgAaFAVUb0WpPk0O8iTeisR9IMqy9G8AbO4NlpVknrnQS03zzF9PGAWgO3cgletO3VjV/P7VztA== +axios@^1.4.0: + version "1.5.0" + resolved "https://registry.npmjs.org/axios/-/axios-1.5.0.tgz#f02e4af823e2e46a9768cfc74691fdd0517ea267" + integrity sha512-D4DdjDo5CY50Qms0qGQTTw6Q44jl7zRwY7bthds06pUGfChBCTcQs+N743eFWGEd6pRTMd6A+I87aWyFV5wiZQ== dependencies: - follow-redirects "^1.14.4" + follow-redirects "^1.15.0" + form-data "^4.0.0" + proxy-from-env "^1.1.0" babel-code-frame@^6.26.0: version "6.26.0" @@ -5556,16 +5558,16 @@ chrome-trace-event@^1.0.2: resolved "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac" integrity sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg== -chromedriver@98.0.1: - version "98.0.1" - resolved "https://registry.npmjs.org/chromedriver/-/chromedriver-98.0.1.tgz#ccb1e36a003b4c6af0b184caa00fca8370d88f2a" - integrity sha512-/04KkHHE/K/lfwdPTQr5fxi1dWvM83p8T/IkYbyGK2PBlH7K49Dd71A9jrS+aWgXlZYkuHhbwiy2PA2QqZ5qQw== +chromedriver@114.0.2: + version "114.0.2" + resolved "https://registry.npmjs.org/chromedriver/-/chromedriver-114.0.2.tgz#1ddaa6738f2b60e6b832a39f791c8c54bf840837" + integrity sha512-v0qrXRBknbxqmtklG7RWOe3TJ/dLaHhtB0jVxE7BAdYERxUjEaNRyqBwoGgVfQDibHCB0swzvzsj158nnfPgZw== dependencies: - "@testim/chrome-version" "^1.1.2" - axios "^0.24.0" - del "^6.0.0" + "@testim/chrome-version" "^1.1.3" + axios "^1.4.0" + compare-versions "^5.0.3" extract-zip "^2.0.1" - https-proxy-agent "^5.0.0" + https-proxy-agent "^5.0.1" proxy-from-env "^1.1.0" tcp-port-used "^1.0.1" @@ -5928,6 +5930,11 @@ compare-func@^2.0.0: array-ify "^1.0.0" dot-prop "^5.1.0" +compare-versions@^5.0.3: + version "5.0.3" + resolved "https://registry.npmjs.org/compare-versions/-/compare-versions-5.0.3.tgz#a9b34fea217472650ef4a2651d905f42c28ebfd7" + integrity sha512-4UZlZP8Z99MGEY+Ovg/uJxJuvoXuN4M6B3hKaiackiHrgzQFEe3diJi1mf1PNHbFujM7FvLrK2bpgIaImbtZ1A== + component-emitter@^1.2.1, component-emitter@~1.3.0: version "1.3.0" resolved "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz#16e4070fba8ae29b679f2215853ee181ab2eabc0" @@ -6664,20 +6671,6 @@ del@^2.2.0: pinkie-promise "^2.0.0" rimraf "^2.2.8" -del@^6.0.0: - version "6.0.0" - resolved "https://registry.npmjs.org/del/-/del-6.0.0.tgz#0b40d0332cea743f1614f818be4feb717714c952" - integrity sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ== - dependencies: - globby "^11.0.1" - graceful-fs "^4.2.4" - is-glob "^4.0.1" - is-path-cwd "^2.2.0" - is-path-inside "^3.0.2" - p-map "^4.0.0" - rimraf "^3.0.2" - slash "^3.0.0" - delayed-stream@~1.0.0: version "1.0.0" resolved "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" @@ -8146,10 +8139,10 @@ follow-redirects@^1.0.0: resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.4.tgz#838fdf48a8bbdd79e52ee51fb1c94e3ed98b9379" integrity sha512-zwGkiSXC1MUJG/qmeIFH2HBJx9u0V46QGUe3YR1fXG8bXQxq7fLj0RjLZQ5nubr9qNJUZrH+xUcwXEoXNpfS+g== -follow-redirects@^1.14.4: - version "1.14.8" - resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.8.tgz#016996fb9a11a100566398b1c6839337d7bfa8fc" - integrity sha512-1x0S9UVJHsQprFcEC/qnNzBLcIxsjAV905f/UkQxbclCsoTWlacCNOpQa/anodLl2uaEKFhfWOvM2Qg77+15zA== +follow-redirects@^1.15.0: + version "1.15.2" + resolved "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz#b460864144ba63f2681096f274c4e57026da2c13" + integrity sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA== for-in@^1.0.1, for-in@^1.0.2: version "1.0.2" @@ -9409,6 +9402,14 @@ https-proxy-agent@^2.2.1: agent-base "^4.3.0" debug "^3.1.0" +https-proxy-agent@^5.0.1: + version "5.0.1" + resolved "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz#c59ef224a04fe8b754f3db0063a25ea30d0005d6" + integrity sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA== + dependencies: + agent-base "6" + debug "4" + human-id@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/human-id/-/human-id-1.0.2.tgz#e654d4b2b0d8b07e45da9f6020d8af17ec0a5df3"