@powersync/service-module-postgres-storage 0.6.3 → 0.7.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@powersync/service-module-postgres-storage",
3
3
  "repository": "https://github.com/powersync-ja/powersync-service",
4
4
  "types": "dist/@types/index.d.ts",
5
- "version": "0.6.3",
5
+ "version": "0.7.1",
6
6
  "main": "dist/index.js",
7
7
  "type": "module",
8
8
  "publishConfig": {
@@ -30,12 +30,12 @@
30
30
  "ts-codec": "^1.3.0",
31
31
  "uuid": "^9.0.1",
32
32
  "@powersync/lib-services-framework": "0.5.3",
33
- "@powersync/service-core": "1.10.3",
34
- "@powersync/lib-service-postgres": "0.4.0",
35
- "@powersync/service-core-tests": "0.8.3",
36
- "@powersync/service-sync-rules": "0.25.0",
33
+ "@powersync/lib-service-postgres": "0.4.1",
34
+ "@powersync/service-core": "1.11.1",
35
+ "@powersync/service-core-tests": "0.9.1",
37
36
  "@powersync/service-jpgwire": "0.19.0",
38
- "@powersync/service-types": "0.9.0"
37
+ "@powersync/service-sync-rules": "0.25.0",
38
+ "@powersync/service-types": "0.10.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/uuid": "^9.0.4",
package/test/src/setup.ts CHANGED
@@ -1,16 +1,10 @@
1
1
  import { container } from '@powersync/lib-services-framework';
2
- import { Metrics } from '@powersync/service-core';
3
2
  import { beforeAll } from 'vitest';
3
+ import { METRICS_HELPER } from '@powersync/service-core-tests';
4
4
 
5
5
  beforeAll(async () => {
6
6
  // Executes for every test file
7
7
  container.registerDefaults();
8
8
 
9
- // The metrics need to be initialized before they can be used
10
- await Metrics.initialise({
11
- disable_telemetry_sharing: true,
12
- powersync_instance_id: 'test',
13
- internal_metrics_endpoint: 'unused.for.tests.com'
14
- });
15
- Metrics.getInstance().resetCounters();
9
+ METRICS_HELPER.resetMetrics();
16
10
  });
@@ -1,7 +0,0 @@
1
- import * as t from 'ts-codec';
2
- export declare const SQLiteJSONValue: t.Union<t.Codec<string | number | bigint, string | number, string, t.CodecProps>, t.Codec<null, null, t.CodecType.Null, t.CodecProps>>;
3
- export type SQLiteJSONValue = t.Encoded<typeof SQLiteJSONValue>;
4
- export type SQLiteJSONValueDecoded = t.Decoded<typeof SQLiteJSONValue>;
5
- export declare const SQLiteJSONRecord: t.RecordCodec<t.Union<t.Codec<string | number | bigint, string | number, string, t.CodecProps>, t.Codec<null, null, t.CodecType.Null, t.CodecProps>>>;
6
- export type SQLiteJSONRecord = t.Encoded<typeof SQLiteJSONRecord>;
7
- export type SQLiteJSONRecordDecoded = t.Decoded<typeof SQLiteJSONRecord>;
@@ -1,5 +0,0 @@
1
- import * as t from 'ts-codec';
2
- import { bigint } from '../codecs.js';
3
- export const SQLiteJSONValue = t.number.or(t.string).or(bigint).or(t.Null);
4
- export const SQLiteJSONRecord = t.record(SQLiteJSONValue);
5
- //# sourceMappingURL=SQLiteJSONValue.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SQLiteJSONValue.js","sourceRoot":"","sources":["../../../src/types/models/SQLiteJSONValue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAI3E,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC"}