Skip to content

Commit 26cd5c2

Browse files
authored
Merge pull request #795 from watson-developer-cloud/remove-compatibility-layer
Remove compatibility layer
2 parents b4fbc45 + df82a9e commit 26cd5c2

37 files changed

Lines changed: 8852 additions & 10522 deletions

UPGRADE-4.0.md

Lines changed: 267 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,267 @@
1+
# Upgrading to watson-developer-cloud@4.0
2+
- [Breaking changes]
3+
- [Removed Services]
4+
- [Constructor Compatibility]
5+
- [Discovery Compatibility]
6+
- [Natural Language Classifier Compatibility]
7+
- [Personality Insights v3 Compatibility]
8+
- [Speech to Text Compatibility]
9+
- [Text to Speech Compatibility]
10+
- [Tone Analyzer Compatibility]
11+
- [Visual Recognition Compatibility]
12+
13+
14+
## Breaking changes
15+
### Removed Services
16+
The following services have been deprecated for an extended period of time and will no longer be supported in the SDK:
17+
- Dialog
18+
- Language Translator v2
19+
- Conversation v1
20+
21+
22+
### Constructor Compatibility
23+
- Parameter name changed: `version_date` -> `version`
24+
- The parameter `apikey` is no longer supported
25+
26+
27+
### Discovery Compatibility
28+
#### getEnvironments
29+
- Method name changed: `getEnvironments` -> `listEnvironments`
30+
31+
#### getCollections
32+
- Method name changed: `getCollections` -> `listCollections`
33+
34+
#### getConfigurations
35+
- Method name changed: `getConfigurations` -> `listConfigurations`
36+
37+
#### getCollectionFields
38+
- Method name changed: `getCollectionFields` -> `listFields`
39+
- Parameter name changed: `collection_id` -> `collection_ids` (`collection_ids` is an Array)
40+
41+
#### addJsonDocument
42+
- Method name changed: `addJsonDocument` -> `addDocument`
43+
44+
#### updateJsonDocument
45+
- Method name changed: `updateJsonDocument` -> `updateDocument`
46+
47+
#### createEnvironment
48+
- Parameter `size` will no longer be set to `1` if not given
49+
50+
#### createConfiguration
51+
- Parameter `name` is now **required**
52+
- Parameter `file` is now split into `conversions`, `enrichments` and `normalizations`
53+
54+
#### updateConfiguration
55+
- Parameter `name` is now **required**
56+
- Parameter `file` is now split into `conversions`, `enrichments` and `normalizations`
57+
58+
#### createCollection
59+
- Parameter name changed: `language_code` -> `language`
60+
- Parameter `language` will no longer be set to `'en_us'` if not given
61+
62+
#### updateCollection
63+
- Parameter name changed: `collection_name` -> `name`
64+
65+
#### query
66+
- Parameter name changed: `return` -> `return_fields`
67+
- `query` and `natural_language_query` can't both be populated - this is no longer corrected internally
68+
- Parameter name changed: `passages.fields` -> `passages_fields`
69+
- Parameter name changed: `passages.count` -> `passages_count`
70+
- Parameter name changed: `passages.characters` -> `passages_characters`
71+
72+
73+
### Natural Language Classifier Compatibility
74+
#### create
75+
- Method name changed: `create` -> `createClassifier`
76+
- Parameter `training_data` is now **required** to be CSV format
77+
- Parameter `metadata` no longer constructed internally
78+
79+
#### classify
80+
- Parameter name changed: `classifier` -> `classifier_id`
81+
82+
#### status
83+
- Method name changed: `status` -> `getClassifier`
84+
- Parameter name changed: `classifier` -> `classifier_id`
85+
86+
#### list
87+
- Method name changed: `list` -> `listClassifiers`
88+
89+
#### remove
90+
- Method name changed: `remove` -> `deleteClassifier`
91+
- Parameter name changed: `classifier` -> `classifier_id`
92+
93+
94+
### Personality Insights v3 Compatibility
95+
#### profile
96+
- Parameters `accept_language`, `content_type`, `content_language` now belong at the top-level of the `params` object, rather than within `headers`
97+
- Parameter `accept` is no longer supported - use `profile()` for `application/json` and `profileAsCsv()` for `text/csv`
98+
- Parameters `text` and `contentItems` are no longer supported
99+
- Parameter `content_items` belongs within the parameter `content` and not at the top level - this is no longer internally corrected
100+
101+
#### profile_csv
102+
- Method name changed: `profile_csv` -> `profileAsCsv`
103+
104+
105+
### Speech to Text Compatibility
106+
#### getModels
107+
- Method name changed: `getModels` -> `listModels`
108+
109+
#### getCustomization
110+
- Method name changed: `getCustomization` -> `getLanguageModel`
111+
112+
#### getRecognitionJob
113+
- Method name changed: `getRecognitionJob` -> `checkJob`
114+
115+
#### createCustomization
116+
- Method name changed: `createCustomization` -> `createLanguageModel`
117+
118+
#### getRecognitionJobs
119+
- Method name changed: `getRecognitionJobs` -> `checkJobs`
120+
121+
#### deleteRecognitionJob
122+
- Method name changed: `deleteRecognitionJob` -> `deleteJob`
123+
124+
#### getCustomizations
125+
- Method name changed: `getCustomizations` -> `listLanguageModels`
126+
127+
#### createRecognitionJob
128+
- Method name changed: `createRecognitionJob` -> `createJob`
129+
- The parameter `events` must be a comma-separated string, **not** an Array. This is no longer corrected internally
130+
131+
#### addCorpus
132+
- Parameter name changed: `name` -> `corpus_name`
133+
- Parameter name changed: `corpus` -> `corpus_file`
134+
135+
#### getCorpus
136+
- Parameter name changed: `name` -> `corpus_name`
137+
138+
#### deleteCorpus
139+
- Parameter name changed: `name` -> `corpus_name`
140+
141+
#### getCorpora
142+
- Method name changed: `getCorpora` -> `listCorpora`
143+
144+
#### addWord
145+
- Parameter name changed: `name` -> `corpus_name`
146+
147+
#### getWords
148+
- Method name changed: `word` -> `word_name`
149+
150+
#### getWord
151+
- Method name changed: `word` -> `word_name`
152+
153+
#### deleteWord
154+
- Method name changed: `word` -> `word_name`
155+
156+
#### trainCustomization
157+
- Method name changed: `trainCustomization` -> `trainLanguageModel`
158+
159+
#### resetCustomization
160+
- Method name changed: `resetCustomization` -> `resetLanguageModel`
161+
162+
#### deleteCustomization
163+
- Method name changed: `deleteCustomization` -> `deleteLanguageModel`
164+
165+
#### createRecognizeStream
166+
- Method name changed: `createRecognizeStream` -> `recognizeUsingWebSocket`
167+
168+
#### recognizeLive
169+
- This method is no longer supported. Use `recognizeUsingWebSocket` instead
170+
171+
#### observeResult
172+
- This method is no longer supported. Use `recognizeUsingWebSocket` instead
173+
174+
175+
### Text to Speech Compatibility
176+
#### getCustomizations
177+
- Method name changed: `getCustomizations` -> `listVoiceModels`
178+
179+
#### getCustomization
180+
- Method name changed: `getCustomization` -> `getVoiceModel`
181+
182+
#### updateCustomization
183+
- Method name changed: `updateCustomization` -> `updateVoiceModel`
184+
185+
#### deleteCustomization
186+
- Method name changed: `deleteCustomization` -> `deleteVoiceModel`
187+
188+
#### createCustomization
189+
- Method name changed: `createCustomization` -> `createVoiceModel`
190+
191+
#### getWords
192+
- Method name changed: `getWords` -> `listWords`
193+
194+
#### voices
195+
- Method name changed: `voices` -> `listVoices`
196+
197+
#### voice
198+
- Method name changed: `voice` -> `getVoice`
199+
200+
#### pronunciation
201+
- Method name changed: `pronunciation` -> `getPronunciation`
202+
203+
204+
### Tone Analyzer Compatibility
205+
#### tone
206+
- Parameter name changed: `text` -> `tone_input`
207+
- Parameter `content_type` is now **required**
208+
- Parameter `tones` is now **required** to be an Array
209+
- Parameter name changed: `language` -> `content_language`
210+
211+
#### tone_chat
212+
- Method name changed: `tone_chat` -> `toneChat`
213+
- Parameter `utterances` is now **required** to be at the top level of the params object
214+
215+
216+
### Visual Recognition Compatibility
217+
#### classify
218+
- Parameter name changed: `image_file` -> `images_file`
219+
- Parameter `parameters` is no longer supported
220+
221+
#### detectFaces
222+
- Parameter name changed: `image_file` -> `images_file`
223+
- Parameter `parameters` is no longer supported
224+
225+
#### retrainClassifier
226+
- Method name changed: `retrainClassifier` -> `updateClassifier`
227+
228+
#### recognizeText
229+
- This method is no longer supported
230+
231+
#### createCollection
232+
- This method is no longer supported
233+
234+
#### getCollection
235+
- This method is no longer supported
236+
237+
#### listCollections
238+
- This method is no longer supported
239+
240+
#### deleteCollection
241+
- This method is no longer supported
242+
243+
#### addImage
244+
- This method is no longer supported
245+
246+
#### listImages
247+
- This method is no longer supported
248+
249+
#### getImage
250+
- This method is no longer supported
251+
252+
#### deleteImage
253+
- This method is no longer supported
254+
255+
#### setImageData
256+
- This method is no longer supported
257+
258+
#### getImageData
259+
- This method is no longer supported
260+
261+
#### deleteImageData
262+
- This method is no longer supported
263+
264+
#### findSimilar
265+
- This method is no longer supported
266+
267+

0 commit comments

Comments
 (0)