@hot-updater/cloudflare 0.17.0 → 0.18.1
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/iac/index.cjs +12362 -12838
- package/dist/iac/index.d.cts +8 -4
- package/dist/iac/index.d.ts +8 -4
- package/dist/iac/index.js +12364 -12847
- package/dist/index.cjs +8062 -7779
- package/dist/index.d.cts +14 -10
- package/dist/index.d.ts +14 -10
- package/dist/index.js +8063 -7775
- package/package.json +7 -7
- package/sql/bundles.sql +6 -2
- package/worker/dist/README.md +1 -1
- package/worker/dist/index.js +2047 -1969
- package/worker/dist/index.js.map +4 -4
- package/worker/migrations/0003_hot-updater_0.18.0.sql +38 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hot-updater/cloudflare",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.18.1",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"cloudflare": "4.2.0",
|
|
43
|
-
"@hot-updater/
|
|
44
|
-
"@hot-updater/
|
|
45
|
-
"@hot-updater/plugin-core": "0.
|
|
43
|
+
"@hot-updater/core": "0.18.1",
|
|
44
|
+
"@hot-updater/js": "0.18.1",
|
|
45
|
+
"@hot-updater/plugin-core": "0.18.1"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@clack/prompts": "0.10.0",
|
|
49
|
-
"@cloudflare/vitest-pool-workers": "^0.8.
|
|
50
|
-
"@cloudflare/workers-types": "^4.
|
|
49
|
+
"@cloudflare/vitest-pool-workers": "^0.8.26",
|
|
50
|
+
"@cloudflare/workers-types": "^4.20250507.0",
|
|
51
51
|
"@types/node": "^22.13.0",
|
|
52
52
|
"@types/semver": "^7.5.8",
|
|
53
53
|
"dayjs": "^1.11.13",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"xdg-app-paths": "^8.3.0"
|
|
65
65
|
},
|
|
66
66
|
"scripts": {
|
|
67
|
-
"build": "
|
|
67
|
+
"build": "tsdown && pnpm build:worker",
|
|
68
68
|
"build:worker": "wrangler deploy worker/src/index.ts --dry-run --outdir ./worker/dist",
|
|
69
69
|
"test:type": "tsc --noEmit",
|
|
70
70
|
"dev": "wrangler dev worker/src/index.ts"
|
package/sql/bundles.sql
CHANGED
|
@@ -3,13 +3,17 @@
|
|
|
3
3
|
CREATE TABLE bundles (
|
|
4
4
|
id TEXT PRIMARY KEY,
|
|
5
5
|
platform TEXT NOT NULL CHECK (platform IN ('ios', 'android')),
|
|
6
|
-
target_app_version TEXT
|
|
6
|
+
target_app_version TEXT,
|
|
7
7
|
should_force_update INTEGER NOT NULL CHECK (should_force_update IN (0, 1)),
|
|
8
8
|
enabled INTEGER NOT NULL CHECK (enabled IN (0, 1)),
|
|
9
9
|
file_hash TEXT NOT NULL,
|
|
10
10
|
git_commit_hash TEXT,
|
|
11
11
|
message TEXT,
|
|
12
|
-
channel TEXT NOT NULL
|
|
12
|
+
channel TEXT NOT NULL,
|
|
13
|
+
storage_uri TEXT,
|
|
14
|
+
fingerprint_hash TEXT,
|
|
15
|
+
metadata JSONB DEFAULT '{}'
|
|
13
16
|
);
|
|
14
17
|
|
|
15
18
|
CREATE INDEX bundles_target_app_version_idx ON bundles(target_app_version);
|
|
19
|
+
CREATE INDEX bundles_fingerprint_hash_idx ON bundles(fingerprint_hash);
|
package/worker/dist/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains the built output assets for the worker "hot-updater" generated at 2025-
|
|
1
|
+
This folder contains the built output assets for the worker "hot-updater" generated at 2025-05-30T15:18:41.452Z.
|