@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/cloudflare",
3
3
  "type": "module",
4
- "version": "0.12.7",
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.12.7",
43
- "@hot-updater/js": "0.12.7",
44
- "@hot-updater/plugin-core": "0.12.7",
45
- "cloudflare": "4.1.0"
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.0.0",
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
@@ -7,5 +7,6 @@ export const prepareSql = async () => {
7
7
  const contents = await Promise.all(
8
8
  sqlFiles.map((file) => fs.readFile(path.join(__dirname, file), "utf-8")),
9
9
  );
10
- return contents.join("\n");
10
+ const sql = contents.join("\n");
11
+ return sql;
11
12
  };
@@ -1 +1 @@
1
- This folder contains the built output assets for the worker "hot-updater" generated at 2025-03-19T10:33:48.004Z.
1
+ This folder contains the built output assets for the worker "hot-updater" generated at 2025-03-27T17:02:12.314Z.