Skip to content

Commit 9118eea

Browse files
authored
Merge pull request #467 from chughts/master
080 Release
2 parents 2869917 + 4791f19 commit 9118eea

File tree

23 files changed

+1436
-529
lines changed

23 files changed

+1436
-529
lines changed

ChangeHistory.md

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,90 @@
1+
## 0.7.x
2+
3+
### New in version 0.7.8
4+
- NLU Node - Add Syntax to list of selectable features
5+
6+
### New in version 0.7.7
7+
- STT Node - Set correct content-type when File-Type reports a mime type of audio/opus for ogg;codec=opus files.
8+
9+
### New in version 0.7.6
10+
- Bump SDK Dependency to 3.18.2
11+
- STT Node To use iam-utils in place of removed iam-token-manager
12+
- STT Node removed codec setting as service can now automatically detect the codec of the input audio and supports more than codec=opus for ogg formats.
13+
- TSS Node fix to add visibility check on tts.voices and not stt.models
14+
- Assistant V1 Workspace Manager Node updated to reflect that in update mode, updated fields
15+
need a new_ prefix in their keys as part of the input json.
16+
- NLC Node - migrate off deprecated methods
17+
- NLC Node - Allow create of a classier to be based on a csv template node.
18+
19+
### New in version 0.7.5
20+
- Bump SDK Dependency to 3.15.0
21+
- Added Portuguese (Brazilian) and Chinese (Simplified and Traditional) as output languages
22+
for Visual Recognition node.
23+
- Added list voices and delete customisation methods to TTS Corpus Builder node.
24+
- STT Node Changes
25+
- Allowing SDK to manage IAM Tokens.
26+
- Streaming mode for STT using IAM key now working.
27+
- Fix to stream mode for max alternatives and smart formatting options
28+
- Keywords, Word Confidence and Customization Weight can now be specified
29+
- Allow Start and End data packets to be specified as JSON objects, as well as
30+
a stringified JSON objects.
31+
- In line with SDK change use createLanguageModel() to create custom model
32+
- Disable SSL Verification option for Assistant Node.
33+
- Natural Language Understanding Node Changes
34+
- Bump Natural Language Understanding to 2018-11-16
35+
- Add Limit Categories and limit_text_characters options
36+
- Allow JSON input into Personality Insights node.
37+
- Japanese word count was causing a Node-RED crash when run in the cloud.
38+
- Hungarian supported by Language Translator.
39+
- New Document Language Translator node.
40+
- New Assistant V2 Node.
41+
- Discovery Node changes
42+
- Bump Discovery to 2018-12-03
43+
- Implement Query Notices method
44+
- Bump dependency on file-type to 10.7.0
45+
- Bump dependency on temp to 0.9.0
46+
47+
48+
### New in version 0.7.4
49+
- Bump SDK Dependency to 3.11.0
50+
- Bump Assistant version to 2018-09-20
51+
- Bump Discovery version to 2018-08-01
52+
- Bump Natural Language Understanding to 2018-09-21
53+
- Bump Personality Insights to 2017-10-13
54+
- Discovery New Environment Size is now a string
55+
- Add Language Text to DropDrown for new supported languages in Translation Node.
56+
- Natural Language Classifier updated for use of IAM key for authentication.
57+
- Fix the Natural Language Understanding for bound IAM key service.
58+
- German is a supported STT Language.
59+
- Visual Recognition Key fix when migrating from unbound to bound service.
60+
61+
### New in version 0.7.3
62+
- Modify Discovery Query Builder Node to use `listCollectionFields` to determine query list.
63+
64+
### New in version 0.7.2
65+
- Allow version date for Assistant to be specified in `msg.params.version`
66+
to allow optional usage of beta version.
67+
68+
### New in version 0.7.1
69+
- Fix to how IAM Key for bound Visual Recognition is retrieved
70+
71+
### New in version 0.7.0
72+
- In this release STT in Stream mode with IAM Keys does not work.
73+
- Assistant, Discovery, Language Identify, Language Translator,
74+
Natural Language Understanding, Personality Insights,
75+
Speech to Text, Text to Speech, Tone Analyzer nodes updated
76+
to allow for use of IAM key for authentication.
77+
- Migrated STT node off deprecated methods.
78+
- Fix to Tone Analyzer Node to preserve credentials on config reopen.
79+
- Fix to Tone Analyzer to allow json objects and arrays as payload.
80+
- Fix to STT where auto-connect was not being preserved when reopening configuration.
81+
- Bump to 2018-03-05 version date for Discovery service.
82+
- Move to V3 of Language Translator
83+
- Migrated Discovery Nodes off deprecated methods.
84+
- Remove Deprecated Retrieve and Rank Nodes
85+
86+
87+
188
## 0.6.x
289

