Skip to content

Commit

Permalink
fix(nlc): add deprecation warning
Browse files Browse the repository at this point in the history
add deprecation warning to NLC constructor

fix #9622
  • Loading branch information
Hsaylor authored and apaparazzi0329 committed Aug 25, 2021
1 parent 3038543 commit 5b269ae
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions natural-language-classifier/v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ class NaturalLanguageClassifierV1 extends BaseService {
* @returns {NaturalLanguageClassifierV1}
*/
constructor(options: UserOptions) {
console.warn(`On 9 August 2021, IBM announced the deprecation of the Natural Language Classifier service.
The service will no longer be available from 8 August 2022. As of 9 September 2021, you will not be able to create new instances.
Existing instances will be supported until 8 August 2022. Any instance that still exists on that date will be deleted.
For more information, see https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-migrating`)

options = options || {};

if (!options.serviceName) {
Expand Down

0 comments on commit 5b269ae

Please sign in to comment.