@hot-updater/server 0.35.7 → 0.35.9
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/dist/package.cjs
CHANGED
package/dist/package.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/server",
|
|
3
|
-
"version": "0.35.
|
|
3
|
+
"version": "0.35.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"rou3": "0.7.9",
|
|
57
57
|
"semver": "^7.7.2",
|
|
58
|
-
"@hot-updater/bsdiff": "0.35.
|
|
59
|
-
"@hot-updater/
|
|
60
|
-
"@hot-updater/
|
|
61
|
-
"@hot-updater/
|
|
58
|
+
"@hot-updater/bsdiff": "0.35.9",
|
|
59
|
+
"@hot-updater/js": "0.35.9",
|
|
60
|
+
"@hot-updater/core": "0.35.9",
|
|
61
|
+
"@hot-updater/plugin-core": "0.35.9"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"@prisma/client": "*",
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
"mongodb": "6.20.0",
|
|
92
92
|
"msw": "^2.7.0",
|
|
93
93
|
"uuidv7": "^1.0.2",
|
|
94
|
-
"@hot-updater/standalone": "0.35.
|
|
95
|
-
"@hot-updater/test-utils": "0.35.
|
|
94
|
+
"@hot-updater/standalone": "0.35.9",
|
|
95
|
+
"@hot-updater/test-utils": "0.35.9"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"build": "tsdown",
|
|
@@ -43,7 +43,7 @@ describe("kyselyAdapter sqlite provider", () => {
|
|
|
43
43
|
it("stores bundle JSON columns as text and round-trips them", async () => {
|
|
44
44
|
const db = new PGlite();
|
|
45
45
|
databases.push(db);
|
|
46
|
-
const kysely = new Kysely({ dialect: new PGliteDialect(db) });
|
|
46
|
+
const kysely = new Kysely<object>({ dialect: new PGliteDialect(db) });
|
|
47
47
|
kyselyInstances.push(kysely);
|
|
48
48
|
await db.exec(`
|
|
49
49
|
create table bundles (
|
package/src/db/index.spec.ts
CHANGED
|
@@ -251,7 +251,7 @@ const fingerprintFastPathBundle: Bundle = {
|
|
|
251
251
|
describe("server/db hotUpdater getUpdateInfo (PGlite + Kysely)", async () => {
|
|
252
252
|
const db = new PGlite();
|
|
253
253
|
|
|
254
|
-
const kysely = new Kysely({ dialect: new PGliteDialect(db) });
|
|
254
|
+
const kysely = new Kysely<object>({ dialect: new PGliteDialect(db) });
|
|
255
255
|
const storageTexts = new Map<string, string | Error>();
|
|
256
256
|
const readStoredText = async (storageUri: string) => {
|
|
257
257
|
const text = storageTexts.get(storageUri);
|
|
@@ -516,7 +516,7 @@ describe("server/db hotUpdater getUpdateInfo (PGlite + Kysely)", async () => {
|
|
|
516
516
|
|
|
517
517
|
it("adds custom indexes and constraints to generated SQL", async () => {
|
|
518
518
|
const migrationDb = new PGlite();
|
|
519
|
-
const migrationKysely = new Kysely({
|
|
519
|
+
const migrationKysely = new Kysely<object>({
|
|
520
520
|
dialect: new PGliteDialect(migrationDb),
|
|
521
521
|
});
|
|
522
522
|
const migrationHotUpdater = createHotUpdater({
|
|
@@ -560,7 +560,7 @@ describe("server/db hotUpdater getUpdateInfo (PGlite + Kysely)", async () => {
|
|
|
560
560
|
|
|
561
561
|
it("migrates existing 0.21.0 Kysely schemas incrementally", async () => {
|
|
562
562
|
const migrationDb = new PGlite();
|
|
563
|
-
const migrationKysely = new Kysely({
|
|
563
|
+
const migrationKysely = new Kysely<object>({
|
|
564
564
|
dialect: new PGliteDialect(migrationDb),
|
|
565
565
|
});
|
|
566
566
|
const migrationHotUpdater = createHotUpdater({
|
|
@@ -628,7 +628,7 @@ describe("server/db hotUpdater getUpdateInfo (PGlite + Kysely)", async () => {
|
|
|
628
628
|
|
|
629
629
|
it("honors soft relation mode by omitting SQL foreign keys", async () => {
|
|
630
630
|
const migrationDb = new PGlite();
|
|
631
|
-
const migrationKysely = new Kysely({
|
|
631
|
+
const migrationKysely = new Kysely<object>({
|
|
632
632
|
dialect: new PGliteDialect(migrationDb),
|
|
633
633
|
});
|
|
634
634
|
const migrationHotUpdater = createHotUpdater({
|
|
@@ -661,7 +661,7 @@ describe("server/db hotUpdater getUpdateInfo (PGlite + Kysely)", async () => {
|
|
|
661
661
|
|
|
662
662
|
it("omits unsupported SQLite alter constraint statements", async () => {
|
|
663
663
|
const migrationDb = new PGlite();
|
|
664
|
-
const migrationKysely = new Kysely({
|
|
664
|
+
const migrationKysely = new Kysely<object>({
|
|
665
665
|
dialect: new PGliteDialect(migrationDb),
|
|
666
666
|
});
|
|
667
667
|
const migrationHotUpdater = createHotUpdater({
|
|
@@ -731,7 +731,7 @@ describe("server/db hotUpdater getUpdateInfo (PGlite + Kysely)", async () => {
|
|
|
731
731
|
|
|
732
732
|
it("rejects from-database migrations explicitly", async () => {
|
|
733
733
|
const migrationDb = new PGlite();
|
|
734
|
-
const migrationKysely = new Kysely({
|
|
734
|
+
const migrationKysely = new Kysely<object>({
|
|
735
735
|
dialect: new PGliteDialect(migrationDb),
|
|
736
736
|
});
|
|
737
737
|
const migrationHotUpdater = createHotUpdater({
|
|
@@ -757,7 +757,7 @@ describe("server/db hotUpdater getUpdateInfo (PGlite + Kysely)", async () => {
|
|
|
757
757
|
|
|
758
758
|
it("rejects runtime access when a Kysely schema is not initialized", async () => {
|
|
759
759
|
const migrationDb = new PGlite();
|
|
760
|
-
const migrationKysely = new Kysely({
|
|
760
|
+
const migrationKysely = new Kysely<object>({
|
|
761
761
|
dialect: new PGliteDialect(migrationDb),
|
|
762
762
|
});
|
|
763
763
|
const migrationHotUpdater = createHotUpdater({
|
|
@@ -781,7 +781,7 @@ describe("server/db hotUpdater getUpdateInfo (PGlite + Kysely)", async () => {
|
|
|
781
781
|
|
|
782
782
|
it("rejects runtime access when a Kysely schema is stale", async () => {
|
|
783
783
|
const migrationDb = new PGlite();
|
|
784
|
-
const migrationKysely = new Kysely({
|
|
784
|
+
const migrationKysely = new Kysely<object>({
|
|
785
785
|
dialect: new PGliteDialect(migrationDb),
|
|
786
786
|
});
|
|
787
787
|
const migrationHotUpdater = createHotUpdater({
|
|
@@ -26,7 +26,7 @@ import { createHotUpdater } from "./index";
|
|
|
26
26
|
|
|
27
27
|
// Create in-memory database for testing
|
|
28
28
|
const db = new PGlite();
|
|
29
|
-
const kysely = new Kysely({ dialect: new PGliteDialect(db) });
|
|
29
|
+
const kysely = new Kysely<object>({ dialect: new PGliteDialect(db) });
|
|
30
30
|
|
|
31
31
|
// Create handler API with in-memory DB
|
|
32
32
|
const api = createHotUpdater({
|