@crvouga/mockingbird-service-posthog 2.3.0 → 3.0.0
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 +19 -5
- package/dist/{chunk-NCOO3LKB.js → chunk-KKFX2MK3.js} +2 -2
- package/dist/{chunk-DBFEFLR4.js → chunk-ZZE3QZTW.js} +32 -2
- package/dist/chunk-ZZE3QZTW.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/server.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-DBFEFLR4.js.map +0 -7
- /package/dist/{chunk-NCOO3LKB.js.map → chunk-KKFX2MK3.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-posthog
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 3.0.0 (2026-10-07)
|
|
4
|
+
|
|
5
|
+
### ⚠️ Breaking changes
|
|
6
|
+
|
|
7
|
+
- point the repo at crvouga/mockingbird ([1bf35a4](https://github.com/crvouga/mockingbird/commit/1bf35a422b84a85b50b09b72bd7cc7093082a86e))
|
|
8
|
+
- point the repo at crvouga/emulates ([cdb5e53](https://github.com/crvouga/mockingbird/commit/cdb5e536ed8c1f52345e3984f089001c25fdb08a))
|
|
9
|
+
- rename Emulators to Emulates ([2e10d9c](https://github.com/crvouga/mockingbird/commit/2e10d9cff84c54ac37768fc9a19d1aefd3943744))
|
|
10
|
+
- rebrand Mockingbird to Emulators ([1adca65](https://github.com/crvouga/mockingbird/commit/1adca65ce28242f11cff98eac05d2be88f680cbe))
|
|
11
|
+
|
|
12
|
+
### Fixes and improvements
|
|
13
|
+
|
|
14
|
+
- typecheck the brand gate before builds ([fc36095](https://github.com/crvouga/mockingbird/commit/fc3609514de70ffe3170a5d216fb8a49f9ce7cbb))
|
|
15
|
+
- format the emulates records query ([8698872](https://github.com/crvouga/mockingbird/commit/8698872509d06002be5a8fcdc85d79f8462320c3))
|
|
16
|
+
|
|
17
|
+
### Dependencies
|
|
18
|
+
|
|
19
|
+
- `@crvouga/mockingbird-service-sqlite`
|
|
20
|
+
|
|
21
|
+
## 2.3.0 (2026-10-04)
|
|
4
22
|
|
|
5
23
|
### Features
|
|
6
24
|
|
|
@@ -20,10 +38,6 @@
|
|
|
20
38
|
- preserve inferred form headers ([24a5db8](https://github.com/crvouga/mockingbird/commit/24a5db86dc13c061666ca704e5db120b79005882))
|
|
21
39
|
- preserve inferred form headers ([02bdd28](https://github.com/crvouga/mockingbird/commit/02bdd2806a9a934607ecd7ffd0cfbe4f6ba80c91))
|
|
22
40
|
|
|
23
|
-
### Dependencies
|
|
24
|
-
|
|
25
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
26
|
-
|
|
27
41
|
## 2.2.0 (2026-10-04)
|
|
28
42
|
|
|
29
43
|
### Features
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
parseDuration,
|
|
6
6
|
resolveAdminPrefix,
|
|
7
7
|
specsFromState
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZZE3QZTW.js";
|
|
9
9
|
|
|
10
10
|
// ../../adapters/node/dist/cli.js
|
|
11
11
|
import { readFile as readFile2 } from "node:fs/promises";
|
|
@@ -844,4 +844,4 @@ export {
|
|
|
844
844
|
createServer2 as createServer,
|
|
845
845
|
serveTarget
|
|
846
846
|
};
|
|
847
|
-
//# sourceMappingURL=chunk-
|
|
847
|
+
//# sourceMappingURL=chunk-KKFX2MK3.js.map
|
|
@@ -53,8 +53,38 @@ var CORE_MIGRATIONS = [
|
|
|
53
53
|
`
|
|
54
54
|
}
|
|
55
55
|
];
|
|
56
|
+
var LEGACY_TABLES = [
|
|
57
|
+
["emulates_records", "mockingbird_records"],
|
|
58
|
+
["emulators_records", "mockingbird_records"],
|
|
59
|
+
["emulates_sequences", "mockingbird_sequences"],
|
|
60
|
+
["emulators_sequences", "mockingbird_sequences"]
|
|
61
|
+
];
|
|
62
|
+
var LEGACY_INDEXES = [
|
|
63
|
+
["emulates_records_seq", "mockingbird_records_seq"],
|
|
64
|
+
["emulators_records_seq", "mockingbird_records_seq"]
|
|
65
|
+
];
|
|
66
|
+
var namesOf = (sqlite, type) => new Set(sqlite.prepare("SELECT name FROM sqlite_master WHERE type = ?").all(type).map((row) => row.name));
|
|
56
67
|
var migrateCore = (sqlite) => {
|
|
57
68
|
migrate(sqlite, CORE_MIGRATIONS);
|
|
69
|
+
const tables = namesOf(sqlite, "table");
|
|
70
|
+
const indexes = namesOf(sqlite, "index");
|
|
71
|
+
sqlite.transaction(() => {
|
|
72
|
+
for (const [from, to] of LEGACY_TABLES) {
|
|
73
|
+
if (!tables.has(from) || tables.has(to))
|
|
74
|
+
continue;
|
|
75
|
+
sqlite.exec(`ALTER TABLE ${from} RENAME TO ${to}`);
|
|
76
|
+
tables.delete(from);
|
|
77
|
+
tables.add(to);
|
|
78
|
+
}
|
|
79
|
+
for (const [from, to] of LEGACY_INDEXES) {
|
|
80
|
+
if (!indexes.has(from) || indexes.has(to))
|
|
81
|
+
continue;
|
|
82
|
+
sqlite.exec(`DROP INDEX ${from}`);
|
|
83
|
+
sqlite.exec(`CREATE INDEX ${to} ON mockingbird_records (namespace, collection, seq)`);
|
|
84
|
+
indexes.delete(from);
|
|
85
|
+
indexes.add(to);
|
|
86
|
+
}
|
|
87
|
+
});
|
|
58
88
|
};
|
|
59
89
|
var clearNamespace = (sqlite, namespace) => {
|
|
60
90
|
sqlite.transaction(() => {
|
|
@@ -2119,7 +2149,7 @@ var stateAdminRoutes = (routes) => {
|
|
|
2119
2149
|
};
|
|
2120
2150
|
|
|
2121
2151
|
// ../core/dist/version.js
|
|
2122
|
-
var PACKAGE_VERSION = true ? "
|
|
2152
|
+
var PACKAGE_VERSION = true ? "3.0.0" : UNRELEASED_VERSION;
|
|
2123
2153
|
|
|
2124
2154
|
// ../core/dist/signing.js
|
|
2125
2155
|
var encoder = new TextEncoder();
|
|
@@ -4172,4 +4202,4 @@ export {
|
|
|
4172
4202
|
scrubProperties,
|
|
4173
4203
|
PostHogAPI
|
|
4174
4204
|
};
|
|
4175
|
-
//# sourceMappingURL=chunk-
|
|
4205
|
+
//# sourceMappingURL=chunk-ZZE3QZTW.js.map
|