Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [#4509] botbuilder-ai@4.20.0 is still installing @azure/ms-rest-js@1.11.2 for @azure/cognitiveservices-luis-runtime #4519

Merged

Conversation

ceciliaavila
Copy link
Collaborator

@ceciliaavila ceciliaavila commented Aug 17, 2023

Fixes #4509

Description

This PR upgrades @azure/cognitiveservices-luis-runtime to v.4.0.0 in botbuilder-ai to avoid the use of the tough-cookie package due to its vulnerability issue.
As version 4.0.0 introduced several breaking changes, we added the luisV2-models folder with the interfaces and classes that are required for the v2 runtime to work.

Specific Changes

  • Upgrades @azure/cognitiveservices-luis-runtime package from version 2.0.0 to version 4.0.0
  • Created the folder luisV2-models containing the following interfaces and classes missing in the new version of the package:
    • LuisResult
    • LuisMappers
    • LuisParameters
    • LuisPrediction
    • LUISRuntimeClientV2
  • Updated luisSdk.test.js unit tests to work with the new LUISRuntimeClientV2.

Testing

This image shows the unit tests passing after the upgrade.
image

@ceciliaavila ceciliaavila requested a review from a team as a code owner August 17, 2023 13:11
@coveralls
Copy link

coveralls commented Aug 17, 2023

Pull Request Test Coverage Report for Build 5906567065

  • 43 of 43 (100.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.01%) to 84.866%

Totals Coverage Status
Change from base Build 5904439709: 0.01%
Covered Lines: 20167
Relevant Lines: 22518

💛 - Coveralls

@tracyboehrer
Copy link
Member

@ceciliaavila Visibility for conflicts

@ceciliaavila
Copy link
Collaborator Author

@ceciliaavila Visibility for conflicts

Hi @tracyboehrer, conflicts solved. Thanks!

@tracyboehrer tracyboehrer merged commit 81e2d98 into main Aug 22, 2023
@tracyboehrer tracyboehrer deleted the southworks/update/azure-cognitiveservices-luis-runtime branch August 22, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

botbuilder-ai@4.20.0 is still installing @azure/ms-rest-js@1.11.2 for @azure/cognitiveservices-luis-runtime
3 participants