@hot-updater/cloudflare 0.23.1 → 0.24.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/dist/iac/index.cjs +4 -4
- package/dist/iac/index.js +4 -4
- package/dist/index.d.cts +3 -3
- package/package.json +6 -6
- package/worker/dist/README.md +1 -1
package/dist/iac/index.cjs
CHANGED
|
@@ -11047,16 +11047,16 @@ const getConfigTemplate = (build) => {
|
|
|
11047
11047
|
}).getResult();
|
|
11048
11048
|
};
|
|
11049
11049
|
const SOURCE_TEMPLATE = `// add this to your App.tsx
|
|
11050
|
-
import { HotUpdater
|
|
11050
|
+
import { HotUpdater } from "@hot-updater/react-native";
|
|
11051
11051
|
|
|
11052
11052
|
function App() {
|
|
11053
11053
|
return ...
|
|
11054
11054
|
}
|
|
11055
11055
|
|
|
11056
11056
|
export default HotUpdater.wrap({
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11057
|
+
baseURL: "%%source%%",
|
|
11058
|
+
updateStrategy: "appVersion", // or "fingerprint"
|
|
11059
|
+
updateMode: "auto",
|
|
11060
11060
|
})(App);`;
|
|
11061
11061
|
const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseName, r2BucketName }) => {
|
|
11062
11062
|
const cwd = (0, __hot_updater_cli_tools.getCwd)();
|
package/dist/iac/index.js
CHANGED
|
@@ -11027,16 +11027,16 @@ const getConfigTemplate = (build) => {
|
|
|
11027
11027
|
}).getResult();
|
|
11028
11028
|
};
|
|
11029
11029
|
const SOURCE_TEMPLATE = `// add this to your App.tsx
|
|
11030
|
-
import { HotUpdater
|
|
11030
|
+
import { HotUpdater } from "@hot-updater/react-native";
|
|
11031
11031
|
|
|
11032
11032
|
function App() {
|
|
11033
11033
|
return ...
|
|
11034
11034
|
}
|
|
11035
11035
|
|
|
11036
11036
|
export default HotUpdater.wrap({
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11037
|
+
baseURL: "%%source%%",
|
|
11038
|
+
updateStrategy: "appVersion", // or "fingerprint"
|
|
11039
|
+
updateMode: "auto",
|
|
11040
11040
|
})(App);`;
|
|
11041
11041
|
const deployWorker = async (oauth_token, accountId, { d1DatabaseId, d1DatabaseName, r2BucketName }) => {
|
|
11042
11042
|
const cwd = getCwd();
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _hot_updater_plugin_core1 from "@hot-updater/plugin-core";
|
|
2
2
|
|
|
3
3
|
//#region src/d1Database.d.ts
|
|
4
4
|
interface D1DatabaseConfig {
|
|
@@ -6,7 +6,7 @@ interface D1DatabaseConfig {
|
|
|
6
6
|
accountId: string;
|
|
7
7
|
cloudflareApiToken: string;
|
|
8
8
|
}
|
|
9
|
-
declare const d1Database: (config: D1DatabaseConfig, hooks?:
|
|
9
|
+
declare const d1Database: (config: D1DatabaseConfig, hooks?: _hot_updater_plugin_core1.DatabasePluginHooks) => (() => _hot_updater_plugin_core1.DatabasePlugin);
|
|
10
10
|
//#endregion
|
|
11
11
|
//#region src/r2Storage.d.ts
|
|
12
12
|
interface R2StorageConfig {
|
|
@@ -41,6 +41,6 @@ interface R2StorageConfig {
|
|
|
41
41
|
* })
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
declare const r2Storage: (config: R2StorageConfig, hooks?:
|
|
44
|
+
declare const r2Storage: (config: R2StorageConfig, hooks?: _hot_updater_plugin_core1.StoragePluginHooks) => () => _hot_updater_plugin_core1.StoragePlugin;
|
|
45
45
|
//#endregion
|
|
46
46
|
export { D1DatabaseConfig, R2StorageConfig, d1Database, r2Storage };
|
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.24.0",
|
|
5
5
|
"description": "React Native OTA solution for self-hosted",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"module": "dist/index.js",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
],
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"cloudflare": "4.2.0",
|
|
44
|
-
"@hot-updater/cli-tools": "0.
|
|
45
|
-
"@hot-updater/
|
|
46
|
-
"@hot-updater/
|
|
47
|
-
"@hot-updater/
|
|
44
|
+
"@hot-updater/cli-tools": "0.24.0",
|
|
45
|
+
"@hot-updater/js": "0.24.0",
|
|
46
|
+
"@hot-updater/plugin-core": "0.24.0",
|
|
47
|
+
"@hot-updater/core": "0.24.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@cloudflare/vitest-pool-workers": "^0.8.70",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"vitest": "2.1.8",
|
|
63
63
|
"wrangler": "^4.5.0",
|
|
64
64
|
"xdg-app-paths": "^8.3.0",
|
|
65
|
-
"@hot-updater/test-utils": "0.
|
|
65
|
+
"@hot-updater/test-utils": "0.24.0"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"build": "tsdown && pnpm build:worker",
|
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-12-05T17:29:09.133Z.
|