From ffac8db9e378dda8adbec26d62eb51e71f52c628 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Sat, 2 Mar 2024 01:26:59 +0100 Subject: [PATCH 01/10] chore: update meetings.json and newsrooom_videos.json (#2719) --- config/meetings.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/meetings.json b/config/meetings.json index 0a9305eb6f7..b759dac233e 100644 --- a/config/meetings.json +++ b/config/meetings.json @@ -80,5 +80,12 @@ "url": "https://github.com/asyncapi/community/issues/1068", "banner": "https://github.com/asyncapi/community/assets/40604284/70eff71e-5de5-4c99-bc89-86a1b9b81e81", "date": "2024-03-05T08:00:00.000Z" + }, + { + "title": "Essential building blocks for AsyncAPI", + "calLink": "https://www.google.com/calendar/event?eid=dmoyY2ZjNXZ1cDh2cGRiZzFnNG92YzQzZHMgY19xOXRzZWlnbG9tZHNqNm5qdWh2YnB0czExY0Bn", + "url": "https://github.com/asyncapi/community/issues/1084", + "banner": "", + "date": "2024-03-12T20:00:00.000Z" } ] \ No newline at end of file From 65c4907e0fd706a41cb2f86f738e329080483349 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Mon, 4 Mar 2024 01:29:42 +0100 Subject: [PATCH 02/10] chore: update tools.json (#2731) --- config/tools-automated.json | 52 ++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/config/tools-automated.json b/config/tools-automated.json index 81fb0f10611..11bb2acfecd 100644 --- a/config/tools-automated.json +++ b/config/tools-automated.json @@ -635,19 +635,15 @@ "description": "The following is a list of templates compatible with AsyncAPI Generator. You can use them to generate apps, clients or documentation from your AsyncAPI documents.", "toolsList": [ { - "title": "Java Spring Template", - "description": "Java Spring template for the AsyncAPI Generator", + "title": "Node.js Multiprotocol Template", + "description": "This template generates a server using your AsyncAPI document. It supports multiple different protocols, like Kafka or MQTT. It is designed in the way that generated code is a library and with it's API you can start the server, send messages or register a middleware for listening incoming messages. Runtime message validation included.", "links": { - "repoUrl": "https://github.com/asyncapi/java-spring-template" + "repoUrl": "https://github.com/asyncapi/nodejs-template" }, "filters": { - "language": [ - "javascript" - ], + "language": "javascript", "technology": [ - "Springboot", - "Maven", - "Gradle" + "Node.js" ], "categories": [ "generator-template" @@ -657,15 +653,15 @@ } }, { - "title": "HTML Template", - "description": "HTML template for AsyncAPI Generator. Use it to generate a static docs. It is using AsyncAPI React component under the hood.", + "title": "Node.js Websockets Template", + "description": "Node.js WebSockets template for the AsyncAPI Generator. It showcases how from a single AsyncAPI document you can generate a server and a client at the same time.", "links": { - "repoUrl": "https://github.com/asyncapi/html-template" + "repoUrl": "https://github.com/asyncapi/nodejs-ws-template" }, "filters": { "language": "javascript", "technology": [ - "HTML" + "Node.js" ], "categories": [ "generator-template" @@ -675,15 +671,15 @@ } }, { - "title": "Node.js Multiprotocol Template", - "description": "This template generates a server using your AsyncAPI document. It supports multiple different protocols, like Kafka or MQTT. It is designed in the way that generated code is a library and with it's API you can start the server, send messages or register a middleware for listening incoming messages. Runtime message validation included.", + "title": "HTML Template", + "description": "HTML template for AsyncAPI Generator. Use it to generate a static docs. It is using AsyncAPI React component under the hood.", "links": { - "repoUrl": "https://github.com/asyncapi/nodejs-template" + "repoUrl": "https://github.com/asyncapi/html-template" }, "filters": { "language": "javascript", "technology": [ - "Node.js" + "HTML" ], "categories": [ "generator-template" @@ -693,17 +689,19 @@ } }, { - "title": "Java Template", - "description": "Java template for the AsyncAPI Generator", + "title": "Java Spring Template", + "description": "Java Spring template for the AsyncAPI Generator", "links": { - "repoUrl": "https://github.com/asyncapi/java-template" + "repoUrl": "https://github.com/asyncapi/java-spring-template" }, "filters": { "language": [ "javascript" ], "technology": [ - "Java" + "Springboot", + "Maven", + "Gradle" ], "categories": [ "generator-template" @@ -713,15 +711,17 @@ } }, { - "title": "Node.js Websockets Template", - "description": "Node.js WebSockets template for the AsyncAPI Generator. It showcases how from a single AsyncAPI document you can generate a server and a client at the same time.", + "title": "Java Template", + "description": "Java template for the AsyncAPI Generator", "links": { - "repoUrl": "https://github.com/asyncapi/nodejs-ws-template" + "repoUrl": "https://github.com/asyncapi/java-template" }, "filters": { - "language": "javascript", + "language": [ + "javascript" + ], "technology": [ - "Node.js" + "Java" ], "categories": [ "generator-template" From a7728861d60c551d2b4543aebca986445d7c7e4f Mon Sep 17 00:00:00 2001 From: Kunal Agrawal <92196937+its-kunal@users.noreply.github.com> Date: Mon, 4 Mar 2024 23:34:34 +0530 Subject: [PATCH 03/10] fix: space between search icon and i18n input options. (#2733) --- components/navigation/NavBar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/navigation/NavBar.js b/components/navigation/NavBar.js index bf7079f845f..235df1c8a8c 100644 --- a/components/navigation/NavBar.js +++ b/components/navigation/NavBar.js @@ -200,7 +200,7 @@ export default function NavBar({
From c92a9017c457c67b2331822d8845768c54f6810e Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 5 Mar 2024 01:28:46 +0100 Subject: [PATCH 04/10] chore: update meetings.json and newsrooom_videos.json (#2736) --- dashboard.json | 124 +++++++++++++++++++++++-------------------------- 1 file changed, 57 insertions(+), 67 deletions(-) diff --git a/dashboard.json b/dashboard.json index a11309bf148..0a2a2f90832 100644 --- a/dashboard.json +++ b/dashboard.json @@ -9,7 +9,7 @@ "resourcePath": "/asyncapi/website/pull/2331", "repo": "asyncapi/website", "labels": [], - "score": 27.28158593117958 + "score": 27.56876051992884 }, { "id": "PR_kwDOBW5R_c5fbyLb", @@ -31,7 +31,7 @@ "resourcePath": "/asyncapi/community/pull/897", "repo": "asyncapi/community", "labels": [], - "score": 20.38939580119737 + "score": 21.538094156194408 }, { "id": "I_kwDOBW5R_c5J6qNe", @@ -53,6 +53,26 @@ ], "score": 20.102221212448114 }, + { + "id": "I_kwDODou01c5AqLB8", + "isPR": false, + "isAssigned": false, + "title": "\"Open with Studio\" button for Markdown files.", + "author": "smoya", + "resourcePath": "/asyncapi/studio/issues/218", + "repo": "asyncapi/studio", + "labels": [ + { + "name": "enhancement", + "color": "a2eeef" + }, + { + "name": "keep-open", + "color": "f9dd4b" + } + ], + "score": 19.527872034949596 + }, { "id": "I_kwDOFDnrNc51TZDT", "isPR": false, @@ -102,18 +122,23 @@ "color": "84b6eb" } ], - "score": 16.08177696995849 + "score": 16.65612614745701 }, { - "id": "PR_kwDODou01c5Iv4zR", - "isPR": true, + "id": "I_kwDODou01c5E_LV0", + "isPR": false, "isAssigned": false, - "title": "docs: added table of contents and introduction document for Studio tool", - "author": "Jagrutiti", - "resourcePath": "/asyncapi/studio/pull/553", + "title": "Create onboarding for features of Studio", + "author": "mcturco", + "resourcePath": "/asyncapi/studio/issues/284", "repo": "asyncapi/studio", - "labels": [], - "score": 14.933078614961456 + "labels": [ + { + "name": "enhancement", + "color": "a2eeef" + } + ], + "score": 16.36895155870775 }, { "id": "PR_kwDOKp3ICM5g9w8f", @@ -124,7 +149,18 @@ "resourcePath": "/asyncapi/learning-paths/pull/9", "repo": "asyncapi/learning-paths", "labels": [], - "score": 14.645904026212197 + "score": 15.220253203710714 + }, + { + "id": "PR_kwDODou01c5Iv4zR", + "isPR": true, + "isAssigned": false, + "title": "docs: added table of contents and introduction document for Studio tool", + "author": "Jagrutiti", + "resourcePath": "/asyncapi/studio/pull/553", + "repo": "asyncapi/studio", + "labels": [], + "score": 14.933078614961456 }, { "id": "I_kwDODou01c5BZZv-", @@ -144,49 +180,22 @@ "color": "f9dd4b" } ], - "score": 13.78438025996442 - }, - { - "id": "PR_kwDODou01c5YJ7kV", - "isPR": true, - "isAssigned": false, - "title": "Add Form component", - "author": "KhudaDad414", - "resourcePath": "/asyncapi/studio/pull/773", - "repo": "asyncapi/studio", - "labels": [ - { - "name": "autoupdate", - "color": "ededed" - } - ], - "score": 13.78438025996442 - }, - { - "id": "I_kwDOFLhIt85bebeO", - "isPR": false, - "isAssigned": false, - "title": "Meeting Banners Storage", - "author": "AceTheCreator", - "resourcePath": "/asyncapi/community/issues/568", - "repo": "asyncapi/community", - "labels": [], - "score": 12.635681904967385 + "score": 14.645904026212197 } ], "goodFirstIssues": [ { - "id": "I_kwDODyzcIc6AItqs", - "title": "bug fix in bug template 😃 ", - "isAssigned": false, - "resourcePath": "/asyncapi/.github/issues/271", - "repo": "asyncapi/.github", - "author": "derberg", + "id": "I_kwDODou01c6Aib3a", + "title": "Disable the generators that are not yet supported in V3", + "isAssigned": true, + "resourcePath": "/asyncapi/studio/issues/979", + "repo": "asyncapi/studio", + "author": "Amzani", "area": "Unknown", "labels": [ { - "name": "bug", - "color": "d73a4a" + "name": "enhancement", + "color": "a2eeef" } ] }, @@ -224,25 +233,6 @@ } ] }, - { - "id": "I_kwDOE8Qh3858hQCM", - "title": "Add OpenAPI 3.1 support", - "isAssigned": false, - "resourcePath": "/asyncapi/modelina/issues/1749", - "repo": "asyncapi/modelina", - "author": "jonaslagoni", - "area": "typescript", - "labels": [ - { - "name": "enhancement", - "color": "a2eeef" - }, - { - "name": "openapi", - "color": "960C58" - } - ] - }, { "id": "I_kwDOCVQpZM58chHc", "title": "Workflows failing because of some leftovers scripts", @@ -461,7 +451,7 @@ { "id": "I_kwDODou01c531nlO", "title": "Misalignment of Code Editor Highlight Box", - "isAssigned": false, + "isAssigned": true, "resourcePath": "/asyncapi/studio/issues/861", "repo": "asyncapi/studio", "author": "princerajpoot20", From c3129226ddfdc3de5d95e3b7a7895795c1a745d6 Mon Sep 17 00:00:00 2001 From: Ram Goel Date: Tue, 5 Mar 2024 13:45:39 +0530 Subject: [PATCH 05/10] style: button and heading margin on tools/cli (#2722) Co-authored-by: Ansh Goyal --- pages/[lang]/tools/cli.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/[lang]/tools/cli.js b/pages/[lang]/tools/cli.js index 7c0813e4db6..51e958fc2f5 100644 --- a/pages/[lang]/tools/cli.js +++ b/pages/[lang]/tools/cli.js @@ -72,7 +72,7 @@ export default function CliPage() { className="block mt-2 md:mt-0 md:inline-block w-full sm:w-auto" href="https://www.github.com/asyncapi/cli" /> -
); } @@ -156,7 +156,7 @@ export default function CliPage() {
- + {t("cli.exampleTitle")}
From 0fd664b38b91648a8899716251d1974a1529d3f4 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Tue, 5 Mar 2024 12:35:07 +0100 Subject: [PATCH 06/10] docs(cli): update latest cli documentation (#2738) --- pages/docs/tools/cli/usage.md | 50 +++++++++++++++++------------------ 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/pages/docs/tools/cli/usage.md b/pages/docs/tools/cli/usage.md index 0ea9d290959..9405bfc878c 100644 --- a/pages/docs/tools/cli/usage.md +++ b/pages/docs/tools/cli/usage.md @@ -29,7 +29,7 @@ $ npm install -g @asyncapi/cli $ asyncapi COMMAND running command... $ asyncapi (--version) -@asyncapi/cli/1.5.15 linux-x64 node-v18.19.1 +@asyncapi/cli/1.5.16 linux-x64 node-v18.19.1 $ asyncapi --help [COMMAND] USAGE $ asyncapi COMMAND @@ -93,7 +93,7 @@ EXAMPLES $ asyncapi bundle ./asyncapi.yaml ./features.yaml --base ./asyncapi.yaml --reference-into-components ``` -_See code: [src/commands/bundle.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/bundle.ts)_ +_See code: [src/commands/bundle.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/bundle.ts)_ ## `asyncapi config` @@ -107,7 +107,7 @@ DESCRIPTION CLI config settings ``` -_See code: [src/commands/config/index.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/index.ts)_ +_See code: [src/commands/config/index.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/index.ts)_ ## `asyncapi config context` @@ -121,7 +121,7 @@ DESCRIPTION Manage short aliases for full paths to AsyncAPI documents ``` -_See code: [src/commands/config/context/index.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/context/index.ts)_ +_See code: [src/commands/config/context/index.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/index.ts)_ ## `asyncapi config context add CONTEXT-NAME SPEC-FILE-PATH` @@ -143,7 +143,7 @@ DESCRIPTION Add a context to the store ``` -_See code: [src/commands/config/context/add.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/context/add.ts)_ +_See code: [src/commands/config/context/add.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/add.ts)_ ## `asyncapi config context current` @@ -160,7 +160,7 @@ DESCRIPTION Shows the current context that is being used ``` -_See code: [src/commands/config/context/current.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/context/current.ts)_ +_See code: [src/commands/config/context/current.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/current.ts)_ ## `asyncapi config context edit CONTEXT-NAME NEW-SPEC-FILE-PATH` @@ -181,7 +181,7 @@ DESCRIPTION Edit a context in the store ``` -_See code: [src/commands/config/context/edit.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/context/edit.ts)_ +_See code: [src/commands/config/context/edit.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/edit.ts)_ ## `asyncapi config context init [CONTEXT-FILE-PATH]` @@ -204,7 +204,7 @@ DESCRIPTION Initialize context ``` -_See code: [src/commands/config/context/init.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/context/init.ts)_ +_See code: [src/commands/config/context/init.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/init.ts)_ ## `asyncapi config context list` @@ -221,7 +221,7 @@ DESCRIPTION List all the stored contexts in the store ``` -_See code: [src/commands/config/context/list.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/context/list.ts)_ +_See code: [src/commands/config/context/list.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/list.ts)_ ## `asyncapi config context remove CONTEXT-NAME` @@ -241,7 +241,7 @@ DESCRIPTION Delete a context from the store ``` -_See code: [src/commands/config/context/remove.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/context/remove.ts)_ +_See code: [src/commands/config/context/remove.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/remove.ts)_ ## `asyncapi config context use CONTEXT-NAME` @@ -261,7 +261,7 @@ DESCRIPTION Set a context as current ``` -_See code: [src/commands/config/context/use.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/context/use.ts)_ +_See code: [src/commands/config/context/use.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/use.ts)_ ## `asyncapi config versions` @@ -278,7 +278,7 @@ DESCRIPTION Show versions of AsyncAPI tools used ``` -_See code: [src/commands/config/versions.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/config/versions.ts)_ +_See code: [src/commands/config/versions.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/versions.ts)_ ## `asyncapi convert [SPEC-FILE]` @@ -300,7 +300,7 @@ DESCRIPTION Convert asyncapi documents older to newer versions ``` -_See code: [src/commands/convert.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/convert.ts)_ +_See code: [src/commands/convert.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/convert.ts)_ ## `asyncapi diff OLD NEW` @@ -355,7 +355,7 @@ DESCRIPTION Find diff between two asyncapi files ``` -_See code: [src/commands/diff.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/diff.ts)_ +_See code: [src/commands/diff.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/diff.ts)_ ## `asyncapi generate` @@ -369,7 +369,7 @@ DESCRIPTION Generate typed models or other things like clients, applications or docs using AsyncAPI Generator templates. ``` -_See code: [src/commands/generate/index.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/generate/index.ts)_ +_See code: [src/commands/generate/index.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/generate/index.ts)_ ## `asyncapi generate fromTemplate ASYNCAPI TEMPLATE` @@ -406,7 +406,7 @@ EXAMPLES $ asyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template --param version=1.0.0 singleFile=true --output ./docs --force-write ``` -_See code: [src/commands/generate/fromTemplate.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/generate/fromTemplate.ts)_ +_See code: [src/commands/generate/fromTemplate.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/generate/fromTemplate.ts)_ ## `asyncapi generate models LANGUAGE FILE` @@ -486,7 +486,7 @@ DESCRIPTION Generates typed models ``` -_See code: [src/commands/generate/models.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/generate/models.ts)_ +_See code: [src/commands/generate/models.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/generate/models.ts)_ ## `asyncapi new` @@ -543,7 +543,7 @@ EXAMPLES $ asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty - create a new file with a specific name, using one of the examples and without interactive mode ``` -_See code: [src/commands/new/index.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/new/index.ts)_ +_See code: [src/commands/new/index.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/new/index.ts)_ ## `asyncapi new file` @@ -600,7 +600,7 @@ EXAMPLES $ asyncapi new --file-name=my-asyncapi.yml --example=default-example.yml --no-tty - create a new file with a specific name, using one of the examples and without interactive mode ``` -_See code: [src/commands/new/file.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/new/file.ts)_ +_See code: [src/commands/new/file.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/new/file.ts)_ ## `asyncapi new glee` @@ -622,7 +622,7 @@ DESCRIPTION Creates a new Glee project ``` -_See code: [src/commands/new/glee.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/new/glee.ts)_ +_See code: [src/commands/new/glee.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/new/glee.ts)_ ## `asyncapi new project` @@ -644,7 +644,7 @@ DESCRIPTION Creates a new Glee project ``` -_See code: [src/commands/new/project.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/new/project.ts)_ +_See code: [src/commands/new/project.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/new/project.ts)_ ## `asyncapi optimize [SPEC-FILE]` @@ -680,7 +680,7 @@ EXAMPLES $ asyncapi optimize ./asyncapi.yaml --optimization=remove-components,reuse-components,move-to-components --output=terminal --no-tty ``` -_See code: [src/commands/optimize.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/optimize.ts)_ +_See code: [src/commands/optimize.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/optimize.ts)_ ## `asyncapi start` @@ -694,7 +694,7 @@ DESCRIPTION Start asyncapi studio ``` -_See code: [src/commands/start/index.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/start/index.ts)_ +_See code: [src/commands/start/index.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/start/index.ts)_ ## `asyncapi start studio` @@ -713,7 +713,7 @@ DESCRIPTION starts a new local instance of Studio ``` -_See code: [src/commands/start/studio.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/start/studio.ts)_ +_See code: [src/commands/start/studio.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/start/studio.ts)_ ## `asyncapi validate [SPEC-FILE]` @@ -740,5 +740,5 @@ DESCRIPTION validate asyncapi file ``` -_See code: [src/commands/validate.ts](https://github.com/asyncapi/cli/blob/v1.5.15/src/commands/validate.ts)_ +_See code: [src/commands/validate.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/validate.ts)_ From de480f285c74d27cf43b4371741a37a74942d174 Mon Sep 17 00:00:00 2001 From: ProCoderVP <98279986+noobCoderVP@users.noreply.github.com> Date: Tue, 5 Mar 2024 22:51:53 +0530 Subject: [PATCH 07/10] fix: fixed failing testcases of build-dashboard.cy.js (#2739) Co-authored-by: Ansh Goyal --- cypress/test/scripts/dashboard/build-dashboard.cy.js | 10 +++++++--- scripts/dashboard/build-dashboard.js | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/cypress/test/scripts/dashboard/build-dashboard.cy.js b/cypress/test/scripts/dashboard/build-dashboard.cy.js index cbcee3e09da..9b5487069bb 100644 --- a/cypress/test/scripts/dashboard/build-dashboard.cy.js +++ b/cypress/test/scripts/dashboard/build-dashboard.cy.js @@ -17,9 +17,13 @@ describe('getLabel function', () => { describe('monthsSince function', () => { // Define some sample dates and expected results const today = new Date(); - const oneMonthAgo = new Date(today.getFullYear(), today.getMonth() - 1, today.getDate()); - const twoMonthsAgo = new Date(today.getFullYear(), today.getMonth() - 2, today.getDate()); - const threeMonthsAgo = new Date(today.getFullYear(), today.getMonth() - 3, today.getDate()); + + // number of miliseconds in a month + const month = 30 * 24 * 60 * 60 * 1000; + + const oneMonthAgo = today - month; + const twoMonthsAgo = today - 2 * month; + const threeMonthsAgo = today - 3 * month; // Write the test cases it('should return 0 for the same date', () => { diff --git a/scripts/dashboard/build-dashboard.js b/scripts/dashboard/build-dashboard.js index 40146128876..49fbf8b5d4f 100644 --- a/scripts/dashboard/build-dashboard.js +++ b/scripts/dashboard/build-dashboard.js @@ -90,6 +90,7 @@ function getLabel(issue, filter) { function monthsSince(date) { const seconds = Math.floor((new Date() - new Date(date)) / 1000); + // 2592000 = number of seconds in a month = 30 * 24 * 60 * 60 const months = seconds / 2592000; return Math.floor(months); } From d708f5555f6373bb4601e67d97d5d75e7eafc763 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 6 Mar 2024 01:29:29 +0100 Subject: [PATCH 08/10] chore: update meetings.json and newsrooom_videos.json (#2740) --- config/newsroom_videos.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/config/newsroom_videos.json b/config/newsroom_videos.json index 7d5e9f53282..981d1abb3f1 100644 --- a/config/newsroom_videos.json +++ b/config/newsroom_videos.json @@ -1,4 +1,10 @@ [ + { + "image_url": "https://i.ytimg.com/vi/jO4PwdmKGNw/hqdefault.jpg", + "title": "Community Meeting(5th of March, 2024)", + "description": "https://github.com/asyncapi/community/issues/1068.", + "videoId": "jO4PwdmKGNw" + }, { "image_url": "https://i.ytimg.com/vi/4t4nAmDekDA/hqdefault.jpg", "title": "AACoT'24 Community Meeting, Wednesday February 7th 2024", @@ -22,11 +28,5 @@ "title": "Overview of AsyncAPI v3", "description": "Join us for an insightful stream diving deep into the latest advancements of AsyncAPI v3! We'll explore this cutting-edge ...", "videoId": "prFgD14u7T0" - }, - { - "image_url": "https://i.ytimg.com/vi/-OsMet9h_dg/hqdefault.jpg", - "title": "3 Request/Reply Use Cases", - "description": "Explain Request/Reply use cases to me like I'm a 5 year old.", - "videoId": "-OsMet9h_dg" } ] \ No newline at end of file From 2ed2502984f406d550059fbd050f80e8524d2680 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 6 Mar 2024 06:18:59 +0100 Subject: [PATCH 09/10] docs(community): update latest maintainers list (#2741) --- config/MAINTAINERS.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config/MAINTAINERS.json b/config/MAINTAINERS.json index bbb2c8d4c14..2cc5a6e9f65 100644 --- a/config/MAINTAINERS.json +++ b/config/MAINTAINERS.json @@ -709,5 +709,15 @@ "repos": [ "website" ] + }, + { + "name": "Viacheslav Turovskyi", + "github": "aeworxet", + "slack": "U01G3U01SVC", + "availableForHire": false, + "isTscMember": false, + "repos": [ + "bundler" + ] } ] \ No newline at end of file From a78d89fc567a731f45df500e78d85c007128a003 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 6 Mar 2024 14:05:57 +0100 Subject: [PATCH 10/10] docs(cli): update latest cli documentation (#2744) --- pages/docs/tools/cli/usage.md | 188 +++++++++++++++++----------------- 1 file changed, 96 insertions(+), 92 deletions(-) diff --git a/pages/docs/tools/cli/usage.md b/pages/docs/tools/cli/usage.md index 9405bfc878c..c31c3d90ced 100644 --- a/pages/docs/tools/cli/usage.md +++ b/pages/docs/tools/cli/usage.md @@ -29,7 +29,7 @@ $ npm install -g @asyncapi/cli $ asyncapi COMMAND running command... $ asyncapi (--version) -@asyncapi/cli/1.5.16 linux-x64 node-v18.19.1 +@asyncapi/cli/1.5.17 linux-x64 node-v18.19.1 $ asyncapi --help [COMMAND] USAGE $ asyncapi COMMAND @@ -93,7 +93,7 @@ EXAMPLES $ asyncapi bundle ./asyncapi.yaml ./features.yaml --base ./asyncapi.yaml --reference-into-components ``` -_See code: [src/commands/bundle.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/bundle.ts)_ +_See code: [src/commands/bundle.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/bundle.ts)_ ## `asyncapi config` @@ -107,7 +107,7 @@ DESCRIPTION CLI config settings ``` -_See code: [src/commands/config/index.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/index.ts)_ +_See code: [src/commands/config/index.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/index.ts)_ ## `asyncapi config context` @@ -121,7 +121,7 @@ DESCRIPTION Manage short aliases for full paths to AsyncAPI documents ``` -_See code: [src/commands/config/context/index.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/index.ts)_ +_See code: [src/commands/config/context/index.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/context/index.ts)_ ## `asyncapi config context add CONTEXT-NAME SPEC-FILE-PATH` @@ -143,7 +143,7 @@ DESCRIPTION Add a context to the store ``` -_See code: [src/commands/config/context/add.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/add.ts)_ +_See code: [src/commands/config/context/add.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/context/add.ts)_ ## `asyncapi config context current` @@ -160,7 +160,7 @@ DESCRIPTION Shows the current context that is being used ``` -_See code: [src/commands/config/context/current.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/current.ts)_ +_See code: [src/commands/config/context/current.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/context/current.ts)_ ## `asyncapi config context edit CONTEXT-NAME NEW-SPEC-FILE-PATH` @@ -181,7 +181,7 @@ DESCRIPTION Edit a context in the store ``` -_See code: [src/commands/config/context/edit.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/edit.ts)_ +_See code: [src/commands/config/context/edit.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/context/edit.ts)_ ## `asyncapi config context init [CONTEXT-FILE-PATH]` @@ -204,7 +204,7 @@ DESCRIPTION Initialize context ``` -_See code: [src/commands/config/context/init.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/init.ts)_ +_See code: [src/commands/config/context/init.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/context/init.ts)_ ## `asyncapi config context list` @@ -221,7 +221,7 @@ DESCRIPTION List all the stored contexts in the store ``` -_See code: [src/commands/config/context/list.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/list.ts)_ +_See code: [src/commands/config/context/list.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/context/list.ts)_ ## `asyncapi config context remove CONTEXT-NAME` @@ -241,7 +241,7 @@ DESCRIPTION Delete a context from the store ``` -_See code: [src/commands/config/context/remove.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/remove.ts)_ +_See code: [src/commands/config/context/remove.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/context/remove.ts)_ ## `asyncapi config context use CONTEXT-NAME` @@ -261,7 +261,7 @@ DESCRIPTION Set a context as current ``` -_See code: [src/commands/config/context/use.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/context/use.ts)_ +_See code: [src/commands/config/context/use.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/context/use.ts)_ ## `asyncapi config versions` @@ -278,7 +278,7 @@ DESCRIPTION Show versions of AsyncAPI tools used ``` -_See code: [src/commands/config/versions.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/config/versions.ts)_ +_See code: [src/commands/config/versions.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/config/versions.ts)_ ## `asyncapi convert [SPEC-FILE]` @@ -300,7 +300,7 @@ DESCRIPTION Convert asyncapi documents older to newer versions ``` -_See code: [src/commands/convert.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/convert.ts)_ +_See code: [src/commands/convert.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/convert.ts)_ ## `asyncapi diff OLD NEW` @@ -355,7 +355,7 @@ DESCRIPTION Find diff between two asyncapi files ``` -_See code: [src/commands/diff.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/diff.ts)_ +_See code: [src/commands/diff.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/diff.ts)_ ## `asyncapi generate` @@ -369,7 +369,7 @@ DESCRIPTION Generate typed models or other things like clients, applications or docs using AsyncAPI Generator templates. ``` -_See code: [src/commands/generate/index.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/generate/index.ts)_ +_See code: [src/commands/generate/index.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/generate/index.ts)_ ## `asyncapi generate fromTemplate ASYNCAPI TEMPLATE` @@ -394,10 +394,10 @@ FLAGS -p, --param=... Additional param to pass to templates -w, --watch Watches the template directory and the AsyncAPI document, and re-generate the files when changes occur. Ignores the output directory. - --debug Enable more specific errors in the console - --force-write Force writing of the generated files to given directory even if it is a git repo with + --debug Enable more specific errors in the console + --force-write Force writing of the generated files to given directory even if it is a git repo with unstaged files or not empty dir (defaults to false) - --map-base-url= Maps all schema references from base url to local folder + --map-base-url= Maps all schema references from base url to local folder DESCRIPTION Generates whatever you want using templates compatible with AsyncAPI Generator. @@ -406,7 +406,7 @@ EXAMPLES $ asyncapi generate fromTemplate asyncapi.yaml @asyncapi/html-template --param version=1.0.0 singleFile=true --output ./docs --force-write ``` -_See code: [src/commands/generate/fromTemplate.ts](https://github.com/asyncapi/cli/blob/v1.5.16/src/commands/generate/fromTemplate.ts)_ +_See code: [src/commands/generate/fromTemplate.ts](https://github.com/asyncapi/cli/blob/v1.5.17/src/commands/generate/fromTemplate.ts)_ ## `asyncapi generate models LANGUAGE FILE` @@ -427,66 +427,70 @@ ARGUMENTS FILE Path or URL to the AsyncAPI document, or context-name FLAGS - -h, --help Show CLI help. - -o, --output= The output directory where the models should be - written to. Omitting this flag will write the - models to `stdout`. - --csharpArrayType=