From 68793669bffbe86bc1493b78a07da14463255fb3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 16 Mar 2022 10:28:19 -0700 Subject: [PATCH] commit by Octane (#3) * Release 1.2.1 (#85) * fix: unsubrscribe data provider on component updates * Release 1.2.1 Co-authored-by: Norbert Nader * fix: resolves #83 (#87) * fix: resolves #83 * Update index.ts Co-authored-by: Norbert Nader Co-authored-by: Norbert Nader Co-authored-by: Norbert Nader --- CHANGELOG.md | 11 +++++++++++ lerna.json | 2 +- packages/components/CHANGELOG.md | 11 +++++++++++ packages/components/package.json | 8 ++++---- .../src/components/iot-bar-chart/iot-bar-chart.tsx | 1 + .../components/src/components/iot-kpi/iot-kpi.tsx | 1 + .../src/components/iot-line-chart/iot-line-chart.tsx | 1 + .../iot-scatter-chart/iot-scatter-chart.tsx | 1 + .../components/iot-status-grid/iot-status-grid.tsx | 1 + .../iot-status-timeline/iot-status-timeline.tsx | 1 + .../components/src/components/iot-table/iot-table.tsx | 1 + packages/components/src/index.ts | 1 + packages/core/CHANGELOG.md | 11 +++++++++++ packages/core/package.json | 2 +- packages/react-components/CHANGELOG.md | 11 +++++++++++ packages/react-components/package.json | 4 ++-- packages/related-table/CHANGELOG.md | 11 +++++++++++ packages/related-table/package.json | 2 +- packages/source-iotsitewise/CHANGELOG.md | 11 +++++++++++ packages/source-iotsitewise/package.json | 4 ++-- 20 files changed, 85 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 073ea60b6..4ab699ed7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 1.2.1 (2022-03-11) + + +### Bug Fixes + +* unsubrscribe data provider on component updates ([a9154ef](https://github.com/awslabs/iot-app-kit/commit/a9154eff3f3fcd55eb5ae501354de8530f706108)) + + + + + # 1.2.0 (2022-03-03) diff --git a/lerna.json b/lerna.json index fd5446acd..94a70ec4a 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "version": "1.2.0", + "version": "1.2.1", "packages": [ "packages/*" ], diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 4c11ce0ba..e0c24a3a3 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 1.2.1 (2022-03-11) + + +### Bug Fixes + +* unsubrscribe data provider on component updates ([a9154ef](https://github.com/awslabs/iot-app-kit/commit/a9154eff3f3fcd55eb5ae501354de8530f706108)) + + + + + # 1.2.0 (2022-03-03) diff --git a/packages/components/package.json b/packages/components/package.json index a42c1b5d5..6bb92e975 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "1.2.0", + "version": "1.2.1", "description": "IoT App Kit Components", "main": "dist/index.cjs.js", "module": "dist/custom-elements/index.js", @@ -41,9 +41,9 @@ "@awsui/collection-hooks": "^1.0.0", "@awsui/components-react": "^3.0.0", "@awsui/design-tokens": "^3.0.0", - "@iot-app-kit/core": "^1.2.0", - "@iot-app-kit/related-table": "^1.2.0", - "@iot-app-kit/source-iotsitewise": "^1.2.0", + "@iot-app-kit/core": "^1.2.1", + "@iot-app-kit/related-table": "^1.2.1", + "@iot-app-kit/source-iotsitewise": "^1.2.1", "@stencil/core": "^2.7.0", "@synchro-charts/core": "^2.0.0", "styled-components": "^5.3.0" diff --git a/packages/components/src/components/iot-bar-chart/iot-bar-chart.tsx b/packages/components/src/components/iot-bar-chart/iot-bar-chart.tsx index a4dd13eb9..b47fb94d7 100644 --- a/packages/components/src/components/iot-bar-chart/iot-bar-chart.tsx +++ b/packages/components/src/components/iot-bar-chart/iot-bar-chart.tsx @@ -66,6 +66,7 @@ export class IotBarChart { @Watch('settings') @Watch('viewport') private onPropUpdate() { + this.provider.unsubscribe(); this.buildProvider(); } diff --git a/packages/components/src/components/iot-kpi/iot-kpi.tsx b/packages/components/src/components/iot-kpi/iot-kpi.tsx index 95ba6d3c9..a8af09c4a 100644 --- a/packages/components/src/components/iot-kpi/iot-kpi.tsx +++ b/packages/components/src/components/iot-kpi/iot-kpi.tsx @@ -60,6 +60,7 @@ export class IotKpi { @Watch('settings') @Watch('viewport') private onPropUpdate() { + this.provider.unsubscribe(); this.buildProvider(); } diff --git a/packages/components/src/components/iot-line-chart/iot-line-chart.tsx b/packages/components/src/components/iot-line-chart/iot-line-chart.tsx index d65a1d061..c438bdd0e 100644 --- a/packages/components/src/components/iot-line-chart/iot-line-chart.tsx +++ b/packages/components/src/components/iot-line-chart/iot-line-chart.tsx @@ -60,6 +60,7 @@ export class IotLineChart { @Watch('settings') @Watch('viewport') private onPropUpdate() { + this.provider.unsubscribe(); this.buildProvider(); } diff --git a/packages/components/src/components/iot-scatter-chart/iot-scatter-chart.tsx b/packages/components/src/components/iot-scatter-chart/iot-scatter-chart.tsx index b1461d09f..8a24b8bad 100644 --- a/packages/components/src/components/iot-scatter-chart/iot-scatter-chart.tsx +++ b/packages/components/src/components/iot-scatter-chart/iot-scatter-chart.tsx @@ -59,6 +59,7 @@ export class IotScatterChart { @Watch('settings') @Watch('viewport') private onPropUpdate() { + this.provider.unsubscribe(); this.buildProvider(); } diff --git a/packages/components/src/components/iot-status-grid/iot-status-grid.tsx b/packages/components/src/components/iot-status-grid/iot-status-grid.tsx index 45c95a3f7..0fc4b7d30 100644 --- a/packages/components/src/components/iot-status-grid/iot-status-grid.tsx +++ b/packages/components/src/components/iot-status-grid/iot-status-grid.tsx @@ -60,6 +60,7 @@ export class IotStatusGrid { @Watch('settings') @Watch('viewport') private onPropUpdate() { + this.provider.unsubscribe(); this.buildProvider(); } diff --git a/packages/components/src/components/iot-status-timeline/iot-status-timeline.tsx b/packages/components/src/components/iot-status-timeline/iot-status-timeline.tsx index b8b18b125..5dcbcad38 100644 --- a/packages/components/src/components/iot-status-timeline/iot-status-timeline.tsx +++ b/packages/components/src/components/iot-status-timeline/iot-status-timeline.tsx @@ -61,6 +61,7 @@ export class IotStatusTimeline { @Watch('settings') @Watch('viewport') private onPropUpdate() { + this.provider.unsubscribe(); this.buildProvider(); } diff --git a/packages/components/src/components/iot-table/iot-table.tsx b/packages/components/src/components/iot-table/iot-table.tsx index f7a9207d7..ccb58b426 100644 --- a/packages/components/src/components/iot-table/iot-table.tsx +++ b/packages/components/src/components/iot-table/iot-table.tsx @@ -60,6 +60,7 @@ export class IotTable { @Watch('settings') @Watch('viewport') private onPropUpdate() { + this.provider.unsubscribe(); this.buildProvider(); } diff --git a/packages/components/src/index.ts b/packages/components/src/index.ts index 7531c10b8..88b0c88f8 100644 --- a/packages/components/src/index.ts +++ b/packages/components/src/index.ts @@ -1 +1,2 @@ +export { COMPARISON_OPERATOR } from '@synchro-charts/core'; export { Components, JSX } from './components'; diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index c20623417..bea041b8b 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 1.2.1 (2022-03-11) + + +### Bug Fixes + +* unsubrscribe data provider on component updates ([a9154ef](https://github.com/awslabs/iot-app-kit/commit/a9154eff3f3fcd55eb5ae501354de8530f706108)) + + + + + # 1.2.0 (2022-03-03) diff --git a/packages/core/package.json b/packages/core/package.json index ae0b8da25..7aa0c3bac 100755 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -4,7 +4,7 @@ "publishConfig": { "access": "public" }, - "version": "1.2.0", + "version": "1.2.1", "description": "IoT Application Kit core", "main": "./dist/index.cj.js", "module": "./dist/index.js", diff --git a/packages/react-components/CHANGELOG.md b/packages/react-components/CHANGELOG.md index 9383c104c..e4fed26e7 100644 --- a/packages/react-components/CHANGELOG.md +++ b/packages/react-components/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 1.2.1 (2022-03-11) + + +### Bug Fixes + +* unsubrscribe data provider on component updates ([a9154ef](https://github.com/awslabs/iot-app-kit/commit/a9154eff3f3fcd55eb5ae501354de8530f706108)) + + + + + # 1.2.0 (2022-03-03) diff --git a/packages/react-components/package.json b/packages/react-components/package.json index d063d1d0e..e15b84715 100644 --- a/packages/react-components/package.json +++ b/packages/react-components/package.json @@ -5,7 +5,7 @@ "access": "public" }, "sideEffects": false, - "version": "1.2.0", + "version": "1.2.1", "description": "React specific wrapper for IoT Application Kit", "author": { "name": "Amazon Web Services", @@ -41,7 +41,7 @@ "typescript": "^3.3.4000" }, "dependencies": { - "@iot-app-kit/components": "^1.2.0" + "@iot-app-kit/components": "^1.2.1" }, "peerDependencies": { "react": "^17.0.2", diff --git a/packages/related-table/CHANGELOG.md b/packages/related-table/CHANGELOG.md index bed4481fa..54d3b213c 100644 --- a/packages/related-table/CHANGELOG.md +++ b/packages/related-table/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 1.2.1 (2022-03-11) + + +### Bug Fixes + +* unsubrscribe data provider on component updates ([a9154ef](https://github.com/awslabs/iot-app-kit/commit/a9154eff3f3fcd55eb5ae501354de8530f706108)) + + + + + # 1.2.0 (2022-03-03) diff --git a/packages/related-table/package.json b/packages/related-table/package.json index a44d31479..01e03b81f 100644 --- a/packages/related-table/package.json +++ b/packages/related-table/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "1.2.0", + "version": "1.2.1", "description": "IoT Application Kit - Related Table component", "license": "Apache-2.0", "main": "dist/index.js", diff --git a/packages/source-iotsitewise/CHANGELOG.md b/packages/source-iotsitewise/CHANGELOG.md index e1211e31d..67dddd6ef 100644 --- a/packages/source-iotsitewise/CHANGELOG.md +++ b/packages/source-iotsitewise/CHANGELOG.md @@ -3,6 +3,17 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## 1.2.1 (2022-03-11) + + +### Bug Fixes + +* unsubrscribe data provider on component updates ([a9154ef](https://github.com/awslabs/iot-app-kit/commit/a9154eff3f3fcd55eb5ae501354de8530f706108)) + + + + + # 1.2.0 (2022-03-03) diff --git a/packages/source-iotsitewise/package.json b/packages/source-iotsitewise/package.json index c4876076f..5c77600a8 100644 --- a/packages/source-iotsitewise/package.json +++ b/packages/source-iotsitewise/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "1.2.0", + "version": "1.2.1", "description": "AWS IoT SiteWise source for IoT Application Kit", "homepage": "https://github.com/awslabs/iot-app-kit#readme", "license": "Apache-2.0", @@ -38,7 +38,7 @@ }, "dependencies": { "@aws-sdk/client-iotsitewise": "^3.39.0", - "@iot-app-kit/core": "^1.2.0", + "@iot-app-kit/core": "^1.2.1", "@rollup/plugin-typescript": "^8.3.0", "@synchro-charts/core": "^1.1.1", "flush-promises": "^1.0.2",