From fa1118efd5f05ff699d3c13183795e832911b2f2 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 13 Dec 2023 12:28:00 +0100 Subject: [PATCH 01/12] fix: update @asyncapi/parser to 3.0.0 version (#1087) --- package-lock.json | 98 ++++++++++++++++++++++++++++++++++++++++++++--- package.json | 2 +- 2 files changed, 94 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 132316ab5..be760c3c2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.4", - "@asyncapi/parser": "^3.0.1", + "@asyncapi/parser": "^3.0.0", "@npmcli/arborist": "^2.2.4", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", @@ -172,6 +172,40 @@ "source-map-support": "^0.5.19" } }, + "node_modules/@asyncapi/generator-react-sdk/node_modules/@asyncapi/parser": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.1.tgz", + "integrity": "sha512-LtRVjbswpqW7TlSqnGVdFm1da3DV1sqQz07ZG6xqzpR2A2pkn16+5Fk+OhuAggZ0atXNLSYfYSuKp8t3iKvrKA==", + "dependencies": { + "@asyncapi/specs": "^6.1.0", + "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", + "@stoplight/json": "^3.20.2", + "@stoplight/json-ref-readers": "^1.2.2", + "@stoplight/json-ref-resolver": "^3.1.5", + "@stoplight/spectral-core": "^1.16.1", + "@stoplight/spectral-functions": "^1.7.2", + "@stoplight/spectral-parsers": "^1.0.2", + "@stoplight/spectral-ref-resolver": "^1.0.3", + "@stoplight/types": "^13.12.0", + "@types/json-schema": "^7.0.11", + "@types/urijs": "^1.19.19", + "ajv": "^8.11.0", + "ajv-errors": "^3.0.0", + "ajv-formats": "^2.1.1", + "avsc": "^5.7.5", + "js-yaml": "^4.1.0", + "jsonpath-plus": "^7.2.0", + "node-fetch": "2.6.7" + } + }, + "node_modules/@asyncapi/generator-react-sdk/node_modules/@asyncapi/specs": { + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.2.0.tgz", + "integrity": "sha512-5uf/Rg6pavZHx7rVIkP0TP/icIahJCuHgmY1rdtkrWxHZMXbASDDV3DlTUaonbsUeemwchoqljmrTd1O1xqvxg==", + "dependencies": { + "@types/json-schema": "^7.0.11" + } + }, "node_modules/@asyncapi/generator-react-sdk/node_modules/@babel/core": { "version": "7.12.9", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", @@ -202,6 +236,41 @@ "url": "https://opencollective.com/babel" } }, + "node_modules/@asyncapi/generator-react-sdk/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" + }, + "node_modules/@asyncapi/generator-react-sdk/node_modules/js-yaml": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", + "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", + "dependencies": { + "argparse": "^2.0.1" + }, + "bin": { + "js-yaml": "bin/js-yaml.js" + } + }, + "node_modules/@asyncapi/generator-react-sdk/node_modules/node-fetch": { + "version": "2.6.7", + "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", + "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "dependencies": { + "whatwg-url": "^5.0.0" + }, + "engines": { + "node": "4.x || >=6.0.0" + }, + "peerDependencies": { + "encoding": "^0.1.0" + }, + "peerDependenciesMeta": { + "encoding": { + "optional": true + } + } + }, "node_modules/@asyncapi/generator-react-sdk/node_modules/semver": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", @@ -218,6 +287,25 @@ "node": ">=0.10.0" } }, + "node_modules/@asyncapi/generator-react-sdk/node_modules/tr46": { + "version": "0.0.3", + "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", + "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" + }, + "node_modules/@asyncapi/generator-react-sdk/node_modules/webidl-conversions": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", + "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" + }, + "node_modules/@asyncapi/generator-react-sdk/node_modules/whatwg-url": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", + "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", + "dependencies": { + "tr46": "~0.0.3", + "webidl-conversions": "^3.0.0" + } + }, "node_modules/@asyncapi/openapi-schema-parser": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@asyncapi/openapi-schema-parser/-/openapi-schema-parser-3.0.5.tgz", @@ -311,11 +399,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.1.tgz", - "integrity": "sha512-LtRVjbswpqW7TlSqnGVdFm1da3DV1sqQz07ZG6xqzpR2A2pkn16+5Fk+OhuAggZ0atXNLSYfYSuKp8t3iKvrKA==", + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.0.tgz", + "integrity": "sha512-DvPAt4pk7V4D5rTGTrMKOfqRQ1qTzf5CuGecFW+mxAIuKd8XyTT5kPPKTbDnAdFAVk1l7YjPIySE7t9xLaEjKw==", "dependencies": { - "@asyncapi/specs": "^6.1.0", + "@asyncapi/specs": "^6.0.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", diff --git a/package.json b/package.json index 3ed402f7f..6c4c1cca6 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "homepage": "https://github.com/asyncapi/generator", "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.4", - "@asyncapi/parser": "^3.0.1", + "@asyncapi/parser": "^3.0.0", "@npmcli/arborist": "^2.2.4", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", From 720151b51132ec2da1fcde87108b393ee621a79c Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 13 Dec 2023 12:37:42 +0100 Subject: [PATCH 02/12] chore(release): v1.15.6 (#1088) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index be760c3c2..a21ea132d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/generator", - "version": "1.15.5", + "version": "1.15.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@asyncapi/generator", - "version": "1.15.5", + "version": "1.15.6", "license": "Apache-2.0", "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.4", diff --git a/package.json b/package.json index 6c4c1cca6..5cc69f0be 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/generator", - "version": "1.15.5", + "version": "1.15.6", "description": "The AsyncAPI generator. It can generate documentation, code, anything!", "main": "./lib/generator.js", "bin": { From ab91969f72c85a9732884d4bdcbba21a072c7549 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 13 Dec 2023 13:17:08 +0100 Subject: [PATCH 03/12] fix: update @asyncapi/generator-react-sdk to 1.0.5 version (#1089) --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index a21ea132d..01ff085af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.15.6", "license": "Apache-2.0", "dependencies": { - "@asyncapi/generator-react-sdk": "^1.0.4", + "@asyncapi/generator-react-sdk": "^1.0.5", "@asyncapi/parser": "^3.0.0", "@npmcli/arborist": "^2.2.4", "@smoya/multi-parser": "^5.0.0", @@ -156,11 +156,11 @@ } }, "node_modules/@asyncapi/generator-react-sdk": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.4.tgz", - "integrity": "sha512-QiXCBFQL6GXoIyzekNbhGQ0WfeERWSklYR0WS/wycip2SjjP+17+7nIHgROGkx4dVARYURAQsIi/BNFbziIBtQ==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.5.tgz", + "integrity": "sha512-tjduEFeh3PWBP1hWnXadWyiaPeWF6BnO2nCFMd7k1ybYgR30z4uQ8nap8oCPL+Qz/o3ornng2Uz/RPoLtVU8lQ==", "dependencies": { - "@asyncapi/parser": "^3.0.1", + "@asyncapi/parser": "^3.0.0", "@babel/core": "7.12.9", "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", diff --git a/package.json b/package.json index 5cc69f0be..37d60e891 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "license": "Apache-2.0", "homepage": "https://github.com/asyncapi/generator", "dependencies": { - "@asyncapi/generator-react-sdk": "^1.0.4", + "@asyncapi/generator-react-sdk": "^1.0.5", "@asyncapi/parser": "^3.0.0", "@npmcli/arborist": "^2.2.4", "@smoya/multi-parser": "^5.0.0", From 58a20c5ade68aae598b844c7859a1f0a03656843 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 13 Dec 2023 13:37:03 +0100 Subject: [PATCH 04/12] chore(release): v1.15.7 (#1090) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 01ff085af..3f8943d00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/generator", - "version": "1.15.6", + "version": "1.15.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@asyncapi/generator", - "version": "1.15.6", + "version": "1.15.7", "license": "Apache-2.0", "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.5", diff --git a/package.json b/package.json index 37d60e891..5dc0340bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/generator", - "version": "1.15.6", + "version": "1.15.7", "description": "The AsyncAPI generator. It can generate documentation, code, anything!", "main": "./lib/generator.js", "bin": { From 831d724cbfcb1cff10ac9e941af052ceb237b073 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 13 Dec 2023 14:26:47 +0100 Subject: [PATCH 05/12] ci: update of files from global .github repo (#1091) --- .github/workflows/bump.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index 92fa275ed..e5f8351a6 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -31,4 +31,4 @@ jobs: github_token: ${{ secrets.GH_TOKEN }} committer_username: asyncapi-bot committer_email: info@asyncapi.io - repos_to_ignore: html-template # this is temporary until react component releases 1.0, then it can be removed \ No newline at end of file + repos_to_ignore: spec,bindings From 00558ee3e7df024436bb604dc25fb766683e99fa Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 13 Dec 2023 20:05:59 +0100 Subject: [PATCH 06/12] fix: update @asyncapi/parser to 3.0.2 version (#1092) --- package-lock.json | 104 ++++------------------------------------------ package.json | 2 +- 2 files changed, 9 insertions(+), 97 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3f8943d00..bc8a0b48d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.5", - "@asyncapi/parser": "^3.0.0", + "@asyncapi/parser": "^3.0.2", "@npmcli/arborist": "^2.2.4", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", @@ -172,40 +172,6 @@ "source-map-support": "^0.5.19" } }, - "node_modules/@asyncapi/generator-react-sdk/node_modules/@asyncapi/parser": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.1.tgz", - "integrity": "sha512-LtRVjbswpqW7TlSqnGVdFm1da3DV1sqQz07ZG6xqzpR2A2pkn16+5Fk+OhuAggZ0atXNLSYfYSuKp8t3iKvrKA==", - "dependencies": { - "@asyncapi/specs": "^6.1.0", - "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", - "@stoplight/json": "^3.20.2", - "@stoplight/json-ref-readers": "^1.2.2", - "@stoplight/json-ref-resolver": "^3.1.5", - "@stoplight/spectral-core": "^1.16.1", - "@stoplight/spectral-functions": "^1.7.2", - "@stoplight/spectral-parsers": "^1.0.2", - "@stoplight/spectral-ref-resolver": "^1.0.3", - "@stoplight/types": "^13.12.0", - "@types/json-schema": "^7.0.11", - "@types/urijs": "^1.19.19", - "ajv": "^8.11.0", - "ajv-errors": "^3.0.0", - "ajv-formats": "^2.1.1", - "avsc": "^5.7.5", - "js-yaml": "^4.1.0", - "jsonpath-plus": "^7.2.0", - "node-fetch": "2.6.7" - } - }, - "node_modules/@asyncapi/generator-react-sdk/node_modules/@asyncapi/specs": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.2.0.tgz", - "integrity": "sha512-5uf/Rg6pavZHx7rVIkP0TP/icIahJCuHgmY1rdtkrWxHZMXbASDDV3DlTUaonbsUeemwchoqljmrTd1O1xqvxg==", - "dependencies": { - "@types/json-schema": "^7.0.11" - } - }, "node_modules/@asyncapi/generator-react-sdk/node_modules/@babel/core": { "version": "7.12.9", "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.12.9.tgz", @@ -236,41 +202,6 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@asyncapi/generator-react-sdk/node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" - }, - "node_modules/@asyncapi/generator-react-sdk/node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, - "node_modules/@asyncapi/generator-react-sdk/node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, "node_modules/@asyncapi/generator-react-sdk/node_modules/semver": { "version": "5.7.2", "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", @@ -287,25 +218,6 @@ "node": ">=0.10.0" } }, - "node_modules/@asyncapi/generator-react-sdk/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/@asyncapi/generator-react-sdk/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/@asyncapi/generator-react-sdk/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, "node_modules/@asyncapi/openapi-schema-parser": { "version": "3.0.5", "resolved": "https://registry.npmjs.org/@asyncapi/openapi-schema-parser/-/openapi-schema-parser-3.0.5.tgz", @@ -399,11 +311,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.0.tgz", - "integrity": "sha512-DvPAt4pk7V4D5rTGTrMKOfqRQ1qTzf5CuGecFW+mxAIuKd8XyTT5kPPKTbDnAdFAVk1l7YjPIySE7t9xLaEjKw==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.2.tgz", + "integrity": "sha512-AtDFndWwnaqGoXZQY2DRtORT2Ls4BI7MSR+Rg7TRwxf5jxIz/WVvQwc5HElkHuDEkIZslYu+ukFzNq3awdj0aw==", "dependencies": { - "@asyncapi/specs": "^6.0.0", + "@asyncapi/specs": "^6.2.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -425,9 +337,9 @@ } }, "node_modules/@asyncapi/parser/node_modules/@asyncapi/specs": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.1.0.tgz", - "integrity": "sha512-RXWktqwnErkZmPppT7FWQ8njoULKrB6ERUZUWT0+PdrQ1ti+VvyiCS3RvhdgE2r612VPP9NIh05tJgBCv6LgoQ==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.2.0.tgz", + "integrity": "sha512-5uf/Rg6pavZHx7rVIkP0TP/icIahJCuHgmY1rdtkrWxHZMXbASDDV3DlTUaonbsUeemwchoqljmrTd1O1xqvxg==", "dependencies": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index 5dc0340bd..187dd4925 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "homepage": "https://github.com/asyncapi/generator", "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.5", - "@asyncapi/parser": "^3.0.0", + "@asyncapi/parser": "^3.0.2", "@npmcli/arborist": "^2.2.4", "@smoya/multi-parser": "^5.0.0", "ajv": "^8.12.0", From 75ab1194f9351582b1e489e367f4b6baa2ced762 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 13 Dec 2023 20:23:12 +0100 Subject: [PATCH 07/12] chore(release): v1.15.8 (#1093) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index bc8a0b48d..18cacc6a2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/generator", - "version": "1.15.7", + "version": "1.15.8", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@asyncapi/generator", - "version": "1.15.7", + "version": "1.15.8", "license": "Apache-2.0", "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.5", diff --git a/package.json b/package.json index 187dd4925..bf35f17c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/generator", - "version": "1.15.7", + "version": "1.15.8", "description": "The AsyncAPI generator. It can generate documentation, code, anything!", "main": "./lib/generator.js", "bin": { From 6467f0d48c15d8ad37a3a07f1e14e1e12a1df804 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 13 Dec 2023 21:34:26 +0100 Subject: [PATCH 08/12] fix: update @asyncapi/generator-react-sdk to 1.0.6 version (#1094) --- package-lock.json | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index 18cacc6a2..44e626238 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.15.8", "license": "Apache-2.0", "dependencies": { - "@asyncapi/generator-react-sdk": "^1.0.5", + "@asyncapi/generator-react-sdk": "^1.0.6", "@asyncapi/parser": "^3.0.2", "@npmcli/arborist": "^2.2.4", "@smoya/multi-parser": "^5.0.0", @@ -156,11 +156,11 @@ } }, "node_modules/@asyncapi/generator-react-sdk": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.5.tgz", - "integrity": "sha512-tjduEFeh3PWBP1hWnXadWyiaPeWF6BnO2nCFMd7k1ybYgR30z4uQ8nap8oCPL+Qz/o3ornng2Uz/RPoLtVU8lQ==", + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@asyncapi/generator-react-sdk/-/generator-react-sdk-1.0.6.tgz", + "integrity": "sha512-FBn6rQtF8+SJL2VXhiiLy85rGrUDtnFAMOWGcYTw4yJC/IyL/3RyrRFqQFpNtoWW6h9Kh+RYKXiwltGkcTdASw==", "dependencies": { - "@asyncapi/parser": "^3.0.0", + "@asyncapi/parser": "^3.0.2", "@babel/core": "7.12.9", "@babel/preset-env": "^7.12.7", "@babel/preset-react": "^7.12.7", diff --git a/package.json b/package.json index bf35f17c8..3bd71499b 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "license": "Apache-2.0", "homepage": "https://github.com/asyncapi/generator", "dependencies": { - "@asyncapi/generator-react-sdk": "^1.0.5", + "@asyncapi/generator-react-sdk": "^1.0.6", "@asyncapi/parser": "^3.0.2", "@npmcli/arborist": "^2.2.4", "@smoya/multi-parser": "^5.0.0", From 56ca8adb751cd94c913734650a714195b2fc84f2 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 13 Dec 2023 21:49:59 +0100 Subject: [PATCH 09/12] chore(release): v1.15.9 (#1095) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 44e626238..c58db298f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/generator", - "version": "1.15.8", + "version": "1.15.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@asyncapi/generator", - "version": "1.15.8", + "version": "1.15.9", "license": "Apache-2.0", "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.6", diff --git a/package.json b/package.json index 3bd71499b..f5a147973 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/generator", - "version": "1.15.8", + "version": "1.15.9", "description": "The AsyncAPI generator. It can generate documentation, code, anything!", "main": "./lib/generator.js", "bin": { From ce963b7dd1b66dd5f1b91e853d5b58f579ec4bd2 Mon Sep 17 00:00:00 2001 From: Florence Njeri <40742916+Florence-Njeri@users.noreply.github.com> Date: Thu, 4 Jan 2024 19:35:50 +0300 Subject: [PATCH 10/12] Apply suggestions from code review editorial from Lukasz Co-authored-by: Lukasz Gornicki --- docs/index.md | 4 ++-- docs/model-generation.md | 4 +++- docs/template-development.md | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index 8927df67c..0c32dbd82 100644 --- a/docs/index.md +++ b/docs/index.md @@ -5,8 +5,8 @@ weight: 10 The AsyncAPI generator is a tool that generates anything you want using the **[AsyncAPI Document](generator/asyncapi-document)** and **[Template](generator/template)** that are supplied as inputs to the AsyncAPI CLI. The generator was built with extensibility in mind; you can use the generator to generate anything you want, provided that it can be defined in a template, such as code, diagrams, markdown files, microservices, and applications. A number of [community-maintained templates](https://github.com/search?q=topic%3Aasyncapi+topic%3Agenerator+topic%3Atemplate) are now available for immediate usage. -> :memo: **Note:** -> If your primary objective is to generate models/classes for your event-driven architecture apps, use [modelina](generator/model-generation), which is supported in the AsyncAPI CLI, instead of using the AsyncAPI generator. Modelina is specifically designed for model generation and provides utilities for working with the AsyncAPI document. +> **Note:** +> If your primary objective is to generate models/classes for your event-driven architecture apps, use [AsyncAPI Modelina](/docs/tools/generator/model-generation), which is supported in the AsyncAPI CLI, instead of using the AsyncAPI Generator. Modelina is specifically designed for model generation and provides utilities for working with the AsyncAPI document. ### Generator use cases - Generation of interactive and understandable API documentation diff --git a/docs/model-generation.md b/docs/model-generation.md index b40b398cb..e7d21417d 100644 --- a/docs/model-generation.md +++ b/docs/model-generation.md @@ -3,7 +3,9 @@ title: "Generating models and classes using Modelina" weight: 200 --- -Suppose you want to generate models for your application from the data types you have using the asyncapi generator. Then you should use Modelina instead of the asyncapi generator with a template. +Use [AsyncAPI Modelina](/tools/modelina) to generate models for an application. Since models generation is something that you usually perform as an automated step through CI/CD, best way to use Modelina is through [AsyncAPI CLI](/tools/cli). + +In case you work on a template for generating an application and part of template responsibilities is to provide models, you should integrate Modelina library instead of templating model structures using features from AsyncAPI Generator. [Modelina](https://www.asyncapi.com/tools/modelina) is an AsyncAPI library that is used to generate data models using inputs such as AsyncAPI, OpenAPI or JSON schema inputs. This library helps generate data models based on your AsyncAPI document, the model template (which defines the message payloads) via the asyncapi CLI. You can then use the generated models in your code, and you can store the generated models in a single file. This tutorial will guide you through generating a model class for a Python MQTT client using Modelina and the AsyncAPI CLI. diff --git a/docs/template-development.md b/docs/template-development.md index 3dfbc150e..c0a29c060 100644 --- a/docs/template-development.md +++ b/docs/template-development.md @@ -3,7 +3,7 @@ title: "Template development" weight: 80 --- > **Note** -> It is advised against attempting to manually template types and models from scratch using the AsyncAPI templating engines such as Nunjucks and React render engines. Instead, it is recommended to use [Modelina](generator/model-generation) a dedicated library for model generation. +> It is advised against attempting to manually template types and models from scratch using the AsyncAPI templating engines such as Nunjucks and React render engines. Instead, it is recommended to use [AsyncAPI Modelina](/docs/tools/generator/model-generation) a dedicated library for model generation. ## Minimum template requirements From 028fbea6428b62835a3f122d211955a15ae27625 Mon Sep 17 00:00:00 2001 From: michael-ball-ctct Date: Fri, 5 Jan 2024 07:05:14 +1300 Subject: [PATCH 11/12] feat: report parse failure reasons (#1058) Co-authored-by: Lukasz Gornicki --- lib/generator.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/generator.js b/lib/generator.js index 10efa7d69..9d7e5bcf0 100644 --- a/lib/generator.js +++ b/lib/generator.js @@ -355,6 +355,13 @@ class Generator { if (!document) { const err = new Error('Input is not a correct AsyncAPI document so it cannot be processed.'); err.diagnostics = diagnostics; + for (const diag of diagnostics) { + console.error( + `Diagnostic err: ${diag['message']} in path ${JSON.stringify(diag['path'])} starting `+ + `L${diag['range']['start']['line'] + 1} C${diag['range']['start']['character']}, ending `+ + `L${diag['range']['end']['line'] + 1} C${diag['range']['end']['character']}` + ); + } throw err; } else { this.asyncapi = document; From 74173a745650d4bfd9f83cc891c40c4e119d615d Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 4 Jan 2024 19:12:12 +0100 Subject: [PATCH 12/12] chore(release): v1.16.0 (#1097) --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index c58db298f..d5454c3df 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/generator", - "version": "1.15.9", + "version": "1.16.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@asyncapi/generator", - "version": "1.15.9", + "version": "1.16.0", "license": "Apache-2.0", "dependencies": { "@asyncapi/generator-react-sdk": "^1.0.6", diff --git a/package.json b/package.json index f5a147973..e7ce56f50 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/generator", - "version": "1.15.9", + "version": "1.16.0", "description": "The AsyncAPI generator. It can generate documentation, code, anything!", "main": "./lib/generator.js", "bin": {