Skip to content

Commit 96e2108

Browse files
build(deps): remove uglify and update readmes
1 parent f0c4c5e commit 96e2108

File tree

4 files changed

+66
-164
lines changed

4 files changed

+66
-164
lines changed

MIGRATION-V6.md

Lines changed: 0 additions & 152 deletions
This file was deleted.

MIGRATION-V8.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Upgrading to [email protected]
2+
[Breaking Changes](#breaking-changes)
3+
- [UMD bundle watson.js no longer supported](#umd-bundle-watson.js-no-longer-supported)
4+
- [Support for Node v14 dropped](#support-for-node-v14-dropped)
5+
- [Breaking changes by service](#breaking-changes-by-service)
6+
7+
- [New Features by Service](#new-features-by-service)
8+
9+
## Breaking changes
10+
11+
### UMD bundle watson.js no longer supported
12+
The previously generated `watson.js` UMD bundle will no longer be generated to support updated core requirements
13+
14+
### Support for Node v14 Dropped
15+
In preparation for Node 14 EOL, the SDK no longer supports Node version 14, as reflected in the `engines` property in the package.json file. Version 14 will reach end of life on 30 April 2023.
16+
17+
### Breaking changes by service
18+
19+
#### Assistant v2
20+
- Parameter `createSession` removed from `createSession` function
21+
- Interface `Environment` property `language` removed
22+
- Interface `EnvironmentReleaseReference` renamed to `BaseEnvironmentReleaseReference`
23+
- Interface `EnvironmentOrchestration` renamed to `BaseEnvironmentOrchestration`
24+
- Interface `SkillReference` renamed to `EnvironmentSkill`
25+
26+
#### Discovery v2
27+
- Parameter `smartDocumentUnderstanding` removed from `createCollection` function
28+
- Interface `QueryResponsePassage` and `QueryResultPassage` property `confidence` removed
29+
- Interface `DocumentClassifierEnrichment` property `enrichmentId` is no longer an optional
30+
- QueryAggregation interfaces restructured
31+
32+
#### Natural Language Understanding
33+
- All `sentimentModel` functions removed
34+
35+
#### Speech to Text
36+
- `AR_AR_BROADBANDMODEL` model removed in favor of `AR_MS_BROADBANDMODEL` model
37+
38+
39+
### New Features by Service
40+
41+
#### Assistant v2
42+
- `createAssistant` function
43+
- `listAssistants` function
44+
- `deleteAssistant` function
45+
- `updateEnvironment` function
46+
- `createRelease` function
47+
- `deleteRelease` function
48+
- `getSkill` function
49+
- `updateSkill` function
50+
- `exportSkills` function
51+
- `importSkills` function
52+
- `importSkillsStatus` function
53+
- Improved typing for `message` function call
54+
See details of these functions on IBM's documentation site [here](https://cloud.ibm.com/apidocs/assistant-v2?code=node)
55+
56+
#### Discovery v2
57+
- Aggregation types `QueryTopicAggregation` and `QueryTrendAggregation` added
58+
59+
#### Speech to Text
60+
- added `FR_CA_MULTIMEDIA`, `JA_JP_TELEPHONY`, `NL_NL_MULTIMEDIA`, `SV_SE_TELEPHONY` models
61+
62+
#### Text to Speech
63+
- added `EN_AU_HEIDIEXPRESSIVE`, `EN_AU_JACKEXPRESSIVE`, `EN_US_ALLISONEXPRESSIVE`, `EN_US_EMMAEXPRESSIVE`, `EN_US_LISAEXPRESSIVE`, `EN_US_MICHAELEXPRESSIVE`, `KO_KR_JINV3VOICE`
64+
- Parameters `ratePercentage` and `pitchPercentage` added to `synthesize` function
65+
See details of these new parameters on IBM's documentation site [here](https://cloud.ibm.com/apidocs/text-to-speech?code=node#synthesize)

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,11 @@
1313

1414
Node.js client library to use the Watson APIs.
1515

16-
## Announcements
17-
18-
### Natural Language Classifier deprecation
19-
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.
20-
21-
As an alternative, we encourage you to consider migrating to the Natural Language Understanding service on IBM Cloud that uses deep learning to extract data and insights from text such as keywords, categories, sentiment, emotion, and syntax, along with advanced multi-label text classification capabilities, to provide even richer insights for your business or industry. For more information, see [Migrating to Natural Language Understanding](https://cloud.ibm.com/docs/natural-language-classifier?topic=natural-language-classifier-migrating).
22-
### Package Rename
23-
This package has been moved under the name `ibm-watson`. The package is still available at `watson-developer-cloud`, but that will no longer receive updates. Use `ibm-watson` to stay up to date.
24-
2516
## Before you begin
2617
* You need an [IBM Cloud][ibm-cloud-onboarding] account.
2718

2819
## Prerequisites
29-
- **Node >=14**: This SDK is tested with Node versions 14 and up. It may work on previous versions but this is not officially supported.
20+
- **Node >=16**: This SDK is tested with Node versions 16 and up. It may work on previous versions but this is not officially supported.
3021

3122
## Installation
3223

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
"tslint-config-prettier": "^1.18.0",
7878
"typedoc": "^0.17.8",
7979
"typescript": "^4.9.4",
80-
"uglify-es": "~3.3.9",
8180
"wav": "~1.0.2"
8281
},
8382
"dependencies": {
@@ -106,7 +105,6 @@
106105
"lint": "npm run eslint:check && npm run tslint:check",
107106
"build": "tsc && cp package.json dist/",
108107
"doc": "jsdoc -c scripts/jsdoc/config.json",
109-
"minify": "uglifyjs --compress --mangle --output dist/dist/watson.min.js --preamble \"// Watson Developer Cloud\n// JavaScript SDK$npm_package_version\n// Generated at `date`\n// Copyright IBM ($npm_package_license)\n// $npm_package_homepage\" -- dist/dist/watson.js",
110108
"tsc-publish-dry": "tsc-publish --no-checks --dry-run",
111109
"postversion": "npm run tsc-publish-dry",
112110
"test-integration": "jest test/integration",

0 commit comments

Comments
 (0)