From b9497d350183df815a217e2fb55cad775ab6c866 Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Mon, 19 Oct 2026 21:13:34 +0200 Subject: [PATCH] cultmesh-browser 0.4.0: version, ranges, CHANGELOG, README floor and redirect statement Co-Authored-By: Claude Opus 5.5 --- packages/cultmesh-browser/CHANGELOG.md | 17 +++++++++++++++++ packages/cultmesh-browser/README.md | 5 +++++ packages/cultmesh-browser/package.json | 6 +++--- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 packages/cultmesh-browser/CHANGELOG.md diff --git a/packages/cultmesh-browser/CHANGELOG.md b/packages/cultmesh-browser/CHANGELOG.md new file mode 100644 index 00000000..0093ccf0 --- /dev/null +++ b/packages/cultmesh-browser/CHANGELOG.md @@ -0,0 +1,17 @@ +# Changelog + +All notable changes to `cultmesh-browser` are recorded here, following +[Keep a Changelog](https://keepachangelog.com/en/1.1.0/). + +## [0.4.0] + +### Added +- A verifying content reader: `fetchVerifiedContent` and `fetchVerifiedChunk` + read CultMesh CDN content over HTTP and release no byte that failed its chunk + or whole-body SHA-256. Failures are `CultMeshContentError` with a stable + `code`. The reader refuses every redirect, including https to https, while + the single-host content trust stands. + +### Changed +- Depends on `cultnet-ts` `^0.3.0`; the interop test uses `cultmesh-ts` + `^0.2.0` as a devDependency. diff --git a/packages/cultmesh-browser/README.md b/packages/cultmesh-browser/README.md index 52410834..ab29d65f 100644 --- a/packages/cultmesh-browser/README.md +++ b/packages/cultmesh-browser/README.md @@ -89,6 +89,11 @@ the signal's own reason). Failures are `CultMeshContentError` with a `code` byte count actually received is judged, never a length header, because Fetch decodes content codings. +Browser floor: the reader needs `String.prototype.toWellFormed` (ES2024) and +WebCrypto `crypto.subtle`; without WebCrypto it fails with +`webcrypto-unavailable`. Redirects are refused, including https to https: the +endpoint CultMesh resolved is the only host the reader trusts. + ```ts import { fetchVerifiedContent } from "cultmesh-browser"; diff --git a/packages/cultmesh-browser/package.json b/packages/cultmesh-browser/package.json index 6520e11a..6d52c9bf 100644 --- a/packages/cultmesh-browser/package.json +++ b/packages/cultmesh-browser/package.json @@ -1,6 +1,6 @@ { "name": "cultmesh-browser", - "version": "0.3.0", + "version": "0.4.0", "description": "Browser-safe CultMesh document leases and typed operations over CultNet WebSocket transport.", "type": "module", "main": "dist/index.js", @@ -42,11 +42,11 @@ }, "dependencies": { "@gamecult/cultcache-ts": "^0.14.0", - "cultnet-ts": "^0.2.0" + "cultnet-ts": "^0.3.0" }, "devDependencies": { "@types/node": "^24.0.0", - "cultmesh-ts": "^0.1.1", + "cultmesh-ts": "^0.2.0", "typescript": "^5.9.0" } }