File tree Expand file tree Collapse file tree 3 files changed +43
-43
lines changed
Expand file tree Collapse file tree 3 files changed +43
-43
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# c2pa-ts
22
3+ ## 0.11.0
4+
5+ ### Minor Changes
6+
7+ - b3c0102: # Large Asset Support - Asset Abstraction
8+
9+ > ⚠️ ** Breaking API Changes** — Several methods are now async. Add ` await ` where needed.
10+
11+ ## What's New
12+ - ** Blob support** : Assets accept ` Uint8Array ` or ` Blob ` — enables streaming large files (multi-GB) without loading into memory
13+ - ** ` writeToFile(path) ` ** : Streams output directly to disk (preferred for large files)
14+ - ** ` getBlob() ` ** : Returns underlying Blob if available
15+
16+ ## Breaking Changes
17+
18+ ### Asset Creation & Interface
19+
20+ The ` AssetType ` interface has been updated to support async creation and ` Blob ` sources. Use ` create() ` instead of ` new ` .
21+
22+ ``` typescript
23+ // Before
24+ const asset = new JPEG (data );
25+ const canRead = JPEG .canRead (data );
26+
27+ // After
28+ const asset = await JPEG .create (data );
29+ const canRead = await JPEG .canRead (data );
30+ ```
31+
32+ ### Async Methods
33+
34+ These methods are now async :
35+
36+ | Method | Now returns |
37+ | ---------------------- - | ---------------------------------- |
38+ | ` canRead() ` | ` Promise<boolean> ` |
39+ | ` create() ` | ` Promise<Asset> ` |
40+ | ` getManifestJUMBF() ` | ` Promise<Uint8Array \| undefined> ` |
41+ | ` ensureManifestSpace() ` | ` Promise<void> ` |
42+ | ` writeManifestJUMBF() ` | ` Promise<void> ` |
43+
344## 0.10 .0
445
546### Minor Changes
Original file line number Diff line number Diff line change 11{
22 "name" : " @trustnxt/c2pa-ts" ,
3- "version" : " 0.10 .0" ,
3+ "version" : " 0.11 .0" ,
44 "type" : " module" ,
55 "author" : " TrustNXT GmbH <mail@trustnxt.com>" ,
66 "license" : " Apache-2.0" ,
8686 "test" : " bun test" ,
8787 "build" : " tsup" ,
8888 "changeset" : " changeset" ,
89- "version" : " changeset version && bun update "
89+ "version" : " changeset version && bun install "
9090 }
9191}
You can’t perform that action at this time.
0 commit comments