Skip to content

chore(deps): upgrade @pkcprotocol/pkc-js to 0.0.45#86

Merged
Rinse12 merged 1 commit into
masterfrom
chore/upgrade-pkc-js-0.0.45
Jun 9, 2026
Merged

chore(deps): upgrade @pkcprotocol/pkc-js to 0.0.45#86
Rinse12 merged 1 commit into
masterfrom
chore/upgrade-pkc-js-0.0.45

Conversation

@Rinse12

@Rinse12 Rinse12 commented Jun 9, 2026

Copy link
Copy Markdown
Member

Summary

Upgrades @pkcprotocol/pkc-js from 0.0.41 → 0.0.45 (exact pin).

Breaking change handled

0.0.45 changes Publication.publishChallengeAnswers to take { challengeAnswers: string[] } instead of a bare string[]. The src/ code does not call this API, but two integration tests did — both updated to the new signature.

Verification

  • npm run build && npm run build:test — pass
  • npm run test:cli — 261 passed, 1 skipped (33 files)

Summary by CodeRabbit

  • Chores

    • Updated @pkcprotocol/pkc-js dependency to version 0.0.45.
  • Tests

    • Updated integration tests to align with new API contract patterns for challenge-answer submission.

0.0.45 changes publishChallengeAnswers to take { challengeAnswers: string[] }
instead of a bare string[]; adapt the challenge/mintpass integration tests
to the new signature.
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 15a4c331-9c2e-490d-a137-3791ecae615c

📥 Commits

Reviewing files that changed from the base of the PR and between 5fe592d and 7a3d0a5.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (3)
  • package.json
  • test/cli/challenge-integration.test.ts
  • test/cli/mintpass-integration.test.ts

📝 Walkthrough

Walkthrough

This PR upgrades the @pkcprotocol/pkc-js dependency from 0.0.41 to 0.0.45 and updates two integration tests to match the new API shape for challenge-answer submission, which now accepts an object parameter with a challengeAnswers property instead of a direct array.

Changes

PKC-JS Dependency Upgrade

Layer / File(s) Summary
Dependency upgrade and challenge-answer API shape alignment
package.json, test/cli/challenge-integration.test.ts, test/cli/mintpass-integration.test.ts
Version bump for @pkcprotocol/pkc-js from 0.0.41 to 0.0.45, with corresponding updates to publishChallengeAnswers calls in challenge and mintpass integration tests to use the new object parameter form { challengeAnswers: [...] } instead of passing the array directly.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Possibly related PRs

  • bitsocialnet/bitsocial-cli#51: Also updates the @pkcprotocol/pkc-js dependency version in package.json, though this PR additionally adjusts API call sites in tests.

Poem

🐰 From 0.0.41 to 0.0.45, the protocol takes flight,
Objects wrap answers where arrays once sat,
Three little changes make the tests shine bright,
Dependencies dance—nothing more, nothing flat! ✨

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/upgrade-pkc-js-0.0.45

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

test/cli/challenge-integration.test.ts

Oops! Something went wrong! :(

ESLint: 8.27.0

Error: ESLint configuration in --config » eslint-config-oclif is invalid:

  • Unexpected top-level property "__esModule".

Referenced from: /.eslintrc
at ConfigValidator.validateConfigSchema (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2156:19)
at ConfigArrayFactory._normalizeConfigData (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2998:19)
at ConfigArrayFactory._loadConfigData (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2963:21)
at ConfigArrayFactory._loadExtendedShareableConfig (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3264:21)
at ConfigArrayFactory._loadExtends (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3135:25)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3074:25)
at _normalizeObjectConfigDataBody.next ()
at ConfigArrayFactory._normalizeObjectConfigData (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3019:20)
at _normalizeObjectConfigData.next ()
at ConfigArrayFactory.loadFile (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2829:16)

test/cli/mintpass-integration.test.ts

Oops! Something went wrong! :(

ESLint: 8.27.0

Error: ESLint configuration in --config » eslint-config-oclif is invalid:

  • Unexpected top-level property "__esModule".

Referenced from: /.eslintrc
at ConfigValidator.validateConfigSchema (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2156:19)
at ConfigArrayFactory._normalizeConfigData (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2998:19)
at ConfigArrayFactory._loadConfigData (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2963:21)
at ConfigArrayFactory._loadExtendedShareableConfig (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3264:21)
at ConfigArrayFactory._loadExtends (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3135:25)
at ConfigArrayFactory._normalizeObjectConfigDataBody (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3074:25)
at _normalizeObjectConfigDataBody.next ()
at ConfigArrayFactory._normalizeObjectConfigData (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:3019:20)
at _normalizeObjectConfigData.next ()
at ConfigArrayFactory.loadFile (/node_modules/@eslint/eslintrc/dist/eslintrc.cjs:2829:16)


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Rinse12 Rinse12 merged commit d2790d8 into master Jun 9, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant