@hot-updater/cloudflare 0.23.0 → 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.
@@ -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, getUpdateSource } from "@hot-updater/react-native";
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
- source: getUpdateSource("%%source%%", {
11058
- updateStrategy: "appVersion", // or "fingerprint"
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, getUpdateSource } from "@hot-updater/react-native";
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
- source: getUpdateSource("%%source%%", {
11038
- updateStrategy: "appVersion", // or "fingerprint"
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.ts CHANGED
@@ -1,4 +1,4 @@
1
- import * as _hot_updater_plugin_core0 from "@hot-updater/plugin-core";
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?: _hot_updater_plugin_core0.DatabasePluginHooks) => (() => _hot_updater_plugin_core0.DatabasePlugin);
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?: _hot_updater_plugin_core0.StoragePluginHooks) => () => _hot_updater_plugin_core0.StoragePlugin;
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.23.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.23.0",
45
- "@hot-updater/core": "0.23.0",
46
- "@hot-updater/js": "0.23.0",
47
- "@hot-updater/plugin-core": "0.23.0"
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.23.0"
65
+ "@hot-updater/test-utils": "0.24.0"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "tsdown && pnpm build:worker",
@@ -1 +1 @@
1
- This folder contains the built output assets for the worker "hot-updater" generated at 2025-11-28T14:02:40.473Z.
1
+ This folder contains the built output assets for the worker "hot-updater" generated at 2025-12-05T17:29:09.133Z.