Skip to content

Commit

Permalink
Publish 5.0.0
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed May 5, 2024
1 parent cd3fc4e commit e1d3e80
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 14 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Changelog

## 5.0.0

| Type | Namespace | Description | Reference | Breaking |
|-------------|-----------|---------------------------------------------------------------------------|--------------------------------------------------------|----------|
| Clean-Up | | Remove deprecated methods and fields | [#332](https://github.com/openhab/openhab-js/pull/332) | **Yes** |
| Enhancement | `items` | `ItemHistory`: Adjust to core changes & Add new methods for future states | [#331](https://github.com/openhab/openhab-js/pull/331) | **Yes** |

Also see the [Release Milestone](https://github.com/openhab/openhab-js/milestone/25).

## 4.9.0

| Type | Namespace | Description | Reference | Breaking |
Expand Down
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,15 @@ This will be used instead of the binding provided version.

## Compatibility

All `openhab-js` versions until 4.7.0 are fully compatible with openHAB 3.1.0 or newer!

`openhab-js` 4.7.1 or newer requires openHAB 4.1.1 or newer for full compatibility!
`actions.ScriptExecution.createTimer` and type conversion when passing `Quantity` to a Java method expecting a `QuantityType` are known to not work.

openHAB 3.4.0 or newer requires at least `openhab-js` 3.1.0!
openHAB 4.0.0(.M2) (or >= `SNAPSHOT #3391`) or newer requires at least `openhab-js` 4.2.1!
openHAB 4.1.1 or newer requires at least `openhab-js` 4.7.2 for full compatibility!
| openHAB version | Minimum `openhab-js` version | Maximum `openhab-js` version |
|-----------------|------------------------------|------------------------------|
| 3.2.x | 1.0.0 | 4.7.0 |
| 3.3.x | 1.0.0 | 4.7.0 |
| 3.4.x | 3.1.0 | 4.7.0 |
| 4.0.x | 4.2.1 | 4.7.0 |
| 4.1.0 | 4.2.1 | 4.7.0 |
| 4.1.1 etc. | 4.7.2 | 4.9.0 |
| 4.2.0 | 5.0.0 | - |

## Configuration

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "openhab",
"version": "4.9.0",
"version": "5.0.0",
"description": "JavaScript Library for openHAB Automation",
"private": false,
"license": "EPL-2.0",
Expand Down
6 changes: 3 additions & 3 deletions types/items/item-persistence.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ export class ItemPersistence {
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
* @returns {(number | null)} the evolution rate in percent (positive and negative) between then and now, or <code>null</code>
* if there is no persisted state for the given Item at the given <code>timestamp</code>,
* or if there is a state but it is zero (which would cause a divide-by-zero error)
* or if there is a state, but it is zero (which would cause a divide-by-zero error)
*/
evolutionRateSince(timestamp: (time.ZonedDateTime | Date), serviceId?: string, ...args: any[]): (number | null);
/**
Expand All @@ -343,7 +343,7 @@ export class ItemPersistence {
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
* @returns {(number | null)} the evolution rate in percent (positive and negative) between then and now, or <code>null</code>
* if there is no persisted state for the given Item at the given <code>timestamp</code>,
* or if there is a state but it is zero (which would cause a divide-by-zero error)
* or if there is a state, but it is zero (which would cause a divide-by-zero error)
*/
evolutionRateUntil(timestamp: (time.ZonedDateTime | Date), serviceId?: string, ...args: any[]): (number | null);
/**
Expand All @@ -353,7 +353,7 @@ export class ItemPersistence {
* @param {(time.ZonedDateTime | Date)} end the end point in time
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
* @returns {(number | null)} the evolution rate in percent (positive and negative) in the given interval, or <code>null</code>
* if there are no persisted states for the given Item at the given interval, or if there is a state #
* if there are no persisted states for the given Item at the given interval, or if there is a state,
* but it is zero (which would cause a divide-by-zero error)
*/
evolutionRateBetween(begin: (time.ZonedDateTime | Date), end: (time.ZonedDateTime | Date), serviceId?: string, ...args: any[]): (number | null);
Expand Down

0 comments on commit e1d3e80

Please sign in to comment.