@vidtreo/recorder 0.8.4 → 0.8.6

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.
Files changed (4) hide show
  1. package/README.md +9 -6
  2. package/dist/index.d.ts +566 -363
  3. package/dist/index.js +10859 -2755
  4. package/package.json +11 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vidtreo/recorder",
3
- "version": "0.8.4",
3
+ "version": "0.8.6",
4
4
  "type": "module",
5
5
  "description": "Vidtreo SDK for browser-based video recording and transcoding. Features include camera/screen recording, real-time MP4 transcoding, audio level analysis, mute/pause controls, source switching, device selection, and automatic backend uploads. Similar to Ziggeo and Addpipe, Vidtreo provides enterprise-grade video processing capabilities for web applications.",
6
6
  "main": "./dist/index.js",
@@ -16,16 +16,19 @@
16
16
  "dist"
17
17
  ],
18
18
  "scripts": {
19
- "build": "bun run build:js && bun run build:types && bun run build:worklet && bun scripts/flatten-types.ts",
19
+ "build": "bun run build:worker && bun run inline-worker && bun run build:js && bun run build:types && bun scripts/flatten-types.ts",
20
20
  "build:js": "bun build ./src/index.ts --outdir ./dist --format esm --packages external --sourcemap=none",
21
- "build:worklet": "cp src/core/processor/audio-capture-processor.worklet.js dist/audio-capture-processor.worklet.js",
22
- "build:dev": "bun build ./src/index.ts --outdir ./dist --format esm --packages external --sourcemap=external && bunx tsc --emitDeclarationOnly --declaration --outDir dist --declarationMap && bun run build:worklet && bun scripts/flatten-types.ts --dev",
23
- "build:prod": "NODE_ENV=production bun build ./src/index.ts --outdir ./dist --format esm --packages external --sourcemap=none --minify-whitespace --minify-identifiers --minify-syntax --drop console --drop debugger && bunx tsc --emitDeclarationOnly --declaration --outDir dist --declarationMap false && bun run build:worklet && bun scripts/flatten-types.ts --prod",
21
+ "build:worker": "bun build ./src/core/processor/worker/recorder-worker.ts --outdir ./dist/worker --format esm --packages bundle --sourcemap=none",
22
+ "inline-worker": "bun scripts/inline-worker.ts",
23
+ "build:dev": "bun run build:worker && bun run inline-worker && bun build ./src/index.ts --outdir ./dist --format esm --packages external --sourcemap=external && bunx tsc --emitDeclarationOnly --declaration --outDir dist --declarationMap && bun scripts/flatten-types.ts --dev",
24
+ "build:prod": "NODE_ENV=production bun build ./src/core/processor/worker/recorder-worker.ts --outdir ./dist/worker --format esm --packages bundle --sourcemap=none --minify-whitespace --minify-identifiers --minify-syntax --drop console --drop debugger && bun run inline-worker && bun build ./src/index.ts --outdir ./dist --format esm --packages external --sourcemap=none --minify-whitespace --minify-identifiers --minify-syntax --drop console --drop debugger && bunx tsc --emitDeclarationOnly --declaration --outDir dist --declarationMap false && bun scripts/flatten-types.ts --prod",
24
25
  "build:types": "bunx tsc --emitDeclarationOnly --declaration --outDir dist --declarationMap false",
25
26
  "clean": "rm -rf dist",
26
27
  "test": "bun test --concurrent",
27
28
  "test:watch": "bun test --watch --concurrent",
28
- "test:coverage": "bun test --coverage --concurrent"
29
+ "test:coverage": "bun test --coverage --concurrent",
30
+ "test:isolation": "bun test --bail",
31
+ "test:random": "bun test --bail --rerun-each 2"
29
32
  },
30
33
  "keywords": [
31
34
  "video",
@@ -41,9 +44,10 @@
41
44
  "author": "cfonseca@vidtreo.com",
42
45
  "license": "MIT",
43
46
  "dependencies": {
44
- "mediabunny": "^1.25.3"
47
+ "mediabunny": "^1.25.8"
45
48
  },
46
49
  "devDependencies": {
50
+ "@happy-dom/global-registrator": "^20.0.11",
47
51
  "@types/node": "^24.10.1",
48
52
  "typescript": "^5.9.3",
49
53
  "vite": "^7.2.4"