@hot-updater/firebase 0.18.5 → 0.19.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.
@@ -8093,7 +8093,9 @@ function App() {
8093
8093
  }
8094
8094
 
8095
8095
  export default HotUpdater.wrap({
8096
- source: getUpdateSource("%%source%%"),
8096
+ source: getUpdateSource("%%source%%", {
8097
+ updateStrategy: "fingerprint", // or "appVersion"
8098
+ }),
8097
8099
  })(App);`;
8098
8100
  const REGIONS = [
8099
8101
  {
@@ -8197,10 +8199,16 @@ const deployFirestore = async (cwd) => {
8197
8199
  cwd,
8198
8200
  shell: true
8199
8201
  });
8200
- let originalIndexes = [];
8202
+ let originalIndexes = {
8203
+ indexes: [],
8204
+ fieldOverrides: []
8205
+ };
8201
8206
  try {
8202
8207
  const originalStdout = JSON.parse(original.stdout);
8203
- originalIndexes = originalStdout ?? [];
8208
+ originalIndexes = originalStdout ?? {
8209
+ indexes: [],
8210
+ fieldOverrides: []
8211
+ };
8204
8212
  } catch {}
8205
8213
  const newIndexes = JSON.parse(await fs.default.promises.readFile(path.default.join(cwd, "firestore.indexes.json"), "utf-8"));
8206
8214
  const mergedIndexes = mergeIndexes(originalIndexes, newIndexes);
package/dist/iac/index.js CHANGED
@@ -8096,7 +8096,9 @@ function App() {
8096
8096
  }
8097
8097
 
8098
8098
  export default HotUpdater.wrap({
8099
- source: getUpdateSource("%%source%%"),
8099
+ source: getUpdateSource("%%source%%", {
8100
+ updateStrategy: "fingerprint", // or "appVersion"
8101
+ }),
8100
8102
  })(App);`;
8101
8103
  const REGIONS = [
8102
8104
  {
@@ -8200,10 +8202,16 @@ const deployFirestore = async (cwd) => {
8200
8202
  cwd,
8201
8203
  shell: true
8202
8204
  });
8203
- let originalIndexes = [];
8205
+ let originalIndexes = {
8206
+ indexes: [],
8207
+ fieldOverrides: []
8208
+ };
8204
8209
  try {
8205
8210
  const originalStdout = JSON.parse(original.stdout);
8206
- originalIndexes = originalStdout ?? [];
8211
+ originalIndexes = originalStdout ?? {
8212
+ indexes: [],
8213
+ fieldOverrides: []
8214
+ };
8207
8215
  } catch {}
8208
8216
  const newIndexes = JSON.parse(await fs.promises.readFile(path.join(cwd, "firestore.indexes.json"), "utf-8"));
8209
8217
  const mergedIndexes = mergeIndexes(originalIndexes, newIndexes);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/firebase",
3
3
  "type": "module",
4
- "version": "0.18.5",
4
+ "version": "0.19.0",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "types": "dist/index.d.ts",
@@ -34,8 +34,8 @@
34
34
  ],
35
35
  "dependencies": {
36
36
  "firebase": "^11.3.1",
37
- "@hot-updater/core": "0.18.5",
38
- "@hot-updater/plugin-core": "0.18.5"
37
+ "@hot-updater/core": "0.19.0",
38
+ "@hot-updater/plugin-core": "0.19.0"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
@@ -53,7 +53,7 @@
53
53
  "hono": "^4.6.3",
54
54
  "mime": "^4.0.4",
55
55
  "picocolors": "^1.0.0",
56
- "@hot-updater/js": "0.18.5"
56
+ "@hot-updater/js": "0.19.0"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "firebase-admin": "*"