diff --git a/CHANGELOG.md b/CHANGELOG.md index 49913eafa..f5f490662 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 | diff --git a/README.md b/README.md index 506feccb8..bb29fc535 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/package-lock.json b/package-lock.json index 24ae9874d..b06db1b8f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "openhab", - "version": "4.9.0", + "version": "5.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "openhab", - "version": "4.9.0", + "version": "5.0.0", "license": "EPL-2.0", "dependencies": { "@js-joda/core": "^5.6.2", diff --git a/package.json b/package.json index 6797b0a8c..bd438de37 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/types/items/item-persistence.d.ts b/types/items/item-persistence.d.ts index cb8849afd..dbf8c1d04 100644 --- a/types/items/item-persistence.d.ts +++ b/types/items/item-persistence.d.ts @@ -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 null * if there is no persisted state for the given Item at the given timestamp, - * 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); /** @@ -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 null * if there is no persisted state for the given Item at the given timestamp, - * 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); /** @@ -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 null - * 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);