From: Jérôme Benoit Date: Wed, 22 Apr 2026 22:04:02 +0000 (+0200) Subject: chore: release main (#1786) X-Git-Tag: cli@v4.5.0 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=86cfa48d6891a2311d7f1a9586e15612ccf563ca;p=e-mobility-charging-stations-simulator.git chore: release main (#1786) * chore: release main * [autofix.ci] apply automated fixes --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- diff --git a/.github/release-please/manifest.json b/.github/release-please/manifest.json index 0454f48f..f03c4c22 100644 --- a/.github/release-please/manifest.json +++ b/.github/release-please/manifest.json @@ -1,7 +1,7 @@ { - ".": "4.4.0", - "ui/common": "4.4.0", - "ui/cli": "4.4.0", - "ui/web": "4.4.0", - "tests/ocpp-server": "4.4.0" + ".": "4.5.0", + "ui/common": "4.5.0", + "ui/cli": "4.5.0", + "ui/web": "4.5.0", + "tests/ocpp-server": "4.5.0" } diff --git a/CHANGELOG.md b/CHANGELOG.md index b7eb6e7c..8eb9cc01 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,50 @@ # Changelog +## [4.5.0](https://github.com/SAP/e-mobility-charging-stations-simulator/compare/simulator@v4.4.0...simulator@v4.5.0) (2026-04-22) + +### 🚀 Features + +- **ocpp:** implement Local Auth List Management Profile (GetLocalListVersion, SendLocalList) ([#1782](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1782)) ([34bbf33](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/34bbf3346d01f73e6de921bda734f05a029466dd)) +- **ui-server:** allow override of station identity and CSMS credentials in addChargingStations ([#1802](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1802)) ([f23ba15](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/f23ba158a146ac3a0aedd85195c16e4d4595acd9)) +- **ui:** add CLI client and shared UI common library ([#1789](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1789)) ([94b898b](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/94b898b618410975a64b9e39b076a3909391dbf6)) + +### 🐞 Bug Fixes + +- **cli:** make high-level OCPP commands version-aware ([#1801](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1801)) ([804dce7](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/804dce720fd281de52499510cba6d8cbb01fdf0d)) +- **deps:** update all non-major dependencies ([#1785](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1785)) ([776ac75](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/776ac75627d8f2355956447b0dcae3021b5cf300)) +- **deps:** update all non-major dependencies ([#1792](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1792)) ([eeeb437](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/eeeb43740e3f30fd341a687019ba6606398467f7)) +- **deps:** update all non-major dependencies ([#1803](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1803)) ([dbb9717](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/dbb97172a39a56c1f4370984dce1d70c02b206cc)) +- **deps:** update all non-major dependencies ([#1807](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1807)) ([87099e8](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/87099e81af13f3ec514e8d69ecfd1aa09b42c224)) +- **deps:** update all non-major dependencies to ^6.6.13 ([#1787](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1787)) ([6249ecd](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/6249ecdaefbe5a33fe75e7a47f2affcb45d1b31f)) +- **deps:** update dependency basic-ftp to ^5.3.0 ([#1795](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1795)) ([fb10843](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/fb108431e28355def575296ff65c5b3ab14cb99c)) +- **deps:** update dependency ora to v9 ([#1793](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1793)) ([d4ad3f5](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/d4ad3f5e9da0f6c5befd25250e81b6f446d4da06)) +- enforce RFC 7617 colon-free username across all Basic Auth paths ([5c1f885](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/5c1f8850d9983d941187269741aee535841412c3)) +- **ocpp2:** restore connector cleanup in TransactionEvent(Ended) response handler ([80a3a80](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/80a3a80f7f6927d3355520a88d003d516c04711b)) +- **tests:** sync mock signatures with real async implementations ([02ff5f5](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/02ff5f5788a9205d56e049ac5c6303c81b78c021)) +- **tests:** use async mock callbacks for all async method mocks ([422c08e](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/422c08e73486e84c7ba182b6cc2b622eac3586c5)) +- **ui-server:** harden CSMS credential handling in supervision URL flow ([c7572fb](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/c7572fb49c029ab9458898e08939b2845687b609)) +- **ui-server:** harmonize setSupervisionUrl semantics and text descriptions ([ab9d929](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/ab9d9299b910864d795696e160181a9983dd0309)) +- **ui-server:** reject colon in configured authentication username (RFC 7617) ([697f7af](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/697f7af1b98ad9c93194bf77361d613469126da4)) +- **ui-server:** reject empty password in basic auth token validation (RFC 7613 §4.1) ([45624f2](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/45624f2acecdaf37a67963a45f8ffa7816fbcfdd)) + +### ✨ Polish + +- fix phantom errorMessage, merge imports, harmonize Docker configs ([18dc121](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/18dc1211f776e966b36417f47aa191c248dea183)) +- remove redundant EmptyObject from CommandResponse union ([2a14332](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/2a14332c95db3d4b81d4f9fb453a876f59a4ff33)) +- **tests:** replace re-export hub with direct imports ([8c7ce13](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/8c7ce130606b38a3e5fd9c060f59bac40d24186d)) +- use charging-station barrel for buildConfigKey in OCPPServiceUtils ([583e9c0](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/583e9c06358450077cb1eec28caa9ecb3166d06b)) +- **web:** migrate types to ui-common + UIClient internals to WebSocketClient ([2f44afe](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/2f44afef5abc491c3bfe600efe9b6a87be0522d2)) + +### 📚 Documentation + +- add CLI section to root README alongside Web UI ([a269f3b](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/a269f3b56c0c58e91eb37dfcb7cffbdc18de9d4e)) +- add monorepo structure to copilot instructions, clarify command scopes ([d7ef329](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/d7ef32996398570fd53ecd8850d25d4ad43995ff)) +- clean up agent memories — declarative facts only, no narrative justifications ([dbd8645](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/dbd8645ba34915dc24754e165e632066e65191c2)) +- harmonize project memories with current codebase state ([28dcc16](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/28dcc164724f899e63df25b7b76f657426e99e13)) +- update agent memories with local auth list, QMD integration, and convention fixes ([9b06751](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/9b06751c87a878d476ed39fb297d0e5ff6e6369f)) +- update AuthHelpers description in project overview memory ([ba4033d](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/ba4033d39f98416c6fc270004de21eef8e5e7bc9)) +- update openspec config with UI Common and CLI sub-projects ([8a15c3c](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/8a15c3c5d6591b7e40fea04352126e30d7407e55)) + ## [4.4.0](https://github.com/SAP/e-mobility-charging-stations-simulator/compare/simulator@v4.3.1...simulator@v4.4.0) (2026-04-07) ### 🚀 Features diff --git a/package.json b/package.json index 8b660198..eadfd514 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package", "name": "e-mobility-charging-stations-simulator", - "version": "4.4.0", + "version": "4.5.0", "engines": { "node": ">=22.0.0", "pnpm": ">=10.9.0" diff --git a/sonar-project.properties b/sonar-project.properties index 0f140a20..b409668c 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -4,7 +4,7 @@ sonar.organization=sap-1 # This is the name and version displayed in the SonarCloud UI. sonar.projectName=e-mobility-charging-stations-simulator # x-release-please-start-version -sonar.projectVersion=4.4.0 +sonar.projectVersion=4.5.0 # x-release-please-end # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. diff --git a/tests/ocpp-server/CHANGELOG.md b/tests/ocpp-server/CHANGELOG.md index 00b87340..60a3dd6c 100644 --- a/tests/ocpp-server/CHANGELOG.md +++ b/tests/ocpp-server/CHANGELOG.md @@ -1,5 +1,16 @@ # Changelog +## [4.5.0](https://github.com/SAP/e-mobility-charging-stations-simulator/compare/ocpp-server@v4.4.0...ocpp-server@v4.5.0) (2026-04-22) + +### 🚀 Features + +- **ocpp:** implement Local Auth List Management Profile (GetLocalListVersion, SendLocalList) ([#1782](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1782)) ([34bbf33](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/34bbf3346d01f73e6de921bda734f05a029466dd)) + +### 🐞 Bug Fixes + +- **deps:** update all non-major dependencies ([#1785](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1785)) ([776ac75](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/776ac75627d8f2355956447b0dcae3021b5cf300)) +- **deps:** update all non-major dependencies ([#1807](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1807)) ([87099e8](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/87099e81af13f3ec514e8d69ecfd1aa09b42c224)) + ## [4.4.0](https://github.com/SAP/e-mobility-charging-stations-simulator/compare/ocpp-server@v4.3.1...ocpp-server@v4.4.0) (2026-04-07) ### 🚀 Features diff --git a/tests/ocpp-server/pyproject.toml b/tests/ocpp-server/pyproject.toml index 498a1cc2..08b3e245 100644 --- a/tests/ocpp-server/pyproject.toml +++ b/tests/ocpp-server/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ocpp-server" -version = "4.4.0" +version = "4.5.0" description = "OCPP2 mock server" authors = [{ name = "Jérôme Benoit", email = "jerome.benoit@sap.com" }] readme = "README.md" diff --git a/ui/cli/CHANGELOG.md b/ui/cli/CHANGELOG.md new file mode 100644 index 00000000..439cc923 --- /dev/null +++ b/ui/cli/CHANGELOG.md @@ -0,0 +1,49 @@ +# Changelog + +## [4.5.0](https://github.com/SAP/e-mobility-charging-stations-simulator/compare/cli@v4.4.0...cli@v4.5.0) (2026-04-22) + +### 🚀 Features + +- **cli:** display failure reasons in human-readable table output ([fbc4346](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/fbc4346d92ec7c2f2ba705f125468f0d631495cd)) +- **cli:** expose station identity overrides and CSMS credentials ([e93c0ae](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/e93c0aee3d488fb814ea32567325cb8d983e14fe)) +- **ui-cli:** add custom JSON payload option for OCPP and transaction commands ([331705d](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/331705d19e0f1541720cb72ffe83c0f405cb8bb8)) +- **ui-cli:** add registration and connector columns to station list, fix command semantics ([bcb21a5](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/bcb21a59907b2ab0841956fe2c50f8bd2be8619a)) +- **ui-cli:** short hash prefix matching, human output formatters, embedded agent skill ([dd8e416](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/dd8e4161d8629cae2020a5ff451b1539f83b29db)) +- **ui:** add CLI client and shared UI common library ([#1789](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1789)) ([94b898b](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/94b898b618410975a64b9e39b076a3909391dbf6)) +- **ui:** human-readable CLI output + shared type updates + --url collision fix ([ee80802](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/ee808028b2e94d69ad0f5647dec2f507cea15a3a)) + +### 🐞 Bug Fixes + +- **cli:** make high-level OCPP commands version-aware ([#1801](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1801)) ([804dce7](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/804dce720fd281de52499510cba6d8cbb01fdf0d)) +- **cli:** replace unsafe WebSocket double cast with typed adapter ([a5c1a4d](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/a5c1a4d8b082acbb50521817221f9e1e80ca71e1)) +- **cli:** replace unsafe WebSocket double cast with typed adapter ([96d7557](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/96d75572c995508ddde814b8f5ffea134c29b7b7)) +- **cli:** validate connect timeout budget — reject NaN/0/negative before race ([99fc323](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/99fc323675d2cab228ea5d83064365bd75842166)) +- **deps:** update all non-major dependencies ([#1792](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1792)) ([eeeb437](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/eeeb43740e3f30fd341a687019ba6606398467f7)) +- **deps:** update all non-major dependencies ([#1807](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1807)) ([87099e8](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/87099e81af13f3ec514e8d69ecfd1aa09b42c224)) +- **deps:** update dependency ora to v9 ([#1793](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1793)) ([d4ad3f5](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/d4ad3f5e9da0f6c5befd25250e81b6f446d4da06)) +- **ui-cli:** resolve --url option collision between global and supervision ([49ec520](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/49ec5204d5e209108922057a05de6fbb3f705859)) + +### ✨ Polish + +- **cli:** audit fixes — validate timeoutMs, extract mock factory, add comments ([dfb70ff](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/dfb70ffb385fdcb52992e6dce6d99a1e95866544)) +- **cli:** complete remaining audit items — validate status, extract helpers, add 8 test cases ([84444f7](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/84444f7c7efc01a367eea680d37c1657bde56bd1)) +- **cli:** extract extractErrorMessage utility ([a0ba4b5](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/a0ba4b54c0ffe51408cd2e638231225c86510fae)) +- **cli:** fix onerror ErrorEvent handling, DRY adapter types, simplify factory ([22decdd](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/22decddb6f6ed90972c26e7b320263aefdc2e5f0)) +- **cli:** second-pass audit fixes — DRY table helper, remove slop, strengthen assertions ([c611414](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/c61141439920995fd3cf9e4ab8a46629fda627fa)) +- **ui-cli:** move StationListPayload to shared types, add resolution error context ([0c6cfa9](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/0c6cfa9ac228910848194b1936ac077208617483)) +- **ui-common:** derive UIServerConfigurationSection from Zod schema ([7d5e179](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/7d5e1796618aba914309a1b0aafd79546570c999)) +- **ui-common:** generic WebSocket adapter factory with converter injection ([e6be841](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/e6be8411376eca8624601b70323ae557cae797ed)) +- **ui-common:** remove UIServerConfig alias, single canonical name ([7e50e41](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/7e50e4189e6f973eb7593ad1789b05b783a18cf3)) +- **ui:** consolidate constants — remove timeout duplicate, centralize defaults ([42f6757](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/42f675715f5cb0c64601d90a49c2c06979671c60)) +- **ui:** factorize shared code across ui packages ([c91d737](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/c91d737117e050b08d68f25ae9b3217a574e6188)) +- **ui:** global code quality pass ([01b9a6a](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/01b9a6aed766a8421c17c8a23ca37646810414de)) +- **ui:** second-pass factorization audit implementation ([5f58e56](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/5f58e5604c968bad180ba01dd110521cdb9c6c86)) + +### 🧪 Tests + +- add enum rejection tests and fix dynamic import in CLI test ([99014cb](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/99014cb1ccd1cef5eae6356a07cc22310619b820)) +- **cli:** fix lifecycle test structure — single top-level describe ([7111081](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/711108181080309b92261431c50bce61eb08789b)) + +### 📚 Documentation + +- **cli:** update embedded SKILL.md with identity and credential options ([5954e3c](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/5954e3c13a79c0761eae7d084bc9b2ee9144fd9a)) diff --git a/ui/cli/package.json b/ui/cli/package.json index 87fd11ea..63961d86 100644 --- a/ui/cli/package.json +++ b/ui/cli/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package", "name": "cli", - "version": "4.4.0", + "version": "4.5.0", "engines": { "node": ">=22.0.0", "pnpm": ">=10.9.0" diff --git a/ui/cli/sonar-project.properties b/ui/cli/sonar-project.properties index bcc1cc8a..edfd6d89 100644 --- a/ui/cli/sonar-project.properties +++ b/ui/cli/sonar-project.properties @@ -4,7 +4,7 @@ sonar.organization=sap-1 # This is the name and version displayed in the SonarCloud UI. sonar.projectName=e-mobility-charging-stations-simulator-cli # x-release-please-start-version -sonar.projectVersion=4.4.0 +sonar.projectVersion=4.5.0 # x-release-please-end # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. diff --git a/ui/common/CHANGELOG.md b/ui/common/CHANGELOG.md new file mode 100644 index 00000000..1ef6ef60 --- /dev/null +++ b/ui/common/CHANGELOG.md @@ -0,0 +1,58 @@ +# Changelog + +## [4.5.0](https://github.com/SAP/e-mobility-charging-stations-simulator/compare/ui-common@v4.4.0...ui-common@v4.5.0) (2026-04-22) + +### 🚀 Features + +- **cli:** display failure reasons in human-readable table output ([fbc4346](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/fbc4346d92ec7c2f2ba705f125468f0d631495cd)) +- **common:** add browser WebSocket adapter ([fe53a6d](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/fe53a6d218647d4ac51cbc648f3484e68eb32ea0)) +- **common:** add notification callback support to WebSocketClient ([a92b744](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/a92b7442aa0c0e82bd0870c61d8069d9582a0a8d)) +- **ui-server:** allow override of station identity and CSMS credentials in addChargingStations ([#1802](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1802)) ([f23ba15](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/f23ba158a146ac3a0aedd85195c16e4d4595acd9)) +- **ui:** add CLI client and shared UI common library ([#1789](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1789)) ([94b898b](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/94b898b618410975a64b9e39b076a3909391dbf6)) +- **ui:** human-readable CLI output + shared type updates + --url collision fix ([ee80802](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/ee808028b2e94d69ad0f5647dec2f507cea15a3a)) + +### 🐞 Bug Fixes + +- **cli:** make high-level OCPP commands version-aware ([#1801](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1801)) ([804dce7](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/804dce720fd281de52499510cba6d8cbb01fdf0d)) +- **cli:** replace unsafe WebSocket double cast with typed adapter ([a5c1a4d](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/a5c1a4d8b082acbb50521817221f9e1e80ca71e1)) +- **common:** include Date in JsonPrimitive, restore Date fields ([758cbfa](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/758cbfa38651951565a0c152a0e9b8f82a2239d2)) +- **common:** restore wsState type as numeric literal union ([30efe62](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/30efe6295ce8d26d1ec60c5791b2c2111978549d)) +- **deps:** update all non-major dependencies ([#1792](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1792)) ([eeeb437](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/eeeb43740e3f30fd341a687019ba6606398467f7)) +- enforce RFC 7617 colon-free username across all Basic Auth paths ([5c1f885](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/5c1f8850d9983d941187269741aee535841412c3)) +- **ui-common:** forward close code/reason in mock WebSocket factory ([159977e](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/159977e62236e1b912537b0ea168e5fde81899f5)) +- **ui:** use portable crypto API and async bootstrap pattern ([3c6f6f1](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/3c6f6f11211b476fe050cd54d5bb6829c7bdbfc1)) +- **web:** copy workspace node_modules, harmonize browser adapter, add frozen-lockfile ([bbb04f4](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/bbb04f4d31c309e46ed02be961ee086bc1d921d1)) +- **web:** prevent ghost events after server switch, fix CloseEvent type, improve error extraction ([12c1e9a](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/12c1e9a4cd5cfa456576d672d7d4a681afe1b57a)) + +### ✨ Polish + +- **cli:** audit fixes — validate timeoutMs, extract mock factory, add comments ([dfb70ff](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/dfb70ffb385fdcb52992e6dce6d99a1e95866544)) +- **cli:** complete remaining audit items — validate status, extract helpers, add 8 test cases ([84444f7](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/84444f7c7efc01a367eea680d37c1657bde56bd1)) +- **cli:** fix onerror ErrorEvent handling, DRY adapter types, simplify factory ([22decdd](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/22decddb6f6ed90972c26e7b320263aefdc2e5f0)) +- **cli:** second-pass audit fixes — DRY table helper, remove slop, strengthen assertions ([c611414](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/c61141439920995fd3cf9e4ab8a46629fda627fa)) +- **common:** export browser adapter from barrel ([13df7a3](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/13df7a33f34324af18a8a6bfd5b5e7b0a4046ff8)) +- **common:** portable btoa, eliminate UIClient duplication, fix Docker deps ([d63dd09](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/d63dd0933f9c3a96ca2ba613e904980dbca3f8bd)) +- consolidate all types into ui-common — single import source ([9739ffe](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/9739ffe201bf3d5b0060ff038af83f515b7d6921)) +- fix phantom errorMessage, merge imports, harmonize Docker configs ([18dc121](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/18dc1211f776e966b36417f47aa191c248dea183)) +- **ui-common:** derive ClientConfig and AuthenticationConfig from Zod schemas ([2d81b7e](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/2d81b7ea4c293c833f87d56e05e24023d46efbd1)) +- **ui-common:** derive UIServerConfigurationSection from Zod schema ([7d5e179](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/7d5e1796618aba914309a1b0aafd79546570c999)) +- **ui-common:** generic WebSocket adapter factory with converter injection ([e6be841](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/e6be8411376eca8624601b70323ae557cae797ed)) +- **ui-common:** remove UIServerConfig alias, single canonical name ([7e50e41](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/7e50e4189e6f973eb7593ad1789b05b783a18cf3)) +- **ui:** consolidate constants — remove timeout duplicate, centralize defaults ([42f6757](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/42f675715f5cb0c64601d90a49c2c06979671c60)) +- **ui:** factorize shared code across ui packages ([c91d737](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/c91d737117e050b08d68f25ae9b3217a574e6188)) +- **ui:** global code quality pass ([01b9a6a](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/01b9a6aed766a8421c17c8a23ca37646810414de)) +- **ui:** move generic utilities to ui-common and add useFetchData composable ([93cacfb](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/93cacfb376c7856e85eb8607db8cd3edb8e160f2)) +- **web:** eliminate type barrel — direct imports from ui-common and source modules ([dbf5731](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/dbf573181510a19edda0bf76aee6e8553a06c60e)) + +### 🧪 Tests + +- add enum rejection tests and fix dynamic import in CLI test ([99014cb](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/99014cb1ccd1cef5eae6356a07cc22310619b820)) +- **cli:** fix lifecycle test structure — single top-level describe ([7111081](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/711108181080309b92261431c50bce61eb08789b)) +- **ui-common:** create shared mock WebSocket factory ([218548e](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/218548ea12104c24856c1598e7326a75d6c21fa0)) +- **ui:** add tests for converters, websocket utils, and useFetchData ([df99c2e](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/df99c2e939c3584a1045d9751262fd289896948c)) + +### 📚 Documentation + +- add ADR for config loading strategy and ClientConfig derivation ([ac9f430](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/ac9f4304e67f449b8cb00903325c9ce733fb067d)) +- add monorepo structure to copilot instructions, clarify command scopes ([d7ef329](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/d7ef32996398570fd53ecd8850d25d4ad43995ff)) +- **ui-common:** remove ADR section from README ([c6c99a1](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/c6c99a1915eacee52a04431f87350efa9c64feda)) diff --git a/ui/common/package.json b/ui/common/package.json index cb6db272..bcaad7fd 100644 --- a/ui/common/package.json +++ b/ui/common/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package", "name": "ui-common", - "version": "4.4.0", + "version": "4.5.0", "engines": { "node": ">=22.0.0", "pnpm": ">=10.9.0" diff --git a/ui/common/sonar-project.properties b/ui/common/sonar-project.properties index 148945c2..926d4106 100644 --- a/ui/common/sonar-project.properties +++ b/ui/common/sonar-project.properties @@ -4,7 +4,7 @@ sonar.organization=sap-1 # This is the name and version displayed in the SonarCloud UI. sonar.projectName=e-mobility-charging-stations-simulator-ui-common # x-release-please-start-version -sonar.projectVersion=4.4.0 +sonar.projectVersion=4.5.0 # x-release-please-end # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows. diff --git a/ui/web/CHANGELOG.md b/ui/web/CHANGELOG.md index d0880de6..12c59602 100644 --- a/ui/web/CHANGELOG.md +++ b/ui/web/CHANGELOG.md @@ -1,5 +1,52 @@ # Changelog +## [4.5.0](https://github.com/SAP/e-mobility-charging-stations-simulator/compare/webui@v4.4.0...webui@v4.5.0) (2026-04-22) + +### 🚀 Features + +- **ui-server:** allow override of station identity and CSMS credentials in addChargingStations ([#1802](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1802)) ([f23ba15](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/f23ba158a146ac3a0aedd85195c16e4d4595acd9)) +- **ui:** add CLI client and shared UI common library ([#1789](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1789)) ([94b898b](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/94b898b618410975a64b9e39b076a3909391dbf6)) + +### 🐞 Bug Fixes + +- **common:** include Date in JsonPrimitive, restore Date fields ([758cbfa](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/758cbfa38651951565a0c152a0e9b8f82a2239d2)) +- **deps:** update all non-major dependencies ([#1785](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1785)) ([776ac75](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/776ac75627d8f2355956447b0dcae3021b5cf300)) +- **deps:** update all non-major dependencies ([#1792](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1792)) ([eeeb437](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/eeeb43740e3f30fd341a687019ba6606398467f7)) +- **deps:** update all non-major dependencies ([#1803](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1803)) ([dbb9717](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/dbb97172a39a56c1f4370984dce1d70c02b206cc)) +- **deps:** update all non-major dependencies ([#1807](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1807)) ([87099e8](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/87099e81af13f3ec514e8d69ecfd1aa09b42c224)) +- **ui-server:** harden CSMS credential handling in supervision URL flow ([c7572fb](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/c7572fb49c029ab9458898e08939b2845687b609)) +- **ui-server:** harmonize setSupervisionUrl semantics and text descriptions ([ab9d929](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/ab9d9299b910864d795696e160181a9983dd0309)) +- **ui-web:** fix remaining for...in on localStorage and remove dead test config ([14eeb8a](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/14eeb8a121c39f965742c0e54effd2dae5f29f60)) +- **ui-web:** force toggle button re-mount on navigation back to main view ([92711d4](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/92711d429e51c4e4bb2eaafb86c6f47d62f99c63)) +- **ui-web:** remove orphaned CSS classes and guard onFinally in useExecuteAction ([b01978f](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/b01978f7e4eeb6c11136109a8b98871c72f4ce17)) +- **ui-web:** use portable WebSocketReadyState in CSData isWebSocketOpen ([51aa070](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/51aa070b3044074a394a9b7123a64dc22c2489b4)) +- **ui:** use portable crypto API and async bootstrap pattern ([3c6f6f1](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/3c6f6f11211b476fe050cd54d5bb6829c7bdbfc1)) +- **web:** copy workspace node_modules, harmonize browser adapter, add frozen-lockfile ([bbb04f4](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/bbb04f4d31c309e46ed02be961ee086bc1d921d1)) +- **web:** prevent ghost events after server switch, fix CloseEvent type, improve error extraction ([12c1e9a](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/12c1e9a4cd5cfa456576d672d7d4a681afe1b57a)) +- **webui-docker:** include workspace root node_modules so pnpm symlinks resolve ([#1806](https://github.com/SAP/e-mobility-charging-stations-simulator/issues/1806)) ([6834764](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/683476435546765d521f363f4ddb7451af268527)) +- **web:** widen Docker context to monorepo root for ui-common workspace dep ([86842b7](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/86842b720901f071e3b9bd6af57b940a7b4e4a67)) + +### ✨ Polish + +- **common:** portable btoa, eliminate UIClient duplication, fix Docker deps ([d63dd09](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/d63dd0933f9c3a96ca2ba613e904980dbca3f8bd)) +- consolidate all types into ui-common — single import source ([9739ffe](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/9739ffe201bf3d5b0060ff038af83f515b7d6921)) +- fix phantom errorMessage, merge imports, harmonize Docker configs ([18dc121](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/18dc1211f776e966b36417f47aa191c248dea183)) +- **tests:** replace re-export hub with direct imports ([8c7ce13](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/8c7ce130606b38a3e5fd9c060f59bac40d24186d)) +- **ui-web:** import randomUUID/validateUUID directly from ui-common ([647c808](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/647c8080f940c6a0d0b71f186ad04aeef3961933)) +- **ui-web:** remove duplicated tests for functions now in ui-common ([db5f0a3](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/db5f0a30e13a93ef5a52d5b4d57f89256a6a073e)) +- **ui:** consolidate constants — remove timeout duplicate, centralize defaults ([42f6757](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/42f675715f5cb0c64601d90a49c2c06979671c60)) +- **ui:** factorize shared code across ui packages ([c91d737](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/c91d737117e050b08d68f25ae9b3217a574e6188)) +- **ui:** global code quality pass ([01b9a6a](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/01b9a6aed766a8421c17c8a23ca37646810414de)) +- **ui:** move generic utilities to ui-common and add useFetchData composable ([93cacfb](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/93cacfb376c7856e85eb8607db8cd3edb8e160f2)) +- **ui:** second-pass factorization audit implementation ([5f58e56](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/5f58e5604c968bad180ba01dd110521cdb9c6c86)) +- **web:** eliminate type barrel — direct imports from ui-common and source modules ([dbf5731](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/dbf573181510a19edda0bf76aee6e8553a06c60e)) +- **web:** migrate types to ui-common + UIClient internals to WebSocketClient ([2f44afe](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/2f44afef5abc491c3bfe600efe9b6a87be0522d2)) + +### 🧪 Tests + +- **ui:** add tests for converters, websocket utils, and useFetchData ([df99c2e](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/df99c2e939c3584a1045d9751262fd289896948c)) +- **web:** cover abort branches in UIClient to meet coverage threshold ([39e5ae4](https://github.com/SAP/e-mobility-charging-stations-simulator/commit/39e5ae4f68f5b626aac36e2bf662e002e90109d5)) + ## [4.4.0](https://github.com/SAP/e-mobility-charging-stations-simulator/compare/webui@v4.3.1...webui@v4.4.0) (2026-04-07) ### 🧹 Chores diff --git a/ui/web/package.json b/ui/web/package.json index 5f97556b..e8789c30 100644 --- a/ui/web/package.json +++ b/ui/web/package.json @@ -1,7 +1,7 @@ { "$schema": "https://json.schemastore.org/package", "name": "webui", - "version": "4.4.0", + "version": "4.5.0", "readme": "README.md", "engines": { "node": ">=22.0.0", diff --git a/ui/web/sonar-project.properties b/ui/web/sonar-project.properties index 9bf7ef41..4e6a947c 100644 --- a/ui/web/sonar-project.properties +++ b/ui/web/sonar-project.properties @@ -4,7 +4,7 @@ sonar.organization=sap-1 # This is the name and version displayed in the SonarCloud UI. sonar.projectName=e-mobility-charging-stations-simulator-webui # x-release-please-start-version -sonar.projectVersion=4.4.0 +sonar.projectVersion=4.5.0 # x-release-please-end # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.