@hot-updater/js 0.20.15 → 0.21.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/index.cjs CHANGED
@@ -1474,14 +1474,16 @@ const INIT_BUNDLE_ROLLBACK_UPDATE_INFO = {
1474
1474
  id: __hot_updater_core.NIL_UUID,
1475
1475
  shouldForceUpdate: true,
1476
1476
  status: "ROLLBACK",
1477
- storageUri: null
1477
+ storageUri: null,
1478
+ fileHash: null
1478
1479
  };
1479
1480
  const makeResponse = (bundle, status) => ({
1480
1481
  id: bundle.id,
1481
1482
  message: bundle.message,
1482
1483
  shouldForceUpdate: status === "ROLLBACK" ? true : bundle.shouldForceUpdate,
1483
1484
  status,
1484
- storageUri: bundle.storageUri
1485
+ storageUri: bundle.storageUri,
1486
+ fileHash: bundle.fileHash
1485
1487
  });
1486
1488
  const getUpdateInfo = async (bundles, args) => {
1487
1489
  switch (args._updateStrategy) {
package/dist/index.js CHANGED
@@ -1473,14 +1473,16 @@ const INIT_BUNDLE_ROLLBACK_UPDATE_INFO = {
1473
1473
  id: NIL_UUID,
1474
1474
  shouldForceUpdate: true,
1475
1475
  status: "ROLLBACK",
1476
- storageUri: null
1476
+ storageUri: null,
1477
+ fileHash: null
1477
1478
  };
1478
1479
  const makeResponse = (bundle, status) => ({
1479
1480
  id: bundle.id,
1480
1481
  message: bundle.message,
1481
1482
  shouldForceUpdate: status === "ROLLBACK" ? true : bundle.shouldForceUpdate,
1482
1483
  status,
1483
- storageUri: bundle.storageUri
1484
+ storageUri: bundle.storageUri,
1485
+ fileHash: bundle.fileHash
1484
1486
  });
1485
1487
  const getUpdateInfo = async (bundles, args) => {
1486
1488
  switch (args._updateStrategy) {
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@hot-updater/js",
3
- "version": "0.20.15",
3
+ "version": "0.21.0",
4
4
  "type": "module",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "sideEffects": false,
7
- "main": "dist/index.cjs",
8
- "module": "dist/index.js",
9
- "types": "dist/index.d.ts",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.cts",
10
10
  "exports": {
11
11
  ".": {
12
12
  "import": "./dist/index.js",
13
13
  "require": "./dist/index.cjs"
14
- }
14
+ },
15
+ "./package.json": "./package.json"
15
16
  },
16
17
  "files": [
17
18
  "dist",
@@ -38,13 +39,14 @@
38
39
  "access": "public"
39
40
  },
40
41
  "dependencies": {
41
- "@hot-updater/core": "0.20.15"
42
+ "@hot-updater/core": "0.21.0"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@types/node": "^20",
45
46
  "@types/semver": "^7.5.8",
46
47
  "jose": "^6.0.10",
47
- "semver": "^7.6.3"
48
+ "semver": "^7.6.3",
49
+ "@hot-updater/test-utils": "0.21.0"
48
50
  },
49
51
  "scripts": {
50
52
  "build": "tsdown",