@atproto/bsync 0.0.26 → 0.0.28

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/bsync",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "license": "MIT",
5
5
  "description": "Sychronizing service for app.bsky App View (Bluesky API)",
6
6
  "keywords": [
@@ -25,8 +25,8 @@
25
25
  "pg": "^8.10.0",
26
26
  "pino-http": "^8.2.1",
27
27
  "typed-emitter": "^2.1.0",
28
- "@atproto/syntax": "^0.6.0",
29
- "@atproto/common": "^0.6.0"
28
+ "@atproto/common": "^0.6.3",
29
+ "@atproto/syntax": "^0.6.2"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@bufbuild/buf": "^1.28.1",
@@ -35,8 +35,7 @@
35
35
  "@types/pg": "^8.6.6",
36
36
  "get-port": "^5.1.1",
37
37
  "jest": "^30.0.0",
38
- "ts-node": "^10.8.2",
39
- "typescript": "^6.0.3"
38
+ "ts-node": "^10.8.2"
40
39
  },
41
40
  "type": "module",
42
41
  "exports": {
@@ -46,12 +45,14 @@
46
45
  }
47
46
  },
48
47
  "scripts": {
49
- "build": "tsc --build tsconfig.build.json",
48
+ "codegen:buf": "buf generate proto",
49
+ "prebuild": "pnpm run '/^(codegen:.+)$/'",
50
+ "build": "tsgo --build tsconfig.build.json",
50
51
  "start": "node --enable-source-maps dist/bin.js",
51
52
  "test": "NODE_OPTIONS=--experimental-vm-modules ../dev-infra/with-test-db.sh jest",
52
53
  "test:log": "tail -50 test.log | pino-pretty",
53
54
  "test:updateSnapshot": "jest --updateSnapshot",
54
55
  "migration:create": "ts-node ./bin/migration-create.ts",
55
- "buf:gen": "buf generate proto"
56
+ "buf:gen": ">&2 echo 'DEPRECATED: run `pnpm run codegen:buf` instead ' && pnpm run codegen:buf"
56
57
  }
57
58
  }
@@ -15,7 +15,7 @@ export const validCursor = (cursor: string): number | null => {
15
15
  return int
16
16
  }
17
17
 
