@hot-updater/cloudflare 1.0.0-rc.42 → 1.0.0-rc.43

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hot-updater/cloudflare",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.42",
4
+ "version": "1.0.0-rc.43",
5
5
  "description": "React Native OTA solution for self-hosted",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -56,10 +56,10 @@
56
56
  "cloudflare": "4.2.0",
57
57
  "hono": "4.12.34",
58
58
  "uuidv7": "^1.0.2",
59
- "@hot-updater/cli-tools": "1.0.0-rc.42",
60
- "@hot-updater/protocol": "1.0.0-rc.42",
61
- "@hot-updater/plugin-core": "1.0.0-rc.42",
62
- "@hot-updater/server": "1.0.0-rc.42"
59
+ "@hot-updater/cli-tools": "1.0.0-rc.43",
60
+ "@hot-updater/protocol": "1.0.0-rc.43",
61
+ "@hot-updater/plugin-core": "1.0.0-rc.43",
62
+ "@hot-updater/server": "1.0.0-rc.43"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@cloudflare/vitest-pool-workers": "0.13.0",
@@ -75,7 +75,7 @@
75
75
  "vitest": "4.1.4",
76
76
  "wrangler": "^4.69.0",
77
77
  "xdg-app-paths": "^8.3.0",
78
- "@hot-updater/test-utils": "1.0.0-rc.42"
78
+ "@hot-updater/test-utils": "1.0.0-rc.43"
79
79
  },
80
80
  "scripts": {
81
81
  "build": "tsdown && pnpm build:worker",
@@ -1 +1 @@
1
- This folder contains the built output assets for the worker "hot-updater" generated at 2026-10-09T05:14:13.337Z.
1
+ This folder contains the built output assets for the worker "hot-updater" generated at 2026-10-09T07:58:40.468Z.
@@ -4596,7 +4596,7 @@ var createSqlAdapter = /* @__PURE__ */ __name(({ executor, tablePrefix = "", max
4596
4596
  }, "createSqlAdapter");
4597
4597
 
4598
4598
  // ../../packages/server/dist/package.mjs
4599
- var version = "1.0.0-rc.42";
4599
+ var version = "1.0.0-rc.43";
4600
4600
 
4601
4601
  // ../../packages/server/dist/version.mjs
4602
4602
  var HOT_UPDATER_SERVER_VERSION = version;
@@ -6710,6 +6710,7 @@ var ORIGIN_CACHE_TTL_MS = 5e3;
6710
6710
  var ORIGIN_CACHE_MAX_ENTRIES = 128;
6711
6711
  var NO_CATALOG_HEADER = "x-hot-updater-catalog";
6712
6712
  var CATALOG_CACHE_CONTROL = "public, max-age=0, s-maxage=5";
6713
+ var CATALOG_CDN_CACHE_CONTROL = "public, max-age=5, stale-while-revalidate=5, stale-if-error=0";
6713
6714
  var privateNotFound = /* @__PURE__ */ __name(() => Response.json({ error: "Not found" }, {
6714
6715
  status: 404,
6715
6716
  headers: { "cache-control": "private, no-store" }
@@ -6718,6 +6719,7 @@ var missingCatalog = /* @__PURE__ */ __name(() => Response.json({ error: "Not fo
6718
6719
  status: 404,
6719
6720
  headers: {
6720
6721
  "cache-control": CATALOG_CACHE_CONTROL,
6722
+ "cdn-cache-control": CATALOG_CDN_CACHE_CONTROL,
6721
6723
  vary: "Accept-Encoding",
6722
6724
  [NO_CATALOG_HEADER]: "none"
6723
6725
  }
@@ -6732,6 +6734,7 @@ var catalogResponse = /* @__PURE__ */ __name(async (catalog, request) => {
6732
6734
  const etag = `"sha256:${await responseHash(body2)}"`;
6733
6735
  const headers = {
6734
6736
  "cache-control": CATALOG_CACHE_CONTROL,
6737
+ "cdn-cache-control": CATALOG_CDN_CACHE_CONTROL,
6735
6738
  "content-type": CATALOG_CONTENT_TYPE,
6736
6739
  etag,
6737
6740
  vary: "Accept-Encoding"