@crvouga/mockingbird-service-kms 0.1.0 → 1.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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog — @crvouga/mockingbird-service-kms
2
2
 
3
+ ## 1.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
+
3
17
  ## 0.1.0 (2026-10-05)
4
18
 
5
19
  Initial release.
@@ -3,7 +3,7 @@ import {
3
3
  createRuntime,
4
4
  parseDuration,
5
5
  resolveAdminPrefix
6
- } from "./chunk-46H3YNCF.js";
6
+ } from "./chunk-PI2CWUA3.js";
7
7
 
8
8
  // ../../adapters/node/dist/cli.js
9
9
  import { readFile as readFile2 } from "node:fs/promises";
@@ -815,4 +815,4 @@ export {
815
815
  createServer2 as createServer,
816
816
  serveTarget
817
817
  };
818
- //# sourceMappingURL=chunk-EZXLANPS.js.map
818
+ //# sourceMappingURL=chunk-EZ2YQ6JG.js.map
@@ -103,8 +103,38 @@ var CORE_MIGRATIONS = [
103
103
  `
104
104
  }
105
105
  ];
106
+ var LEGACY_TABLES = [
107
+ ["emulates_records", "mockingbird_records"],
108
+ ["emulators_records", "mockingbird_records"],
109
+ ["emulates_sequences", "mockingbird_sequences"],
110
+ ["emulators_sequences", "mockingbird_sequences"]
111
+ ];
112
+ var LEGACY_INDEXES = [
113
+ ["emulates_records_seq", "mockingbird_records_seq"],
114
+ ["emulators_records_seq", "mockingbird_records_seq"]
115
+ ];
116
+ var namesOf = (sqlite, type) => new Set(sqlite.prepare("SELECT name FROM sqlite_master WHERE type = ?").all(type).map((row) => row.name));
106
117
  var migrateCore = (sqlite) => {
107
118
  migrate(sqlite, CORE_MIGRATIONS);
119
+ const tables = namesOf(sqlite, "table");
120
+ const indexes = namesOf(sqlite, "index");
121
+ sqlite.transaction(() => {
122
+ for (const [from, to] of LEGACY_TABLES) {
123
+ if (!tables.has(from) || tables.has(to))
124
+ continue;
125
+ sqlite.exec(`ALTER TABLE ${from} RENAME TO ${to}`);
126
+ tables.delete(from);
127
+ tables.add(to);
128
+ }
129
+ for (const [from, to] of LEGACY_INDEXES) {
130
+ if (!indexes.has(from) || indexes.has(to))
131
+ continue;
132
+ sqlite.exec(`DROP INDEX ${from}`);
133
+ sqlite.exec(`CREATE INDEX ${to} ON mockingbird_records (namespace, collection, seq)`);
134
+ indexes.delete(from);
135
+ indexes.add(to);
136
+ }
137
+ });
108
138
  };
109
139
  var clearNamespace = (sqlite, namespace) => {
110
140
  sqlite.transaction(() => {
@@ -6540,7 +6570,7 @@ var stateAdminRoutes = (routes) => {
6540
6570
  };
6541
6571
 
6542
6572
  // ../core/dist/version.js
6543
- var PACKAGE_VERSION = true ? "0.1.0" : UNRELEASED_VERSION;
6573
+ var PACKAGE_VERSION = true ? "1.0.0" : UNRELEASED_VERSION;
6544
6574
 
6545
6575
  // ../core/dist/webhooks.js
6546
6576
  var json4 = (status, body) => new Response(JSON.stringify(body), {
@@ -7728,4 +7758,4 @@ export {
7728
7758
  createRuntime2 as createRuntime,
7729
7759
  KmsAPI
7730
7760
  };
7731
- //# sourceMappingURL=chunk-46H3YNCF.js.map
7761
+ //# sourceMappingURL=chunk-PI2CWUA3.js.map