From 8e7b341fab6b163b6a2058cb5e8b15506e77a0e2 Mon Sep 17 00:00:00 2001 From: Aryan Raj <116114086+Aryan4884@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:06:47 +0530 Subject: [PATCH 1/5] docs: corrected typo error (#1089) --- playground/specs/dummy.ts | 10 +++++----- playground/specs/streetlights.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/playground/specs/dummy.ts b/playground/specs/dummy.ts index 2ae74ebf..e5e748ef 100644 --- a/playground/specs/dummy.ts +++ b/playground/specs/dummy.ts @@ -82,18 +82,18 @@ channels: Still dummy though. operationId: receiveNewDummyInfo tags: - - name: oparation-tag1 + - name: operation-tag1 externalDocs: description: External docs description 1 url: https://www.asyncapi.com/ - - name: oparation-tag2 + - name: operation-tag2 description: Description 2 externalDocs: url: "https://www.asyncapi.com/" - - name: oparation-tag3 - - name: oparation-tag4 + - name: operation-tag3 + - name: operation-tag4 description: Description 4 - - name: oparation-tag5 + - name: operation-tag5 externalDocs: url: "https://www.asyncapi.com/" traits: diff --git a/playground/specs/streetlights.ts b/playground/specs/streetlights.ts index 519aa26d..58ab8fb5 100644 --- a/playground/specs/streetlights.ts +++ b/playground/specs/streetlights.ts @@ -286,18 +286,18 @@ components: externalDocs: url: "https://www.asyncapi.com/" tags: - - name: oparation-tag1 + - name: operation-tag1 externalDocs: description: External docs description 1 url: https://www.asyncapi.com/ - - name: oparation-tag2 + - name: operation-tag2 description: Description 2 externalDocs: url: "https://www.asyncapi.com/" - - name: oparation-tag3 - - name: oparation-tag4 + - name: operation-tag3 + - name: operation-tag4 description: Description 4 - - name: oparation-tag5 + - name: operation-tag5 externalDocs: url: "https://www.asyncapi.com/" traits: From 0ea859f8840d5325727ce1942ebe4e7432ce2d99 Mon Sep 17 00:00:00 2001 From: Mohan Kumar <121867882+ItshMoh@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:28:18 +0530 Subject: [PATCH 2/5] refactor: removed the redundant undefined (#1057) Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com> --- library/src/helpers/__tests__/schema.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/src/helpers/__tests__/schema.test.ts b/library/src/helpers/__tests__/schema.test.ts index aaa5b6f7..d6c7acd2 100644 --- a/library/src/helpers/__tests__/schema.test.ts +++ b/library/src/helpers/__tests__/schema.test.ts @@ -905,12 +905,7 @@ describe('SchemaHelpers', () => { ).toMatchSnapshot(); expect( - SchemaHelpers.applicatorSchemaName( - 1, - FIRST_CASE, - OTHER_CASES, - undefined, - ), + SchemaHelpers.applicatorSchemaName(1, FIRST_CASE, OTHER_CASES), ).toMatchSnapshot(); }); From d7548c9abfc441935f2789ad9f9b3f5c99ac84e8 Mon Sep 17 00:00:00 2001 From: Mohan Kumar <121867882+ItshMoh@users.noreply.github.com> Date: Wed, 16 Oct 2024 15:39:09 +0530 Subject: [PATCH 3/5] refactor: removed the redundant underfined. (#1056) * removed the redundant underfined. * fixed linting issue --------- Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com> --- library/src/helpers/__tests__/schema.test.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/library/src/helpers/__tests__/schema.test.ts b/library/src/helpers/__tests__/schema.test.ts index d6c7acd2..63767499 100644 --- a/library/src/helpers/__tests__/schema.test.ts +++ b/library/src/helpers/__tests__/schema.test.ts @@ -896,12 +896,7 @@ describe('SchemaHelpers', () => { test('should not render title because title is undefined', () => { expect( - SchemaHelpers.applicatorSchemaName( - 0, - FIRST_CASE, - OTHER_CASES, - undefined, - ), + SchemaHelpers.applicatorSchemaName(0, FIRST_CASE, OTHER_CASES), ).toMatchSnapshot(); expect( From 5fc29df3347fa5713055147e82e2960fd35d6368 Mon Sep 17 00:00:00 2001 From: Mohan Kumar <121867882+ItshMoh@users.noreply.github.com> Date: Wed, 16 Oct 2024 18:04:33 +0530 Subject: [PATCH 4/5] fix: external link will open in the same window (#1060) Co-authored-by: Cody's Dad <40604284+AceTheCreator@users.noreply.github.com>%0ACo-authored-by: asyncapi-bot --- library/src/components/Href.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/components/Href.tsx b/library/src/components/Href.tsx index fd5c3aff..2b9ad33c 100644 --- a/library/src/components/Href.tsx +++ b/library/src/components/Href.tsx @@ -15,7 +15,7 @@ export const Href: React.FunctionComponent = ({ }) => ( Date: Wed, 16 Oct 2024 14:50:14 +0200 Subject: [PATCH 5/5] chore(release): v2.3.4 (#1094) --- library/package.json | 2 +- package-lock.json | 6 +++--- web-component/package.json | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/library/package.json b/library/package.json index cb6227d6..db806d8e 100644 --- a/library/package.json +++ b/library/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/react-component", - "version": "2.3.3", + "version": "2.3.4", "private": false, "description": "A React component for AsyncAPI specification.", "repository": { diff --git a/package-lock.json b/package-lock.json index a974ab96..dab9318b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,7 +36,7 @@ }, "library": { "name": "@asyncapi/react-component", - "version": "2.3.3", + "version": "2.3.4", "license": "Apache-2.0", "dependencies": { "@asyncapi/avro-schema-parser": "^3.0.24", @@ -27671,10 +27671,10 @@ }, "web-component": { "name": "@asyncapi/web-component", - "version": "2.3.3", + "version": "2.3.4", "license": "Apache-2.0", "dependencies": { - "@asyncapi/react-component": "^2.3.3", + "@asyncapi/react-component": "^2.3.4", "react": "^18.2.0", "react-dom": "^18.2.0", "web-react-components": "^1.4.2" diff --git a/web-component/package.json b/web-component/package.json index cfd89549..def9c90e 100644 --- a/web-component/package.json +++ b/web-component/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/web-component", - "version": "2.3.3", + "version": "2.3.4", "private": false, "description": "A web component for AsyncAPI specification. Based on @asyncapi/react-component.", "repository": { @@ -44,7 +44,7 @@ "install:reactcomp": "chmod +x ./bump-react-comp.sh && ./bump-react-comp.sh" }, "dependencies": { - "@asyncapi/react-component": "^2.3.3", + "@asyncapi/react-component": "^2.3.4", "react": "^18.2.0", "react-dom": "^18.2.0", "web-react-components": "^1.4.2"