390
### New in version 0.6.14

README.md

Lines changed: 20 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -7,89 +7,27 @@ Node-RED Watson Nodes for IBM Cloud
77

88
<a href="https://cla-assistant.io/watson-developer-cloud/node-red-node-watson"><img src="https://cla-assistant.io/readme/badge/watson-developer-cloud/node-red-node-watson" alt="CLA assistant" /></a>
99

10-
### New in version 0.7.8
11-
- NLU Node - Add Syntax to list of selectable features
12-
13-
### New in version 0.7.7
14-
- STT Node - Set correct content-type when File-Type reports a mime type of audio/opus for ogg;codec=opus files.
15-
16-
### New in version 0.7.6
17-
- Bump SDK Dependency to 3.18.2
18-
- STT Node To use iam-utils in place of removed iam-token-manager
19-
- STT Node removed codec setting as service can now automatically detect the codec of the input audio and supports more than codec=opus for ogg formats.
20-
- TSS Node fix to add visibility check on tts.voices and not stt.models
21-
- Assistant V1 Workspace Manager Node updated to reflect that in update mode, updated fields
22-
need a new_ prefix in their keys as part of the input json.
23-
- NLC Node - migrate off deprecated methods
24-
- NLC Node - Allow create of a classier to be based on a csv template node.
25-
26-
### New in version 0.7.5
27-
- Bump SDK Dependency to 3.15.0
28-
- Added Portuguese (Brazilian) and Chinese (Simplified and Traditional) as output languages
29-
for Visual Recognition node.
30-
- Added list voices and delete customisation methods to TTS Corpus Builder node.
31-
- STT Node Changes
32-
- Allowing SDK to manage IAM Tokens.
33-
- Streaming mode for STT using IAM key now working.
34-
- Fix to stream mode for max alternatives and smart formatting options
35-
- Keywords, Word Confidence and Customization Weight can now be specified
36-
- Allow Start and End data packets to be specified as JSON objects, as well as
37-
a stringified JSON objects.
38-
- In line with SDK change use createLanguageModel() to create custom model
39-
- Disable SSL Verification option for Assistant Node.
40-
- Natural Language Understanding Node Changes
41-
- Bump Natural Language Understanding to 2018-11-16
42-
- Add Limit Categories and limit_text_characters options
43-
- Allow JSON input into Personality Insights node.
44-
- Japanese word count was causing a Node-RED crash when run in the cloud.
45-
- Hungarian supported by Language Translator.
46-
- New Document Language Translator node.
47-
- New Assistant V2 Node.
48-
- Discovery Node changes
49-
- Bump Discovery to 2018-12-03
50-
- Implement Query Notices method
51-
- Bump dependency on file-type to 10.7.0
52-
- Bump dependency on temp to 0.9.0
53-
54-
55-
### New in version 0.7.4
56-
- Bump SDK Dependency to 3.11.0
57-
- Bump Assistant version to 2018-09-20
58-
- Bump Discovery version to 2018-08-01
59-
- Bump Natural Language Understanding to 2018-09-21
60-
- Bump Personality Insights to 2017-10-13
61-
- Discovery New Environment Size is now a string
62-
- Add Language Text to DropDrown for new supported languages in Translation Node.
63-
- Natural Language Classifier updated for use of IAM key for authentication.
64-
- Fix the Natural Language Understanding for bound IAM key service.
65-
- German is a supported STT Language.
66-
- Visual Recognition Key fix when migrating from unbound to bound service.
67-
68-
### New in version 0.7.3
69-
- Modify Discovery Query Builder Node to use `listCollectionFields` to determine query list.
70-
71-
### New in version 0.7.2
72-
- Allow version date for Assistant to be specified in `msg.params.version`
73-
to allow optional usage of beta version.
74-
75-
### New in version 0.7.1
76-
- Fix to how IAM Key for bound Visual Recognition is retrieved
77-
78-
### New in version 0.7.0
79-
- In this release STT in Stream mode with IAM Keys does not work.
80-
- Assistant, Discovery, Language Identify, Language Translator,
81-
Natural Language Understanding, Personality Insights,
82-
Speech to Text, Text to Speech, Tone Analyzer nodes updated
83-
to allow for use of IAM key for authentication.
84-
- Migrated STT node off deprecated methods.
85-
- Fix to Tone Analyzer Node to preserve credentials on config reopen.
86-
- Fix to Tone Analyzer to allow json objects and arrays as payload.
87-
- Fix to STT where auto-connect was not being preserved when reopening configuration.
88-
- Bump to 2018-03-05 version date for Discovery service.
89-
- Move to V3 of Language Translator
90-
- Migrated Discovery Nodes off deprecated methods.
91-
- Remove Deprecated Retrieve and Rank Nodes
9210

