Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: firebase/firebase-js-sdk
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: firebase@10.13.1
Choose a base ref
...
head repository: firebase/firebase-js-sdk
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 52e9e4e259b8b15c92e2b2d03ad5b0b0d77df7c1
Choose a head ref
  • 6 commits
  • 76 files changed
  • 4 contributors

Commits on Sep 6, 2024

  1. Use default concurrency value for lerna run (#8462)

    The default concurrency value for leran run is the number of logical CPU
    cores. This is better than arbitrarily using 4 threads, since different
    machines may be able to handle more.
    dlarocque authored Sep 6, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3670ab8 View commit details

Commits on Sep 10, 2024

  1. Set singleRun to true and remove from all karma start scripts (#8484)

    dlarocque authored Sep 10, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    ca4dbcf View commit details

Commits on Sep 11, 2024

  1. Remove referrerPolicy from Cloudflare Worker fetch requests (#8393)

    The Cloudflare Worker runner runtime doesn't support the `fetch` parameter `referrerPolicy` and throws if one is defined. In attempt to better support Cloudlfare, we will remove this parameter from `fetch` requests when we detect the SDK running in a Cloudflare runner enviornment.
    DellaBitta authored Sep 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    16d62d4 View commit details

Commits on Sep 12, 2024

  1. Fix metadata sync issue for cache listeners in multi-tab (#8343)

    milaGGL authored Sep 12, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    629919e View commit details

Commits on Sep 16, 2024

  1. Merge main into release

    google-oss-bot authored Sep 16, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    0884f0d View commit details

Commits on Sep 18, 2024

  1. Version Packages (#8502)

    v10.13.2 release
    Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
    google-oss-bot authored Sep 18, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    52e9e4e View commit details
Showing with 619 additions and 258 deletions.
  1. +3 −3 .github/workflows/test-all.yml
  2. +5 −0 common/api-review/util.api.md
  3. +2 −1 config/karma.base.js
  4. +15 −15 integration/compat-interop/package.json
  5. +2 −2 integration/firebase/package.json
  6. +5 −5 integration/firestore/package.json
  7. +1 −1 integration/messaging/package.json
  8. +2 −2 package.json
  9. +9 −0 packages/analytics-compat/CHANGELOG.md
  10. +6 −6 packages/analytics-compat/package.json
  11. +9 −0 packages/analytics/CHANGELOG.md
  12. +7 −7 packages/analytics/package.json
  13. +9 −0 packages/app-check-compat/CHANGELOG.md
  14. +6 −6 packages/app-check-compat/package.json
  15. +8 −0 packages/app-check/CHANGELOG.md
  16. +5 −5 packages/app-check/package.json
  17. +9 −0 packages/app-compat/CHANGELOG.md
  18. +5 −5 packages/app-compat/package.json
  19. +8 −0 packages/app/CHANGELOG.md
  20. +4 −4 packages/app/package.json
  21. +9 −0 packages/auth-compat/CHANGELOG.md
  22. +8 −8 packages/auth-compat/package.json
  23. +10 −0 packages/auth/CHANGELOG.md
  24. +10 −10 packages/auth/package.json
  25. +47 −0 packages/auth/src/api/index.test.ts
  26. +16 −7 packages/auth/src/api/index.ts
  27. +7 −0 packages/component/CHANGELOG.md
  28. +3 −3 packages/component/package.json
  29. +10 −0 packages/database-compat/CHANGELOG.md
  30. +7 −7 packages/database-compat/package.json
  31. +7 −0 packages/database-types/CHANGELOG.md
  32. +2 −2 packages/database-types/package.json
  33. +8 −0 packages/database/CHANGELOG.md
  34. +5 −5 packages/database/package.json
  35. +32 −0 packages/firebase/CHANGELOG.md
  36. +27 −27 packages/firebase/package.json
  37. +9 −0 packages/firestore-compat/CHANGELOG.md
  38. +6 −6 packages/firestore-compat/package.json
  39. +10 −0 packages/firestore/CHANGELOG.md
  40. +14 −14 packages/firestore/package.json
  41. +5 −3 packages/firestore/src/core/sync_engine_impl.ts
  42. +21 −6 packages/firestore/src/local/shared_client_state.ts
  43. +6 −7 packages/firestore/test/unit/specs/listen_source_spec.test.ts
  44. +9 −0 packages/functions-compat/CHANGELOG.md
  45. +6 −6 packages/functions-compat/package.json
  46. +8 −0 packages/functions/CHANGELOG.md
  47. +5 −5 packages/functions/package.json
  48. +9 −0 packages/installations-compat/CHANGELOG.md
  49. +6 −6 packages/installations-compat/package.json
  50. +8 −0 packages/installations/CHANGELOG.md
  51. +5 −5 packages/installations/package.json
  52. +1 −1 packages/logger/package.json
  53. +9 −0 packages/messaging-compat/CHANGELOG.md
  54. +6 −6 packages/messaging-compat/package.json
  55. +9 −0 packages/messaging/CHANGELOG.md
  56. +6 −6 packages/messaging/package.json
  57. +9 −0 packages/performance-compat/CHANGELOG.md
  58. +6 −6 packages/performance-compat/package.json
  59. +9 −0 packages/performance/CHANGELOG.md
  60. +6 −6 packages/performance/package.json
  61. +9 −0 packages/remote-config-compat/CHANGELOG.md
  62. +6 −6 packages/remote-config-compat/package.json
  63. +9 −0 packages/remote-config/CHANGELOG.md
  64. +6 −6 packages/remote-config/package.json
  65. +9 −0 packages/storage-compat/CHANGELOG.md
  66. +9 −9 packages/storage-compat/package.json
  67. +8 −0 packages/storage/CHANGELOG.md
  68. +8 −8 packages/storage/package.json
  69. +2 −2 packages/template/package.json
  70. +6 −0 packages/util/CHANGELOG.md
  71. +2 −2 packages/util/package.json
  72. +12 −2 packages/util/src/environment.ts
  73. +8 −0 packages/vertexai/CHANGELOG.md
  74. +6 −6 packages/vertexai/package.json
  75. +2 −2 repo-scripts/size-analysis/package.json
  76. +1 −1 scripts/ci-test/test_changed.ts
6 changes: 3 additions & 3 deletions .github/workflows/test-all.yml
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ jobs:
- name: Run unit tests
# Ignore auth and firestore since they're handled in their own separate jobs.
run: |
xvfb-run yarn lerna run --ignore '{firebase-messaging-integration-test,@firebase/auth*,@firebase/firestore*,firebase-firestore-integration-test}' --concurrency 4 test:ci
xvfb-run yarn lerna run --ignore '{firebase-messaging-integration-test,@firebase/auth*,@firebase/firestore*,firebase-firestore-integration-test}' test:ci
node scripts/print_test_logs.js
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
@@ -142,7 +142,7 @@ jobs:
run: echo "FIREBASE_CI_TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV
- name: Run unit tests
run: |
xvfb-run yarn lerna run --concurrency 4 test:ci --scope '@firebase/auth*'
xvfb-run yarn lerna run test:ci --scope '@firebase/auth*'
node scripts/print_test_logs.js
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
@@ -182,7 +182,7 @@ jobs:
run: echo "FIREBASE_CI_TEST_START_TIME=$(date +%s)" >> $GITHUB_ENV
- name: Run unit tests
run: |
xvfb-run yarn lerna run --concurrency 4 test:ci --scope '@firebase/firestore*'
xvfb-run yarn lerna run test:ci --scope '@firebase/firestore*'
node scripts/print_test_logs.js
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_CLI_TOKEN }}
5 changes: 5 additions & 0 deletions common/api-review/util.api.md
Original file line number Diff line number Diff line change
@@ -264,6 +264,11 @@ export function isBrowser(): boolean;
// @public (undocumented)
export function isBrowserExtension(): boolean;

// Warning: (ae-missing-release-tag) "isCloudflareWorker" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
export function isCloudflareWorker(): boolean;

// Warning: (ae-missing-release-tag) "isElectron" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public
3 changes: 2 additions & 1 deletion config/karma.base.js
Original file line number Diff line number Diff line change
@@ -66,7 +66,8 @@ const config = {

webpackMiddleware: { quiet: true, stats: { colors: true } },

singleRun: false,
// Exit with an exit code of 0 if any of the tests fail.
singleRun: true,

client: {
mocha: {
30 changes: 15 additions & 15 deletions integration/compat-interop/package.json
Original file line number Diff line number Diff line change
@@ -3,25 +3,25 @@
"private": true,
"version": "0.1.0",
"scripts": {
"test": "karma start --single-run",
"test": "karma start",
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test",
"test:debug": "karma start --browsers Chrome --auto-watch"
},
"dependencies": {
"@firebase/app": "0.10.10",
"@firebase/app-compat": "0.2.40",
"@firebase/analytics": "0.10.7",
"@firebase/analytics-compat": "0.2.13",
"@firebase/auth": "1.7.8",
"@firebase/auth-compat": "0.5.13",
"@firebase/functions": "0.11.7",
"@firebase/functions-compat": "0.3.13",
"@firebase/messaging": "0.12.10",
"@firebase/messaging-compat": "0.2.10",
"@firebase/performance": "0.6.8",
"@firebase/performance-compat": "0.2.8",
"@firebase/remote-config": "0.4.8",
"@firebase/remote-config-compat": "0.2.8"
"@firebase/app": "0.10.11",
"@firebase/app-compat": "0.2.41",
"@firebase/analytics": "0.10.8",
"@firebase/analytics-compat": "0.2.14",
"@firebase/auth": "1.7.9",
"@firebase/auth-compat": "0.5.14",
"@firebase/functions": "0.11.8",
"@firebase/functions-compat": "0.3.14",
"@firebase/messaging": "0.12.11",
"@firebase/messaging-compat": "0.2.11",
"@firebase/performance": "0.6.9",
"@firebase/performance-compat": "0.2.9",
"@firebase/remote-config": "0.4.9",
"@firebase/remote-config-compat": "0.2.9"
},
"devDependencies": {
"typescript": "4.7.4"
4 changes: 2 additions & 2 deletions integration/firebase/package.json
Original file line number Diff line number Diff line change
@@ -3,11 +3,11 @@
"private": true,
"version": "0.2.1",
"scripts": {
"test": "karma start --single-run",
"test": "karma start",
"test:ci": "node ../../scripts/run_tests_in_ci.js -s test"
},
"devDependencies": {
"firebase": "10.13.1",
"firebase": "10.13.2",
"@types/chai": "4.3.14",
"@types/mocha": "9.1.1",
"chai": "4.4.1",
10 changes: 5 additions & 5 deletions integration/firestore/package.json
Original file line number Diff line number Diff line change
@@ -6,16 +6,16 @@
"build:deps": "lerna run --scope @firebase/'{app,firestore}' --include-dependencies build",
"build:persistence": "INCLUDE_FIRESTORE_PERSISTENCE=true gulp compile-tests",
"build:memory": "INCLUDE_FIRESTORE_PERSISTENCE=false gulp compile-tests",
"karma:singlerun": "karma start --single-run",
"karma:singlerun": "karma start",
"prettier": "prettier --write '*.js' '*.ts'",
"test:persistence": " yarn build:persistence; karma start --single-run",
"test:persistence": " yarn build:persistence; karma start",
"test:persistence:debug": "yarn build:persistence; karma start --auto-watch --browsers Chrome",
"test:memory": "yarn build:memory; karma start --single-run",
"test:memory": "yarn build:memory; karma start",
"test:memory:debug": "yarn build:memory; karma start --auto-watch --browsers Chrome"
},
"dependencies": {
"@firebase/app": "0.10.10",
"@firebase/firestore": "4.7.1"
"@firebase/app": "0.10.11",
"@firebase/firestore": "4.7.2"
},
"devDependencies": {
"@types/mocha": "9.1.1",
2 changes: 1 addition & 1 deletion integration/messaging/package.json
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
"test:manual": "mocha --exit"
},
"devDependencies": {
"firebase": "10.13.1",
"firebase": "10.13.2",
"chai": "4.4.1",
"chromedriver": "119.0.1",
"express": "4.19.2",
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -30,8 +30,8 @@
"repl": "node tools/repl.js",
"release": "ts-node-script scripts/release/cli.ts",
"pretest": "node tools/pretest.js",
"test": "lerna run --ignore firebase-messaging-integration-test --concurrency 4 --stream test",
"test:ci": "lerna run --ignore firebase-messaging-integration-test --concurrency 4 test:ci",
"test": "lerna run --ignore firebase-messaging-integration-test --stream test",
"test:ci": "lerna run --ignore firebase-messaging-integration-test test:ci",
"pretest:coverage": "mkdirp coverage",
"ci:coverage": "lcov-result-merger 'packages/**/lcov.info' 'lcov-all.info'",
"test:coverage": "lcov-result-merger 'packages/**/lcov.info' | coveralls",
9 changes: 9 additions & 0 deletions packages/analytics-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @firebase/analytics-compat

## 0.2.14

### Patch Changes

- Updated dependencies [[`16d62d4fa`](https://github.com/firebase/firebase-js-sdk/commit/16d62d4fa16faddb8cb676c0af3f29b8a5824741)]:
- @firebase/util@1.10.0
- @firebase/analytics@0.10.8
- @firebase/component@0.6.9

## 0.2.13

### Patch Changes
12 changes: 6 additions & 6 deletions packages/analytics-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@firebase/analytics-compat",
"version": "0.2.13",
"version": "0.2.14",
"description": "",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.cjs.js",
@@ -24,7 +24,7 @@
"@firebase/app-compat": "0.x"
},
"devDependencies": {
"@firebase/app-compat": "0.2.40",
"@firebase/app-compat": "0.2.41",
"rollup": "2.79.1",
"@rollup/plugin-json": "4.1.0",
"rollup-plugin-typescript2": "0.31.2",
@@ -47,17 +47,17 @@
"dev": "rollup -c -w",
"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": "karma start",
"test:browser:debug": "karma start --browsers=Chrome --auto-watch",
"trusted-type-check": "tsec -p tsconfig.json --noEmit",
"add-compat-overloads": "ts-node-script ../../scripts/build/create-overloads.ts -i ../analytics/dist/analytics-public.d.ts -o dist/src/index.d.ts -a -r Analytics:FirebaseAnalytics -r FirebaseApp:FirebaseAppCompat --moduleToEnhance @firebase/analytics"
},
"typings": "dist/src/index.d.ts",
"dependencies": {
"@firebase/component": "0.6.8",
"@firebase/analytics": "0.10.7",
"@firebase/component": "0.6.9",
"@firebase/analytics": "0.10.8",
"@firebase/analytics-types": "0.8.2",
"@firebase/util": "1.9.7",
"@firebase/util": "1.10.0",
"tslib": "^2.1.0"
},
"nyc": {
9 changes: 9 additions & 0 deletions packages/analytics/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @firebase/analytics

## 0.10.8

### Patch Changes

- Updated dependencies [[`16d62d4fa`](https://github.com/firebase/firebase-js-sdk/commit/16d62d4fa16faddb8cb676c0af3f29b8a5824741)]:
- @firebase/util@1.10.0
- @firebase/component@0.6.9
- @firebase/installations@0.6.9

## 0.10.7

### Patch Changes
14 changes: 7 additions & 7 deletions packages/analytics/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@firebase/analytics",
"version": "0.10.7",
"version": "0.10.8",
"description": "A analytics package for new firebase packages",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.cjs.js",
@@ -29,8 +29,8 @@
"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",
"test:browser": "karma start --nocache",
"test:integration": "karma start ./karma.integration.conf.js --nocache",
"trusted-type-check": "tsec -p tsconfig.json --noEmit",
"api-report": "api-extractor run --local --verbose",
"doc": "api-documenter markdown --input temp --output docs",
@@ -41,15 +41,15 @@
"@firebase/app": "0.x"
},
"dependencies": {
"@firebase/installations": "0.6.8",
"@firebase/installations": "0.6.9",
"@firebase/logger": "0.4.2",
"@firebase/util": "1.9.7",
"@firebase/component": "0.6.8",
"@firebase/util": "1.10.0",
"@firebase/component": "0.6.9",
"tslib": "^2.1.0"
},
"license": "Apache-2.0",
"devDependencies": {
"@firebase/app": "0.10.10",
"@firebase/app": "0.10.11",
"rollup": "2.79.1",
"@rollup/plugin-commonjs": "21.1.0",
"@rollup/plugin-json": "4.1.0",
9 changes: 9 additions & 0 deletions packages/app-check-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @firebase/app-check-compat

## 0.3.15

### Patch Changes

- Updated dependencies [[`16d62d4fa`](https://github.com/firebase/firebase-js-sdk/commit/16d62d4fa16faddb8cb676c0af3f29b8a5824741)]:
- @firebase/util@1.10.0
- @firebase/app-check@0.8.8
- @firebase/component@0.6.9

## 0.3.14

### Patch Changes
12 changes: 6 additions & 6 deletions packages/app-check-compat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@firebase/app-check-compat",
"version": "0.3.14",
"version": "0.3.15",
"description": "A compat App Check package for new firebase packages",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.cjs.js",
@@ -28,24 +28,24 @@
"dev": "rollup -c -w",
"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",
"test:browser": "karma start --nocache",
"trusted-type-check": "tsec -p tsconfig.json --noEmit",
"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"
},
"peerDependencies": {
"@firebase/app-compat": "0.x"
},
"dependencies": {
"@firebase/app-check": "0.8.7",
"@firebase/app-check": "0.8.8",
"@firebase/app-check-types": "0.5.2",
"@firebase/logger": "0.4.2",
"@firebase/util": "1.9.7",
"@firebase/component": "0.6.8",
"@firebase/util": "1.10.0",
"@firebase/component": "0.6.9",
"tslib": "^2.1.0"
},
"license": "Apache-2.0",
"devDependencies": {
"@firebase/app-compat": "0.2.40",
"@firebase/app-compat": "0.2.41",
"rollup": "2.79.1",
"@rollup/plugin-commonjs": "21.1.0",
"@rollup/plugin-json": "4.1.0",
8 changes: 8 additions & 0 deletions packages/app-check/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @firebase/app-check

## 0.8.8

### Patch Changes

- Updated dependencies [[`16d62d4fa`](https://github.com/firebase/firebase-js-sdk/commit/16d62d4fa16faddb8cb676c0af3f29b8a5824741)]:
- @firebase/util@1.10.0
- @firebase/component@0.6.9

## 0.8.7

### Patch Changes
10 changes: 5 additions & 5 deletions packages/app-check/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@firebase/app-check",
"version": "0.8.7",
"version": "0.8.8",
"description": "The App Check component of the Firebase JS SDK",
"author": "Firebase <firebase-support@google.com> (https://firebase.google.com/)",
"main": "dist/index.cjs.js",
@@ -28,7 +28,7 @@
"dev": "rollup -c -w",
"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",
"test:browser": "karma start --nocache",
"trusted-type-check": "tsec -p tsconfig.json --noEmit",
"api-report": "api-extractor run --local --verbose",
"doc": "api-documenter markdown --input temp --output docs",
@@ -39,14 +39,14 @@
"@firebase/app": "0.x"
},
"dependencies": {
"@firebase/util": "1.9.7",
"@firebase/component": "0.6.8",
"@firebase/util": "1.10.0",
"@firebase/component": "0.6.9",
"@firebase/logger": "0.4.2",
"tslib": "^2.1.0"
},
"license": "Apache-2.0",
"devDependencies": {
"@firebase/app": "0.10.10",
"@firebase/app": "0.10.11",
"rollup": "2.79.1",
"@rollup/plugin-commonjs": "21.1.0",
"@rollup/plugin-json": "4.1.0",
9 changes: 9 additions & 0 deletions packages/app-compat/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @firebase/app-compat

## 0.2.41

### Patch Changes

- Updated dependencies [[`16d62d4fa`](https://github.com/firebase/firebase-js-sdk/commit/16d62d4fa16faddb8cb676c0af3f29b8a5824741)]:
- @firebase/util@1.10.0
- @firebase/app@0.10.11
- @firebase/component@0.6.9

## 0.2.40

### Patch Changes
Loading