|
| 1 | +--- |
| 2 | +title: Release notes 2.3.0 |
| 3 | +tags: [release_notes] |
| 4 | +published: true |
| 5 | +keywords: release notes, announcements, changelog |
| 6 | +summary: "Version 2.3.0 of Eclipse Ditto, released on 21.01.2022" |
| 7 | +permalink: release_notes_230.html |
| 8 | +--- |
| 9 | + |
| 10 | +Ditto **2.3.0** is API and [binary compatible](https://github.com/eclipse/ditto/blob/master/documentation/src/main/resources/architecture/DADR-0005-semantic-versioning.md) |
| 11 | +to prior Eclipse Ditto 2.x versions. |
| 12 | + |
| 13 | +## Changelog |
| 14 | + |
| 15 | +Eclipse Ditto 2.3.0 includes the following topics/enhancements: |
| 16 | + |
| 17 | +* HTTP API for "live" commands |
| 18 | +* Smart channel strategy for live/twin read access |
| 19 | +* Configurable allowing creation of entities (policies/things) based on namespace and authenticated subjects |
| 20 | +* Allow using `*` as a placeholder for the feature id in selected fields |
| 21 | + |
| 22 | +The following notable fixes are included: |
| 23 | + |
| 24 | +* Fix potential concurrent modification errors when using JavaScript payload mapping and global variables |
| 25 | +* Fix reconnect backoff for Kafka connections with authentication failures |
| 26 | +* Fix caching of JWTs in HTTP push connections |
| 27 | +* Fix potentially unreachable client actors in connections with `clientCount > 1` |
| 28 | +* Fix search inconsistencies for very active things during shard relocation (e.g. on rolling updates) |
| 29 | +* Fix that a Kafka connection with only targets remains "open" even if Kafka broker is not available |
| 30 | +* Allow usage of absolute domain paths ending with a "." as Kafka bootstrap servers |
| 31 | +* Ensure that Ditto pub/sub state is eventually consistent with a guaranteed upper time limit |
| 32 | + |
| 33 | +The following non-functional work is also included: |
| 34 | + |
| 35 | +* Update of several used dependencies: |
| 36 | + * Akka: `2.6.18` |
| 37 | + * Akka Management: `1.1.2` |
| 38 | + * Caffeine: `3.0.5` |
| 39 | + * Classindex: `3.11` |
| 40 | + * Cloudevents: `2.3.0` |
| 41 | + * HiveMQ MQTT client: `1.3.0` |
| 42 | + * Jackson: `2.12.6` |
| 43 | + * Logback: `1.2.10` |
| 44 | + * SLF4J: `1.7.32` |
| 45 | + * SSL config core: `0.4.3` |
| 46 | + * Typesafe config: `1.4.1` |
| 47 | + * Rhino JS engine: `1.7.14` |
| 48 | + |
| 49 | +<br/> |
| 50 | + |
| 51 | +For a complete list of all merged PRs, inspect the following milestones: |
| 52 | +* [merged pull requests for milestone 2.3.0](https://github.com/eclipse/ditto/pulls?q=is:pr+milestone:2.3.0) |
| 53 | + |
| 54 | +<br/> |
| 55 | +<br/> |
| 56 | + |
| 57 | +Compared to the latest release [2.2.0](release_notes_220.html), the following most notable changes, new features and |
| 58 | +bugfixes were added. |
| 59 | + |
| 60 | + |
| 61 | +### New features |
| 62 | + |
| 63 | +#### [HTTP API for "live" commands](https://github.com/eclipse/ditto/issues/106) |
| 64 | + |
| 65 | +Ditto's ["live" channel](protocol-twinlive.html#live) is now also available for commands invoked via HTTP API. |
| 66 | +See also the [blogpost covering that topic](2021-12-20-http-live-channel.html). |
| 67 | + |
| 68 | +To qualify a command (e.g. "modify thing" or "retrieve feature property") as a "live" command, the header or |
| 69 | +query parameter `channel=live` has to be specified. |
| 70 | + |
| 71 | +Live commands bypass the twin and go directly to the devices. |
| 72 | +However, an existing twin is still required for policy enforcement. |
| 73 | + |
| 74 | + |
| 75 | +#### [Smart channel strategy for live/twin read access](https://github.com/eclipse/ditto/issues/1228) |
| 76 | + |
| 77 | +Ditto adds support for selecting the "twin" or the "live" channel for thing query commands based on an |
| 78 | +[RQL condition](basic-rql.html) of a newly added parameter |
| 79 | +[live channel condition](basic-conditional-requests.html#live-channel-condition). |
| 80 | +See also the [blogpost covering that topic](2021-12-22-live-channel-condition.html). |
| 81 | + |
| 82 | +In addition, a new [payload mapper](connectivity-mapping.html#updatetwinwithliveresponse-mapper) automatically updating |
| 83 | +the twin based on received live data from devices was added. |
| 84 | + |
| 85 | +#### [Configurable allowing creation of entities based on namespace and authenticated subjects](https://github.com/eclipse/ditto/pull/1251) |
| 86 | + |
| 87 | +This added feature allows configuring restrictions, which [authenticated subjects](basic-auth.html#authenticated-subjects) |
| 88 | +may create new entities (things / policies) in which namespaces. |
| 89 | + |
| 90 | +#### [Allow using `*` as a placeholder for the feature id in selected fields](https://github.com/eclipse/ditto/pull/1277) |
| 91 | + |
| 92 | +When selecting for certain [`fields` of a thing](httpapi-concepts.html#field-selector-with-wildcard) or when using |
| 93 | +[signal enrichment (extraFields)](basic-enrichment.html) in order to add more (unchanged) data from a twin to e.g. events |
| 94 | +the wildcard `*` can now be used in order to select all features of a thing without the need to know their feature names. |
| 95 | + |
| 96 | + |
| 97 | +### Bugfixes |
| 98 | + |
| 99 | +Several bugs in Ditto 2.2.x were fixed for 2.3.0. |
| 100 | +This is a complete list of the |
| 101 | +[merged pull requests](https://github.com/eclipse/ditto/pulls?q=is%3Apr+milestone%3A2.3.0), including the fixed bugs. |
| 102 | + |
| 103 | + |
| 104 | +## Migration notes |
| 105 | + |
| 106 | +No migrations required updating from Ditto 2.2.x |
| 107 | + |
| 108 | +## Ditto clients |
| 109 | + |
| 110 | +For a complete list of all merged client PRs, inspect the following milestones: |
| 111 | +* [merged pull requests for milestone 2.3.0](https://github.com/eclipse/ditto-clients/pulls?q=is:pr+milestone:2.3.0) |
| 112 | + |
| 113 | +### Ditto Java SDK |
| 114 | + |
| 115 | +No mentionable changes/enhancements/bugfixes. |
| 116 | + |
| 117 | +### Ditto JavaScript SDK |
| 118 | + |
| 119 | +See separate [Changelog](https://github.com/eclipse/ditto-clients/blob/master/javascript/CHANGELOG.md) of JS client. |
| 120 | + |
| 121 | + |
| 122 | +## Roadmap |
| 123 | + |
| 124 | +Looking forward, the current plans for Ditto 2.4.0 are: |
| 125 | + |
| 126 | +* Update service code to Java 17 (APIs stay at Java 8) + run Ditto containers with Java 17 runtime |
| 127 | +* Continue work on the started [WoT (Web of Things) integration](https://github.com/eclipse/ditto/pull/1270) |
0 commit comments