11+
### New in version 0.8.0
12+
- In the 0.8.x releases the nodes are migrated to a node-red 1.0.x input
13+
event callback function signature.
14+
and migrated off watson-developer-cloud to ibm-watson as a npm dependancy.
15+
Migrated nodes will not be compatible with pre 1.0.0 versions of node-red.
16+
During the migration there will be a dependancy on both modules.
17+
- Bump dependancy on node to >=10.0.0
18+
- Bump dependancy on cfenv, request, file-type
19+
- Bump dependancy on ibm-cloud-sdk-core to 0.3.7 (need to stay on 0.x, for STT Streaming to work)
20+
- Node-RED & IBM-Watson & Use of promises on API invokation & IAM URL construct migration & Removal of default endpoint of
21+
- Tone Analyzer node.
22+
- Personality Insights node.
23+
- Visual Recognition V3 node
24+
- Text to Speech node
25+
- Text to Speech Corpus Builder node
26+
- New Visual Recognition V4 node.
27+
- Drop faces detect option from Visual Recognition V3 node.
28+
- Fix to URL parsing for bound services.
29+
- STT token manager no longer in ibm-cloud-sdk-core
30+
- Update language lists for STT, TTS, Language Translator and Document Translator Nodes
9331

9432
### Watson Nodes for Node-RED
9533
A collection of nodes to interact with the IBM Watson services in [IBM Cloud](http://bluemix.net).

package.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
22
"name": "node-red-node-watson",
3-
"version": "0.7.8",
3+
"version": "0.8.0",
44
"description": "A collection of Node-RED nodes for IBM Watson services",
55
"dependencies": {
66
"async": "^1.5.2",
7-
"cfenv": "~1.0.0",
8-
"file-type": "^10.9.0",
9-
"request": "~2.86.0",
7+
"cfenv": "~1.2.2",
8+
"file-type": "^12.4.2",
9+
"request": "~2.88.0",
1010
"temp": "^0.9.0",
1111
"qs": "6.x",
1212
"image-type": "^2.0.2",
1313
"watson-developer-cloud": "^3.18.3",
14-
"ibm-cloud-sdk-core": "^0.0.1",
14+
"ibm-cloud-sdk-core": "^0.3.7",
15+
"ibm-watson": "^5.2.1",
1516
"word-count": "^0.2.2",
1617
"is-docx": "^0.0.3",
1718
"stream-to-array": "^2.3.0",
@@ -53,10 +54,11 @@
5354
"watson-text-to-speech-v1": "services/text_to_speech/v1.js",
5455
"watson-text-to-speech-corpus-builder-v1": "services/text_to_speech/v1-corpus-builder.js",
5556
"watson-tone-analyzer-v3": "services/tone_analyzer/v3.js",
56-
"watson-visual-recognition-v3": "services/visual_recognition/v3.js"
57+
"watson-visual-recognition-v3": "services/visual_recognition/v3.js",
58+
"watson-visual-recognition-collection-utils-v4": "services/visual_recognition/v4-collection-utils.js"
5759
}
5860
},
5961
"engines": {
60-
"node": ">=6.12.0"
62+
"node": ">=10.0.0"
6163
}
6264
}

services/language_translator/v3-doc.html

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@
191191
</p>
192192

193193
<br/><br/>
194-
194+
195195
<p>For more information about the Language Translator service, read the
196196
<a href="https://console.bluemix.net/docs/services/language-translator/index.html">
197197
documentation</a>.
@@ -217,35 +217,44 @@
217217

218218
doctor.LANGUAGES = { 'ar' : 'Arabic',
219219
'arz': 'Spoken Arabic',
220+
'bg' : 'Bulgarian',
220221
'ca' : 'Catalan',
221222
'cs' : 'Czech',
222223
'da' : 'Danish',
223-
'en' : 'English' ,
224+
'el' : 'Greek',
225+
'en' : 'English',
224226
'es' : 'Spanish',
227+
'et' : 'Estonian',
225228
'fr' : 'French',
226229
'fi' : 'Finnish',
230+
'ga' : 'Galican',
231+
'he' : 'Hebrew',
227232
'hi' : 'Hindi',
233+
'hr' : 'Croatian',
228234
'hu' : 'Hungarian',
235+
'id' : 'Indonesian',
229236
'it' : 'Italian',
230237
'de' : 'German',
231238
'ja' : 'Japanese',
239+
'lt' : 'Lithuanian',
240+
'ms' : 'Malay',
232241
'pt' : 'Portuguese',
233242
'ko' : 'Korean',
234243
'nb' : 'Norwegian Bokmål',
235244
'nl' : 'Dutch',
236245
'pl' : 'Polish',
246+
'ro' : 'Romanian',
237247
'ru' : 'Russian',
248+
'sk' : 'Slovak',
249+
'sl' : 'Slovenian',
238250
'sv' : 'Swedish',
251+
'th' : 'Thai',
239252
'tr' : 'Turkish',
240253
'zh' : 'Chinese',
241254
'zh-TW' : 'Taiwanese',
242255
'zht' : 'Traditional Chinese'
243256
};
244257

245-
246-
247-
248-
249258
doctor.showSelectedFields = function(fields) {
250259
for (i = 0; i < fields.length; i++) {
251260
$(fields[i]).parent().show();
@@ -488,7 +497,7 @@
488497
+ '"' + lang + '"'
489498
+ selectedText
490499
+ '>'
491-
+ (tor.LANGUAGES[lang] ? tor.LANGUAGES[lang] : lang)
500+
+ (doctor.LANGUAGES[lang] ? doctor.LANGUAGES[lang] : lang)
492501
+ '</option>');
493502
});
494503
}

services/language_translator/v3.html

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,25 +228,38 @@
228228

229229
tor.LANGUAGES = { 'ar' : 'Arabic',
230230
'arz': 'Spoken Arabic',
231+
'bg' : 'Bulgarian',
231232
'ca' : 'Catalan',
232233
'cs' : 'Czech',
233234
'da' : 'Danish',
234-
'en' : 'English' ,
235+
'el' : 'Greek',
236+
'en' : 'English',
235237
'es' : 'Spanish',
238+
'et' : 'Estonian',
236239
'fr' : 'French',
237240
'fi' : 'Finnish',
241+
'ga' : 'Galican',
242+
'he' : 'Hebrew',
238243
'hi' : 'Hindi',
244+
'hr' : 'Croatian',
239245
'hu' : 'Hungarian',
246+
'id' : 'Indonesian',
240247
'it' : 'Italian',
241248
'de' : 'German',
242249
'ja' : 'Japanese',
250+
'lt' : 'Lithuanian',
251+
'ms' : 'Malay',
243252
'pt' : 'Portuguese',
244253
'ko' : 'Korean',
245254
'nb' : 'Norwegian Bokmål',
246255
'nl' : 'Dutch',
247256
'pl' : 'Polish',
257+
'ro' : 'Romanian',
248258
'ru' : 'Russian',
259+
'sk' : 'Slovak',
260+
'sl' : 'Slovenian',
249261
'sv' : 'Swedish',
262+
'th' : 'Thai',
250263
'tr' : 'Turkish',
251264
'zh' : 'Chinese',
252265
'zh-TW' : 'Taiwanese',

services/personality_insights/v3.html

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,7 @@
3838
</div>
3939

4040
<div class="form-row credentials">
41-
<label>&nbsp;</label>
42-
<input type="checkbox" id="node-input-default-endpoint" style="display: inline-block; width: auto; vertical-align: top;">
43-
<label for="node-input-cwm-default-endpoint" style="width: 70%;"> Use Default Service Endpoint</label>
44-
</div>
45-
<div class="form-row">
46-
<label for="node-input-cwm-service-endpoint"><i class="fa fa-tag"></i> Service Endpoint</label>
41+
<label for="node-input-service-endpoint"><i class="fa fa-tag"></i> Service Endpoint</label>
4742
<input type="text" id="node-input-service-endpoint" placeholder="https://gateway.watsonplatform.net/personality-insights/api">
4843
</div>
4944

@@ -129,8 +124,7 @@
129124
outputlang: {value: "en"},
130125
rawscores: {value: false},
131126
consumption: {value: false},
132-
'default-endpoint' :{value: true},
133-
'service-endpoint' :{value: 'https://gateway.watsonplatform.net/personality-insights/api'}
127+
'service-endpoint' :{value: ""}
134128
},
135129
credentials: {
136130
username: {type:"text"},
@@ -149,15 +143,6 @@
149143
return this.name ? "node_label_italic" : "";
150144
},
151145
oneditprepare: function() {
152-
$('#node-input-default-endpoint').change(function () {
153-
var checked = $('#node-input-default-endpoint').prop('checked')
154-
if (checked) {
155-
$('#node-input-service-endpoint').parent().hide();
156-
} else {
157-
$('#node-input-service-endpoint').parent().show();
158-
}
159-
});
160-
161146
$.getJSON('watson-personality-insights-v3/vcap/')
162147
.done(function (service) {
163148
$('.credentials').toggle(!service);

0 commit comments

Comments
 (0)