diff --git a/docs/installation.md b/docs/installation.md index 5b954799ca3..40b091e7510 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -5,7 +5,7 @@ weight: 30 ## Node and npm -To use the AsyncAPI CLI tool, you must install NPM and Node.js version 10 or higher. To check if you already have both installed, run the following commands in your terminal: +To use the AsyncAPI CLI tool, you must install NPM and Node.js version 16 or higher. To check if you already have both installed, run the following commands in your terminal: ```sh # check if node is installed diff --git a/package-lock.json b/package-lock.json index 2f12e825841..70bd3793b1b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@asyncapi/avro-schema-parser": "^3.0.23", - "@asyncapi/bundler": "^0.5.3", + "@asyncapi/bundler": "^0.6.1", "@asyncapi/converter": "^1.4.20", "@asyncapi/diff": "^0.4.1", "@asyncapi/generator": "^1.17.25", @@ -202,13 +202,14 @@ } }, "node_modules/@asyncapi/bundler": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/@asyncapi/bundler/-/bundler-0.5.5.tgz", - "integrity": "sha512-KIqNdsjSBqghWeT30Il8eR0AqW4p30a57FfFOfKbtdCwNOFI6WnACQIEQOeyjqLXRpzuXiDRj26f/U/yF1zPJA==", + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/@asyncapi/bundler/-/bundler-0.6.1.tgz", + "integrity": "sha512-wVoqyjNP7PCj96eAJ1XsZoSe5K1pz6j/VOss/ruGLBB1Za8o3iVaFuHhWHrQuXihKBcJTh8cjybVSiWY2YMxug==", "dependencies": { "@apidevtools/json-schema-ref-parser": "^11.5.4", "@asyncapi/parser": "^3.1.0", "@types/json-schema": "^7.0.11", + "@ungap/structured-clone": "^1.2.0", "js-yaml": "^4.1.0", "jsonpath-plus": "^6.0.1", "lodash": "^4.17.21" @@ -4593,6 +4594,18 @@ "sisteransi": "^1.0.5" } }, + "node_modules/@clack/prompts/node_modules/is-unicode-supported": { + "version": "1.3.0", + "extraneous": true, + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/@cspotcode/source-map-support": { "version": "0.8.1", "license": "MIT", @@ -9008,7 +9021,6 @@ }, "node_modules/@ungap/structured-clone": { "version": "1.2.0", - "dev": true, "license": "ISC" }, "node_modules/abab": { diff --git a/package.json b/package.json index 57f78f5908f..41cd15f9883 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "bugs": "https://github.com/asyncapi/cli/issues", "dependencies": { "@asyncapi/avro-schema-parser": "^3.0.23", - "@asyncapi/bundler": "^0.5.3", + "@asyncapi/bundler": "^0.6.1", "@asyncapi/converter": "^1.4.20", "@asyncapi/diff": "^0.4.1", "@asyncapi/modelina-cli": "^4.0.0-next.48", diff --git a/test/integration/bundle/feature.yaml b/test/integration/bundle/feature.yaml index 1a716520cc9..2288ad3b68b 100644 --- a/test/integration/bundle/feature.yaml +++ b/test/integration/bundle/feature.yaml @@ -3,8 +3,3 @@ info: title: Account Service version: 1.0.0 description: This service is in charge of processing user logouts -channels: - user/loggedOut: - unsubcribe: - message: - $ref: 'test/integration/bundle/messages.yaml#/messages/UserLoggedOut' diff --git a/test/integration/bundle/final-asyncapi.yaml b/test/integration/bundle/final-asyncapi.yaml index 9de32aa5d81..09e10392186 100644 --- a/test/integration/bundle/final-asyncapi.yaml +++ b/test/integration/bundle/final-asyncapi.yaml @@ -8,10 +8,6 @@ channels: subscribe: message: $ref: '#/components/messages/UserSignedUp' - user/loggedOut: - unsubcribe: - message: - $ref: '#/components/messages/UserLoggedOut' components: messages: UserSignedUp: diff --git a/test/integration/bundle/first-asyncapi.yaml b/test/integration/bundle/first-asyncapi.yaml index d41ed4a2fec..1b6b411c1d0 100644 --- a/test/integration/bundle/first-asyncapi.yaml +++ b/test/integration/bundle/first-asyncapi.yaml @@ -7,4 +7,4 @@ channels: user/signedup: subscribe: message: - $ref: "./test/integration/bundle/messages.yaml#/messages/UserSignedUp" \ No newline at end of file + $ref: "./messages.yaml#/messages/UserSignedUp" \ No newline at end of file diff --git a/test/integration/bundle/first-asyncapiv3.yaml b/test/integration/bundle/first-asyncapiv3.yaml index d49bb67334c..3b4c92e00c8 100644 --- a/test/integration/bundle/first-asyncapiv3.yaml +++ b/test/integration/bundle/first-asyncapiv3.yaml @@ -5,4 +5,4 @@ info: description: Example Service. channels: commentLikedChannel: - $ref: './test/integration/bundle/channels.yaml#/channels/commentLikedChannel' + $ref: './channels.yaml#/channels/commentLikedChannel'