FileMediaStore.body() kept one FileHandle for the whole response and closed it only at the end or on cancel. A player that seeks or closes mid-film often triggers neither; the handle then fell to the garbage collector, which Bun 1.4 treats as fatal. The Prism relay restarted five times this way. Each piece now opens and closes the file. Regression test runs in its own process and checks no descriptor is open between reads. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
28 lines
849 B
JSON
28 lines
849 B
JSON
{
|
|
"name": "@shade/media",
|
|
"version": "4.15.1",
|
|
"description": "End-to-end encrypted media streaming for Shade — seekable sealed films, videos, images and audio, and live channels for logs, text and live video",
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"types": "src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./node": "./src/node.ts",
|
|
"./server": "./src/server.ts",
|
|
"./browser": "./src/browser/index.ts",
|
|
"./worker": "./src/browser/worker.ts",
|
|
"./cli": "./src/cli.ts",
|
|
"./testing": "./src/testing.ts"
|
|
},
|
|
"dependencies": {
|
|
"@noble/curves": "^2.0.1",
|
|
"@noble/hashes": "^2.0.1",
|
|
"hono": "^4.12.18"
|
|
},
|
|
"scripts": {
|
|
"test": "bun test",
|
|
"typecheck": "tsc --noEmit",
|
|
"build:sw": "bun build src/browser/sw.ts --outfile dist/shade-media-sw.js --target browser --minify"
|
|
}
|
|
}
|