Skip to content

Releases: TrustNXT/c2pa-ts

v0.11.0

05 Jan 16:32

Choose a tag to compare

Minor Changes

  • b3c0102: # Large Asset Support - Asset Abstraction

    ⚠️ Breaking API Changes — Several methods are now async. Add await where needed.

    What's New

    • Blob support: Assets accept Uint8Array or Blob — enables streaming large files (multi-GB) without loading into memory

    • writeToFile(path): Streams output directly to disk (preferred for large files)

    • getBlob(): Returns underlying Blob if available

      Breaking Changes

      Asset Creation & Interface

      The AssetType interface has been updated to support async creation and Blob sources. Use create() instead of new.

      // Before
      const asset = new JPEG(data);
      const canRead = JPEG.canRead(data);
      
      // After
      const asset = await JPEG.create(data);
      const canRead = await JPEG.canRead(data);

      Async Methods

      These methods are now async:

      Method Now returns
      canRead() Promise<boolean>
      create() Promise<Asset>
      getManifestJUMBF() Promise<Uint8Array | undefined>
      ensureManifestSpace() Promise<void>
      writeManifestJUMBF() Promise<void>

v0.10.0

19 Dec 16:03

Choose a tag to compare

Minor Changes

  • 1e8b6e0: Write ECDSA signatures in P1363 format

v0.9.5

12 Dec 15:03
d628c35

Choose a tag to compare

Patch Changes

  • 68b9c64: Fix TypeScript 5.8+ ArrayBuffer/BufferSource compatibility inconsistencies

v0.9.4

12 Nov 10:59
8cb790f

Choose a tag to compare

Patch Changes

v0.9.0

03 Nov 09:37
16666ea

Choose a tag to compare

Minor Changes

v0.8.0

24 Mar 17:33
a3afe9f

Choose a tag to compare

Minor Changes

  • f8a48f3: Breaking Change: Introduce Signer interface to support external signing of manifests

v0.7.1

17 Feb 22:34
c45be59

Choose a tag to compare

Patch Changes

  • e8a9d1a: Add missing v2 prop c2pa_manifest in IngredientAssertion for backward compatibility.
  • e8a9d1a: Switch to tsup for building the dist

v0.7.0

28 Jan 14:53
efc6608

Choose a tag to compare

Minor Changes

  • 48a0242: Fix field mappings for actions assertion
  • e07fab7: Implement v2 timestamping (sigTst2)
  • 85916f6: BMFF hash v3 assertion

Patch Changes

  • 774c5ef: Enhanced timestamp validation

v0.6.0

13 Jan 15:58
850ed1b

Choose a tag to compare

Minor Changes

  • 097fab2: C2PA v2.1 Updates - ingredients assertion v3

v0.5.4

06 Dec 17:22
37c589a

Choose a tag to compare

Patch Changes

  • b90dd4b: Use two underscores for ingredient thumbnail assertion suffix