From d9843044cc1da2656edd70c01cc57ebcee3dedfb Mon Sep 17 00:00:00 2001 From: kpears201 Date: Wed, 4 Sep 2024 09:20:37 -0700 Subject: [PATCH 1/6] fix: Void provider methods have JSONRPC errors (#212) --- languages/javascript/src/shared/ProvideManager/index.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/languages/javascript/src/shared/ProvideManager/index.mjs b/languages/javascript/src/shared/ProvideManager/index.mjs index 68ce6e9c..5da44cfa 100644 --- a/languages/javascript/src/shared/ProvideManager/index.mjs +++ b/languages/javascript/src/shared/ProvideManager/index.mjs @@ -115,7 +115,8 @@ const provide = function(capability, provider) { result.then(result => { if (imethod.response) { - response.result = result + // void results should be null in the JSONRPC message + response.result = result == null ? null : result } Transport.send(module, `${method}Response`, response) From b0af5cd85e959d7e5f0f34ef2f21cd7067c2c3f2 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 4 Sep 2024 16:21:12 +0000 Subject: [PATCH 2/6] chore(release): 3.1.1-next.5 [skip ci] ## [3.1.1-next.5](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.4...v3.1.1-next.5) (2024-09-04) ### Bug Fixes * Void provider methods have JSONRPC errors ([#212](https://github.com/rdkcentral/firebolt-openrpc/issues/212)) ([d984304](https://github.com/rdkcentral/firebolt-openrpc/commit/d9843044cc1da2656edd70c01cc57ebcee3dedfb)) --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ad03536..14d8a8a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [3.1.1-next.5](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.4...v3.1.1-next.5) (2024-09-04) + + +### Bug Fixes + +* Void provider methods have JSONRPC errors ([#212](https://github.com/rdkcentral/firebolt-openrpc/issues/212)) ([d984304](https://github.com/rdkcentral/firebolt-openrpc/commit/d9843044cc1da2656edd70c01cc57ebcee3dedfb)) + ## [3.1.1-next.4](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.3...v3.1.1-next.4) (2024-08-30) diff --git a/package-lock.json b/package-lock.json index 14676f1c..a6cc8091 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1-next.4", + "version": "3.1.1-next.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@firebolt-js/openrpc", - "version": "3.1.1-next.4", + "version": "3.1.1-next.5", "license": "Apache-2.0", "dependencies": { "ajv": "^8.12.0", diff --git a/package.json b/package.json index 8b766e9f..14dc939c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1-next.4", + "version": "3.1.1-next.5", "description": "The Firebolt SDK Code & Doc Generator", "main": "languages/javascript/src/sdk.mjs", "type": "module", From 650360c2b48fccb91a2743cec03ba5b47734fb0e Mon Sep 17 00:00:00 2001 From: Kevin <72702438+kevinshahfws@users.noreply.github.com> Date: Wed, 4 Sep 2024 13:19:54 -0400 Subject: [PATCH 3/6] fix: Merge latest main to next (#214) --- CHANGELOG.md | 13 +++++++++++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14d8a8a3..497397a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,19 @@ -## [3.1.1-next.5](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.4...v3.1.1-next.5) (2024-09-04) - +## [3.1.2-next.1](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.4...v3.1.1-next.5) (2024-09-04) ### Bug Fixes * Void provider methods have JSONRPC errors ([#212](https://github.com/rdkcentral/firebolt-openrpc/issues/212)) ([d984304](https://github.com/rdkcentral/firebolt-openrpc/commit/d9843044cc1da2656edd70c01cc57ebcee3dedfb)) +## [3.1.1](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.0...v3.1.1) (2024-08-30) + + +### Bug Fixes +* Add provider-selection tag to validation schema ([756e88a](https://github.com/rdkcentral/firebolt-openrpc/commit/756e88a92782c8d65ec481182c31c8edb218c9d6)) +* CPP Enum/AnyOf ([#210](https://github.com/rdkcentral/firebolt-openrpc/issues/210)) ([eb768fb](https://github.com/rdkcentral/firebolt-openrpc/commit/eb768fb5f0d8ce4c123daab428bd53ca7225333c)) +* Quote unsafe property names in languages that support it ([647043d](https://github.com/rdkcentral/firebolt-openrpc/commit/647043d59ea0399b725d32e4a2e48ee017965288)) +* Return empty config, not null ([f02aadc](https://github.com/rdkcentral/firebolt-openrpc/commit/f02aadcb57f3936f1dcebfe570e418c1d04f626d)) +* Update getSuffix to properly work in pipeline ([#209](https://github.com/rdkcentral/firebolt-openrpc/issues/209)) ([16b4e6e](https://github.com/rdkcentral/firebolt-openrpc/commit/16b4e6eb5a8739a7715eb975104d7bb33053b28c)) + ## [3.1.1-next.4](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.3...v3.1.1-next.4) (2024-08-30) diff --git a/package-lock.json b/package-lock.json index a6cc8091..d0e77337 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1-next.5", + "version": "3.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@firebolt-js/openrpc", - "version": "3.1.1-next.5", + "version": "3.1.1", "license": "Apache-2.0", "dependencies": { "ajv": "^8.12.0", diff --git a/package.json b/package.json index 14dc939c..d205fbac 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1-next.5", + "version": "3.1.1", "description": "The Firebolt SDK Code & Doc Generator", "main": "languages/javascript/src/sdk.mjs", "type": "module", From 711815ac8209d9bf0b573158d20b9ec018fd7df0 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 4 Sep 2024 17:20:33 +0000 Subject: [PATCH 4/6] chore(release): 3.1.1-next.6 [skip ci] ## [3.1.1-next.6](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.5...v3.1.1-next.6) (2024-09-04) ### Bug Fixes * Merge latest main to next ([#214](https://github.com/rdkcentral/firebolt-openrpc/issues/214)) ([650360c](https://github.com/rdkcentral/firebolt-openrpc/commit/650360c2b48fccb91a2743cec03ba5b47734fb0e)) --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 497397a7..58dd31c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [3.1.1-next.6](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.5...v3.1.1-next.6) (2024-09-04) + + +### Bug Fixes + +* Merge latest main to next ([#214](https://github.com/rdkcentral/firebolt-openrpc/issues/214)) ([650360c](https://github.com/rdkcentral/firebolt-openrpc/commit/650360c2b48fccb91a2743cec03ba5b47734fb0e)) + ## [3.1.2-next.1](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.4...v3.1.1-next.5) (2024-09-04) ### Bug Fixes diff --git a/package-lock.json b/package-lock.json index d0e77337..362440e3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1", + "version": "3.1.1-next.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@firebolt-js/openrpc", - "version": "3.1.1", + "version": "3.1.1-next.6", "license": "Apache-2.0", "dependencies": { "ajv": "^8.12.0", diff --git a/package.json b/package.json index d205fbac..2a60d47d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1", + "version": "3.1.1-next.6", "description": "The Firebolt SDK Code & Doc Generator", "main": "languages/javascript/src/sdk.mjs", "type": "module", From ccb0e1b9fc4c47136b34dc5cdcea5171ad6d3757 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 4 Sep 2024 17:26:55 +0000 Subject: [PATCH 5/6] chore(release): 3.1.2-next.1 [skip ci] ## [3.1.2-next.1](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1...v3.1.2-next.1) (2024-09-04) ### Bug Fixes * Merge latest main to next ([07c3a81](https://github.com/rdkcentral/firebolt-openrpc/commit/07c3a81c198c5450a44ba0b5d3d3677a185444f3)) * Merge latest main to next ([b488f38](https://github.com/rdkcentral/firebolt-openrpc/commit/b488f38ca270973b44f46ccd6997246772609d8f)) * Merge latest main to next ([#214](https://github.com/rdkcentral/firebolt-openrpc/issues/214)) ([650360c](https://github.com/rdkcentral/firebolt-openrpc/commit/650360c2b48fccb91a2743cec03ba5b47734fb0e)) * Void provider methods have JSONRPC errors ([#212](https://github.com/rdkcentral/firebolt-openrpc/issues/212)) ([d984304](https://github.com/rdkcentral/firebolt-openrpc/commit/d9843044cc1da2656edd70c01cc57ebcee3dedfb)) --- CHANGELOG.md | 10 ++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 13 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 87024743..8529cc20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +## [3.1.2-next.1](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1...v3.1.2-next.1) (2024-09-04) + + +### Bug Fixes + +* Merge latest main to next ([07c3a81](https://github.com/rdkcentral/firebolt-openrpc/commit/07c3a81c198c5450a44ba0b5d3d3677a185444f3)) +* Merge latest main to next ([b488f38](https://github.com/rdkcentral/firebolt-openrpc/commit/b488f38ca270973b44f46ccd6997246772609d8f)) +* Merge latest main to next ([#214](https://github.com/rdkcentral/firebolt-openrpc/issues/214)) ([650360c](https://github.com/rdkcentral/firebolt-openrpc/commit/650360c2b48fccb91a2743cec03ba5b47734fb0e)) +* Void provider methods have JSONRPC errors ([#212](https://github.com/rdkcentral/firebolt-openrpc/issues/212)) ([d984304](https://github.com/rdkcentral/firebolt-openrpc/commit/d9843044cc1da2656edd70c01cc57ebcee3dedfb)) + ## [3.1.1-next.6](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.5...v3.1.1-next.6) (2024-09-04) diff --git a/package-lock.json b/package-lock.json index 362440e3..4972e32e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1-next.6", + "version": "3.1.2-next.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@firebolt-js/openrpc", - "version": "3.1.1-next.6", + "version": "3.1.2-next.1", "license": "Apache-2.0", "dependencies": { "ajv": "^8.12.0", diff --git a/package.json b/package.json index 2a60d47d..577cf194 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1-next.6", + "version": "3.1.2-next.1", "description": "The Firebolt SDK Code & Doc Generator", "main": "languages/javascript/src/sdk.mjs", "type": "module", From 1abbbdf22e1e87795aa3dbbf9dc5694bae992fc8 Mon Sep 17 00:00:00 2001 From: "Shah, Kevin" Date: Wed, 4 Sep 2024 13:29:41 -0400 Subject: [PATCH 6/6] chore: Fixed CHANGELOG.md --- CHANGELOG.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8529cc20..f2de6ccb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,7 @@ ## [3.1.2-next.1](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1...v3.1.2-next.1) (2024-09-04) - ### Bug Fixes -* Merge latest main to next ([07c3a81](https://github.com/rdkcentral/firebolt-openrpc/commit/07c3a81c198c5450a44ba0b5d3d3677a185444f3)) -* Merge latest main to next ([b488f38](https://github.com/rdkcentral/firebolt-openrpc/commit/b488f38ca270973b44f46ccd6997246772609d8f)) -* Merge latest main to next ([#214](https://github.com/rdkcentral/firebolt-openrpc/issues/214)) ([650360c](https://github.com/rdkcentral/firebolt-openrpc/commit/650360c2b48fccb91a2743cec03ba5b47734fb0e)) * Void provider methods have JSONRPC errors ([#212](https://github.com/rdkcentral/firebolt-openrpc/issues/212)) ([d984304](https://github.com/rdkcentral/firebolt-openrpc/commit/d9843044cc1da2656edd70c01cc57ebcee3dedfb)) ## [3.1.1-next.6](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.1-next.5...v3.1.1-next.6) (2024-09-04)