Skip to content

Commit 8e0e5f0

Browse files
author
Brian Chen
authored
Rename protobytestring to bytestring (#2674)
1 parent 6366776 commit 8e0e5f0

21 files changed

+20
-20
lines changed

packages/firestore/src/api/blob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import { primitiveComparator } from '../util/misc';
2727
import {
2828
binaryStringFromUint8Array,
2929
uint8ArrayFromBinaryString
30-
} from '../util/proto_byte_string';
30+
} from '../util/byte_string';
3131

3232
/** Helper function to assert Uint8Array is available at runtime. */
3333
function assertUint8ArrayAvailable(): void {

packages/firestore/src/local/indexeddb_mutation_queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import { BATCHID_UNKNOWN, MutationBatch } from '../model/mutation_batch';
2626
import { ResourcePath } from '../model/path';
2727
import { assert, fail } from '../util/assert';
2828
import { primitiveComparator } from '../util/misc';
29-
import { ByteString } from '../util/proto_byte_string';
29+
import { ByteString } from '../util/byte_string';
3030
import { SortedMap } from '../util/sorted_map';
3131
import { SortedSet } from '../util/sorted_set';
3232

packages/firestore/src/local/local_serializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { MutationBatch } from '../model/mutation_batch';
2828
import * as api from '../protos/firestore_proto_api';
2929
import { JsonProtoSerializer } from '../remote/serializer';
3030
import { assert, fail } from '../util/assert';
31-
import { ByteString } from '../util/proto_byte_string';
31+
import { ByteString } from '../util/byte_string';
3232

3333
import { documentKeySet, DocumentKeySet } from '../model/collections';
3434
import { Target } from '../core/target';

packages/firestore/src/local/local_store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ import { RemoteDocumentCache } from './remote_document_cache';
6262
import { RemoteDocumentChangeBuffer } from './remote_document_change_buffer';
6363
import { ClientId } from './shared_client_state';
6464
import { TargetData, TargetPurpose } from './target_data';
65-
import { ByteString } from '../util/proto_byte_string';
65+
import { ByteString } from '../util/byte_string';
6666

6767
const LOG_TAG = 'LocalStore';
6868

packages/firestore/src/local/memory_mutation_queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Mutation } from '../model/mutation';
2424
import { MutationBatch, BATCHID_UNKNOWN } from '../model/mutation_batch';
2525
import { assert } from '../util/assert';
2626
import { primitiveComparator } from '../util/misc';
27-
import { ByteString } from '../util/proto_byte_string';
27+
import { ByteString } from '../util/byte_string';
2828
import { SortedMap } from '../util/sorted_map';
2929
import { SortedSet } from '../util/sorted_set';
3030

packages/firestore/src/local/mutation_queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import { DocumentKeySet } from '../model/collections';
2222
import { DocumentKey } from '../model/document_key';
2323
import { Mutation } from '../model/mutation';
2424
import { MutationBatch } from '../model/mutation_batch';
25-
import { ByteString } from '../util/proto_byte_string';
25+
import { ByteString } from '../util/byte_string';
2626
import { SortedMap } from '../util/sorted_map';
2727

2828
import { PersistenceTransaction } from './persistence';

packages/firestore/src/local/target_data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import { SnapshotVersion } from '../core/snapshot_version';
1919
import { Target } from '../core/target';
2020
import { ListenSequenceNumber, TargetId } from '../core/types';
21-
import { ByteString } from '../util/proto_byte_string';
21+
import { ByteString } from '../util/byte_string';
2222

