From 2ec4971a3b3e23a38cf901007e87488db465cc5f Mon Sep 17 00:00:00 2001 From: Viacheslav Turovskyi Date: Tue, 9 Jan 2024 17:34:49 +0200 Subject: [PATCH 01/21] fix: add searching for `replyAddresses` component of v3 (#213) --- src/ComponentProvider.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ComponentProvider.ts b/src/ComponentProvider.ts index 7e8e6c78..96aa33d7 100644 --- a/src/ComponentProvider.ts +++ b/src/ComponentProvider.ts @@ -74,6 +74,7 @@ export const getOptimizableComponents = ( parameters: getAllComponents('parameters'), correlationIds: getAllComponents('correlationIds'), replies: getAllComponents('replies'), + replyAddresses: getAllComponents('replyAddresses'), externalDocs: getAllComponents('externalDocs'), tags: getAllComponents('tags'), operationTraits: getAllComponents('operationTraits'), From 003f495e4d48d1d6c788ba87741d9b36b599e60c Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 9 Jan 2024 16:38:59 +0100 Subject: [PATCH 02/21] chore(release): v0.3.1 (#214) --- 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 be97a5fc..43db3bc2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/optimizer", - "version": "0.3.0", + "version": "0.3.1", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.0.2", diff --git a/package.json b/package.json index 8945db75..46becebd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.0", + "version": "0.3.1", "description": "This library will optimize the AsyncAPI specification file.", "main": "./lib/index.js", "types": "./lib/index.d.ts", From e984a795a269f9bb20fd967a822777e9f51b323c Mon Sep 17 00:00:00 2001 From: Viacheslav Turovskyi Date: Tue, 16 Jan 2024 10:06:04 +0200 Subject: [PATCH 03/21] chore: remove JSON.stringify() from example code (#215) --- examples/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/index.js b/examples/index.js index ddf4f36b..5c7d928e 100644 --- a/examples/index.js +++ b/examples/index.js @@ -5,7 +5,7 @@ const { Optimizer } = require('../lib/Optimizer') const input = require('fs').readFileSync('./examples/input.yaml', 'utf8') const optimizer = new Optimizer(input) optimizer.getReport().then((report) => { - console.log(JSON.stringify(report)) + console.log(report) const optimizedDocument = optimizer.getOptimizedDocument({ output: 'YAML', rules: { From b3ec2c58b58807899819b62cd0263013a7f982b2 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 29 Jan 2024 19:28:05 +0100 Subject: [PATCH 04/21] fix: update @asyncapi/parser to 3.0.3 version (#217) --- package-lock.json | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 43db3bc2..cee689cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.3.1", "license": "Apache-2.0", "dependencies": { - "@asyncapi/parser": "^3.0.2", + "@asyncapi/parser": "^3.0.3", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", @@ -38,11 +38,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.2.tgz", - "integrity": "sha512-AtDFndWwnaqGoXZQY2DRtORT2Ls4BI7MSR+Rg7TRwxf5jxIz/WVvQwc5HElkHuDEkIZslYu+ukFzNq3awdj0aw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.3.tgz", + "integrity": "sha512-nRkzgzcSkqBMy6kL/AWNsL8EJzDePFI4x6949V+4R/zYtbAm1IYY9Q4DEc81pnxoWHrJrVvrSD6O73/VTJ+XoA==", "dependencies": { - "@asyncapi/specs": "^6.2.0", + "@asyncapi/specs": "^6.2.1", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -100,9 +100,9 @@ } }, "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==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.2.1.tgz", + "integrity": "sha512-rfd0bzJrApEbxYD4U1SUG02GGG6lK6i6lup9LDWpVu1QwwuMNLAgf8+jsmsf3e7OinB/lauxRumGODXCxBu5Jw==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -9032,11 +9032,11 @@ }, "dependencies": { "@asyncapi/parser": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.2.tgz", - "integrity": "sha512-AtDFndWwnaqGoXZQY2DRtORT2Ls4BI7MSR+Rg7TRwxf5jxIz/WVvQwc5HElkHuDEkIZslYu+ukFzNq3awdj0aw==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.3.tgz", + "integrity": "sha512-nRkzgzcSkqBMy6kL/AWNsL8EJzDePFI4x6949V+4R/zYtbAm1IYY9Q4DEc81pnxoWHrJrVvrSD6O73/VTJ+XoA==", "requires": { - "@asyncapi/specs": "^6.2.0", + "@asyncapi/specs": "^6.2.1", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -9087,9 +9087,9 @@ } }, "@asyncapi/specs": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.2.0.tgz", - "integrity": "sha512-5uf/Rg6pavZHx7rVIkP0TP/icIahJCuHgmY1rdtkrWxHZMXbASDDV3DlTUaonbsUeemwchoqljmrTd1O1xqvxg==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.2.1.tgz", + "integrity": "sha512-rfd0bzJrApEbxYD4U1SUG02GGG6lK6i6lup9LDWpVu1QwwuMNLAgf8+jsmsf3e7OinB/lauxRumGODXCxBu5Jw==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index 46becebd..b17c0642 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "access": "public" }, "dependencies": { - "@asyncapi/parser": "^3.0.2", + "@asyncapi/parser": "^3.0.3", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", From add3060c4e6d36cb84dfb7b608ca708b7370e5aa Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 29 Jan 2024 19:40:57 +0100 Subject: [PATCH 05/21] chore(release): v0.3.2 (#218) --- 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 cee689cd..c023750f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.1", + "version": "0.3.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/optimizer", - "version": "0.3.1", + "version": "0.3.2", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.0.3", diff --git a/package.json b/package.json index b17c0642..8bcf9074 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.1", + "version": "0.3.2", "description": "This library will optimize the AsyncAPI specification file.", "main": "./lib/index.js", "types": "./lib/index.d.ts", From b7237e5eff68a399aacf7698d66c200f93dc9229 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 30 Jan 2024 05:51:34 +0100 Subject: [PATCH 06/21] fix: update @asyncapi/parser to 3.0.4 version (#219) --- package-lock.json | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index c023750f..73890ee9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.3.2", "license": "Apache-2.0", "dependencies": { - "@asyncapi/parser": "^3.0.3", + "@asyncapi/parser": "^3.0.4", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", @@ -38,11 +38,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.3.tgz", - "integrity": "sha512-nRkzgzcSkqBMy6kL/AWNsL8EJzDePFI4x6949V+4R/zYtbAm1IYY9Q4DEc81pnxoWHrJrVvrSD6O73/VTJ+XoA==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.4.tgz", + "integrity": "sha512-xop2ZGCNey6eaNp6ypscrWCQogC++XAjq7yWvaB9v3GfpL0P8Dq+d29NetlvpLFZ1xnkbeuUg9R2m7FBZYkPFw==", "dependencies": { - "@asyncapi/specs": "^6.2.1", + "@asyncapi/specs": "^6.3.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -100,9 +100,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.2.1.tgz", - "integrity": "sha512-rfd0bzJrApEbxYD4U1SUG02GGG6lK6i6lup9LDWpVu1QwwuMNLAgf8+jsmsf3e7OinB/lauxRumGODXCxBu5Jw==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.3.0.tgz", + "integrity": "sha512-Ui7Fekd/ruqd4hTSb5ogsTG8eylHEyKR5qKOtg+HwOYWlUEtObOD2UlhbuASiB4YnG5SSfkEKR5YsUJmf/ESYQ==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -9032,11 +9032,11 @@ }, "dependencies": { "@asyncapi/parser": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.3.tgz", - "integrity": "sha512-nRkzgzcSkqBMy6kL/AWNsL8EJzDePFI4x6949V+4R/zYtbAm1IYY9Q4DEc81pnxoWHrJrVvrSD6O73/VTJ+XoA==", + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.4.tgz", + "integrity": "sha512-xop2ZGCNey6eaNp6ypscrWCQogC++XAjq7yWvaB9v3GfpL0P8Dq+d29NetlvpLFZ1xnkbeuUg9R2m7FBZYkPFw==", "requires": { - "@asyncapi/specs": "^6.2.1", + "@asyncapi/specs": "^6.3.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -9087,9 +9087,9 @@ } }, "@asyncapi/specs": { - "version": "6.2.1", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.2.1.tgz", - "integrity": "sha512-rfd0bzJrApEbxYD4U1SUG02GGG6lK6i6lup9LDWpVu1QwwuMNLAgf8+jsmsf3e7OinB/lauxRumGODXCxBu5Jw==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.3.0.tgz", + "integrity": "sha512-Ui7Fekd/ruqd4hTSb5ogsTG8eylHEyKR5qKOtg+HwOYWlUEtObOD2UlhbuASiB4YnG5SSfkEKR5YsUJmf/ESYQ==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index 8bcf9074..ac0ccc13 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "access": "public" }, "dependencies": { - "@asyncapi/parser": "^3.0.3", + "@asyncapi/parser": "^3.0.4", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", From 19b6f119420e19c3fa414d423d8c1eb0a361047a Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 30 Jan 2024 06:15:05 +0100 Subject: [PATCH 07/21] chore(release): v0.3.3 (#220) --- 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 73890ee9..2e311d7c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.2", + "version": "0.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/optimizer", - "version": "0.3.2", + "version": "0.3.3", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.0.4", diff --git a/package.json b/package.json index ac0ccc13..a2bc5415 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.2", + "version": "0.3.3", "description": "This library will optimize the AsyncAPI specification file.", "main": "./lib/index.js", "types": "./lib/index.d.ts", From 75e19dbbe760ea71dd300cc9ee6ca8eb6fa4357b Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Sun, 4 Feb 2024 12:06:56 +0100 Subject: [PATCH 08/21] fix: update @asyncapi/parser to 3.0.5 version (#221) --- package-lock.json | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2e311d7c..2c95e184 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.3.3", "license": "Apache-2.0", "dependencies": { - "@asyncapi/parser": "^3.0.4", + "@asyncapi/parser": "^3.0.5", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", @@ -38,11 +38,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.4.tgz", - "integrity": "sha512-xop2ZGCNey6eaNp6ypscrWCQogC++XAjq7yWvaB9v3GfpL0P8Dq+d29NetlvpLFZ1xnkbeuUg9R2m7FBZYkPFw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.5.tgz", + "integrity": "sha512-Kc/hwCyb2/YzcIfQlY9lwjUDV/9cXMjVewQz9WvPVAaFlOr83bdHpccfnl2sQNXDcC+zCcpEDBjs41ATowPE3Q==", "dependencies": { - "@asyncapi/specs": "^6.3.0", + "@asyncapi/specs": "^6.4.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -100,9 +100,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.3.0.tgz", - "integrity": "sha512-Ui7Fekd/ruqd4hTSb5ogsTG8eylHEyKR5qKOtg+HwOYWlUEtObOD2UlhbuASiB4YnG5SSfkEKR5YsUJmf/ESYQ==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.4.0.tgz", + "integrity": "sha512-hTw0xF09i+eoSGP8LKo6aM+XOkvWsgV7kYpFHXd45VX9RcVZl5cADFIYDnPZkd52WaDJ4S+8Nrwkt/1vDb6SrQ==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -9032,11 +9032,11 @@ }, "dependencies": { "@asyncapi/parser": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.4.tgz", - "integrity": "sha512-xop2ZGCNey6eaNp6ypscrWCQogC++XAjq7yWvaB9v3GfpL0P8Dq+d29NetlvpLFZ1xnkbeuUg9R2m7FBZYkPFw==", + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.5.tgz", + "integrity": "sha512-Kc/hwCyb2/YzcIfQlY9lwjUDV/9cXMjVewQz9WvPVAaFlOr83bdHpccfnl2sQNXDcC+zCcpEDBjs41ATowPE3Q==", "requires": { - "@asyncapi/specs": "^6.3.0", + "@asyncapi/specs": "^6.4.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -9087,9 +9087,9 @@ } }, "@asyncapi/specs": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.3.0.tgz", - "integrity": "sha512-Ui7Fekd/ruqd4hTSb5ogsTG8eylHEyKR5qKOtg+HwOYWlUEtObOD2UlhbuASiB4YnG5SSfkEKR5YsUJmf/ESYQ==", + "version": "6.4.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.4.0.tgz", + "integrity": "sha512-hTw0xF09i+eoSGP8LKo6aM+XOkvWsgV7kYpFHXd45VX9RcVZl5cADFIYDnPZkd52WaDJ4S+8Nrwkt/1vDb6SrQ==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index a2bc5415..fb1ccd3d 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "access": "public" }, "dependencies": { - "@asyncapi/parser": "^3.0.4", + "@asyncapi/parser": "^3.0.5", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", From e8c9c6497f7570f5f19e849827a18d771862a629 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Sun, 4 Feb 2024 12:11:46 +0100 Subject: [PATCH 09/21] chore(release): v0.3.4 (#222) --- 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 2c95e184..c3c84736 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.3", + "version": "0.3.4", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/optimizer", - "version": "0.3.3", + "version": "0.3.4", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.0.5", diff --git a/package.json b/package.json index fb1ccd3d..f7b2edfa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.3", + "version": "0.3.4", "description": "This library will optimize the AsyncAPI specification file.", "main": "./lib/index.js", "types": "./lib/index.d.ts", From 95080a27f79af5d9285365b80270694dd80411e7 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Fri, 16 Feb 2024 18:07:39 +0100 Subject: [PATCH 10/21] fix: update @asyncapi/parser to 3.0.6 version (#223) --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index c3c84736..73590213 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.3.4", "license": "Apache-2.0", "dependencies": { - "@asyncapi/parser": "^3.0.5", + "@asyncapi/parser": "^3.0.6", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", @@ -38,9 +38,9 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.5.tgz", - "integrity": "sha512-Kc/hwCyb2/YzcIfQlY9lwjUDV/9cXMjVewQz9WvPVAaFlOr83bdHpccfnl2sQNXDcC+zCcpEDBjs41ATowPE3Q==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.6.tgz", + "integrity": "sha512-oHTaeXG9DOdBlBZ90xCSPCl3kT5XE851+Rxn47bMfG05Z48csZ1o9wFUl/SzQt+L8HgplFeQG4n/7EJHYOlcWQ==", "dependencies": { "@asyncapi/specs": "^6.4.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", @@ -9032,9 +9032,9 @@ }, "dependencies": { "@asyncapi/parser": { - "version": "3.0.5", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.5.tgz", - "integrity": "sha512-Kc/hwCyb2/YzcIfQlY9lwjUDV/9cXMjVewQz9WvPVAaFlOr83bdHpccfnl2sQNXDcC+zCcpEDBjs41ATowPE3Q==", + "version": "3.0.6", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.6.tgz", + "integrity": "sha512-oHTaeXG9DOdBlBZ90xCSPCl3kT5XE851+Rxn47bMfG05Z48csZ1o9wFUl/SzQt+L8HgplFeQG4n/7EJHYOlcWQ==", "requires": { "@asyncapi/specs": "^6.4.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", diff --git a/package.json b/package.json index f7b2edfa..8b9b80b5 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "access": "public" }, "dependencies": { - "@asyncapi/parser": "^3.0.5", + "@asyncapi/parser": "^3.0.6", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", From adfa15567ce5b8aacc5ecddcc1bbae764d69b628 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Fri, 16 Feb 2024 18:21:53 +0100 Subject: [PATCH 11/21] chore(release): v0.3.5 (#224) --- 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 73590213..8c5edb39 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.4", + "version": "0.3.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/optimizer", - "version": "0.3.4", + "version": "0.3.5", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.0.6", diff --git a/package.json b/package.json index 8b9b80b5..ef572a41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.4", + "version": "0.3.5", "description": "This library will optimize the AsyncAPI specification file.", "main": "./lib/index.js", "types": "./lib/index.d.ts", From 9dfb12fd9b5e86e89abce71bfd06e9ea77ade9f6 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 21 Feb 2024 17:09:05 +0100 Subject: [PATCH 12/21] fix: update @asyncapi/parser to 3.0.7 version (#225) --- package-lock.json | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8c5edb39..0792336f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.3.5", "license": "Apache-2.0", "dependencies": { - "@asyncapi/parser": "^3.0.6", + "@asyncapi/parser": "^3.0.7", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", @@ -38,11 +38,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.6.tgz", - "integrity": "sha512-oHTaeXG9DOdBlBZ90xCSPCl3kT5XE851+Rxn47bMfG05Z48csZ1o9wFUl/SzQt+L8HgplFeQG4n/7EJHYOlcWQ==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.7.tgz", + "integrity": "sha512-CKdkZbhs+2Mw7M2UZPypKEhKuaF+o5qZB2TQc0pDf+Wr09uEnm6WTdyqzmMGVb5fkQYApu8psQeDyVMbhfoWXQ==", "dependencies": { - "@asyncapi/specs": "^6.4.0", + "@asyncapi/specs": "^6.5.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -100,9 +100,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.4.0.tgz", - "integrity": "sha512-hTw0xF09i+eoSGP8LKo6aM+XOkvWsgV7kYpFHXd45VX9RcVZl5cADFIYDnPZkd52WaDJ4S+8Nrwkt/1vDb6SrQ==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.0.tgz", + "integrity": "sha512-84QUcfMT05+vvHO5EnSI0I5OZKzMgF/i3vgw92ghk1l52VM/lb3qNnuARzyo+uHJ9kmIb5+naK9wTuliVOdzmg==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -9032,11 +9032,11 @@ }, "dependencies": { "@asyncapi/parser": { - "version": "3.0.6", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.6.tgz", - "integrity": "sha512-oHTaeXG9DOdBlBZ90xCSPCl3kT5XE851+Rxn47bMfG05Z48csZ1o9wFUl/SzQt+L8HgplFeQG4n/7EJHYOlcWQ==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.7.tgz", + "integrity": "sha512-CKdkZbhs+2Mw7M2UZPypKEhKuaF+o5qZB2TQc0pDf+Wr09uEnm6WTdyqzmMGVb5fkQYApu8psQeDyVMbhfoWXQ==", "requires": { - "@asyncapi/specs": "^6.4.0", + "@asyncapi/specs": "^6.5.0", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -9087,9 +9087,9 @@ } }, "@asyncapi/specs": { - "version": "6.4.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.4.0.tgz", - "integrity": "sha512-hTw0xF09i+eoSGP8LKo6aM+XOkvWsgV7kYpFHXd45VX9RcVZl5cADFIYDnPZkd52WaDJ4S+8Nrwkt/1vDb6SrQ==", + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.0.tgz", + "integrity": "sha512-84QUcfMT05+vvHO5EnSI0I5OZKzMgF/i3vgw92ghk1l52VM/lb3qNnuARzyo+uHJ9kmIb5+naK9wTuliVOdzmg==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index ef572a41..de280688 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "access": "public" }, "dependencies": { - "@asyncapi/parser": "^3.0.6", + "@asyncapi/parser": "^3.0.7", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", From ac2bccb0b39b5cd686beb7cca89e6e91c90f1b47 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 21 Feb 2024 17:16:48 +0100 Subject: [PATCH 13/21] chore(release): v0.3.6 (#226) --- 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 0792336f..2312223d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.5", + "version": "0.3.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/optimizer", - "version": "0.3.5", + "version": "0.3.6", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.0.7", diff --git a/package.json b/package.json index de280688..6a6ed10c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.5", + "version": "0.3.6", "description": "This library will optimize the AsyncAPI specification file.", "main": "./lib/index.js", "types": "./lib/index.d.ts", From 2aaecd58777052225c290a0a3205a996b8ec2472 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 11 Mar 2024 22:26:13 +0100 Subject: [PATCH 14/21] ci: update of files from global .github repo (#227) --- .github/workflows/bump.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index e5f8351a..dff50cfa 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -26,9 +26,9 @@ jobs: run: test -e ./package.json && echo "exists=true" >> $GITHUB_OUTPUT || echo "exists=false" >> $GITHUB_OUTPUT - if: steps.packagejson.outputs.exists == 'true' name: Bumping latest version of this package in other repositories - uses: derberg/npm-dependency-manager-for-your-github-org@26a4f13d740254719971325046822a169aaa7441 # using v5.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v5.0.0 + uses: derberg/npm-dependency-manager-for-your-github-org@3df56be95bcaa5c76a9c9a4af863ab151545b649 # using v6.-.- https://github.com/derberg/npm-dependency-manager-for-your-github-org/releases/tag/v6 with: github_token: ${{ secrets.GH_TOKEN }} committer_username: asyncapi-bot committer_email: info@asyncapi.io - repos_to_ignore: spec,bindings + repos_to_ignore: spec,bindings,saunter From 59ce2ff1aff24036c2c36621253195286ba70516 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 14 Mar 2024 08:24:34 +0100 Subject: [PATCH 15/21] fix: update @asyncapi/parser to 3.0.8 version (#228) --- package-lock.json | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2312223d..3b9832ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.3.6", "license": "Apache-2.0", "dependencies": { - "@asyncapi/parser": "^3.0.7", + "@asyncapi/parser": "^3.0.8", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", @@ -38,11 +38,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.7.tgz", - "integrity": "sha512-CKdkZbhs+2Mw7M2UZPypKEhKuaF+o5qZB2TQc0pDf+Wr09uEnm6WTdyqzmMGVb5fkQYApu8psQeDyVMbhfoWXQ==", + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.8.tgz", + "integrity": "sha512-BdH+Or1MjZdoBotz1DkwY6aW3CPWA5fcFMAngmBkviIHhmZqZBn7hA55WQ5YeYbRytct/o2ATtVI/pHbU/wPGg==", "dependencies": { - "@asyncapi/specs": "^6.5.0", + "@asyncapi/specs": "^6.5.1", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -100,9 +100,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.0.tgz", - "integrity": "sha512-84QUcfMT05+vvHO5EnSI0I5OZKzMgF/i3vgw92ghk1l52VM/lb3qNnuARzyo+uHJ9kmIb5+naK9wTuliVOdzmg==", + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.1.tgz", + "integrity": "sha512-T7pOyVt7jo3VV3dPVvWwGYde/09WyFa0Qpq8Yjj06UNWJoXACftsdRF/pK0qLtjC0NAB8YV0AlDvxASYiwXq3g==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -9032,11 +9032,11 @@ }, "dependencies": { "@asyncapi/parser": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.7.tgz", - "integrity": "sha512-CKdkZbhs+2Mw7M2UZPypKEhKuaF+o5qZB2TQc0pDf+Wr09uEnm6WTdyqzmMGVb5fkQYApu8psQeDyVMbhfoWXQ==", + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.8.tgz", + "integrity": "sha512-BdH+Or1MjZdoBotz1DkwY6aW3CPWA5fcFMAngmBkviIHhmZqZBn7hA55WQ5YeYbRytct/o2ATtVI/pHbU/wPGg==", "requires": { - "@asyncapi/specs": "^6.5.0", + "@asyncapi/specs": "^6.5.1", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -9087,9 +9087,9 @@ } }, "@asyncapi/specs": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.0.tgz", - "integrity": "sha512-84QUcfMT05+vvHO5EnSI0I5OZKzMgF/i3vgw92ghk1l52VM/lb3qNnuARzyo+uHJ9kmIb5+naK9wTuliVOdzmg==", + "version": "6.5.1", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.1.tgz", + "integrity": "sha512-T7pOyVt7jo3VV3dPVvWwGYde/09WyFa0Qpq8Yjj06UNWJoXACftsdRF/pK0qLtjC0NAB8YV0AlDvxASYiwXq3g==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index 6a6ed10c..47ebd7bd 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "access": "public" }, "dependencies": { - "@asyncapi/parser": "^3.0.7", + "@asyncapi/parser": "^3.0.8", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", From 19871f1374d00778d6409b441988f00b4e6fd8e6 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 14 Mar 2024 08:33:36 +0100 Subject: [PATCH 16/21] chore(release): v0.3.7 (#229) --- 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 3b9832ce..1454fc70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.6", + "version": "0.3.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/optimizer", - "version": "0.3.6", + "version": "0.3.7", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.0.8", diff --git a/package.json b/package.json index 47ebd7bd..787ffef8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.6", + "version": "0.3.7", "description": "This library will optimize the AsyncAPI specification file.", "main": "./lib/index.js", "types": "./lib/index.d.ts", From 1c393e92acfcb965e3a6ed29d404ca23a3738160 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 14 Mar 2024 11:52:05 +0100 Subject: [PATCH 17/21] fix: update @asyncapi/parser to 3.0.9 version (#230) --- package-lock.json | 30 +++++++++++++++--------------- package.json | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 1454fc70..ebcd7f63 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.3.7", "license": "Apache-2.0", "dependencies": { - "@asyncapi/parser": "^3.0.8", + "@asyncapi/parser": "^3.0.9", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", @@ -38,11 +38,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.8.tgz", - "integrity": "sha512-BdH+Or1MjZdoBotz1DkwY6aW3CPWA5fcFMAngmBkviIHhmZqZBn7hA55WQ5YeYbRytct/o2ATtVI/pHbU/wPGg==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.9.tgz", + "integrity": "sha512-xsuW8UHWwQD8zbGCYirA6gjRkVUL9+RxboQY1Fm+AFlRo9cL9kMQr7OvfduJErI0PEsp/KdkuP56s7izlt5/+A==", "dependencies": { - "@asyncapi/specs": "^6.5.1", + "@asyncapi/specs": "^6.5.2", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -100,9 +100,9 @@ } }, "node_modules/@asyncapi/specs": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.1.tgz", - "integrity": "sha512-T7pOyVt7jo3VV3dPVvWwGYde/09WyFa0Qpq8Yjj06UNWJoXACftsdRF/pK0qLtjC0NAB8YV0AlDvxASYiwXq3g==", + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.3.tgz", + "integrity": "sha512-mZROlCOLkZEWy5tN4pPop3JEJflSKmLLMGO1TebF5wjnroqZ3yp/GuGUxVIl3jVNxFk1i5nZ2AtWzAD/HaUj3Q==", "dependencies": { "@types/json-schema": "^7.0.11" } @@ -9032,11 +9032,11 @@ }, "dependencies": { "@asyncapi/parser": { - "version": "3.0.8", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.8.tgz", - "integrity": "sha512-BdH+Or1MjZdoBotz1DkwY6aW3CPWA5fcFMAngmBkviIHhmZqZBn7hA55WQ5YeYbRytct/o2ATtVI/pHbU/wPGg==", + "version": "3.0.9", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.9.tgz", + "integrity": "sha512-xsuW8UHWwQD8zbGCYirA6gjRkVUL9+RxboQY1Fm+AFlRo9cL9kMQr7OvfduJErI0PEsp/KdkuP56s7izlt5/+A==", "requires": { - "@asyncapi/specs": "^6.5.1", + "@asyncapi/specs": "^6.5.2", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -9087,9 +9087,9 @@ } }, "@asyncapi/specs": { - "version": "6.5.1", - "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.1.tgz", - "integrity": "sha512-T7pOyVt7jo3VV3dPVvWwGYde/09WyFa0Qpq8Yjj06UNWJoXACftsdRF/pK0qLtjC0NAB8YV0AlDvxASYiwXq3g==", + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/@asyncapi/specs/-/specs-6.5.3.tgz", + "integrity": "sha512-mZROlCOLkZEWy5tN4pPop3JEJflSKmLLMGO1TebF5wjnroqZ3yp/GuGUxVIl3jVNxFk1i5nZ2AtWzAD/HaUj3Q==", "requires": { "@types/json-schema": "^7.0.11" } diff --git a/package.json b/package.json index 787ffef8..d34f2d98 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "access": "public" }, "dependencies": { - "@asyncapi/parser": "^3.0.8", + "@asyncapi/parser": "^3.0.9", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", From 8920f9875cd280c8c77f08550bd58c17e7fb0bdd Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 14 Mar 2024 12:41:05 +0100 Subject: [PATCH 18/21] chore(release): v0.3.8 (#231) --- 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 ebcd7f63..d158f66f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.7", + "version": "0.3.8", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/optimizer", - "version": "0.3.7", + "version": "0.3.8", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.0.9", diff --git a/package.json b/package.json index d34f2d98..3b5a399a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.7", + "version": "0.3.8", "description": "This library will optimize the AsyncAPI specification file.", "main": "./lib/index.js", "types": "./lib/index.d.ts", From beac12e6f8a1c2bccb99f9fda0db383ae140341b Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 14 Mar 2024 13:44:32 +0100 Subject: [PATCH 19/21] fix: update @asyncapi/parser to 3.0.10 version (#232) --- package-lock.json | 18 +++++++++--------- package.json | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index d158f66f..b5417ace 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.3.8", "license": "Apache-2.0", "dependencies": { - "@asyncapi/parser": "^3.0.9", + "@asyncapi/parser": "^3.0.10", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", @@ -38,11 +38,11 @@ } }, "node_modules/@asyncapi/parser": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.9.tgz", - "integrity": "sha512-xsuW8UHWwQD8zbGCYirA6gjRkVUL9+RxboQY1Fm+AFlRo9cL9kMQr7OvfduJErI0PEsp/KdkuP56s7izlt5/+A==", + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.10.tgz", + "integrity": "sha512-x9qo7SHGzPWbC1XCRyilcI+Z6UZsWZ9uRl05h9j4G/v+3IjNG3krwngiAbt59nbLlYZD/nBS7Hc03GayoocnQw==", "dependencies": { - "@asyncapi/specs": "^6.5.2", + "@asyncapi/specs": "^6.5.3", "@openapi-contrib/openapi-schema-to-json-schema": "~3.2.0", "@stoplight/json": "^3.20.2", "@stoplight/json-ref-readers": "^1.2.2", @@ -9032,11 +9032,11 @@ }, "dependencies": { "@asyncapi/parser": { - "version": "3.0.9", - "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.9.tgz", - "integrity": "sha512-xsuW8UHWwQD8zbGCYirA6gjRkVUL9+RxboQY1Fm+AFlRo9cL9kMQr7OvfduJErI0PEsp/KdkuP56s7izlt5/+A==", + "version": "3.0.10", + "resolved": "https://registry.npmjs.org/@asyncapi/parser/-/parser-3.0.10.tgz", + "integrity": "sha512-x9qo7SHGzPWbC1XCRyilcI+Z6UZsWZ9uRl05h9j4G/v+3IjNG3krwngiAbt59nbLlYZD/nBS7Hc03GayoocnQw==", "requires": { - "@asyncapi/specs": "^6.5.2", + "@asyncapi/specs": "^6.5.3", "@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 3b5a399a..2128c3b8 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,7 @@ "access": "public" }, "dependencies": { - "@asyncapi/parser": "^3.0.9", + "@asyncapi/parser": "^3.0.10", "@types/debug": "^4.1.8", "debug": "^4.3.4", "js-yaml": "^4.1.0", From 4a20ce7e84b2667ab25fe7e37252132959dd8875 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Thu, 14 Mar 2024 14:32:43 +0100 Subject: [PATCH 20/21] chore(release): v0.3.9 (#233) --- 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 b5417ace..9ba2a353 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.8", + "version": "0.3.9", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/optimizer", - "version": "0.3.8", + "version": "0.3.9", "license": "Apache-2.0", "dependencies": { "@asyncapi/parser": "^3.0.10", diff --git a/package.json b/package.json index 2128c3b8..c0013028 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/optimizer", - "version": "0.3.8", + "version": "0.3.9", "description": "This library will optimize the AsyncAPI specification file.", "main": "./lib/index.js", "types": "./lib/index.d.ts", From 5e37bbf98f8d196fbd1a57b4d79734338162bad0 Mon Sep 17 00:00:00 2001 From: Viacheslav Turovskyi Date: Wed, 20 Dec 2023 03:22:28 +0000 Subject: [PATCH 21/21] feat: rename flag `moveToComponents` -> `moveDuplicatesToComponents` --- API.md | 3 +-- README.md | 4 ++-- examples/index.js | 2 +- src/Optimizer.ts | 8 ++++---- src/Reporters/index.ts | 2 +- ...ToComponents.ts => moveDuplicatesToComponents.ts} | 6 +++--- src/index.d.ts | 4 ++-- test/Reporters/Reporters.spec.ts | 12 ++++++------ 8 files changed, 20 insertions(+), 21 deletions(-) rename src/Reporters/{MoveToComponents.ts => moveDuplicatesToComponents.ts} (92%) diff --git a/API.md b/API.md index 5d1c3ccb..894e7c21 100644 --- a/API.md +++ b/API.md @@ -132,7 +132,7 @@ Converts JSON or YAML string object. | --- | --- | --- | | [reuseComponents] | Boolean | whether to reuse components from `components` section or not. Defaults to `true`. | | [removeComponents] | Boolean | whether to remove un-used components from `components` section or not. Defaults to `true`. | -| [moveToComponents] | Boolean | whether to move duplicated components to the `components` section or not. Defaults to `true`. | +| [moveDuplicatesToComponents] | Boolean | whether to move duplicated components to the `components` section or not. Defaults to `true`. | @@ -144,4 +144,3 @@ Converts JSON or YAML string object. | --- | --- | --- | | [rules] | [Rules](#Rules) | the list of rules that specifies which type of optimizations should be applied. | | [output] | String | specifies which type of output user wants, `'JSON'` or `'YAML'`. Defaults to `'YAML'`; | - diff --git a/README.md b/README.md index 05c73477..cb67f30b 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,7 @@ the report value will be: action: 'remove', } ], - moveToComponents: [ + moveDuplicatesToComponents: [ { //move will ref the current path to the moved component as well. path: 'channels.smartylighting/event/{streetlightId}/lighting/measured.parameters.streetlightId', @@ -159,7 +159,7 @@ const optimizedDocument = optimizer.getOptimizedDocument({ rules: { reuseComponents: true, removeComponents: true, - moveToComponents: true + moveDuplicatesToComponents: true } }); /* diff --git a/examples/index.js b/examples/index.js index 5c7d928e..0a2197d2 100644 --- a/examples/index.js +++ b/examples/index.js @@ -11,7 +11,7 @@ optimizer.getReport().then((report) => { rules: { reuseComponents: true, removeComponents: true, - moveToComponents: true, + moveDuplicatesToComponents: true, }, }) //store optimizedDocument as to output.yaml diff --git a/src/Optimizer.ts b/src/Optimizer.ts index c0678aa7..d1f83568 100644 --- a/src/Optimizer.ts +++ b/src/Optimizer.ts @@ -7,7 +7,7 @@ import { Reporter, } from './index.d' import { Parser } from '@asyncapi/parser' -import { removeComponents, reuseComponents, moveToComponents } from './Reporters' +import { removeComponents, reuseComponents, moveDuplicatesToComponents } from './Reporters' import YAML from 'js-yaml' import merge from 'merge-deep' import * as _ from 'lodash' @@ -42,7 +42,7 @@ export class Optimizer { */ constructor(private YAMLorJSON: any) { this.outputObject = toJS(this.YAMLorJSON) - this.reporters = [removeComponents, reuseComponents, moveToComponents] + this.reporters = [removeComponents, reuseComponents, moveDuplicatesToComponents] } /** @@ -78,7 +78,7 @@ export class Optimizer { * @typedef {Object} Rules * @property {Boolean=} reuseComponents - whether to reuse components from `components` section or not. Defaults to `true`. * @property {Boolean=} removeComponents - whether to remove un-used components from `components` section or not. Defaults to `true`. - * @property {Boolean=} moveToComponents - whether to move duplicated components to the `components` section or not. Defaults to `true`. + * @property {Boolean=} moveDuplicatesToComponents - whether to move duplicated components to the `components` section or not. Defaults to `true`. */ /** @@ -98,7 +98,7 @@ export class Optimizer { rules: { reuseComponents: true, removeComponents: true, - moveToComponents: true, + moveDuplicatesToComponents: true, }, output: Output.YAML, } diff --git a/src/Reporters/index.ts b/src/Reporters/index.ts index d354b479..82bcd854 100644 --- a/src/Reporters/index.ts +++ b/src/Reporters/index.ts @@ -1,3 +1,3 @@ -export * from './MoveToComponents' +export * from './moveDuplicatesToComponents' export * from './RemoveComponents' export * from './ReuseComponents' diff --git a/src/Reporters/MoveToComponents.ts b/src/Reporters/moveDuplicatesToComponents.ts similarity index 92% rename from src/Reporters/MoveToComponents.ts rename to src/Reporters/moveDuplicatesToComponents.ts index 5806fdd9..0ebfaf1f 100644 --- a/src/Reporters/MoveToComponents.ts +++ b/src/Reporters/moveDuplicatesToComponents.ts @@ -2,7 +2,7 @@ import { Action } from '../Optimizer' import { createReport, isEqual, isInComponents } from '../Utils' import { OptimizableComponent, OptimizableComponentGroup, ReportElement, Reporter } from 'index.d' import Debug from 'debug' -const debug = Debug('reporter:moveToComponents') +const debug = Debug('reporter:moveDuplicatesToComponents') /** * * @param optimizableComponentGroup components that you want to analyze for duplicates. @@ -58,8 +58,8 @@ const findDuplicateComponents = ( return resultElements } -export const moveToComponents: Reporter = (optimizableComponentsGroup) => { - return createReport(findDuplicateComponents, optimizableComponentsGroup, 'moveToComponents') +export const moveDuplicatesToComponents: Reporter = (optimizableComponentsGroup) => { + return createReport(findDuplicateComponents, optimizableComponentsGroup, 'moveDuplicatesToComponents') } function getOutsideComponents( diff --git a/src/index.d.ts b/src/index.d.ts index fc5ac6ce..eb340d87 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -18,7 +18,7 @@ export type OptimizableComponentGroup = { export interface Report { reuseComponents?: ReportElement[] removeComponents?: ReportElement[] - moveToComponents?: ReportElement[] + moveDuplicatesToComponents?: ReportElement[] } //In the next major version we can rename this to `Report` and use this format instead. @@ -32,7 +32,7 @@ export type Reporter = (optimizeableComponents: OptimizableComponentGroup[]) => interface Rules { reuseComponents?: boolean removeComponents?: boolean - moveToComponents?: boolean + moveDuplicatesToComponents?: boolean } export interface Options { rules?: Rules diff --git a/test/Reporters/Reporters.spec.ts b/test/Reporters/Reporters.spec.ts index 067a8bba..899c6409 100644 --- a/test/Reporters/Reporters.spec.ts +++ b/test/Reporters/Reporters.spec.ts @@ -1,10 +1,10 @@ -import { moveToComponents, reuseComponents, removeComponents } from '../../src/Reporters' +import { moveDuplicatesToComponents, reuseComponents, removeComponents } from '../../src/Reporters' import { inputYAML } from '../fixtures' import { Parser } from '@asyncapi/parser' import { getOptimizableComponents } from '../../src/ComponentProvider' import { OptimizableComponentGroup } from '../../src/index.d' -const MoveToComponentsExpectedResult: any[] = [ +const moveDuplicatesToComponentsExpectedResult: any[] = [ { path: 'channels.withDuplicatedMessage1.messages.duped1', action: 'move', @@ -55,11 +55,11 @@ describe('Optimizers', () => { const asyncapiDocument = await new Parser().parse(inputYAML, { applyTraits: false }) optimizableComponents = getOptimizableComponents(asyncapiDocument.document!) }) - describe('MoveToComponents', () => { + describe('moveDuplicatesToComponents', () => { test('should contain the correct optimizations.', () => { - const report = moveToComponents(optimizableComponents) - expect(report.elements).toEqual(MoveToComponentsExpectedResult) - expect(report.type).toEqual('moveToComponents') + const report = moveDuplicatesToComponents(optimizableComponents) + expect(report.elements).toEqual(moveDuplicatesToComponentsExpectedResult) + expect(report.type).toEqual('moveDuplicatesToComponents') }) })