-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [rules] Refactor EventObject to only have properties which have a value This allows `undefined` checks for the properties. Fixes the issue described in #134. Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * [README] Update for EventObject changes Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * [rules] Move ruleConfig JSDoc to extra typedef Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * [README] Correct EventObject Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * Move CHANGELOG to extra file Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * Update CHANGELOG Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * Update rules/rules.js: Address review comment Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Co-authored-by: Jonathan Gilbert <github.10.jgilbert@xoxy.net> Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * [rules] Extract logic for adding values from HashMap to function Addresses review comment. Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * [rules] Remove `command` from event object Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * [rules] Event object holds no data when Core provided no event data Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * [rules] Mark `state` var of Event object as deprecated Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * [rules] Mark `receivedTrigger` of Event Object as deprecated Signed-off-by: Florian Hotze <florianh_dev@icloud.com> * [rules] Remove `status` from Event object JSDoc Signed-off-by: Florian Hotze <florianh_dev@icloud.com> Co-authored-by: Jonathan Gilbert <github.10.jgilbert@xoxy.net>
- Loading branch information
1 parent
5376e87
commit 7a2946b
Showing
4 changed files
with
179 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Changelog | ||
|
||
## 2.0.0 (to be released) | ||
|
||
| Type | Namespace | Description | Reference | Breaking | | ||
|-------------|-----------|----------------------------------------------------------|------------------------------------------------|----------| | ||
| Bugfix | rules | Failed rule run logs a useful error message | https://github.com/openhab/openhab-js/pull/116 | No | | ||
| Enhancement | utils | Allow `dumpObject` to also dump own properties | https://github.com/openhab/openhab-js/pull/121 | No | | ||
| Bugfix | rules | Fix `removeItem` not working | https://github.com/openhab/openhab-js/pull/122 | No | | ||
| Enhancement | triggers | Add PWM Automation trigger | https://github.com/openhab/openhab-js/pull/126 | No | | ||
| Enhancement | triggers | Add PID Automation trigger | https://github.com/openhab/openhab-js/pull/131 | No | | ||
| Enhancement | things | Add Thing class & add `getThing`(s) | https://github.com/openhab/openhab-js/pull/132 | No | | ||
| Enhancement | rules | Refactor EventObject to only hold properties with values | TODO | **Yes** | | ||
|
||
Also see the [Release Milestone](https://github.com/openhab/openhab-js/milestone/1). | ||
|
||
## 1.2.3 | ||
|
||
Changelog is incomplete! | ||
|
||
| Namespace | Description | Reference | Breaking | | ||
|-----------|--------------------------------------------------------------------|------------------------------------------------|----------| | ||
| items | `addItem(...)` and `updateItem(...)` use `itemConfig` as parameter | https://github.com/openhab/openhab-js/pull/109 | **Yes** | | ||
| time | Add timeUtils | https://github.com/openhab/openhab-js/pull/101 | No | | ||
|
||
|
||
## 1.2.2 | ||
|
||
Changelog is incomplete! | ||
|
||
| Namespace | Description | Reference | Breaking | | ||
|-----------|---------------------------------------------------------------------|-----------------------------------------------|----------| | ||
| items | item.history.lastUpdate() returns `ZonedDateTime` instead of `Date` | https://github.com/openhab/openhab-js/pull/67 | **Yes** | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.