Draft
Conversation
- Update @credo-ts/core, @credo-ts/node, @credo-ts/askar to 0.6.2
- Update @openwallet-foundation/askar-nodejs to 0.6.0
- Migrate Agent init: wallet config moved from InitConfig to AskarModule.store
- Replace KeyDerivationMethod enum with string literal 'kdf:argon2i:int'
- Replace KeyType.P256 with new KMS createKey API { kty: 'EC', crv: 'P-256' }
- Replace AskarWalletPostgresStorageConfig with AskarPostgresStorageConfig
- Replace ariesAskar with askar in AskarModule constructor
- Explicitly set headerType: 'vc+sd-jwt' in SD-JWT VC signing (default changed to dc+sd-jwt)
- Type SD-JWT payload as { vct: string } & Record<string, unknown>
- Add @openwallet-foundation/askar-shared override to resolve type conflicts
- Regenerate package-lock.json
Co-authored-by: samuelmr <2461240+samuelmr@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Upgrade Credo from 0.5.19 to 0.6.2
Upgrade Credo from 0.5.19 to 0.6.2
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Upgrades all Credo-related dependencies to 0.6.2 and adapts to breaking API changes in the 0.6.x release line. Also moves from
askar-nodejs0.4.3 (nativeffi-napibindings) to 0.6.0 (koffi-based), resolving Node 24 compilation failures.Dependency changes (
backend/package.json)@credo-ts/core,@credo-ts/node,@credo-ts/askar: 0.5.19 → 0.6.2@openwallet-foundation/askar-nodejs: 0.4.3 → 0.6.0@openwallet-foundation/askar-shared: 0.6.0override to unify the two copies npm would otherwise install (credo-ts/askar peers^0.4.3, askar-nodejs bundles0.6.0)Agent initialization (
credoAgent.ts)Wallet configuration moved from
InitConfig.walletConfigintoAskarModule.store:KeyType.P256→createKey: { type: { kty: 'EC', crv: 'P-256' } }(new KMS API)AskarWalletPostgresStorageConfig→AskarPostgresStorageConfigInitConfig,KeyDerivationMethod,WalletStorageConfigimports removed (no longer exported)SD-JWT VC issuance (
employeeCredentialService.ts)headerTypechanged fromvc+sd-jwttodc+sd-jwtin 0.6.2 — explicitly setheaderType: 'vc+sd-jwt'for backward compatibility{ vct: string } & Record<string, unknown>to satisfy newSdJwtVcPayloadconstraintTests
No test changes required — all 25 existing tests pass as-is since mocks align with the unchanged
agent.sdJwtVc.sign()surface.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.