cultmesh-browser 0.4.0: version, ranges, CHANGELOG, README floor and redirect statement
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
92c6f42346
commit
b9497d3501
3 changed files with 25 additions and 3 deletions
17
packages/cultmesh-browser/CHANGELOG.md
Normal file
17
packages/cultmesh-browser/CHANGELOG.md
Normal file
|
|
@ -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.
|
||||
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue