-
Notifications
You must be signed in to change notification settings - Fork 668
fix: update dependencies and examples #1036
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good 👍
Looks like integration tests are failing on a bad assert. Something must have changed in the service instance. |
Related to: #1007
…nto update_dependencies
This pull request introduces 2 alerts and fixes 1 when merging 3f0c2cb into c6953c0 - view on LGTM.com new alerts:
fixed alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #1036 +/- ##
===========================================
+ Coverage 77.77% 88.88% +11.11%
===========================================
Files 1 1
Lines 9 9
Branches 2 2
===========================================
+ Hits 7 8 +1
+ Misses 2 1 -1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate all of the style fixes in here but I think there are two main subjects to address still:
- The latest version uses
authenticator
instead ofiam_apikey
for authentication. - The top-level params are now lower camel case instead of snake case
I commented on two of these instances but not all of them
examples/.eslintrc.js
Outdated
'no-process-exit': 'off', | ||
'prefer-const': 'off', | ||
'no-var': 'off', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess our lint config should follow the lint rules, huh? 👍
examples/assistant.v1.js
Outdated
password: process.env.ASSISTANT_PASSWORD || '<assistant_password>', | ||
version: '2018-02-16' | ||
// See: https://github.com/watson-developer-cloud/node-sdk#authentication | ||
// iam_apikey: 'INSERT YOUR IAM API KEY HERE', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think for the latest version, this should be authenticator
and not iam_apikey
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this mean we need to add an authentication field?
@@ -66,8 +49,8 @@ var maintainToneHistoryInContext = true; | |||
var payload = { | |||
workspace_id: process.env.WORKSPACE_ID || '<workspace_id>', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The keys are now camel case: workspaceId
This pull request fixes 1 alert when merging df4e02d into c6953c0 - view on LGTM.com fixed alerts:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Thanks for doing this @germanattanasio
🎉 This PR is included in version 5.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Updated a few dependencies and based on the CHANGELOGs. Dependencies are dropping Node 4 and 6 support.
async
moved to 3.0 but no changes for us.I disable a breaking change in prettier and disable rules in the generated unit tests.