Skip to content

Commit

Permalink
chore: upgrade ibm-watson to v7
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpedemonte committed Jan 17, 2024
1 parent d2032d0 commit 33a40c4
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 51 deletions.
4 changes: 1 addition & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
**/node_modules
**/build
**/dist

/packages/ibm-watson
**/dist
4 changes: 1 addition & 3 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
**/CHANGELOG.md

**/build
**/dist

/packages/ibm-watson
**/dist
2 changes: 1 addition & 1 deletion examples/discovery-search-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"dotenv": "^16.3.1",
"express": "^4.18.2",
"http-proxy-middleware": "^0.20.0",
"ibm-watson": "^6.2.2",
"ibm-watson": "^7",
"node-polyfill-webpack-plugin": "^3.0.0",
"proper-url-join": "^2.1.1",
"react": "^17.0.2",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"@types/react-virtualized": "^9.21.29",
"@types/seedrandom": "^3.0.8",
"@types/testing-library__cypress": "^5.0.13",
"axios": "^0.21.4",
"axios": "^1.6.5",
"doctoc": "^2.2.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
Expand All @@ -50,7 +50,7 @@
"fast-xml-parser": "^4.3.3",
"gh-pages": "^6.1.1",
"husky": "^8.0.3",
"ibm-watson": "^6.2.2",
"ibm-watson": "^7",
"lerna": "^8.0.2",
"lint-staged": "^15.2.0",
"lorem-ipsum": "^2.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/discovery-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
"carbon-components": ">= 10.46.0 < 11",
"carbon-components-react": ">= 7.46.0 < 8",
"core-js": "^2.6.12",
"ibm-watson": "^6.0.2",
"ibm-watson": "^7",
"react": ">= 16.8.0 < 18",
"react-dom": ">= 16.8.0 < 18"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ describe('PdfViewer', () => {
render(<PdfViewer file={atob(doc)} page={1} scale={1} setLoading={(): void => {}} />);

// wait for component to finish rendering (prevent "act" warning)
await waitFor(() => expect(screen.getByText('ART EFFECTS LIMITED')).toBeVisible());
await waitFor(() => expect(screen.getByText('ART EFFECTS LIMITED')).toBeVisible(), {
timeout: 5000
});

const canvasList = document.querySelectorAll('canvas');
expect(canvasList.length).toBe(1);
Expand Down
145 changes: 105 additions & 40 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2835,7 +2835,7 @@ __metadata:
carbon-components: ">= 10.46.0 < 11"
carbon-components-react: ">= 7.46.0 < 8"
core-js: ^2.6.12
ibm-watson: ^6.0.2
ibm-watson: ^7
react: ">= 16.8.0 < 18"
react-dom: ">= 16.8.0 < 18"
languageName: unknown
Expand Down Expand Up @@ -5995,6 +5995,13 @@ __metadata:
languageName: node
linkType: hard

"@tokenizer/token@npm:^0.3.0":
version: 0.3.0
resolution: "@tokenizer/token@npm:0.3.0"
checksum: 7ab9a822d4b5ff3f5bca7f7d14d46bdd8432528e028db4a52be7fbf90c7f495cc1af1324691dda2813c6af8dc4b8eb29de3107d4508165f9aa5b53e7d501f155
languageName: node
linkType: hard

"@tootallnate/once@npm:1":
version: 1.1.2
resolution: "@tootallnate/once@npm:1.1.2"
Expand Down Expand Up @@ -8210,16 +8217,16 @@ __metadata:
languageName: node
linkType: hard

"axios@npm:^0.21.4":
version: 0.21.4
resolution: "axios@npm:0.21.4"
"axios@npm:^0.26.1":
version: 0.26.1
resolution: "axios@npm:0.26.1"
dependencies:
follow-redirects: "npm:^1.14.0"
checksum: fbcff55ec68f71f02d3773d467db2fcecdf04e749826c82c2427a232f9eba63242150a05f15af9ef15818352b814257541155de0281f8fb2b7e8a5b79f7f2142
follow-redirects: "npm:^1.14.8"
checksum: 77ad7f1e6ca04fcd3fa8af1795b09d8b7c005b71a31f28d99ba40cda0bdcc12a4627801d7fac5efa62b9f667a8402bd54c669039694373bc8d44f6be611f785c
languageName: node
linkType: hard

"axios@npm:^1.5.1, axios@npm:^1.6.1":
"axios@npm:^1.5.1, axios@npm:^1.6.1, axios@npm:^1.6.5":
version: 1.6.5
resolution: "axios@npm:1.6.5"
dependencies:
Expand Down Expand Up @@ -11277,7 +11284,7 @@ __metadata:
dotenv: "npm:^16.3.1"
express: "npm:^4.18.2"
http-proxy-middleware: "npm:^0.20.0"
ibm-watson: "npm:^6.2.2"
ibm-watson: "npm:^7"
node-polyfill-webpack-plugin: "npm:^3.0.0"
proper-url-join: "npm:^2.1.1"
react: "npm:^17.0.2"
Expand Down Expand Up @@ -13048,10 +13055,14 @@ __metadata:
languageName: node
linkType: hard

"file-type@npm:^7.7.1":
version: 7.7.1
resolution: "file-type@npm:7.7.1"
checksum: 73082635ce8af205f424bf6aaa8501bb76b2f3f89e928b522ffe50e30ae04ec95c2074c996f281992b209ed4db853b5e34f4a996ce7e33eea9e48c381cfe40f3
"file-type@npm:16.5.4":
version: 16.5.4
resolution: "file-type@npm:16.5.4"
dependencies:
readable-web-to-node-stream: "npm:^3.0.0"
strtok3: "npm:^6.2.4"
token-types: "npm:^4.1.1"
checksum: a6c9ab8bc05bc9c212bec239fb0d5bf59ddc9b3912f00c4ef44622e67ae4e553a1cc8372e9e595e14859035188eb305d05d488fa3c5c2a2ad90bb7745b3004ef
languageName: node
linkType: hard

Expand Down Expand Up @@ -13278,7 +13289,7 @@ __metadata:
languageName: node
linkType: hard

"follow-redirects@npm:^1.0.0, follow-redirects@npm:^1.14.0, follow-redirects@npm:^1.15.4":
"follow-redirects@npm:^1.0.0, follow-redirects@npm:^1.14.8, follow-redirects@npm:^1.15.4":
version: 1.15.5
resolution: "follow-redirects@npm:1.15.5"
peerDependenciesMeta:
Expand Down Expand Up @@ -14709,39 +14720,39 @@ __metadata:
languageName: node
linkType: hard

"ibm-cloud-sdk-core@npm:^2.14.3":
version: 2.14.4
resolution: "ibm-cloud-sdk-core@npm:2.14.4"
"ibm-cloud-sdk-core@npm:^3.2.1":
version: 3.2.2
resolution: "ibm-cloud-sdk-core@npm:3.2.2"
dependencies:
"@types/file-type": "npm:~5.2.1"
"@types/isstream": "npm:^0.1.0"
"@types/node": "npm:~10.14.19"
"@types/tough-cookie": "npm:^4.0.0"
axios: "npm:^0.21.4"
axios: "npm:^0.26.1"
axios-cookiejar-support: "npm:^1.0.0"
camelcase: "npm:^5.3.1"
debug: "npm:^4.1.1"
dotenv: "npm:^6.2.0"
expect: "npm:^26.1.0"
extend: "npm:^3.0.2"
file-type: "npm:^7.7.1"
file-type: "npm:16.5.4"
form-data: "npm:^2.3.3"
isstream: "npm:~0.1.2"
jsonwebtoken: "npm:^8.5.1"
jsonwebtoken: "npm:^9.0.0"
lodash.isempty: "npm:^4.4.0"
mime-types: "npm:~2.1.18"
object.omit: "npm:~3.0.0"
object.pick: "npm:~1.3.0"
retry-axios: "npm:^2.6.0"
semver: "npm:^6.2.0"
tough-cookie: "npm:^4.0.0"
checksum: 3d9e01d58f789de1b8743eecb14c99fee9192630caf92a06e1390858619915b8a239b152314a5b4e22f7b8df87145903613057d48b14391f8cb332f5dc73276f
checksum: c7437eed8f31cc79222d31593fe088af16c98882fec33e0d1fa3045511b2ac2549315ed7cfab2de2693cd92a829edb95bfd0455dabd10be99af4154b2a677b4a
languageName: node
linkType: hard

"ibm-watson@npm:^6.2.2":
version: 6.2.2
resolution: "ibm-watson@npm:6.2.2"
"ibm-watson@npm:^7":
version: 7.1.2
resolution: "ibm-watson@npm:7.1.2"
dependencies:
"@types/async": "npm:^3.2.5"
"@types/extend": "npm:^3.0.1"
Expand All @@ -14751,10 +14762,10 @@ __metadata:
async: "npm:^3.2.0"
camelcase: "npm:^6.2.0"
extend: "npm:~3.0.2"
ibm-cloud-sdk-core: "npm:^2.14.3"
ibm-cloud-sdk-core: "npm:^3.2.1"
isstream: "npm:~0.1.2"
websocket: "npm:^1.0.33"
checksum: 121c546f5134d07f321643fee9825114f9953e8ff7d63ca87d9bc05812ac4733bc29aeb8f7b211ff4a97179706c28df1fd602de2aa3490f6295f7cf638f6d6fa
checksum: 73dfed617d61a7b1937903970cca21db1b4c79009a7cdb183317aacc801406cb9bbbb8acd388b4356f108aedec2789bffafe764381dd21086a6aea6ea7c00709
languageName: node
linkType: hard

Expand Down Expand Up @@ -16706,9 +16717,9 @@ __metadata:
languageName: node
linkType: hard

"jsonwebtoken@npm:^8.5.1":
version: 8.5.1
resolution: "jsonwebtoken@npm:8.5.1"
"jsonwebtoken@npm:^9.0.0":
version: 9.0.2
resolution: "jsonwebtoken@npm:9.0.2"
dependencies:
jws: "npm:^3.2.2"
lodash.includes: "npm:^4.3.0"
Expand All @@ -16719,8 +16730,8 @@ __metadata:
lodash.isstring: "npm:^4.0.1"
lodash.once: "npm:^4.0.0"
ms: "npm:^2.1.1"
semver: "npm:^5.6.0"
checksum: c5ad937b6fa23a230efa8ed8ca3c0da8ebfdd377bafc3e8432a11b03ef90e733400a00b26c0dfee47db44a2e64b88b154b57e9926a92990f98dd25aaed15006e
semver: "npm:^7.5.4"
checksum: d287a29814895e866db2e5a0209ce730cbc158441a0e5a70d5e940eb0d28ab7498c6bf45029cc8b479639bca94056e9a7f254e2cdb92a2f5750c7f358657a131
languageName: node
linkType: hard

Expand Down Expand Up @@ -19848,6 +19859,13 @@ __metadata:
languageName: node
linkType: hard

"peek-readable@npm:^4.1.0":
version: 4.1.0
resolution: "peek-readable@npm:4.1.0"
checksum: f9b81ce3eed185cc9ebbf7dff0b6e130dd6da7b05f1802bbf726a78e4d84990b0a65f8e701959c50eb1124cc2ad352205147954bf39793faba29bb00ce742a44
languageName: node
linkType: hard

"peek-stream@npm:^1.1.0":
version: 1.1.3
resolution: "peek-stream@npm:1.1.3"
Expand Down Expand Up @@ -21277,6 +21295,13 @@ __metadata:
languageName: node
linkType: hard

"querystringify@npm:^2.1.1":
version: 2.2.0
resolution: "querystringify@npm:2.2.0"
checksum: 3258bc3dbdf322ff2663619afe5947c7926a6ef5fb78ad7d384602974c467fadfc8272af44f5eb8cddd0d011aae8fabf3a929a8eee4b86edcc0a21e6bd10f9aa
languageName: node
linkType: hard

"quick-lru@npm:^4.0.1":
version: 4.0.1
resolution: "quick-lru@npm:4.0.1"
Expand Down Expand Up @@ -21973,6 +21998,15 @@ __metadata:
languageName: node
linkType: hard

"readable-web-to-node-stream@npm:^3.0.0":
version: 3.0.2
resolution: "readable-web-to-node-stream@npm:3.0.2"
dependencies:
readable-stream: "npm:^3.6.0"
checksum: 533d5cd1580232a2c753e52a245be13fc552e6f82c5053a8a8da7ea1063d73a34f936a86b3d4433cdb4a13dd683835cfc87f230936cb96d329a1e28b6040f42e
languageName: node
linkType: hard

"readdirp@npm:~3.6.0":
version: 3.6.0
resolution: "readdirp@npm:3.6.0"
Expand Down Expand Up @@ -22630,7 +22664,7 @@ __metadata:
"@types/react-virtualized": "npm:^9.21.29"
"@types/seedrandom": "npm:^3.0.8"
"@types/testing-library__cypress": "npm:^5.0.13"
axios: "npm:^0.21.4"
axios: "npm:^1.6.5"
doctoc: "npm:^2.2.1"
eslint: "npm:^8.56.0"
eslint-config-prettier: "npm:^9.1.0"
Expand All @@ -22645,7 +22679,7 @@ __metadata:
fast-xml-parser: "npm:^4.3.3"
gh-pages: "npm:^6.1.1"
husky: "npm:^8.0.3"
ibm-watson: "npm:^6.2.2"
ibm-watson: "npm:^7"
lerna: "npm:^8.0.2"
lint-staged: "npm:^15.2.0"
lorem-ipsum: "npm:^2.0.8"
Expand Down Expand Up @@ -24218,6 +24252,16 @@ __metadata:
languageName: node
linkType: hard

"strtok3@npm:^6.2.4":
version: 6.3.0
resolution: "strtok3@npm:6.3.0"
dependencies:
"@tokenizer/token": "npm:^0.3.0"
peek-readable: "npm:^4.1.0"
checksum: 8f1483a2a6758404502f2fc431586fcf37d747b10b125596ab5ec92319c247dd1195f82ba0bc2eaa582db3d807b5cca4b67ff61411756fec6622d051f8e255c2
languageName: node
linkType: hard

"style-loader@npm:^3.3.1, style-loader@npm:^3.3.4":
version: 3.3.4
resolution: "style-loader@npm:3.3.4"
Expand Down Expand Up @@ -24741,14 +24785,25 @@ __metadata:
languageName: node
linkType: hard

"token-types@npm:^4.1.1":
version: 4.2.1
resolution: "token-types@npm:4.2.1"
dependencies:
"@tokenizer/token": "npm:^0.3.0"
ieee754: "npm:^1.2.1"
checksum: e9a4a139deba9515770cd7ac36a8f53f953b9d035d309e88a66d706760dba0df420753f2b8bdee6b9f3cbff8d66b24e69571e8dea27baa7b378229ab1bcca399
languageName: node
linkType: hard

"tough-cookie@npm:^4.0.0":
version: 4.0.0
resolution: "tough-cookie@npm:4.0.0"
version: 4.1.3
resolution: "tough-cookie@npm:4.1.3"
dependencies:
psl: "npm:^1.1.33"
punycode: "npm:^2.1.1"
universalify: "npm:^0.1.2"
checksum: 8ecd1f1ff1fa1d2c04f5e8533ae61d9b43062279aa62d7daf52a16fd99643fa569ae38464b6ae3f3fe1aa2184cee1539ff2066120eb95b9ac9684e8047b0ea3c
universalify: "npm:^0.2.0"
url-parse: "npm:^1.5.3"
checksum: 4fc0433a0cba370d57c4b240f30440c848906dee3180bb6e85033143c2726d322e7e4614abb51d42d111ebec119c4876ed8d7247d4113563033eebbc1739c831
languageName: node
linkType: hard

Expand Down Expand Up @@ -25371,10 +25426,10 @@ __metadata:
languageName: node
linkType: hard

"universalify@npm:^0.1.2":
version: 0.1.2
resolution: "universalify@npm:0.1.2"
checksum: e70e0339f6b36f34c9816f6bf9662372bd241714dc77508d231d08386d94f2c4aa1ba1318614f92015f40d45aae1b9075cd30bd490efbe39387b60a76ca3f045
"universalify@npm:^0.2.0":
version: 0.2.0
resolution: "universalify@npm:0.2.0"
checksum: cedbe4d4ca3967edf24c0800cfc161c5a15e240dac28e3ce575c689abc11f2c81ccc6532c8752af3b40f9120fb5e454abecd359e164f4f6aa44c29cd37e194fe
languageName: node
linkType: hard

Expand Down Expand Up @@ -25462,6 +25517,16 @@ __metadata:
languageName: node
linkType: hard

"url-parse@npm:^1.5.3":
version: 1.5.10
resolution: "url-parse@npm:1.5.10"
dependencies:
querystringify: "npm:^2.1.1"
requires-port: "npm:^1.0.0"
checksum: bd5aa9389f896974beb851c112f63b466505a04b4807cea2e5a3b7092f6fbb75316f0491ea84e44f66fed55f1b440df5195d7e3a8203f64fcefa19d182f5be87
languageName: node
linkType: hard

"url@npm:^0.11.3":
version: 0.11.3
resolution: "url@npm:0.11.3"
Expand Down

0 comments on commit 33a40c4

Please sign in to comment.