18
- export const combineSignals = (a: AbortSignal, b: AbortSignal) => {
18
+ export const combineSignals = (a: AbortSignal, b: AbortSignal): AbortSignal => {
19
19
  const controller = new AbortController()
20
20
  for (const signal of [a, b]) {
21
21
  if (signal.aborted) {
@@ -2,7 +2,7 @@
2
2
  "extends": "../../tsconfig/node.json",
3
3
  "compilerOptions": {
4
4
  "rootDir": "./src",
5
- "outDir": "./dist"
5
+ "outDir": "./dist",
6
6
  },
7
- "include": ["./src"]
7
+ "include": ["./src"],
8
8
  }
@@ -1 +1 @@
1
- {"root":["./src/client.ts","./src/config.ts","./src/context.ts","./src/index.ts","./src/logger.ts","./src/db/index.ts","./src/db/types.ts","./src/db/migrations/20240108T220751294Z-init.ts","./src/db/migrations/20240717T224303472Z-notif-ops.ts","./src/db/migrations/20250527T022203400Z-add-operation.ts","./src/db/migrations/20250603T163446567Z-alter-operation.ts","./src/db/migrations/index.ts","./src/db/migrations/provider.ts","./src/db/schema/index.ts","./src/db/schema/mute_item.ts","./src/db/schema/mute_op.ts","./src/db/schema/notif_item.ts","./src/db/schema/notif_op.ts","./src/db/schema/operation.ts","./src/proto/bsync_connect.ts","./src/proto/bsync_pb.ts","./src/routes/add-mute-operation.ts","./src/routes/add-notif-operation.ts","./src/routes/auth.ts","./src/routes/delete-operations.ts","./src/routes/index.ts","./src/routes/put-operation.ts","./src/routes/scan-mute-operations.ts","./src/routes/scan-notif-operations.ts","./src/routes/scan-operations.ts","./src/routes/util.ts"],"version":"6.0.3"}
1
+ {"version":"7.0.0-dev.20260614.1","root":["./src/client.ts","./src/config.ts","./src/context.ts","./src/index.ts","./src/logger.ts","./src/db/index.ts","./src/db/types.ts","./src/db/migrations/20240108T220751294Z-init.ts","./src/db/migrations/20240717T224303472Z-notif-ops.ts","./src/db/migrations/20250527T022203400Z-add-operation.ts","./src/db/migrations/20250603T163446567Z-alter-operation.ts","./src/db/migrations/index.ts","./src/db/migrations/provider.ts","./src/db/schema/index.ts","./src/db/schema/mute_item.ts","./src/db/schema/mute_op.ts","./src/db/schema/notif_item.ts","./src/db/schema/notif_op.ts","./src/db/schema/operation.ts","./src/proto/bsync_connect.ts","./src/proto/bsync_pb.ts","./src/routes/add-mute-operation.ts","./src/routes/add-notif-operation.ts","./src/routes/auth.ts","./src/routes/delete-operations.ts","./src/routes/index.ts","./src/routes/put-operation.ts","./src/routes/scan-mute-operations.ts","./src/routes/scan-notif-operations.ts","./src/routes/scan-operations.ts","./src/routes/util.ts"]}
package/tsconfig.json CHANGED
@@ -2,6 +2,6 @@
2
2
  "include": [],
3
3
  "references": [
4
4
  { "path": "./tsconfig.build.json" },
5
- { "path": "./tsconfig.tests.json" }
6
- ]
5
+ { "path": "./tsconfig.tests.json" },
6
+ ],
7
7
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "extends": "../../tsconfig/tests.json",
3
3
  "compilerOptions": {
4
- "rootDir": "."
4
+ "rootDir": ".",
5
5
  },
6
- "include": ["./tests"]
6
+ "include": ["./tests"],
7
7
  }
@@ -1,93 +0,0 @@
1
- // @generated by protoc-gen-connect-es v1.3.0 with parameter "target=ts,import_extension="
2
- // @generated from file bsync.proto (package bsync, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
-
6
- import { AddMuteOperationRequest, AddMuteOperationResponse, AddNotifOperationRequest, AddNotifOperationResponse, DeleteOperationsByActorAndNamespaceRequest, DeleteOperationsByActorAndNamespaceResponse, PingRequest, PingResponse, PutOperationRequest, PutOperationResponse, ScanMuteOperationsRequest, ScanMuteOperationsResponse, ScanNotifOperationsRequest, ScanNotifOperationsResponse, ScanOperationsRequest, ScanOperationsResponse } from "./bsync_pb.js";
7
- import { MethodKind } from "@bufbuild/protobuf";
8
-
9
- /**
10
- * @generated from service bsync.Service
11
- */
12
- export const Service = {
13
- typeName: "bsync.Service",
14
- methods: {
15
- /**
16
- * Sync
17
- *
18
- * @generated from rpc bsync.Service.AddMuteOperation
19
- */
20
- addMuteOperation: {
21
- name: "AddMuteOperation",
22
- I: AddMuteOperationRequest,
23
- O: AddMuteOperationResponse,
24
- kind: MethodKind.Unary,
25
- },
26
- /**
27
- * @generated from rpc bsync.Service.ScanMuteOperations
28
- */
29
- scanMuteOperations: {
30
- name: "ScanMuteOperations",
31
- I: ScanMuteOperationsRequest,
32
- O: ScanMuteOperationsResponse,
33
- kind: MethodKind.Unary,
34
- },
35
- /**
36
- * @generated from rpc bsync.Service.AddNotifOperation
37
- */
38
- addNotifOperation: {
39
- name: "AddNotifOperation",
40
- I: AddNotifOperationRequest,
41
- O: AddNotifOperationResponse,
42
- kind: MethodKind.Unary,
43
- },
44
- /**
45
- * @generated from rpc bsync.Service.ScanNotifOperations
46
- */
47
- scanNotifOperations: {
48
- name: "ScanNotifOperations",
49
- I: ScanNotifOperationsRequest,
50
- O: ScanNotifOperationsResponse,
51
- kind: MethodKind.Unary,
52
- },
53
- /**
54
- * @generated from rpc bsync.Service.PutOperation
55
- */
56
- putOperation: {
57
- name: "PutOperation",
58
- I: PutOperationRequest,
59
- O: PutOperationResponse,
60
- kind: MethodKind.Unary,
61
- },
62
- /**
63
- * @generated from rpc bsync.Service.ScanOperations
64
- */
65
- scanOperations: {
66
- name: "ScanOperations",
67
- I: ScanOperationsRequest,
68
- O: ScanOperationsResponse,
69
- kind: MethodKind.Unary,
70
- },
71
- /**
72
- * @generated from rpc bsync.Service.DeleteOperationsByActorAndNamespace
73
- */
74
- deleteOperationsByActorAndNamespace: {
75
- name: "DeleteOperationsByActorAndNamespace",
76
- I: DeleteOperationsByActorAndNamespaceRequest,
77
- O: DeleteOperationsByActorAndNamespaceResponse,
78
- kind: MethodKind.Unary,
79
- },
80
- /**
81
- * Ping
82
- *
83
- * @generated from rpc bsync.Service.Ping
84
- */
85
- ping: {
86
- name: "Ping",
87
- I: PingRequest,
88
- O: PingResponse,
89
- kind: MethodKind.Unary,
90
- },
91
- }
92
- } as const;
93
-