patchrelay 0.74.5 → 0.74.6

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "service": "patchrelay",
3
- "version": "0.74.5",
4
- "commit": "c495abc1770b",
5
- "builtAt": "2026-05-29T08:13:54.437Z"
3
+ "version": "0.74.6",
4
+ "commit": "4c5efe0939d1",
5
+ "builtAt": "2026-05-29T08:45:52.226Z"
6
6
  }
@@ -103,7 +103,7 @@ async function handleRepoLink(params) {
103
103
  db.linearInstallations.setProjectInstallation(githubRepo, installation.id);
104
104
  }
105
105
  finally {
106
- db.connection.close();
106
+ db.close();
107
107
  }
108
108
  const serviceState = await tryManageService(params.runCommand, restartServiceCommands());
109
109
  if (!serviceState.ok) {
@@ -150,7 +150,7 @@ async function handleRepoUnlink(params) {
150
150
  db.linearInstallations.unlinkProjectInstallation(githubRepo);
151
151
  }
152
152
  finally {
153
- db.connection.close();
153
+ db.close();
154
154
  }
155
155
  const serviceState = await tryManageService(params.runCommand, restartServiceCommands());
156
156
  if (!serviceState.ok) {
package/dist/db.js CHANGED
@@ -58,6 +58,19 @@ export class PatchRelayDatabase {
58
58
  transaction(fn) {
59
59
  return this.connection.transaction(fn)();
60
60
  }
61
+ close() {
62
+ this.connection.close();
63
+ }
64
+ /**
65
+ * Raw SQLite handle for tests ONLY. Production code must go through the
66
+ * stores; this exists so fixtures can backdate timestamps, force invalid
67
+ * edge states, and exercise the migration/schema-guard machinery — none of
68
+ * which the store API exposes, by design. The deliberately ugly name keeps
69
+ * it greppable so a production leak can't slip back in unnoticed.
70
+ */
71
+ unsafeRawConnectionForTests() {
72
+ return this.connection;
73
+ }
61
74
  upsertIssue(params) {
62
75
  return this.issues.upsertIssue(params);
63
76
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "patchrelay",
3
- "version": "0.74.5",
3
+ "version": "0.74.6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {