From 4ab3b54e9db630a6ba022af6becdd7276692afc5 Mon Sep 17 00:00:00 2001 From: Timo Glastra Date: Mon, 27 Feb 2023 13:23:47 +0100 Subject: [PATCH] refactor!: set default outbound content type to didcomm v1 (#1314) Signed-off-by: Timo Glastra BREAKING CHANGE: Agent default outbound content type has been changed to DIDComm V1. If you want to use former behaviour, you can do it so by manually setting `didcommMimeType` in `Agent`'s init config: ``` const agent = new Agent({ config: { ... didCommMimeType: DidCommMimeType.V0 }, ... }) ``` --- packages/core/src/agent/AgentConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/agent/AgentConfig.ts b/packages/core/src/agent/AgentConfig.ts index c654ef3eb0..971bff8d6d 100644 --- a/packages/core/src/agent/AgentConfig.ts +++ b/packages/core/src/agent/AgentConfig.ts @@ -62,7 +62,7 @@ export class AgentConfig { } public get didCommMimeType() { - return this.initConfig.didCommMimeType ?? DidCommMimeType.V0 + return this.initConfig.didCommMimeType ?? DidCommMimeType.V1 } /**