2323
/** An enumeration of the different purposes we have for targets. */
2424
export enum TargetPurpose {

packages/firestore/src/model/mutation_batch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { SnapshotVersion } from '../core/snapshot_version';
2020
import { BatchId } from '../core/types';
2121
import { assert } from '../util/assert';
2222
import * as misc from '../util/misc';
23-
import { ByteString } from '../util/proto_byte_string';
23+
import { ByteString } from '../util/byte_string';
2424
import {
2525
documentKeySet,
2626
DocumentKeySet,

packages/firestore/src/remote/persistent_stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import { ExponentialBackoff } from './backoff';
3232
import { Connection, Stream } from './connection';
3333
import { JsonProtoSerializer } from './serializer';
3434
import { WatchChange } from './watch_change';
35-
import { ByteString } from '../util/proto_byte_string';
35+
import { ByteString } from '../util/byte_string';
3636

3737
const LOG_TAG = 'PersistentStream';
3838

packages/firestore/src/remote/remote_event.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import {
2525
targetIdSet
2626
} from '../model/collections';
2727
import { SortedSet } from '../util/sorted_set';
28-
import { ByteString } from '../util/proto_byte_string';
28+
import { ByteString } from '../util/byte_string';
2929

3030
/**
3131
* An event from the RemoteStore. It is split into targetChanges (changes to the

packages/firestore/src/remote/remote_store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import {
5151
WatchTargetChange,
5252
WatchTargetChangeState
5353
} from './watch_change';
54-
import { ByteString } from '../util/proto_byte_string';
54+
import { ByteString } from '../util/byte_string';
5555

5656
const LOG_TAG = 'RemoteStore';
5757

packages/firestore/src/remote/serializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ import * as api from '../protos/firestore_proto_api';
5353
import { assert, fail } from '../util/assert';
5454
import { Code, FirestoreError } from '../util/error';
5555
import * as obj from '../util/obj';
56-
import { ByteString } from '../util/proto_byte_string';
56+
import { ByteString } from '../util/byte_string';
5757
import * as typeUtils from '../util/types';
5858

5959
import {

packages/firestore/src/remote/watch_change.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import { SortedMap } from '../util/sorted_map';
3535
import { SortedSet } from '../util/sorted_set';
3636
import { ExistenceFilter } from './existence_filter';
3737
import { RemoteEvent, TargetChange } from './remote_event';
38-
import { ByteString } from '../util/proto_byte_string';
38+
import { ByteString } from '../util/byte_string';
3939

4040
/**
4141
* Internal representation of the watcher API protocol buffers.

packages/firestore/test/unit/local/local_store.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ import {
7878
import { FieldValue, IntegerValue } from '../../../src/model/field_value';
7979
import { CountingQueryEngine } from './counting_query_engine';
8080
import * as persistenceHelpers from './persistence_test_helpers';
81-
import { ByteString } from '../../../src/util/proto_byte_string';
81+
import { ByteString } from '../../../src/util/byte_string';
8282

8383
class LocalStoreTester {
8484
private promiseChain: Promise<void> = Promise.resolve();

packages/firestore/test/unit/local/mutation_queue.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import {
3535
import { addEqualityMatcher } from '../../util/equality_matcher';
3636
import * as persistenceHelpers from './persistence_test_helpers';
3737
import { TestMutationQueue } from './test_mutation_queue';
38-
import { ByteString } from '../../../src/util/proto_byte_string';
38+
import { ByteString } from '../../../src/util/byte_string';
3939

4040
let persistence: Persistence;
4141
let mutationQueue: TestMutationQueue;

packages/firestore/test/unit/local/test_mutation_queue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import { DocumentKey } from '../../../src/model/document_key';
2525
import { Mutation } from '../../../src/model/mutation';
2626
import { MutationBatch } from '../../../src/model/mutation_batch';
2727
import { SortedMap } from '../../../src/util/sorted_map';
28-
import { ByteString } from '../../../src/util/proto_byte_string';
28+
import { ByteString } from '../../../src/util/byte_string';
2929

3030
/**
3131
* A wrapper around a MutationQueue that automatically creates a

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ import {
8484
wrapObject,
8585
byteStringFromString
8686
} from '../../../util/helpers';
87-
import { ByteString } from '../../../../src/util/proto_byte_string';
87+
import { ByteString } from '../../../../src/util/byte_string';
8888

8989
describe('Serializer', () => {
9090
const partition = new DatabaseId('p', 'd');

packages/firestore/test/unit/remote/remote_event.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import {
4242
updateMapping,
4343
version
4444
} from '../../util/helpers';
45-
import { ByteString } from '../../../src/util/proto_byte_string';
45+
import { ByteString } from '../../../src/util/byte_string';
4646

4747
interface TargetMap {
4848
[targetId: string]: TargetData;

packages/firestore/test/unit/specs/spec_test_runner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ import {
108108
TEST_SERIALIZER
109109
} from '../local/persistence_test_helpers';
110110
import { MULTI_CLIENT_TAG } from './describe_spec';
111-
import { ByteString } from '../../../src/util/proto_byte_string';
111+
import { ByteString } from '../../../src/util/byte_string';
112112

113113
const ARBITRARY_SEQUENCE_NUMBER = 2;
114114

packages/firestore/test/util/helpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ import { Dict, forEach } from '../../src/util/obj';
8888
import { SortedMap } from '../../src/util/sorted_map';
8989
import { SortedSet } from '../../src/util/sorted_set';
9090
import { query } from './api_helpers';
91-
import { ByteString } from '../../src/util/proto_byte_string';
91+
import { ByteString } from '../../src/util/byte_string';
9292
import { PlatformSupport } from '../../src/platform/platform';
9393

9494
export type TestSnapshotVersion = number;

0 commit comments

Comments
 (0)