diff --git a/.changeset/witness-validator-read-types.md b/.changeset/witness-validator-read-types.md new file mode 100644 index 0000000..e357b60 --- /dev/null +++ b/.changeset/witness-validator-read-types.md @@ -0,0 +1,10 @@ +--- +"@viz-cx/api": patch +--- + +Fix read-path types for the viz-cpp-node witness→validator migration. The +site API now emits `current_validator` (was `current_witness`) on `GET /`, +and `validators_voted_for` / `validator_votes` (were `witnesses_voted_for` / +`witness_votes`) on `GET /profile/{user}`. The new field names are now the +primary types; the old names are retained as `@deprecated` aliases for +consumers still reading from older nodes. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7c9995..de3c286 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: with: { version: 10.34.4 } - uses: actions/setup-node@v6 with: - node-version: 20 + node-version: 22 cache: pnpm - name: Upgrade npm for OIDC Trusted Publisher support run: npm install -g npm@latest