Skip to content

Commit 7e12be0

Browse files
committed
Make sync protocol export internal
1 parent 368030a commit 7e12be0

11 files changed

Lines changed: 12 additions & 12 deletions

File tree

packages/common/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"require": "./dist/bundle.cjs"
3232
}
3333
},
34-
"./sync_protocol": {
34+
"./internal/sync_protocol": {
3535
"types": "./legacy/sync_protocol.d.ts"
3636
}
3737
},
@@ -56,7 +56,7 @@
5656
"build:prod": "tsc -b && rollup -c rollup.config.mjs",
5757
"clean": "rm -rf lib dist tsconfig.tsbuildinfo",
5858
"test": "vitest",
59-
"test:exports": "attw --pack . --exclude-entrypoints sync_protocol"
59+
"test:exports": "attw --pack . --exclude-entrypoints internal/sync_protocol"
6060
},
6161
"dependencies": {
6262
"event-iterator": "^2.0.0"

packages/node/tests/sync.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
TestConnector,
2020
waitForSyncStatus
2121
} from './utils';
22-
import { BucketChecksum, OplogEntryJSON } from '@powersync/common/sync_protocol';
22+
import { BucketChecksum, OplogEntryJSON } from '@powersync/common/internal/sync_protocol';
2323

2424
describe('Sync', () => {
2525
describe('json', () => defineSyncTests(false));

packages/node/tests/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import path from 'node:path';
44
import { ReadableStream, TransformStream } from 'node:stream/web';
55

66
import { createLogger } from '@powersync/common';
7-
import { BucketChecksum, StreamingSyncCheckpoint, StreamingSyncLine } from '@powersync/common/sync_protocol';
7+
import { BucketChecksum, StreamingSyncCheckpoint, StreamingSyncLine } from '@powersync/common/internal/sync_protocol';
88
import Logger from 'js-logger';
99
import { onTestFinished, test } from 'vitest';
1010
import {

packages/nuxt/src/runtime/utils/DynamicSchemaManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { DBAdapter } from '@powersync/web';
22
import { Column, ColumnType, Schema, Table } from '@powersync/web';
33
import { DiagnosticsAppSchema as AppSchema } from './AppSchema';
44
import { JsSchemaGenerator } from './JsSchemaGenerator';
5-
import type { SyncDataBucketJSON } from '@powersync/common/sync_protocol';
5+
import type { SyncDataBucketJSON } from '@powersync/common/internal/sync_protocol';
66

77
/**
88
* Record fields from downloaded data, then build a schema from it.

packages/nuxt/src/runtime/utils/RustClientInterceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { type BSON } from 'bson';
33
import { AbstractPowerSyncDatabase, PowerSyncControlCommand, SqliteBucketStorage } from '@powersync/web';
44
import type { DynamicSchemaManager } from './DynamicSchemaManager';
55
import type { ShallowRef } from 'vue';
6-
import type { BucketChecksum, Checkpoint, StreamingSyncLine } from '@powersync/common/sync_protocol';
6+
import type { BucketChecksum, Checkpoint, StreamingSyncLine } from '@powersync/common/internal/sync_protocol';
77

88
/**
99
* Tracks per-byte and per-operation progress for the Rust client.

packages/web/tests/mockSyncServiceExample.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import { describe, expect, vi } from 'vitest';
1313
import { sharedMockSyncServiceTest } from './utils/mockSyncServiceTest.js';
14-
import { StreamingSyncCheckpoint } from '@powersync/common/sync_protocol';
14+
import { StreamingSyncCheckpoint } from '@powersync/common/internal/sync_protocol';
1515

1616
describe('Mock Sync Service Example', { timeout: 100000 }, () => {
1717
sharedMockSyncServiceTest(

packages/web/tests/stream.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
import { describe, expect, it, onTestFinished, vi } from 'vitest';
1313
import { TestConnector } from './utils/MockStreamOpenFactory.js';
1414
import { ConnectedDatabaseUtils, generateConnectedDatabase } from './utils/generateConnectedDatabase.js';
15-
import { BucketChecksum } from '@powersync/common/sync_protocol';
15+
import { BucketChecksum } from '@powersync/common/internal/sync_protocol';
1616

1717
const UPLOAD_TIMEOUT_MS = 3000;
1818

packages/web/tests/utils/MockStreamOpenFactory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
SimpleAsyncIterator,
1111
SyncStreamOptions
1212
} from '@powersync/common';
13-
import { StreamingSyncLine } from '@powersync/common/sync_protocol';
13+
import { StreamingSyncLine } from '@powersync/common/internal/sync_protocol';
1414
import {
1515
PowerSyncDatabase,
1616
WASQLitePowerSyncDatabaseOpenFactory,

packages/web/tests/utils/MockSyncServiceClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { StreamingSyncLine } from '@powersync/common/sync_protocol';
1+
import { StreamingSyncLine } from '@powersync/common/internal/sync_protocol';
22
import type {
33
AutomaticResponseConfig,
44
MockSyncServiceMessage,

tools/diagnostics-app/src/library/powersync/DynamicSchemaManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { AbstractPowerSyncDatabase, Column, ColumnType, Schema, Table } from '@powersync/web';
2-
import type { SyncDataBucketJSON } from '@powersync/common/sync_protocol';
2+
import type { SyncDataBucketJSON } from '@powersync/common/internal/sync_protocol';
33
import { AppSchema } from './AppSchema';
44
import { JsSchemaGenerator } from './JsSchemaGenerator';
55
import { localStateDb } from './LocalStateManager';

0 commit comments

Comments
 (0)