Skip to content

Commit 94a886e

Browse files
Version Packages (#472)
* Version Packages * fix release --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Karlo Benčić <karlo.bencic@gmail.com>
1 parent b3c0102 commit 94a886e

File tree

3 files changed

+43
-43
lines changed

3 files changed

+43
-43
lines changed

.changeset/funny-coins-judge.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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",
@@ -86,6 +86,6 @@
8686
"test": "bun test",
8787
"build": "tsup",
8888
"changeset": "changeset",
89-
"version": "changeset version && bun update"
89+
"version": "changeset version && bun install"
9090
}
9191
}

0 commit comments

Comments
 (0)