Bump @pkcprotocol/pkc-js from 0.0.83 to 0.0.85 (latest on npm).
Upstream changes
v0.0.84
v0.0.85
Note on the 0.0.85 upgrade note
settings.challenges[] is now validated against each challenge file's optionInputs on the edit, community-creation and start paths:
edit() with an undeclared option key, a missing required option, or an undeclared publicOptions entry now throws (ERR_CHALLENGE_SETTINGS_VALIDATION_FAILED_FOR_CHALLENGES) instead of silently saving.
- A community with such config already persisted emits one
error event per invalid challenge on every start, carrying {challengeIndex, challengeName, communityAddress}. The community still starts.
Worth checking whether this repo's community edit / community create paths surface that aggregated error usefully, and whether any live community config trips it.
Plan
Bump
@pkcprotocol/pkc-jsfrom0.0.83to0.0.85(latest on npm).Upstream changes
v0.0.84
abortSignal,publication.stop()anddestroy()(feat(pkc): cancel in-flight community fetches via abortSignal, publication.stop() and destroy() pkcprotocol/pkc-js#276)v0.0.85
validateChallengeSettingsand coreoptionInputsvalidation (feat(challenges): add validateChallengeSettings and core optionInputs validation (#283) pkcprotocol/pkc-js#288)Note on the 0.0.85 upgrade note
settings.challenges[]is now validated against each challenge file'soptionInputson the edit, community-creation and start paths:edit()with an undeclared option key, a missingrequiredoption, or an undeclaredpublicOptionsentry now throws (ERR_CHALLENGE_SETTINGS_VALIDATION_FAILED_FOR_CHALLENGES) instead of silently saving.errorevent per invalid challenge on every start, carrying{challengeIndex, challengeName, communityAddress}. The community still starts.Worth checking whether this repo's
community edit/community createpaths surface that aggregated error usefully, and whether any live community config trips it.Plan
npm run build && npm run build:testnpm run test:cligreen