@crvouga/mockingbird-service-s3 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-UNNPPRK3.js → chunk-KU6EZQBO.js} +32 -2
- package/dist/chunk-KU6EZQBO.js.map +7 -0
- package/dist/{chunk-UABSY7RG.js → chunk-WA5B4RDO.js} +2 -2
- 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-UNNPPRK3.js.map +0 -7
- /package/dist/{chunk-UABSY7RG.js.map → chunk-WA5B4RDO.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-s3
|
|
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
|
|
|
@@ -17,10 +35,6 @@
|
|
|
17
35
|
- reconcile combined PR integration ([124d5be](https://github.com/crvouga/mockingbird/commit/124d5bed7576535ff481ce6da7d2369957799665))
|
|
18
36
|
- preserve inferred form headers ([02bdd28](https://github.com/crvouga/mockingbird/commit/02bdd2806a9a934607ecd7ffd0cfbe4f6ba80c91))
|
|
19
37
|
|
|
20
|
-
### Dependencies
|
|
21
|
-
|
|
22
|
-
- `@crvouga/mockingbird-service-sqlite`
|
|
23
|
-
|
|
24
38
|
## 2.2.0 (2026-10-04)
|
|
25
39
|
|
|
26
40
|
### Features
|
|
@@ -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(() => {
|
|
@@ -6387,7 +6417,7 @@ var stateAdminRoutes = (routes) => {
|
|
|
6387
6417
|
};
|
|
6388
6418
|
|
|
6389
6419
|
// ../core/dist/version.js
|
|
6390
|
-
var PACKAGE_VERSION = true ? "
|
|
6420
|
+
var PACKAGE_VERSION = true ? "3.0.0" : UNRELEASED_VERSION;
|
|
6391
6421
|
|
|
6392
6422
|
// ../core/dist/signing.js
|
|
6393
6423
|
var encoder = new TextEncoder();
|
|
@@ -8563,4 +8593,4 @@ export {
|
|
|
8563
8593
|
accessKeyCredential,
|
|
8564
8594
|
S3API
|
|
8565
8595
|
};
|
|
8566
|
-
//# sourceMappingURL=chunk-
|
|
8596
|
+
//# sourceMappingURL=chunk-KU6EZQBO.js.map
|