Skip to content

Commit e3e3339

Browse files
committed
Merge branch 'master' into feature-firebaseserverapp
2 parents eabee1a + 0c51501 commit e3e3339

File tree

87 files changed

+2272
-203
lines changed

Some content is hidden

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

87 files changed

+2272
-203
lines changed

.changeset/thick-eagles-collect.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
'@firebase/analytics-interop-types': patch
3+
'@firebase/app-check-interop-types': patch
4+
'@firebase/messaging-interop-types': patch
5+
'@firebase/installations-compat': patch
6+
'@firebase/remote-config-compat': patch
7+
'@firebase/installations-types': patch
8+
'@firebase/remote-config-types': patch
9+
'@firebase/auth-interop-types': patch
10+
'@firebase/performance-compat': patch
11+
'@firebase/rules-unit-testing': patch
12+
'@firebase/webchannel-wrapper': patch
13+
'@firebase/performance-types': patch
14+
'@firebase/analytics-compat': patch
15+
'@firebase/app-check-compat': patch
16+
'@firebase/firestore-compat': patch
17+
'@firebase/functions-compat': patch
18+
'@firebase/messaging-compat': patch
19+
'@firebase/analytics-types': patch
20+
'@firebase/app-check-types': patch
21+
'@firebase/database-compat': patch
22+
'@firebase/firestore-types': patch
23+
'@firebase/functions-types': patch
24+
'@firebase/database-types': patch
25+
'@firebase/storage-compat': patch
26+
'@firebase/template-types': patch
27+
'@firebase/installations': patch
28+
'@firebase/remote-config': patch
29+
'@firebase/storage-types': patch
30+
'@firebase/auth-compat': patch
31+
'@firebase/performance': patch
32+
'@firebase/app-compat': patch
33+
'@firebase/auth-types': patch
34+
'@firebase/analytics': patch
35+
'@firebase/app-check': patch
36+
'@firebase/app-types': patch
37+
'@firebase/component': patch
38+
'@firebase/firestore': patch
39+
'@firebase/functions': patch
40+
'@firebase/messaging': patch
41+
'@firebase/database': patch
42+
'firebase': patch
43+
'@firebase/template': patch
44+
'@firebase/storage': patch
45+
'@firebase/logger': patch
46+
'@firebase/auth': patch
47+
'@firebase/util': patch
48+
'@firebase/app': patch
49+
---
50+
51+
Update `repository.url` field in all `package.json` files to NPM's preferred format.

.changeset/thirty-otters-hug.md

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

.changeset/violet-ways-judge.md

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

.github/workflows/test-all.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,6 @@ jobs:
161161
name: (Firestore) Node.js and Browser (Chrome) Tests
162162
needs: build
163163
runs-on: ubuntu-latest
164-
if: false
165-
# Disable test for now since it's failing 100% of the time since
166-
# https://github.com/firebase/firebase-js-sdk/pull/7453 and it needs to be investigated.
167164
steps:
168165
# install Chrome so the correct version of webdriver can be installed by chromedriver when setting up the repo
169166
- name: install Chrome stable

common/api-review/firestore.api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,9 @@ export function limit(limit: number): QueryLimitConstraint;
350350
// @public
351351
export function limitToLast(limit: number): QueryLimitConstraint;
352352

353+
// @public
354+
export type ListenSource = 'default' | 'cache';
355+
353356
// @public
354357
export function loadBundle(firestore: Firestore, bundleData: ReadableStream<Uint8Array> | ArrayBuffer | string): LoadBundleTask;
355358

