Skip to content

Commit e1d3e80

Browse files
committed
Publish 5.0.0
Signed-off-by: Florian Hotze <[email protected]>
1 parent cd3fc4e commit e1d3e80

File tree

5 files changed

+24
-14
lines changed

5 files changed

+24
-14
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 5.0.0
4+
5+
| Type | Namespace | Description | Reference | Breaking |
6+
|-------------|-----------|---------------------------------------------------------------------------|--------------------------------------------------------|----------|
7+
| Clean-Up | | Remove deprecated methods and fields | [#332](https://github.com/openhab/openhab-js/pull/332) | **Yes** |
8+
| Enhancement | `items` | `ItemHistory`: Adjust to core changes & Add new methods for future states | [#331](https://github.com/openhab/openhab-js/pull/331) | **Yes** |
9+
10+
Also see the [Release Milestone](https://github.com/openhab/openhab-js/milestone/25).
11+
312
## 4.9.0
413

514
| Type | Namespace | Description | Reference | Breaking |

README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ This will be used instead of the binding provided version.
8383

8484
## Compatibility
8585

86-
All `openhab-js` versions until 4.7.0 are fully compatible with openHAB 3.1.0 or newer!
87-
88-
`openhab-js` 4.7.1 or newer requires openHAB 4.1.1 or newer for full compatibility!
89-
`actions.ScriptExecution.createTimer` and type conversion when passing `Quantity` to a Java method expecting a `QuantityType` are known to not work.
90-
91-
openHAB 3.4.0 or newer requires at least `openhab-js` 3.1.0!
92-
openHAB 4.0.0(.M2) (or >= `SNAPSHOT #3391`) or newer requires at least `openhab-js` 4.2.1!
93-
openHAB 4.1.1 or newer requires at least `openhab-js` 4.7.2 for full compatibility!
86+
| openHAB version | Minimum `openhab-js` version | Maximum `openhab-js` version |
87+
|-----------------|------------------------------|------------------------------|
88+
| 3.2.x | 1.0.0 | 4.7.0 |
89+
| 3.3.x | 1.0.0 | 4.7.0 |
90+
| 3.4.x | 3.1.0 | 4.7.0 |
91+
| 4.0.x | 4.2.1 | 4.7.0 |
92+
| 4.1.0 | 4.2.1 | 4.7.0 |
93+
| 4.1.1 etc. | 4.7.2 | 4.9.0 |
94+
| 4.2.0 | 5.0.0 | - |
9495

9596
## Configuration
9697

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "openhab",
3-
"version": "4.9.0",
3+
"version": "5.0.0",
44
"description": "JavaScript Library for openHAB Automation",
55
"private": false,
66
"license": "EPL-2.0",

types/items/item-persistence.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ export class ItemPersistence {
333333
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
334334
* @returns {(number | null)} the evolution rate in percent (positive and negative) between then and now, or <code>null</code>
335335
* if there is no persisted state for the given Item at the given <code>timestamp</code>,
336-
* or if there is a state but it is zero (which would cause a divide-by-zero error)
336+
* or if there is a state, but it is zero (which would cause a divide-by-zero error)
337337
*/
338338
evolutionRateSince(timestamp: (time.ZonedDateTime | Date), serviceId?: string, ...args: any[]): (number | null);
339339
/**
@@ -343,7 +343,7 @@ export class ItemPersistence {
343343
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
344344
* @returns {(number | null)} the evolution rate in percent (positive and negative) between then and now, or <code>null</code>
345345
* if there is no persisted state for the given Item at the given <code>timestamp</code>,
346-
* or if there is a state but it is zero (which would cause a divide-by-zero error)
346+
* or if there is a state, but it is zero (which would cause a divide-by-zero error)
347347
*/
348348
evolutionRateUntil(timestamp: (time.ZonedDateTime | Date), serviceId?: string, ...args: any[]): (number | null);
349349
/**
@@ -353,7 +353,7 @@ export class ItemPersistence {
353353
* @param {(time.ZonedDateTime | Date)} end the end point in time
354354
* @param {string} [serviceId] optional persistence service ID, if omitted, the default persistence service will be used
355355
* @returns {(number | null)} the evolution rate in percent (positive and negative) in the given interval, or <code>null</code>
356-
* if there are no persisted states for the given Item at the given interval, or if there is a state #
356+
* if there are no persisted states for the given Item at the given interval, or if there is a state,
357357
* but it is zero (which would cause a divide-by-zero error)
358358
*/
359359
evolutionRateBetween(begin: (time.ZonedDateTime | Date), end: (time.ZonedDateTime | Date), serviceId?: string, ...args: any[]): (number | null);

0 commit comments

Comments
 (0)