Skip to content

Commit 01bbbc2

Browse files
author
Michael Lehenbauer
committed
Search/replace all "v1beta1" instances to "v1".
1 parent 247f25b commit 01bbbc2

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

packages/firestore/src/platform_browser/webchannel_connection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ import { StringMap } from '../util/types';
4141

4242
const LOG_TAG = 'Connection';
4343

44-
const RPC_STREAM_SERVICE = 'google.firestore.v1beta1.Firestore';
45-
const RPC_URL_VERSION = 'v1beta1';
44+
const RPC_STREAM_SERVICE = 'google.firestore.v1.Firestore';
45+
const RPC_URL_VERSION = 'v1';
4646

4747
/** Maps RPC names to the corresponding REST endpoint name. */
4848
const RPC_NAME_REST_MAPPING = {

packages/firestore/src/platform_node/grpc_connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class GrpcConnection implements Connection {
9797
private cachedStub: CachedStub | null = null;
9898

9999
constructor(protos: grpc.GrpcObject, private databaseInfo: DatabaseInfo) {
100-
this.firestore = protos['google']['firestore']['v1beta1'];
100+
this.firestore = protos['google']['firestore']['v1'];
101101
}
102102

103103
private sameToken(tokenA: Token | null, tokenB: Token | null): boolean {

packages/firestore/src/platform_node/load_protos.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export function loadProtos(): grpc.GrpcObject {
3535
);
3636
const firestoreProtoFile = {
3737
root,
38-
file: 'google/firestore/v1beta1/firestore.proto'
38+
file: 'google/firestore/v1/firestore.proto'
3939
};
4040
return grpc.load(firestoreProtoFile, /*format=*/ 'proto', options);
4141
}

packages/firestore/test/integration/browser/webchannel.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describeFn('WebChannel', () => {
4242
it('includes project ID and database ID', () => {
4343
const url = makeUrl('Commit', {});
4444
expect(url).to.equal(
45-
'http://example.com/v1beta1/projects/testproject/' +
45+
'http://example.com/v1/projects/testproject/' +
4646
'databases/(default)/documents:commit'
4747
);
4848
});

packages/firestore/test/unit/remote/node/serializer.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ describe('Serializer', () => {
7878
const s = new JsonProtoSerializer(partition, { useProto3Json: false });
7979
const emptyResumeToken = new Uint8Array(0);
8080
const protos = loadProtos();
81-
const ds = protos['google']['firestore']['v1beta1'];
81+
const ds = protos['google']['firestore']['v1'];
8282

8383
/**
8484
* Wraps the given query in QueryData. This is useful because the APIs we're

0 commit comments

Comments
 (0)