@hot-updater/firebase 0.29.7 → 0.30.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.
@@ -114,7 +114,7 @@ function getNumericCohortRolloutPosition(bundleId, cohortValue) {
114
114
  function isCohortEligibleForUpdate(bundleId, cohort, rolloutCohortCount, targetCohorts) {
115
115
  const normalizedCohort = cohort === null || cohort === void 0 ? void 0 : normalizeCohortValue(cohort);
116
116
  const normalizedTargetCohorts = targetCohorts?.map((targetCohort) => normalizeCohortValue(targetCohort)) ?? [];
117
- if (normalizedTargetCohorts.length > 0) return normalizedCohort !== void 0 && normalizedTargetCohorts.includes(normalizedCohort);
117
+ if (normalizedCohort !== void 0 && normalizedTargetCohorts.includes(normalizedCohort)) return true;
118
118
  const normalizedRolloutCount = normalizeRolloutCohortCount(rolloutCohortCount);
119
119
  if (normalizedRolloutCount <= 0) return false;
120
120
  if (normalizedCohort === void 0) return normalizedRolloutCount >= NUMERIC_COHORT_SIZE;
@@ -4964,6 +4964,7 @@ const hotUpdater = (0, _hot_updater_server_runtime.createHotUpdater)({
4964
4964
  basePath: HOT_UPDATER_BASE_PATH,
4965
4965
  routes: {
4966
4966
  updateCheck: true,
4967
+ version: true,
4967
4968
  bundles: false
4968
4969
  }
4969
4970
  });
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/firebase",
3
3
  "type": "module",
4
- "version": "0.29.7",
4
+ "version": "0.30.0",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "types": "dist/index.d.cts",
@@ -36,10 +36,10 @@
36
36
  "dependencies": {
37
37
  "firebase": "^11.3.1",
38
38
  "hono": "4.12.9",
39
- "@hot-updater/cli-tools": "0.29.7",
40
- "@hot-updater/core": "0.29.7",
41
- "@hot-updater/plugin-core": "0.29.7",
42
- "@hot-updater/server": "0.29.7"
39
+ "@hot-updater/cli-tools": "0.30.0",
40
+ "@hot-updater/plugin-core": "0.30.0",
41
+ "@hot-updater/server": "0.30.0",
42
+ "@hot-updater/core": "0.30.0"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"
@@ -54,9 +54,9 @@
54
54
  "firebase-tools": "^13.32.0",
55
55
  "fkill": "^9.0.0",
56
56
  "mime": "^4.0.4",
57
- "@hot-updater/js": "0.29.7",
58
- "@hot-updater/mock": "0.29.7",
59
- "@hot-updater/test-utils": "0.29.7"
57
+ "@hot-updater/js": "0.30.0",
58
+ "@hot-updater/test-utils": "0.30.0",
59
+ "@hot-updater/mock": "0.30.0"
60
60
  },
61
61
  "peerDependencies": {
62
62
  "firebase-admin": "*",