@powersync/service-module-mssql 0.0.0-dev-20260909133214 → 0.0.0-dev-20260929095716
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -5
- package/dist/module/MSSQLModule.d.ts +0 -1
- package/dist/module/MSSQLModule.js +0 -1
- package/dist/module/MSSQLModule.js.map +1 -1
- package/package.json +7 -7
- package/src/module/MSSQLModule.ts +0 -2
- package/test/src/CDCStreamTestContext.ts +4 -4
- package/tsconfig.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,31 @@
|
|
|
1
1
|
# @powersync/service-module-mssql
|
|
2
2
|
|
|
3
|
-
## 0.0.0-dev-
|
|
3
|
+
## 0.0.0-dev-20260929095716
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
- Updated dependencies [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
- Updated dependencies [0483d4e]
|
|
8
|
+
- Updated dependencies [c8e8b75]
|
|
9
|
+
- Updated dependencies [28f024b]
|
|
10
|
+
- Updated dependencies [424bbc0]
|
|
11
|
+
- Updated dependencies [b70f467]
|
|
12
|
+
- Updated dependencies [18f0c95]
|
|
13
|
+
- Updated dependencies [c60db6e]
|
|
14
|
+
- Updated dependencies [0483d4e]
|
|
15
|
+
- Updated dependencies [a8c3f15]
|
|
16
|
+
- @powersync/service-core@0.0.0-dev-20260929095716
|
|
17
|
+
- @powersync/service-sync-rules@0.0.0-dev-20260929095716
|
|
18
|
+
- @powersync/lib-services-framework@0.0.0-dev-20260929095716
|
|
19
|
+
|
|
20
|
+
## 0.10.2
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- Updated dependencies [f842b4e]
|
|
25
|
+
- Updated dependencies [5ae6f75]
|
|
26
|
+
- @powersync/service-core@1.26.1
|
|
27
|
+
- @powersync/service-sync-rules@0.42.0
|
|
28
|
+
- @powersync/lib-services-framework@0.10.2
|
|
11
29
|
|
|
12
30
|
## 0.10.1
|
|
13
31
|
|
|
@@ -2,7 +2,6 @@ import { api, ConnectionTestResult, replication, system, TearDownOptions } from
|
|
|
2
2
|
import * as types from '../types/types.js';
|
|
3
3
|
export declare class MSSQLModule extends replication.ReplicationModule<types.MSSQLConnectionConfig> {
|
|
4
4
|
constructor();
|
|
5
|
-
onInitialized(context: system.ServiceContextContainer): Promise<void>;
|
|
6
5
|
protected createRouteAPIAdapter(): api.RouteAPI;
|
|
7
6
|
protected createReplicator(context: system.ServiceContext): replication.AbstractReplicator;
|
|
8
7
|
/**
|
|
@@ -14,7 +14,6 @@ export class MSSQLModule extends replication.ReplicationModule {
|
|
|
14
14
|
configSchema: types.MSSQLConnectionConfig
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
async onInitialized(context) { }
|
|
18
17
|
createRouteAPIAdapter() {
|
|
19
18
|
return new MSSQLRouteAPIAdapter(this.resolveConfig(this.decodedConfig));
|
|
20
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MSSQLModule.js","sourceRoot":"","sources":["../../src/module/MSSQLModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kCAAkC,EAElC,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iDAAiD,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAChF,OAAO,KAAK,KAAK,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,OAAO,WAAY,SAAQ,WAAW,CAAC,iBAA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rC,CAAC;QACH,CAAC;gBAAS,CAAC;YACT,MAAM,iBAAiB,CAAC,GAAG,EAAE,CAAC;QAChC,CAAC;QACD,OAAO;YACL,qBAAqB,EAAE,gBAAgB,CAAC,QAAQ;SACjD,CAAC;IACJ,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powersync/service-module-mssql",
|
|
3
3
|
"repository": "https://github.com/powersync-ja/powersync-service",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-20260929095716",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"publishConfig": {
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
"ts-codec": "^1.3.0",
|
|
18
18
|
"uri-js": "^4.4.1",
|
|
19
19
|
"uuid": "^14.0.0",
|
|
20
|
-
"@powersync/lib-services-framework": "0.0.0-dev-
|
|
21
|
-
"@powersync/service-core": "0.0.0-dev-
|
|
20
|
+
"@powersync/lib-services-framework": "0.0.0-dev-20260929095716",
|
|
21
|
+
"@powersync/service-core": "0.0.0-dev-20260929095716",
|
|
22
22
|
"@powersync/service-errors": "0.5.0",
|
|
23
23
|
"@powersync/service-jsonbig": "0.17.13",
|
|
24
|
-
"@powersync/service-sync-rules": "0.0.0-dev-
|
|
24
|
+
"@powersync/service-sync-rules": "0.0.0-dev-20260929095716",
|
|
25
25
|
"@powersync/service-types": "0.18.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/mssql": "^9.1.9",
|
|
29
29
|
"@types/semver": "^7.7.1",
|
|
30
30
|
"@types/uuid": "^11.0.0",
|
|
31
|
-
"@powersync/service-core-tests": "0.0.0-dev-
|
|
32
|
-
"@powersync/service-module-mongodb-storage": "0.0.0-dev-
|
|
33
|
-
"@powersync/service-module-postgres-storage": "0.0.0-dev-
|
|
31
|
+
"@powersync/service-core-tests": "0.0.0-dev-20260929095716",
|
|
32
|
+
"@powersync/service-module-mongodb-storage": "0.0.0-dev-20260929095716",
|
|
33
|
+
"@powersync/service-module-postgres-storage": "0.0.0-dev-20260929095716"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "tsc -b",
|
|
@@ -23,8 +23,6 @@ export class MSSQLModule extends replication.ReplicationModule<types.MSSQLConnec
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
async onInitialized(context: system.ServiceContextContainer): Promise<void> {}
|
|
27
|
-
|
|
28
26
|
protected createRouteAPIAdapter(): api.RouteAPI {
|
|
29
27
|
return new MSSQLRouteAPIAdapter(this.resolveConfig(this.decodedConfig!));
|
|
30
28
|
}
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
SyncRulesBucketStorage,
|
|
12
12
|
updateSyncRulesFromYaml
|
|
13
13
|
} from '@powersync/service-core';
|
|
14
|
-
import { bucketRequest, METRICS_HELPER, test_utils } from '@powersync/service-core-tests';
|
|
14
|
+
import { bucketRequest, getTestStorage, METRICS_HELPER, test_utils } from '@powersync/service-core-tests';
|
|
15
15
|
import timers from 'timers/promises';
|
|
16
16
|
import { clearTestDb, getClientCheckpoint, TEST_CONNECTION_OPTIONS } from './util.js';
|
|
17
17
|
|
|
@@ -86,7 +86,7 @@ export class CDCStreamTestContext implements AsyncDisposable {
|
|
|
86
86
|
updateSyncRulesFromYaml(content, { validate: true, storageVersion: LEGACY_STORAGE_VERSION })
|
|
87
87
|
);
|
|
88
88
|
this.syncRulesContent = replicationStream.syncConfigContent[0];
|
|
89
|
-
this.storage = this.factory
|
|
89
|
+
this.storage = await getTestStorage(this.factory, replicationStream);
|
|
90
90
|
return this.storage!;
|
|
91
91
|
}
|
|
92
92
|
|
|
@@ -97,7 +97,7 @@ export class CDCStreamTestContext implements AsyncDisposable {
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
this.syncRulesContent = syncConfig.content;
|
|
100
|
-
this.storage = syncConfig.
|
|
100
|
+
this.storage = await getTestStorage(this.factory, syncConfig.replicationStream);
|
|
101
101
|
return this.storage!;
|
|
102
102
|
}
|
|
103
103
|
|
|
@@ -108,7 +108,7 @@ export class CDCStreamTestContext implements AsyncDisposable {
|
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
this.syncRulesContent = syncConfig.content;
|
|
111
|
-
this.storage = syncConfig.
|
|
111
|
+
this.storage = await getTestStorage(this.factory, syncConfig.replicationStream);
|
|
112
112
|
return this.storage!;
|
|
113
113
|
}
|
|
114
114
|
|