@hot-updater/cloudflare 0.12.7 → 0.13.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/{utils → iac}/index.cjs +3816 -3183
- package/dist/iac/index.d.cts +3 -0
- package/dist/iac/index.d.ts +3 -0
- package/dist/{chunk-3ENNYGRH.js → iac/index.js} +5097 -177
- package/dist/index.cjs +141 -147
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +7580 -266
- package/package.json +22 -12
- package/sql/bundles.sql +2 -2
- package/sql/prepareSql.ts +2 -1
- package/worker/dist/README.md +1 -1
- package/worker/dist/index.js +3056 -160
- package/worker/dist/index.js.map +4 -4
- package/worker/migrations/0002_hot-updater_0.13.0.sql +8 -0
- package/worker/wrangler.json +10 -1
- package/dist/utils/index.d.cts +0 -27
- package/dist/utils/index.d.ts +0 -27
- package/dist/utils/index.js +0 -4296
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.13.1",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -11,13 +11,13 @@
|
|
|
11
11
|
"import": "./dist/index.js",
|
|
12
12
|
"require": "./dist/index.cjs"
|
|
13
13
|
},
|
|
14
|
-
"./utils": {
|
|
15
|
-
"types": "./dist/utils/index.d.ts",
|
|
16
|
-
"import": "./dist/utils/index.js",
|
|
17
|
-
"require": "./dist/utils/index.cjs"
|
|
18
|
-
},
|
|
19
14
|
"./worker": {
|
|
20
15
|
"default": "./worker/wrangler.json"
|
|
16
|
+
},
|
|
17
|
+
"./iac": {
|
|
18
|
+
"types": "./dist/iac/index.d.ts",
|
|
19
|
+
"import": "./dist/iac/index.js",
|
|
20
|
+
"require": "./dist/iac/index.cjs"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"license": "MIT",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"package.json"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@hot-updater/core": "0.
|
|
43
|
-
"@hot-updater/js": "0.
|
|
44
|
-
"@hot-updater/plugin-core": "0.
|
|
45
|
-
"cloudflare": "4.
|
|
42
|
+
"@hot-updater/core": "0.13.1",
|
|
43
|
+
"@hot-updater/js": "0.13.1",
|
|
44
|
+
"@hot-updater/plugin-core": "0.13.1",
|
|
45
|
+
"cloudflare": "4.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@cloudflare/vitest-pool-workers": "^0.8.0",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@types/semver": "^7.5.8",
|
|
52
52
|
"dayjs": "^1.11.13",
|
|
53
53
|
"execa": "^9.5.2",
|
|
54
|
+
"hono": "^4.6.3",
|
|
54
55
|
"mime": "^4.0.4",
|
|
55
56
|
"pg-minify": "^1.6.5",
|
|
56
57
|
"picocolors": "^1.0.0",
|
|
@@ -58,8 +59,17 @@
|
|
|
58
59
|
"toml": "^3.0.0",
|
|
59
60
|
"typescript": "^5.5.2",
|
|
60
61
|
"vitest": "2.1.8",
|
|
61
|
-
"wrangler": "^4.
|
|
62
|
-
"xdg-app-paths": "^8.3.0"
|
|
62
|
+
"wrangler": "^4.5.0",
|
|
63
|
+
"xdg-app-paths": "^8.3.0",
|
|
64
|
+
"@clack/prompts": "^0.10.0"
|
|
65
|
+
},
|
|
66
|
+
"peerDependencies": {
|
|
67
|
+
"@clack/prompts": "*"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"@clack/prompts": {
|
|
71
|
+
"optional": true
|
|
72
|
+
}
|
|
63
73
|
},
|
|
64
74
|
"scripts": {
|
|
65
75
|
"build": "tsup && pnpm build:worker",
|
package/sql/bundles.sql
CHANGED
|
@@ -6,10 +6,10 @@ CREATE TABLE bundles (
|
|
|
6
6
|
target_app_version TEXT NOT NULL,
|
|
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
|
-
file_url TEXT NOT NULL,
|
|
10
9
|
file_hash TEXT NOT NULL,
|
|
11
10
|
git_commit_hash TEXT,
|
|
12
|
-
message TEXT
|
|
11
|
+
message TEXT,
|
|
12
|
+
channel TEXT NOT NULL
|
|
13
13
|
);
|
|
14
14
|
|
|
15
15
|
CREATE INDEX bundles_target_app_version_idx ON bundles(target_app_version);
|
package/sql/prepareSql.ts
CHANGED
package/worker/dist/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
This folder contains the built output assets for the worker "hot-updater" generated at 2025-03-
|
|
1
|
+
This folder contains the built output assets for the worker "hot-updater" generated at 2025-03-27T17:02:12.314Z.
|