@furvester/upstream-sync 2.1.0 → 2.1.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +1 -6
  2. package/package.json +3 -2
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { EntityClass, EntityManager, MikroORM } from "@mikro-orm/postgresql";
1
+ import type { EntityManager, MikroORM } from "@mikro-orm/postgresql";
2
2
  import type { Logger } from "logforth";
3
3
  import { type ConnectionOptions } from "rabbitmq-client";
4
4
  import type { z } from "zod";
@@ -11,10 +11,6 @@ export type SyncManagerConfig = {
11
11
  apiGatewayUrl: string;
12
12
  apiKey: string;
13
13
  };
14
- export type SyncableEntityClass = EntityClass<{
15
- id: string;
16
- upstreamVersion: number;
17
- }>;
18
14
  export type ResyncResource = {
19
15
  id: string;
20
16
  version: number;
@@ -35,7 +31,6 @@ export type Resync<TResource extends ResyncResource, TDeserializer extends Resyn
35
31
  basePath: string;
36
32
  searchParams?: URLSearchParams;
37
33
  deserializer: TDeserializer;
38
- entityClass: SyncableEntityClass;
39
34
  upsert: ResyncHandler<TResource>;
40
35
  };
41
36
  export type UpstreamEntity = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@furvester/upstream-sync",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "description": "Sync from upstream via RabbitMQ",
5
5
  "type": "module",
6
6
  "author": "Ben Scholzen 'DASPRiD'",
@@ -35,6 +35,7 @@
35
35
  "@biomejs/biome": "2.3.14",
36
36
  "@commitlint/cli": "^20.4.1",
37
37
  "@commitlint/config-conventional": "^20.4.1",
38
+ "@jsonapi-serde/client": "^1.2.1",
38
39
  "@mikro-orm/postgresql": "^6.6.6",
39
40
  "@tsconfig/node24": "^24.0.4",
40
41
  "@types/node": "^25.2.2",
@@ -45,13 +46,13 @@
45
46
  "zod": "^4.3.6"
46
47
  },
47
48
  "peerDependencies": {
49
+ "@jsonapi-serde/client": "^1.2.1",
48
50
  "@mikro-orm/postgresql": "^6.3.13",
49
51
  "logforth": "^1.2.2",
50
52
  "rabbitmq-client": "^5.0.0",
51
53
  "zod": "^4.3.6"
52
54
  },
53
55
  "dependencies": {
54
- "@jsonapi-serde/client": "^1.2.1",
55
56
  "async-mutex": "^0.5.0"
56
57
  },
57
58
  "packageManager": "pnpm@10.29.1+sha512.48dae233635a645768a3028d19545cacc1688639eeb1f3734e42d6d6b971afbf22aa1ac9af52a173d9c3a20c15857cfa400f19994d79a2f626fcc73fccda9bbc"