Skip to content

Commit

Permalink
New version 2.7.1 with bug fixes (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevendavelaar committed Oct 11, 2023
1 parent 8c5999d commit eea4ced
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 7 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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)
Expand All @@ -19,6 +20,12 @@
- [Version 2.4.3](#v243)
- [Version 2.4.2](#v242)

## <a name="v271">Version 2.7.1 </a>

### Fixed Issues

- Removed logging of context variable values

## <a name="v270">Version 2.7.0 </a>

### New Features
Expand Down
4 changes: 0 additions & 4 deletions lib/component/baseContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
3 changes: 0 additions & 3 deletions ts/lib/component/baseContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down
3 changes: 2 additions & 1 deletion ts/lib2/llmtransformation/llmTransformationTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export interface LlmTransformationHandlers {
}

export interface TransformPayloadEvent {
payload: any
payload: any;
compartmentId?: string
}

0 comments on commit eea4ced

Please sign in to comment.