@contentauth/c2pa-node 0.9.9 → 0.9.11

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.
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  ## Prerequisites
9
9
 
10
- To use the c2pa-node library, you need Node.js 22 or later. If you need to manage multiple versions of Node on your machine, use a tool such as [nvm](https://github.com/nvm-sh/nvm).
10
+ To use the c2pa-node library, you need Node.js 22 or later. Use a patched release: v22.23.4+ on v22, v24.22.1+ on v24, or v26.12.1+ on v26. The binary installer and JavaScript fetch paths use Node's TLS stack independently of the Rust SDK; see [TLS trust stores](../../README.md#tls-trust-stores). If you need to manage multiple versions of Node on your machine, use a tool such as [nvm](https://github.com/nvm-sh/nvm).
11
11
 
12
12
  To build from source, you also need [Rust](https://www.rust-lang.org/tools/install). This is not required when installing the package normally: precompiled binaries are downloaded automatically during installation.
13
13
 
@@ -44,15 +44,41 @@ This command will download precompiled binaries for the following systems:
44
44
 
45
45
  ## Documentation
46
46
 
47
- Complete API documentation is generated from TypeScript source using [TypeDoc](https://typedoc.org/) and published to GitHub Pages at [https://contentauth.github.io/c2pa-js/](https://contentauth.github.io/c2pa-js/).
47
+ The [Node.js API documentation](https://contentauth.github.io/c2pa-js/node/) is
48
+ generated with [TypeDoc](https://typedoc.org/) from the declarations in published
49
+ versions of `@contentauth/c2pa-node`. Use the version selector to switch releases.
50
+ The [multi-package documentation](https://contentauth.github.io/c2pa-js/) remains
51
+ available at the existing root URL.
48
52
 
49
- To generate documentation locally, run the following from the monorepo root:
53
+ To build only the versioned Node docs, run this from the monorepo root after
54
+ installing workspace dependencies:
50
55
 
51
56
  ```bash
52
- pnpm ci:docs
57
+ pnpm ci:docs:node
53
58
  ```
54
59
 
55
- This generates HTML documentation in the `docs/` directory at the repo root. It is not checked into version control and is automatically published to GitHub Pages whenever a new release is published.
60
+ This requires npm and network access to the public npm registry, but no Rust build,
61
+ native binaries, or GitHub authentication. Packages are installed in isolated
62
+ temporary directories with lifecycle scripts disabled, and only their TypeScript
63
+ declarations are parsed. Temporary installs are removed after the build.
64
+
65
+ The first version in [node-versions.json](../../api-docs/node-versions.json) is
66
+ served at `docs/node/index.html`. Each selected release is also available at
67
+ `docs/node/versions/<version>/index.html`, published at
68
+ `https://contentauth.github.io/c2pa-js/node/versions/<version>/`.
69
+ Versions must be exact npm releases, not tags such as `latest` or version ranges.
70
+ Adding a release does not automatically change the default: put the desired
71
+ default first in the list.
72
+
73
+ Run `pnpm ci:docs:releases` to build the versioned Node and web docs, or
74
+ `pnpm ci:docs` to build the existing multi-package site and both versioned sites.
75
+ Node and web have independent version lists, and rebuilding one does not remove
76
+ the other. Generated HTML under `docs/` is not checked into version control.
77
+ The release workflow publishes the complete site after a new package release;
78
+ run that workflow manually to rebuild documentation without publishing packages.
79
+ Publishing a package does not automatically add it to the configured docs versions.
80
+
81
+ Run `pnpm test:docs` for the documentation tooling tests.
56
82
 
57
83
  ## Components
58
84
 
package/dist/index.node CHANGED
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/index.node
3
- size: 52040488 bytes
4
- sha256: 5f413ef149badf60fce3372fcd57b3d9a11683aaa13e15de7bd24257f171a125
3
+ size: 52193584 bytes
4
+ sha256: 859bbda762a313d312c61f5e28238cf40d0f4b7437cd0ef3e3d23df31a4442e6
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/contentauth/c2pa-js.git",
6
6
  "directory": "packages/c2pa-node"
7
7
  },
8
- "version": "0.9.9",
8
+ "version": "0.9.11",
9
9
  "description": "Node.js bindings for C2PA",
10
10
  "main": "dist/index.js",
11
11
  "type": "module",
@@ -64,8 +64,8 @@
64
64
  "pkg-dir": "^8.0.0",
65
65
  "pretty-bytes": "^6.1.1",
66
66
  "unzipper": "^0.10.14",
67
- "@contentauth/c2pa-types": "0.7.5",
68
- "@contentauth/c2pa-utilities": "0.3.1"
67
+ "@contentauth/c2pa-types": "0.7.7",
68
+ "@contentauth/c2pa-utilities": "0.3.3"
69
69
  },
70
70
  "nx": {
71
71
  "tags": [