Azure-Samples / cognitive-services-node-sdk-samples

This sample demonstrates how to use the bing search api using the azure-cognitiveservices-search package in node.js.
MIT License
41 stars 44 forks source link

Cognitive Service JS SDK sample out of date #42

Open justinormont opened 4 years ago

justinormont commented 4 years ago

The referenced packages are deprecated: https://github.com/Azure-Samples/cognitive-services-node-sdk-samples/blob/087c3825e4818e525b71cc2f4de035d47f03f252/Samples/customvision/customVisionImgClassify.js#L6-L7

Trying to install these packages gives a deprecation warning.

$ npm install azure-cognitiveservices-customvision-training
npm WARN deprecated azure-cognitiveservices-customvision-training@3.0.0: This package is deprecated in favor of @azure/cognitiveservices-customvision-training which works both on node.js and browsers

The current packages are @azure/cognitiveservices-customvision-training and @azure/cognitiveservices-customvision-prediction.

They may also be other changes needed.

jayzalowitz commented 3 years ago

Also: warning ms-rest-azure > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning ms-rest-azure > adal-node > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning ms-rest-azure > ms-rest > request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 warning ms-rest-azure > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning ms-rest-azure > adal-node > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning ms-rest-azure > ms-rest > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. warning ms-rest-azure > request > har-validator@5.1.5: this library is no longer supported