@crvouga/mockingbird-service-postgres 3.12.0 → 3.12.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.
- package/CHANGELOG.md +12 -0
- package/dist/index.js +13 -5
- package/dist/index.js.map +2 -2
- package/dist/wire/cli.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-postgres
|
|
2
2
|
|
|
3
|
+
## 3.12.2 (2026-11-02)
|
|
4
|
+
|
|
5
|
+
### Fixes and improvements
|
|
6
|
+
|
|
7
|
+
- reopen IndexedDB durability connection after the browser force-closes it ([d0b45aa](https://github.com/crvouga/mockingbird/commit/d0b45aa1d12a55967e72b8ddc6573f5998c377ce))
|
|
8
|
+
|
|
9
|
+
## 3.12.1 (2026-11-02)
|
|
10
|
+
|
|
11
|
+
### Fixes and improvements
|
|
12
|
+
|
|
13
|
+
- schedule packages whose tasks read another package's files ([7df459d](https://github.com/crvouga/mockingbird/commit/7df459d96132b4f84fa3553b1f907871c7e4f739))
|
|
14
|
+
|
|
3
15
|
## 3.12.0 (2026-10-24)
|
|
4
16
|
|
|
5
17
|
### Features
|
package/dist/index.js
CHANGED
|
@@ -222,7 +222,13 @@ var IndexedDBDurabilityBackend = class {
|
|
|
222
222
|
this.durability = options.durability ?? "strict";
|
|
223
223
|
}
|
|
224
224
|
open() {
|
|
225
|
-
this.database
|
|
225
|
+
if (this.database)
|
|
226
|
+
return this.database;
|
|
227
|
+
const opening = new Promise((resolve, reject) => {
|
|
228
|
+
const forget = () => {
|
|
229
|
+
if (this.database === opening)
|
|
230
|
+
this.database = void 0;
|
|
231
|
+
};
|
|
226
232
|
const request = this.factory.open(this.name, 1);
|
|
227
233
|
request.onupgradeneeded = () => {
|
|
228
234
|
const db = request.result;
|
|
@@ -231,7 +237,7 @@ var IndexedDBDurabilityBackend = class {
|
|
|
231
237
|
pages.createIndex("image", "key");
|
|
232
238
|
};
|
|
233
239
|
request.onerror = () => {
|
|
234
|
-
|
|
240
|
+
forget();
|
|
235
241
|
reject(request.error);
|
|
236
242
|
};
|
|
237
243
|
request.onblocked = () => {
|
|
@@ -240,12 +246,14 @@ var IndexedDBDurabilityBackend = class {
|
|
|
240
246
|
const db = request.result;
|
|
241
247
|
db.onversionchange = () => {
|
|
242
248
|
db.close();
|
|
243
|
-
|
|
249
|
+
forget();
|
|
244
250
|
};
|
|
251
|
+
db.onclose = forget;
|
|
245
252
|
resolve(db);
|
|
246
253
|
};
|
|
247
254
|
});
|
|
248
|
-
|
|
255
|
+
this.database = opening;
|
|
256
|
+
return opening;
|
|
249
257
|
}
|
|
250
258
|
async load(key2) {
|
|
251
259
|
const db = await this.open();
|
|
@@ -32493,7 +32501,7 @@ function analyzeSchema(sql, options = {}) {
|
|
|
32493
32501
|
const diagnosticLimit = bounded(options.maxDiagnostics, 100, 1e3);
|
|
32494
32502
|
const report = {
|
|
32495
32503
|
engine: "mockingbird-postgres",
|
|
32496
|
-
version: true ? "3.12.
|
|
32504
|
+
version: true ? "3.12.2" : "source-tree",
|
|
32497
32505
|
statements: 0,
|
|
32498
32506
|
accepted: 0,
|
|
32499
32507
|
compatible: null,
|