From 44415af9acd17a1ad0d68d4058d28433ab999632 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Julian=20B=C3=A4ume?= <julian.baeume@open-xchange.com>
Date: Fri, 27 Oct 2023 15:49:13 +0200
Subject: [PATCH] Release 2.0.0 (Helm chart: 3.0.0)

---
 CHANGELOG.md                       | 43 +++++++++++++++++++++++++++++-
 helm/core-ui-middleware/Chart.yaml |  4 +--
 package.json                       |  9 +++----
 3 files changed, 47 insertions(+), 9 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index c94ed7e..e0afd1f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,46 @@ All notable changes to this project will be documented in this file.
 
 ## [Unreleased]
 
+## [2.0.0] - 2023-10-27
+
+### Added
+
+- Gauge for Redis version [`a738be8`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/a738be849f7716d719d99369d746966c4c2b05c6)
+- Logging Endpoint for identifying code loading issues [`70967e3`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/70967e3566f51443821682eb961005caeeeed84e)
+- More log output for possible file serving errors [`1fa1aaa`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/1fa1aaaf79293490eb3335dd67535e3fdc501a0a)
+- Redis memory gauge [`d03809c`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/d03809c8519980146678134b3350d92e6cd89bce)
+
+### Changed
+
+- [`OXUI-1345`](https://jira.open-xchange.com/browse/OXUI-1345): Refactor cache handling [`a1495f4`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/a1495f40cf79b2a59ac8878f27fb8bbabeb9ac41)
+  - Introduce two separate roles for middleware deployments:
+      - Ui-middleware: read from redis only, listen to version updates, can easily be scaled
+      - Updater: split out all code that writes to redis, no need to scale &gt; 1
+- **Breaking change:** Redis Configuration [`f25cf88`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/f25cf886b59fcebd412535406b452c47b601cde2)
+  - Redis is now mandatory and enabled by default
+  - Added Sentinel, Standalone and Cluster support
+  - Standalone mode with sidecar is used by default
+    - If no host(s) are configured, a redis sidecar is injected into the deployment
+    - No extra configuration needed
+    - This is intended for development and does not scale.
+  - Helm values have changed, see README.md:
+    - `Redis.host` has been renamed to `redis.hosts` and expects a list of strings with the following pattern: &lt;localhost:6379&gt; (needed for sentinel and cluster modes)
+    - `Redis.port` has been removed, see `redis.hosts`
+- Error handling improved [`aa43d2a`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/aa43d2a50fc5e0629b7a1b6326ffddbbf706d848)
+- Explicitly set content-type to utf-8 for javascript files [`e785c24`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/e785c241ec96296f1be564c9515691fc774f3b80)
+- Ingress is now disabled by default [`e8c6664`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/e8c6664ace9db8aa89f79f42a1a94822a75b3c0e)
+- Reconnect common redis client if redis is not reachable [`1e391b4`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/1e391b4582e15ab8ea386babfbf89222210b0df5)
+- Renamed monitoring port to follow Istio naming convention [`10876a1`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/10876a1435e40656be24138af90838532e4e6b7f)
+- Show cache content information on default ui-mw dashboard [`c97b2e9`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/c97b2e925994698739fd72f11028eb0865fbbf01)
+- UI Middleware is published under AGPL 3 [`0cc3886`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/0cc388647a87029d8a8e9ddc03de767c39b9c944)
+- Update to node 20 [`3ec46f4`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/3ec46f43603641fa934d0dfd0692c8bf7b11bcb9)
+
+### Fixed
+
+- [`OXUI-1330`](https://jira.open-xchange.com/browse/OXUI-1330): Log aggregate errors seperately [`dfbe69a`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/dfbe69afbc3a1f510a240ed3a9deef587638f03b)
+- Faulty routing when running on different app root [`d647697`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/d647697c8ee2bc9d3d271ed9aa9973ab3c4fb6b7)
+- Monitoring port name for istio to pick things up [`adab68d`](https://gitlab.open-xchange.com/frontend/ui-middleware/commit/adab68d11c3ca4b2579cf02e755b4bcd55e67026)
+
 ## [1.8.0] - 2023-04-06
 
 ### Added
@@ -208,7 +248,7 @@ All notable changes to this project will be documented in this file.
 
 - Start changelog
 
-[unreleased]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.8.0...main
+[unreleased]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/2.0.0...main
 [1.3.5]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.3.3...1.3.5
 [1.3.4]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.3.3...1.3.4
 [1.3.3]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.3.2...1.3.3
@@ -221,6 +261,7 @@ All notable changes to this project will be documented in this file.
 [1.1.236708]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.1.236707...1.1.236708
 [1.1.236707]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.1.0...1.1.236707
 
+[2.0.0]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.8.0...2.0.0
 [1.8.0]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.7.0...1.8.0
 [1.7.0]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.6.0...1.7.0
 [1.6.0]: https://gitlab.open-xchange.com/frontend/ui-middleware/compare/1.5.1...1.6.0
diff --git a/helm/core-ui-middleware/Chart.yaml b/helm/core-ui-middleware/Chart.yaml
index 4165966..d0c7504 100644
--- a/helm/core-ui-middleware/Chart.yaml
+++ b/helm/core-ui-middleware/Chart.yaml
@@ -15,13 +15,13 @@ type: application
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
 # Versions are expected to follow Semantic Versioning (https://semver.org/)
-version: 2.1.1
+version: 3.0.0
 
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application. Versions are not expected to
 # follow Semantic Versioning. They should reflect the version the application is using.
 # It is recommended to use it with quotes.
-appVersion: "1.8.0"
+appVersion: "2.0.0"
 dependencies:
   - name: ox-common
     version: ~1.0.33
diff --git a/package.json b/package.json
index cc9cb82..555e8ac 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
   "name": "@open-xchange/ui-middleware",
-  "version": "1.8.0",
+  "version": "2.0.0",
   "description": "Provides a combined manifest.json",
   "type": "module",
   "main": "src/index.js",
@@ -49,6 +49,8 @@
     "testdouble": "^3.20.0"
   },
   "resolutions": {
+    "semver": "^7.5.2",
+    "debug": "^4.3.4",
     "json5": "^2.2.2"
   },
   "lint-staged": {
@@ -83,10 +85,5 @@
     "loader": "testdouble",
     "exit": true,
     "recursive": true
-  },
-  "resolutions": {
-    "semver": "^7.5.2",
-    "debug": "^4.3.4",
-    "json5": "^2.2.2"
   }
 }
-- 
GitLab