@hot-updater/aws 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.
@@ -7603,16 +7603,16 @@ const commonOptions = {
7603
7603
  return new __hot_updater_cli_tools.ConfigBuilder().setBuildType(build).setStorage(storageConfig).setDatabase(databaseConfig).setIntermediateCode(intermediate).getResult();
7604
7604
  };
7605
7605
  const SOURCE_TEMPLATE = `// Add this to your App.tsx
7606
- import { HotUpdater, getUpdateSource } from "@hot-updater/react-native";
7606
+ import { HotUpdater } from "@hot-updater/react-native";
7607
7607
 
7608
7608
  function App() {
7609
7609
  return ...;
7610
7610
  }
7611
7611
 
7612
7612
  export default HotUpdater.wrap({
7613
- source: getUpdateSource("%%source%%", {
7614
- updateStrategy: "appVersion", // or "fingerprint"
7615
- }),
7613
+ baseURL: "%%source%%",
7614
+ updateStrategy: "appVersion", // or "fingerprint"
7615
+ updateMode: "auto",
7616
7616
  })(App);`;
7617
7617
 
7618
7618
  //#endregion
package/dist/iac/index.js CHANGED
@@ -7577,16 +7577,16 @@ const commonOptions = {
7577
7577
  return new ConfigBuilder().setBuildType(build).setStorage(storageConfig).setDatabase(databaseConfig).setIntermediateCode(intermediate).getResult();
7578
7578
  };
7579
7579
  const SOURCE_TEMPLATE = `// Add this to your App.tsx
7580
- import { HotUpdater, getUpdateSource } from "@hot-updater/react-native";
7580
+ import { HotUpdater } from "@hot-updater/react-native";
7581
7581
 
7582
7582
  function App() {
7583
7583
  return ...;
7584
7584
  }
7585
7585
 
7586
7586
  export default HotUpdater.wrap({
7587
- source: getUpdateSource("%%source%%", {
7588
- updateStrategy: "appVersion", // or "fingerprint"
7589
- }),
7587
+ baseURL: "%%source%%",
7588
+ updateStrategy: "appVersion", // or "fingerprint"
7589
+ updateMode: "auto",
7590
7590
  })(App);`;
7591
7591
 
7592
7592
  //#endregion
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { S3ClientConfig } from "@aws-sdk/client-s3";
2
- import * as _hot_updater_plugin_core1 from "@hot-updater/plugin-core";
2
+ import * as _hot_updater_plugin_core0 from "@hot-updater/plugin-core";
3
3
 
4
4
  //#region src/s3Database.d.ts
5
5
  interface S3DatabaseConfig extends S3ClientConfig {
@@ -14,7 +14,7 @@ interface S3DatabaseConfig extends S3ClientConfig {
14
14
  cloudfrontDistributionId?: string;
15
15
  apiBasePath?: string;
16
16
  }
17
- declare const s3Database: (config: S3DatabaseConfig, hooks?: _hot_updater_plugin_core1.DatabasePluginHooks) => _hot_updater_plugin_core1.DatabasePlugin;
17
+ declare const s3Database: (config: S3DatabaseConfig, hooks?: _hot_updater_plugin_core0.DatabasePluginHooks) => _hot_updater_plugin_core0.DatabasePlugin;
18
18
  //#endregion
19
19
  //#region src/s3Storage.d.ts
20
20
  interface S3StorageConfig extends S3ClientConfig {
@@ -24,6 +24,6 @@ interface S3StorageConfig extends S3ClientConfig {
24
24
  */
25
25
  basePath?: string;
26
26
  }
27
- declare const s3Storage: (config: S3StorageConfig, hooks?: _hot_updater_plugin_core1.StoragePluginHooks) => () => _hot_updater_plugin_core1.StoragePlugin;
27
+ declare const s3Storage: (config: S3StorageConfig, hooks?: _hot_updater_plugin_core0.StoragePluginHooks) => () => _hot_updater_plugin_core0.StoragePlugin;
28
28
  //#endregion
29
29
  export { S3DatabaseConfig, S3StorageConfig, s3Database, s3Storage };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/aws",
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",
@@ -44,9 +44,9 @@
44
44
  "execa": "9.5.2",
45
45
  "hono": "^4.6.3",
46
46
  "mime": "^4.0.4",
47
- "@hot-updater/core": "0.23.0",
48
- "@hot-updater/js": "0.23.0",
49
- "@hot-updater/test-utils": "0.23.0"
47
+ "@hot-updater/core": "0.24.0",
48
+ "@hot-updater/js": "0.24.0",
49
+ "@hot-updater/test-utils": "0.24.0"
50
50
  },
51
51
  "dependencies": {
52
52
  "@aws-sdk/client-cloudfront": "3.772.0",
@@ -59,8 +59,8 @@
59
59
  "@aws-sdk/credential-providers": "3.772.0",
60
60
  "@aws-sdk/lib-storage": "3.772.0",
61
61
  "aws-lambda": "1.0.7",
62
- "@hot-updater/cli-tools": "0.23.0",
63
- "@hot-updater/plugin-core": "0.23.0"
62
+ "@hot-updater/cli-tools": "0.24.0",
63
+ "@hot-updater/plugin-core": "0.24.0"
64
64
  },
65
65
  "scripts": {
66
66
  "build": "tsdown",