diff --git a/CHANGELOG.md b/CHANGELOG.md index e63e2527..f2de6ccb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,27 @@ -## [3.1.1](https://github.com/rdkcentral/firebolt-openrpc/compare/v3.1.0...v3.1.1) (2024-08-30) +## [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 + +* 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) ### 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.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](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)) 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) diff --git a/package-lock.json b/package-lock.json index d0e77337..4972e32e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1", + "version": "3.1.2-next.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@firebolt-js/openrpc", - "version": "3.1.1", + "version": "3.1.2-next.1", "license": "Apache-2.0", "dependencies": { "ajv": "^8.12.0", diff --git a/package.json b/package.json index d205fbac..577cf194 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@firebolt-js/openrpc", - "version": "3.1.1", + "version": "3.1.2-next.1", "description": "The Firebolt SDK Code & Doc Generator", "main": "languages/javascript/src/sdk.mjs", "type": "module",