@@ -651,6 +654,7 @@ export function snapshotEqual<AppModelType, DbModelType extends DocumentData>(le
651654
// @public
652655
export interface SnapshotListenOptions {
653656
readonly includeMetadataChanges?: boolean;
657+
readonly source?: ListenSource;
654658
}
655659

656660
// @public

docs-devsite/firestore_.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ https://github.com/firebase/firebase-js-sdk
204204
| [DocumentChangeType](./firestore_.md#documentchangetype) | The type of a <code>DocumentChange</code> may be 'added', 'removed', or 'modified'. |
205205
| [FirestoreErrorCode](./firestore_.md#firestoreerrorcode) | The set of Firestore status codes. The codes are the same at the ones exposed by gRPC here: https://github.com/grpc/grpc/blob/master/doc/statuscodes.md<!-- -->Possible values: - 'cancelled': The operation was cancelled (typically by the caller). - 'unknown': Unknown error or an error from a different error domain. - 'invalid-argument': Client specified an invalid argument. Note that this differs from 'failed-precondition'. 'invalid-argument' indicates arguments that are problematic regardless of the state of the system (e.g. an invalid field name). - 'deadline-exceeded': Deadline expired before operation could complete. For operations that change the state of the system, this error may be returned even if the operation has completed successfully. For example, a successful response from a server could have been delayed long enough for the deadline to expire. - 'not-found': Some requested document was not found. - 'already-exists': Some document that we attempted to create already exists. - 'permission-denied': The caller does not have permission to execute the specified operation. - 'resource-exhausted': Some resource has been exhausted, perhaps a per-user quota, or perhaps the entire file system is out of space. - 'failed-precondition': Operation was rejected because the system is not in a state required for the operation's execution. - 'aborted': The operation was aborted, typically due to a concurrency issue like transaction aborts, etc. - 'out-of-range': Operation was attempted past the valid range. - 'unimplemented': Operation is not implemented or not supported/enabled. - 'internal': Internal errors. Means some invariants expected by underlying system has been broken. If you see one of these errors, something is very broken. - 'unavailable': The service is currently unavailable. This is most likely a transient condition and may be corrected by retrying with a backoff. - 'data-loss': Unrecoverable data loss or corruption. - 'unauthenticated': The request does not have valid authentication credentials for the operation. |
206206
| [FirestoreLocalCache](./firestore_.md#firestorelocalcache) | Union type from all supported SDK cache layer. |
207+
| [ListenSource](./firestore_.md#listensource) | Describe the source a query listens to.<!-- -->Set to <code>default</code> to listen to both cache and server changes. Set to <code>cache</code> to listen to changes in cache only. |
207208
| [MemoryGarbageCollector](./firestore_.md#memorygarbagecollector) | Union type from all support gabage collectors for memory local cache. |
208209
| [NestedUpdateFields](./firestore_.md#nestedupdatefields) | For each field (e.g. 'bar'), find all nested keys (e.g. {<!-- -->'bar.baz': T1, 'bar.qux': T2<!-- -->}<!-- -->). Intersect them together to make a single map containing all possible keys that are all marked as optional |
209210
| [OrderByDirection](./firestore_.md#orderbydirection) | The direction of a [orderBy()](./firestore_.md#orderby_006d61f) clause is specified as 'desc' or 'asc' (descending or ascending). |
@@ -2551,6 +2552,18 @@ Union type from all supported SDK cache layer.
25512552
export declare type FirestoreLocalCache = MemoryLocalCache | PersistentLocalCache;
25522553
```
25532554

2555+
## ListenSource
2556+
2557+
Describe the source a query listens to.
2558+
2559+
Set to `default` to listen to both cache and server changes. Set to `cache` to listen to changes in cache only.
2560+
2561+
<b>Signature:</b>
2562+
2563+
```typescript
2564+
export declare type ListenSource = 'default' | 'cache';
2565+
```
2566+
25542567
## MemoryGarbageCollector
25552568

25562569
Union type from all support gabage collectors for memory local cache.

docs-devsite/firestore_.snapshotlistenoptions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export declare interface SnapshotListenOptions
2323
| Property | Type | Description |
2424
| --- | --- | --- |
2525
| [includeMetadataChanges](./firestore_.snapshotlistenoptions.md#snapshotlistenoptionsincludemetadatachanges) | boolean | Include a change even if only the metadata of the query or of a document changed. Default is false. |
26+
| [source](./firestore_.snapshotlistenoptions.md#snapshotlistenoptionssource) | [ListenSource](./firestore_.md#listensource) | Set the source the query listens to. Default to "default", which listens to both cache and server. |
2627

2728
## SnapshotListenOptions.includeMetadataChanges
2829

@@ -33,3 +34,13 @@ Include a change even if only the metadata of the query or of a document changed
3334
```typescript
3435
readonly includeMetadataChanges?: boolean;
3536
```
37+
38+
## SnapshotListenOptions.source
39+
40+
Set the source the query listens to. Default to "default", which listens to both cache and server.
41+
42+
<b>Signature:</b>
43+
44+
```typescript
45+
readonly source?: ListenSource;
46+
```

integration/compat-interop/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"test:debug": "karma start --browsers Chrome --auto-watch"
99
},
1010
"dependencies": {
11-
"@firebase/app": "0.9.28",
12-
"@firebase/app-compat": "0.2.28",
11+
"@firebase/app": "0.9.29",
12+
"@firebase/app-compat": "0.2.29",
1313
"@firebase/analytics": "0.10.1",
1414
"@firebase/analytics-compat": "0.2.7",
15-
"@firebase/auth": "1.6.1",
16-
"@firebase/auth-compat": "0.5.3",
15+
"@firebase/auth": "1.6.2",
16+
"@firebase/auth-compat": "0.5.4",
1717
"@firebase/functions": "0.11.2",
1818
"@firebase/functions-compat": "0.3.8",
1919
"@firebase/messaging": "0.12.6",

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": "10.8.1",
10+
"firebase": "10.9.0",
1111
"@types/chai": "4.3.5",
1212
"@types/mocha": "9.1.1",
1313
"chai": "4.3.7",

integration/firestore/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"test:memory:debug": "yarn build:memory; karma start --auto-watch --browsers Chrome"
1515
},
1616
"dependencies": {
17-
"@firebase/app": "0.9.28",
18-
"@firebase/firestore": "4.4.3"
17+
"@firebase/app": "0.9.29",
18+
"@firebase/firestore": "4.5.0"
1919
},
2020
"devDependencies": {
2121
"@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": "10.8.1",
12+
"firebase": "10.9.0",
1313
"chai": "4.3.7",
1414
"chromedriver": "116.0.0",
1515
"express": "4.18.2",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
},
5353
"repository": {
5454
"type": "git",
55-
"url": "https://github.com/firebase/firebase-js-sdk.git"
55+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
5656
},
5757
"workspaces": [
5858
"packages/*",

packages/analytics-compat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"@firebase/app-compat": "0.x"
2525
},
2626
"devDependencies": {
27-
"@firebase/app-compat": "0.2.28",
27+
"@firebase/app-compat": "0.2.29",
2828
"rollup": "2.79.1",
2929
"@rollup/plugin-json": "4.1.0",
3030
"rollup-plugin-typescript2": "0.31.2",
@@ -33,7 +33,7 @@
3333
"repository": {
3434
"directory": "packages/analytics-compat",
3535
"type": "git",
36-
"url": "https://github.com/firebase/firebase-js-sdk.git"
36+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
3737
},
3838
"bugs": {
3939
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/analytics-interop-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"repository": {
1515
"directory": "packages/analytics-interop-types",
1616
"type": "git",
17-
"url": "https://github.com/firebase/firebase-js-sdk.git"
17+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
1818
},
1919
"bugs": {
2020
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/analytics-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"repository": {
1515
"directory": "packages/analytics-types",
1616
"type": "git",
17-
"url": "https://github.com/firebase/firebase-js-sdk.git"
17+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
1818
},
1919
"bugs": {
2020
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/analytics/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
},
4949
"license": "Apache-2.0",
5050
"devDependencies": {
51-
"@firebase/app": "0.9.28",
51+
"@firebase/app": "0.9.29",
5252
"rollup": "2.79.1",
5353
"@rollup/plugin-commonjs": "21.1.0",
5454
"@rollup/plugin-json": "4.1.0",
@@ -59,7 +59,7 @@
5959
"repository": {
6060
"directory": "packages/analytics",
6161
"type": "git",
62-
"url": "https://github.com/firebase/firebase-js-sdk.git"
62+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
6363
},
6464
"bugs": {
6565
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/app-check-compat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
},
4545
"license": "Apache-2.0",
4646
"devDependencies": {
47-
"@firebase/app-compat": "0.2.28",
47+
"@firebase/app-compat": "0.2.29",
4848
"rollup": "2.79.1",
4949
"@rollup/plugin-commonjs": "21.1.0",
5050
"@rollup/plugin-json": "4.1.0",
@@ -55,7 +55,7 @@
5555
"repository": {
5656
"directory": "packages/app-check",
5757
"type": "git",
58-
"url": "https://github.com/firebase/firebase-js-sdk.git"
58+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
5959
},
6060
"bugs": {
6161
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/app-check-interop-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"repository": {
1515
"directory": "packages/app-check-interop-types",
1616
"type": "git",
17-
"url": "https://github.com/firebase/firebase-js-sdk.git"
17+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
1818
},
1919
"bugs": {
2020
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/app-check-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"repository": {
1515
"directory": "packages/app-check-types",
1616
"type": "git",
17-
"url": "https://github.com/firebase/firebase-js-sdk.git"
17+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
1818
},
1919
"bugs": {
2020
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/app-check/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
},
4646
"license": "Apache-2.0",
4747
"devDependencies": {
48-
"@firebase/app": "0.9.28",
48+
"@firebase/app": "0.9.29",
4949
"rollup": "2.79.1",
5050
"@rollup/plugin-commonjs": "21.1.0",
5151
"@rollup/plugin-json": "4.1.0",
@@ -56,7 +56,7 @@
5656
"repository": {
5757
"directory": "packages/app-check",
5858
"type": "git",
59-
"url": "https://github.com/firebase/firebase-js-sdk.git"
59+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
6060
},
6161
"bugs": {
6262
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/app-compat/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @firebase/app-compat
22

3+
## 0.2.29
4+
5+
### Patch Changes
6+
7+
- Updated dependencies []:
8+
- @firebase/app@0.9.29
9+
310
## 0.2.28
411

512
### Patch Changes

packages/app-compat/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@firebase/app-compat",
3-
"version": "0.2.28",
3+
"version": "0.2.29",
44
"description": "The primary entrypoint to the Firebase JS SDK",
55
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
66
"main": "dist/index.cjs.js",
@@ -40,7 +40,7 @@
4040
},
4141
"license": "Apache-2.0",
4242
"dependencies": {
43-
"@firebase/app": "0.9.28",
43+
"@firebase/app": "0.9.29",
4444
"@firebase/util": "1.9.4",
4545
"@firebase/logger": "0.4.0",
4646
"@firebase/component": "0.6.5",
@@ -56,7 +56,7 @@
5656
"repository": {
5757
"directory": "packages/app-compat",
5858
"type": "git",
59-
"url": "https://github.com/firebase/firebase-js-sdk.git"
59+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
6060
},
6161
"bugs": {
6262
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/app-types/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"repository": {
1616
"directory": "packages/app-types",
1717
"type": "git",
18-
"url": "https://github.com/firebase/firebase-js-sdk.git"
18+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
1919
},
2020
"bugs": {
2121
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/app/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @firebase/app
22

3+
## 0.9.29
4+
5+
### Patch Changes
6+
7+
- Update SDK_VERSION.
8+
39
## 0.9.28
410

511
### Patch Changes

packages/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@firebase/app",
3-
"version": "0.9.28",
3+
"version": "0.9.29",
44
"description": "The primary entrypoint to the Firebase JS SDK",
55
"author": "Firebase <[email protected]> (https://firebase.google.com/)",
66
"main": "dist/index.cjs.js",
@@ -56,7 +56,7 @@
5656
"repository": {
5757
"directory": "packages/app",
5858
"type": "git",
59-
"url": "https://github.com/firebase/firebase-js-sdk.git"
59+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
6060
},
6161
"bugs": {
6262
"url": "https://github.com/firebase/firebase-js-sdk/issues"

packages/auth-compat/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @firebase/auth-compat
22

3+
## 0.5.4
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`6d487d7de`](https://github.com/firebase/firebase-js-sdk/commit/6d487d7dee631498bed1aeccbb45d8f14ae911d1), [`245dd26e1`](https://github.com/firebase/firebase-js-sdk/commit/245dd26e19b6c16aca7e1b7e597ed5784c2984ba)]:
8+
- @firebase/auth@1.6.2
9+
310
## 0.5.3
411

512
### Patch Changes

packages/auth-compat/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"repository": {
4040
"directory": "packages/auth-compat/demo",
4141
"type": "git",
42-
"url": "https://github.com/firebase/firebase-js-sdk.git"
42+
"url": "git+https://github.com/firebase/firebase-js-sdk.git"
4343
},
4444
"bugs": {
4545
"url": "https://github.com/firebase/firebase-js-sdk/issues"

0 commit comments

Comments
 (0)