diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c087ee2..73708089 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,43 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [4.0.0](https://github.com/nrkno/tv-automation-mos-connection/compare/v3.0.7...v4.0.0) (2024-02-02) + +### ⚠ BREAKING CHANGES + +- Changes to `mosDevice.sendRequestAllMOSObjects()`. MosObjects are now returned to the `mosDevice.onMOSObjects()` callback. + +**Migration guide:** + +```typescript +// Before: +const mosObjs = await mosDevice.sendRequestAllMOSObjects() + +// After: +mosDevice.onMOSObjects((mosObjs: IMOSObject[]) => { + // +}) +const ack = await mosDevice.sendRequestAllMOSObjects() +``` + +### Bug Fixes + +* better handling of non-spec errors. ([4b1f97c](https://github.com/nrkno/tv-automation-mos-connection/commit/4b1f97cf4112f465c353b482b35201fcaef9864e)) +* change how data fields is parsed, better handling of missing data. ([bf4a084](https://github.com/nrkno/tv-automation-mos-connection/commit/bf4a0845a7f836015aa452db45c023debef94480)) +* connectionStatus now returns textual status, not just empty strings, addressing [#93](https://github.com/nrkno/tv-automation-mos-connection/issues/93) ([23d9b16](https://github.com/nrkno/tv-automation-mos-connection/commit/23d9b161d597223ed750a61dc7d87bacec4def51)) +* revert mosTime support of empty string. ([cfc036f](https://github.com/nrkno/tv-automation-mos-connection/commit/cfc036f5c2604ae193bc2d683e02ad2a9d6bb477)) +* roStoryMove: off-spec support of single storyID tag ([58ff304](https://github.com/nrkno/tv-automation-mos-connection/commit/58ff30429976655b30596181041449b3e8060ff9)) +* roStoryMoveMultiple: handle edge case of single storyID ([4684116](https://github.com/nrkno/tv-automation-mos-connection/commit/46841160704e11e6ac00bcdee0e3bbf828c54393)) + + +### Features + +* support for receiving Profile 1 and messages. ([786710a](https://github.com/nrkno/tv-automation-mos-connection/commit/786710ad1d71015b76dc7e01cdc7a286a02c96a4)) + + + + + ## [3.0.7](https://github.com/nrkno/tv-automation-mos-connection/compare/v3.0.6...v3.0.7) (2023-12-27) diff --git a/lerna.json b/lerna.json index f96fea56..b0775e4a 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "packages/*" ], - "version": "3.0.7", + "version": "4.0.0", "npmClient": "yarn", "useWorkspaces": true } diff --git a/packages/connector/CHANGELOG.md b/packages/connector/CHANGELOG.md index 0d433f28..25777da3 100644 --- a/packages/connector/CHANGELOG.md +++ b/packages/connector/CHANGELOG.md @@ -3,92 +3,84 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.0.7](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.6...v3.0.7) (2023-12-27) - - -### Bug Fixes - -* Add support for receiving roStoryX, roStoryY messages. ([a4c110e](https://github.com/nrkno/sofie-mos-connection/commit/a4c110e229134d11f1d7a755086d68b002281264)) +# [4.0.0](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.7...v4.0.0) (2024-02-02) +### ⚠ BREAKING CHANGES +- Changes to `mosDevice.sendRequestAllMOSObjects()`. MosObjects are now returned to the `mosDevice.onMOSObjects()` callback. +**Migration guide:** +```typescript +// Before: +const mosObjs = await mosDevice.sendRequestAllMOSObjects() -## [3.0.5](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.4...3.0.5) (2023-12-18) - +// After: +mosDevice.onMOSObjects((mosObjs: IMOSObject[]) => { + // +}) +const ack = await mosDevice.sendRequestAllMOSObjects() +``` ### Bug Fixes -* better handling of incoming data chunks. Deals with multiple and tags. ([59cacb2](https://github.com/nrkno/sofie-mos-connection/commit/59cacb21c178ea14c7ad4c8771198e6ec656459c)) -* better handling of single xml elements ([f96ea1a](https://github.com/nrkno/sofie-mos-connection/commit/f96ea1a61cef385435d1088acc46cd1e25c5c4bf)) -* handle replies to roReq ([c100b4d](https://github.com/nrkno/sofie-mos-connection/commit/c100b4d017f21d45529c0c912754808f8a0431bc)) +- better handling of non-spec errors. ([4b1f97c](https://github.com/nrkno/sofie-mos-connection/commit/4b1f97cf4112f465c353b482b35201fcaef9864e)) +- change how data fields is parsed, better handling of missing data. ([bf4a084](https://github.com/nrkno/sofie-mos-connection/commit/bf4a0845a7f836015aa452db45c023debef94480)) +- connectionStatus now returns textual status, not just empty strings, addressing [#93](https://github.com/nrkno/sofie-mos-connection/issues/93) ([23d9b16](https://github.com/nrkno/sofie-mos-connection/commit/23d9b161d597223ed750a61dc7d87bacec4def51)) +- revert mosTime support of empty string. ([cfc036f](https://github.com/nrkno/sofie-mos-connection/commit/cfc036f5c2604ae193bc2d683e02ad2a9d6bb477)) +- roStoryMove: off-spec support of single storyID tag ([58ff304](https://github.com/nrkno/sofie-mos-connection/commit/58ff30429976655b30596181041449b3e8060ff9)) +- roStoryMoveMultiple: handle edge case of single storyID ([4684116](https://github.com/nrkno/sofie-mos-connection/commit/46841160704e11e6ac00bcdee0e3bbf828c54393)) +### Features +- support for receiving Profile 1 and messages. ([786710a](https://github.com/nrkno/sofie-mos-connection/commit/786710ad1d71015b76dc7e01cdc7a286a02c96a4)) +## [3.0.7](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.6...v3.0.7) (2023-12-27) +### Bug Fixes -## [3.0.4](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.1...v3.0.4) (2023-06-09) +- Add support for receiving roStoryX, roStoryY messages. ([a4c110e](https://github.com/nrkno/sofie-mos-connection/commit/a4c110e229134d11f1d7a755086d68b002281264)) +## [3.0.5](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.4...3.0.5) (2023-12-18) ### Bug Fixes -* handover logic should leave heartbearts ([d8ccca0](https://github.com/nrkno/sofie-mos-connection/commit/d8ccca0af14e5d3d3574fec4284b4df91336803d)) - +- better handling of incoming data chunks. Deals with multiple and tags. ([59cacb2](https://github.com/nrkno/sofie-mos-connection/commit/59cacb21c178ea14c7ad4c8771198e6ec656459c)) +- better handling of single xml elements ([f96ea1a](https://github.com/nrkno/sofie-mos-connection/commit/f96ea1a61cef385435d1088acc46cd1e25c5c4bf)) +- handle replies to roReq ([c100b4d](https://github.com/nrkno/sofie-mos-connection/commit/c100b4d017f21d45529c0c912754808f8a0431bc)) +## [3.0.4](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.1...v3.0.4) (2023-06-09) +### Bug Fixes +- handover logic should leave heartbearts ([d8ccca0](https://github.com/nrkno/sofie-mos-connection/commit/d8ccca0af14e5d3d3574fec4284b4df91336803d)) ## [3.0.3](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.2...v3.0.3) (2023-06-09) - ### Bug Fixes -* handover logic should leave heartbearts ([d8ccca0](https://github.com/nrkno/sofie-mos-connection/commit/d8ccca0af14e5d3d3574fec4284b4df91336803d)) - - - - +- handover logic should leave heartbearts ([d8ccca0](https://github.com/nrkno/sofie-mos-connection/commit/d8ccca0af14e5d3d3574fec4284b4df91336803d)) ## [3.0.2](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.1...v3.0.2) (2023-03-27) **Note:** Version bump only for package @mos-connection/connector - - - - # [3.0.0](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.3...v3.0.0) (2023-02-03) **Note:** Version bump only for package @mos-connection/connector - - - - # [3.0.0-alpha.3](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2023-01-27) **Note:** Version bump only for package @mos-connection/connector - - - - # [3.0.0-alpha.2](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.0...v3.0.0-alpha.2) (2023-01-27) **Note:** Version bump only for package @mos-connection/connector - - - - # [3.0.0-alpha.1](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.0...3.0.0-alpha.1) (2023-01-27) **Note:** Version bump only for package @mos-connection/connector - - - - # [v3.0.0-alpha.0](https://github.com/nrkno/sofie-mos-connection/compare/2.0.1...v3.0.0-alpha.0) (2022-12-09) ### Bug Fixes diff --git a/packages/connector/package.json b/packages/connector/package.json index 94364bb1..513fc8e4 100644 --- a/packages/connector/package.json +++ b/packages/connector/package.json @@ -1,6 +1,6 @@ { "name": "@mos-connection/connector", - "version": "3.0.7", + "version": "4.0.0", "description": "MOS compliant TCP/IP Socket connection.", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -29,8 +29,8 @@ "/LICENSE" ], "dependencies": { - "@mos-connection/helper": "3.0.7", - "@mos-connection/model": "3.0.7", + "@mos-connection/helper": "4.0.0", + "@mos-connection/model": "4.0.0", "iconv-lite": "^0.6.3", "tslib": "^2.5.3", "xml-js": "^1.6.11", diff --git a/packages/examples/package.json b/packages/examples/package.json index 11f39b81..384c5aa3 100644 --- a/packages/examples/package.json +++ b/packages/examples/package.json @@ -23,7 +23,7 @@ "node": ">=14.18.0" }, "dependencies": { - "@mos-connection/connector": "3.0.7" + "@mos-connection/connector": "4.0.0" }, "prettier": "@sofie-automation/code-standard-preset/.prettierrc.json", "lint-staged": { diff --git a/packages/helper/CHANGELOG.md b/packages/helper/CHANGELOG.md index 19f46dba..f1fd7e45 100644 --- a/packages/helper/CHANGELOG.md +++ b/packages/helper/CHANGELOG.md @@ -3,85 +3,56 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.0.7](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.6...v3.0.7) (2023-12-27) - -**Note:** Version bump only for package @mos-connection/helper +# [4.0.0](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.7...v4.0.0) (2024-02-02) +### Bug Fixes +- better handling of non-spec errors. ([4b1f97c](https://github.com/nrkno/sofie-mos-connection/commit/4b1f97cf4112f465c353b482b35201fcaef9864e)) +- change how data fields is parsed, better handling of missing data. ([bf4a084](https://github.com/nrkno/sofie-mos-connection/commit/bf4a0845a7f836015aa452db45c023debef94480)) +- revert mosTime support of empty string. ([cfc036f](https://github.com/nrkno/sofie-mos-connection/commit/cfc036f5c2604ae193bc2d683e02ad2a9d6bb477)) +## [3.0.7](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.6...v3.0.7) (2023-12-27) +**Note:** Version bump only for package @mos-connection/helper ## [3.0.5](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.4...3.0.5) (2023-12-18) - ### Bug Fixes -* better handling of single xml elements ([f96ea1a](https://github.com/nrkno/sofie-mos-connection/commit/f96ea1a61cef385435d1088acc46cd1e25c5c4bf)) -* case roStorySend one storyItem ([77dfff5](https://github.com/nrkno/sofie-mos-connection/commit/77dfff5c36c2dd7d42efa0932a561b800af636a4)) - - - - +- better handling of single xml elements ([f96ea1a](https://github.com/nrkno/sofie-mos-connection/commit/f96ea1a61cef385435d1088acc46cd1e25c5c4bf)) +- case roStorySend one storyItem ([77dfff5](https://github.com/nrkno/sofie-mos-connection/commit/77dfff5c36c2dd7d42efa0932a561b800af636a4)) ## [3.0.4](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.1...v3.0.4) (2023-06-09) - ### Bug Fixes -* minor improvement to RoAck ([7cb0bb6](https://github.com/nrkno/sofie-mos-connection/commit/7cb0bb68be07507a86a20615b3d0b751430e79f9)) - - - - +- minor improvement to RoAck ([7cb0bb6](https://github.com/nrkno/sofie-mos-connection/commit/7cb0bb68be07507a86a20615b3d0b751430e79f9)) ## [3.0.2](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.1...v3.0.2) (2023-03-27) - ### Bug Fixes -* minor improvement to RoAck ([7cb0bb6](https://github.com/nrkno/sofie-mos-connection/commit/7cb0bb68be07507a86a20615b3d0b751430e79f9)) - - - - +- minor improvement to RoAck ([7cb0bb6](https://github.com/nrkno/sofie-mos-connection/commit/7cb0bb68be07507a86a20615b3d0b751430e79f9)) # [3.0.0](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.3...v3.0.0) (2023-02-03) **Note:** Version bump only for package @mos-connection/helper - - - - # [3.0.0-alpha.3](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2023-01-27) **Note:** Version bump only for package @mos-connection/helper - - - - # [3.0.0-alpha.2](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.0...v3.0.0-alpha.2) (2023-01-27) - ### Bug Fixes -* add stringifyMosObject, an utility-function used to convert objects containing IMOSString128 etc to strings ([f3806ab](https://github.com/nrkno/sofie-mos-connection/commit/f3806ab4e72a02b450e91ab19fbbfca34c605caa)) - - - - +- add stringifyMosObject, an utility-function used to convert objects containing IMOSString128 etc to strings ([f3806ab](https://github.com/nrkno/sofie-mos-connection/commit/f3806ab4e72a02b450e91ab19fbbfca34c605caa)) # [3.0.0-alpha.1](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.0...3.0.0-alpha.1) (2023-01-27) - ### Bug Fixes -* add stringifyMosObject, an utility-function used to convert objects containing IMOSString128 etc to strings ([f3806ab](https://github.com/nrkno/sofie-mos-connection/commit/f3806ab4e72a02b450e91ab19fbbfca34c605caa)) - - - - +- add stringifyMosObject, an utility-function used to convert objects containing IMOSString128 etc to strings ([f3806ab](https://github.com/nrkno/sofie-mos-connection/commit/f3806ab4e72a02b450e91ab19fbbfca34c605caa)) # [v3.0.0-alpha.0](https://github.com/nrkno/sofie-mos-connection/compare/2.0.1...v3.0.0-alpha.0) (2022-12-09) diff --git a/packages/helper/package.json b/packages/helper/package.json index 1d6fb625..a9f10b20 100644 --- a/packages/helper/package.json +++ b/packages/helper/package.json @@ -1,6 +1,6 @@ { "name": "@mos-connection/helper", - "version": "3.0.7", + "version": "4.0.0", "description": "Helper functions for the MOS-connection library", "main": "dist/index.js", "typings": "dist/index.d.ts", @@ -29,7 +29,7 @@ "/LICENSE" ], "dependencies": { - "@mos-connection/model": "3.0.7", + "@mos-connection/model": "4.0.0", "iconv-lite": "^0.6.3", "tslib": "^2.5.3", "xml-js": "^1.6.11", diff --git a/packages/model/CHANGELOG.md b/packages/model/CHANGELOG.md index 8f5045e7..c2806649 100644 --- a/packages/model/CHANGELOG.md +++ b/packages/model/CHANGELOG.md @@ -3,78 +3,50 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. -## [3.0.7](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.6...v3.0.7) (2023-12-27) - -**Note:** Version bump only for package @mos-connection/model +# [4.0.0](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.7...v4.0.0) (2024-02-02) +### Bug Fixes +- change how data fields is parsed, better handling of missing data. ([bf4a084](https://github.com/nrkno/sofie-mos-connection/commit/bf4a0845a7f836015aa452db45c023debef94480)) +- revert mosTime support of empty string. ([cfc036f](https://github.com/nrkno/sofie-mos-connection/commit/cfc036f5c2604ae193bc2d683e02ad2a9d6bb477)) +## [3.0.7](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.6...v3.0.7) (2023-12-27) +**Note:** Version bump only for package @mos-connection/model ## [3.0.5](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.4...3.0.5) (2023-12-18) - ### Bug Fixes -* Handle empty MOS time string ([85fbc88](https://github.com/nrkno/sofie-mos-connection/commit/85fbc886d7b577db07bece23efc53f6058a92a43)) - - - - +- Handle empty MOS time string ([85fbc88](https://github.com/nrkno/sofie-mos-connection/commit/85fbc886d7b577db07bece23efc53f6058a92a43)) ## [3.0.4](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.1...v3.0.4) (2023-06-09) **Note:** Version bump only for package @mos-connection/model - - - - ## [3.0.2](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.1...v3.0.2) (2023-03-27) **Note:** Version bump only for package @mos-connection/model - - - - # [3.0.0](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.3...v3.0.0) (2023-02-03) **Note:** Version bump only for package @mos-connection/model - - - - # [3.0.0-alpha.3](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.2...v3.0.0-alpha.3) (2023-01-27) **Note:** Version bump only for package @mos-connection/model - - - - # [3.0.0-alpha.2](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.0...v3.0.0-alpha.2) (2023-01-27) - ### Bug Fixes -* add stringifyMosObject, an utility-function used to convert objects containing IMOSString128 etc to strings ([f3806ab](https://github.com/nrkno/sofie-mos-connection/commit/f3806ab4e72a02b450e91ab19fbbfca34c605caa)) - - - - +- add stringifyMosObject, an utility-function used to convert objects containing IMOSString128 etc to strings ([f3806ab](https://github.com/nrkno/sofie-mos-connection/commit/f3806ab4e72a02b450e91ab19fbbfca34c605caa)) # [3.0.0-alpha.1](https://github.com/nrkno/sofie-mos-connection/compare/v3.0.0-alpha.0...3.0.0-alpha.1) (2023-01-27) - ### Bug Fixes -* add stringifyMosObject, an utility-function used to convert objects containing IMOSString128 etc to strings ([f3806ab](https://github.com/nrkno/sofie-mos-connection/commit/f3806ab4e72a02b450e91ab19fbbfca34c605caa)) - - - - +- add stringifyMosObject, an utility-function used to convert objects containing IMOSString128 etc to strings ([f3806ab](https://github.com/nrkno/sofie-mos-connection/commit/f3806ab4e72a02b450e91ab19fbbfca34c605caa)) # [v3.0.0-alpha.0](https://github.com/nrkno/sofie-mos-connection/compare/2.0.1...v3.0.0-alpha.0) (2022-12-09) diff --git a/packages/model/package.json b/packages/model/package.json index 6adfdf45..17ec4a6c 100644 --- a/packages/model/package.json +++ b/packages/model/package.json @@ -1,6 +1,6 @@ { "name": "@mos-connection/model", - "version": "3.0.7", + "version": "4.0.0", "description": "Types and enums for the mos-connection library", "main": "dist/index.js", "typings": "dist/index.d.ts", diff --git a/packages/quick-mos/package.json b/packages/quick-mos/package.json index 6cc8b76e..c5a9f128 100644 --- a/packages/quick-mos/package.json +++ b/packages/quick-mos/package.json @@ -39,8 +39,8 @@ "typescript": "~4.9.5" }, "dependencies": { - "@mos-connection/connector": "3.0.7", - "@mos-connection/model": "3.0.7", + "@mos-connection/connector": "4.0.0", + "@mos-connection/model": "4.0.0", "chokidar": "^3.5.3", "fast-clone": "^1.5.13", "tslib": "^2.5.3", diff --git a/yarn.lock b/yarn.lock index ae180503..899da16b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -962,12 +962,12 @@ __metadata: languageName: node linkType: hard -"@mos-connection/connector@3.0.7, @mos-connection/connector@workspace:packages/connector": +"@mos-connection/connector@4.0.0, @mos-connection/connector@workspace:packages/connector": version: 0.0.0-use.local resolution: "@mos-connection/connector@workspace:packages/connector" dependencies: - "@mos-connection/helper": 3.0.7 - "@mos-connection/model": 3.0.7 + "@mos-connection/helper": 4.0.0 + "@mos-connection/model": 4.0.0 "@sofie-automation/code-standard-preset": "*" iconv-lite: ^0.6.3 tslib: ^2.5.3 @@ -977,11 +977,11 @@ __metadata: languageName: unknown linkType: soft -"@mos-connection/helper@3.0.7, @mos-connection/helper@workspace:packages/helper": +"@mos-connection/helper@4.0.0, @mos-connection/helper@workspace:packages/helper": version: 0.0.0-use.local resolution: "@mos-connection/helper@workspace:packages/helper" dependencies: - "@mos-connection/model": 3.0.7 + "@mos-connection/model": 4.0.0 "@sofie-automation/code-standard-preset": "*" iconv-lite: ^0.6.3 tslib: ^2.5.3 @@ -991,7 +991,7 @@ __metadata: languageName: unknown linkType: soft -"@mos-connection/model@3.0.7, @mos-connection/model@workspace:packages/model": +"@mos-connection/model@4.0.0, @mos-connection/model@workspace:packages/model": version: 0.0.0-use.local resolution: "@mos-connection/model@workspace:packages/model" dependencies: @@ -6618,7 +6618,7 @@ __metadata: version: 0.0.0-use.local resolution: "mos-examples@workspace:packages/examples" dependencies: - "@mos-connection/connector": 3.0.7 + "@mos-connection/connector": 4.0.0 "@sofie-automation/code-standard-preset": "*" typescript: ~4.9.5 languageName: unknown @@ -7855,8 +7855,8 @@ __metadata: version: 0.0.0-use.local resolution: "quick-mos@workspace:packages/quick-mos" dependencies: - "@mos-connection/connector": 3.0.7 - "@mos-connection/model": 3.0.7 + "@mos-connection/connector": 4.0.0 + "@mos-connection/model": 4.0.0 "@sofie-automation/code-standard-preset": "*" "@types/node": ^20.10.5 "@types/underscore": ^1.11.5