diff --git a/README.md b/README.md index b40e886..2056752 100644 --- a/README.md +++ b/README.md @@ -172,7 +172,7 @@ See the README.md that's created in your scaffolded TypeScript project for more ## License -Copyright © 2018-2022, Oracle and/or its affiliates. All rights reserved. +Copyright © 2018-2023, Oracle and/or its affiliates. All rights reserved. The Universal Permissive License (UPL), Version 1.0 diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 29df753..1bc2a7b 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,5 +1,6 @@ # Release Notes +- [Version 2.7.1](#v271) - [Version 2.7.0](#v270) - [Version 2.6.8](#v268) - [Version 2.6.7](#v267) @@ -19,6 +20,12 @@ - [Version 2.4.3](#v243) - [Version 2.4.2](#v242) +## Version 2.7.1 + +### Fixed Issues + +- Removed logging of context variable values + ## Version 2.7.0 ### New Features diff --git a/lib/component/baseContext.js b/lib/component/baseContext.js index 11b8683..e86f289 100644 --- a/lib/component/baseContext.js +++ b/lib/component/baseContext.js @@ -274,20 +274,16 @@ class BaseContext { } return context.variables[nameToUse].value; } else { - this.logger().debug('SDK: About to set variable ' + name); - if (!context.variables) { context.variables = {}; } if (!context.variables[nameToUse]) { - this.logger().debug('SDK: Creating new variable ' + nameToUse); context.variables[nameToUse] = Object.assign({}, VARIABLE); } context.variables[nameToUse].value = value; this.getResponse().modifyContext = true; - this.logger().debug('SDK: Setting variable ' + JSON.stringify(context.variables[nameToUse])); return this; } } diff --git a/package-lock.json b/package-lock.json index 19ee2b2..41a54af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@oracle/bots-node-sdk", - "version": "2.7.0", + "version": "2.7.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index cf9779c..d591a47 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@oracle/bots-node-sdk", - "version": "2.7.0", + "version": "2.7.1", "description": "Oracle Digital Assistant SDK for custom component development and webhook integrations", "main": "index.js", "browser": "index-browser.js", diff --git a/ts/lib/component/baseContext.ts b/ts/lib/component/baseContext.ts index f053d0f..8930fc6 100644 --- a/ts/lib/component/baseContext.ts +++ b/ts/lib/component/baseContext.ts @@ -280,20 +280,17 @@ export abstract class BaseContext { } return context.variables[nameToUse].value; } else { - this.logger().debug('SDK: About to set variable ' + name); if (!context.variables) { context.variables = {}; } if (!context.variables[nameToUse]) { - this.logger().debug('SDK: Creating new variable ' + nameToUse); context.variables[nameToUse] = Object.assign({}, VARIABLE); } context.variables[nameToUse].value = value; this.getResponse().modifyContext = true; - this.logger().debug('SDK: Setting variable ' + JSON.stringify(context.variables[nameToUse])); return this; } } diff --git a/ts/lib2/llmtransformation/llmTransformationTypes.ts b/ts/lib2/llmtransformation/llmTransformationTypes.ts index d3ec777..4a77766 100644 --- a/ts/lib2/llmtransformation/llmTransformationTypes.ts +++ b/ts/lib2/llmtransformation/llmTransformationTypes.ts @@ -18,6 +18,7 @@ export interface LlmTransformationHandlers { } export interface TransformPayloadEvent { - payload: any + payload: any; + compartmentId?: string }