diff --git a/CHANGELOG.md b/CHANGELOG.md index 98a1dce..a7beaab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,10 @@ Versioning v2.0.0](https://semver.org/spec/v2.0.0.html). When considering the public API, we take into account the tool configuration and external requirements of the framework-dependent binary. Meaning that basically, breaking changes in configuration files, command-line syntax, or in the runtime requirements should be causing a major version increment. +## [5.0.1] - 2026-07-24 +### Fixed +- Error when calling `render()` in log rendering frontend. + ## [5.0.0] - 2026-06-26 ### Changed - **(Requirement update!)** Update to .NET 10. @@ -227,4 +231,5 @@ runtime 2.2. [3.0.0]: https://github.com/codingteam/emulsion/compare/v2.4.4...v3.0.0 [4.0.0]: https://github.com/codingteam/emulsion/compare/v3.0.0...v4.0.0 [5.0.0]: https://github.com/codingteam/emulsion/compare/v4.0.0...v5.0.0 -[Unreleased]: https://github.com/codingteam/emulsion/compare/v5.0.0...HEAD +[5.0.1]: https://github.com/codingteam/emulsion/compare/v5.0.0...v5.0.1 +[Unreleased]: https://github.com/codingteam/emulsion/compare/v5.0.1...HEAD diff --git a/Emulsion.MessageArchive.Frontend/app.tsx b/Emulsion.MessageArchive.Frontend/app.tsx index 8fb3e2d..924ab4e 100644 --- a/Emulsion.MessageArchive.Frontend/app.tsx +++ b/Emulsion.MessageArchive.Frontend/app.tsx @@ -1,9 +1,9 @@ -// SPDX-FileCopyrightText: 2024 Emulsion contributors +// SPDX-FileCopyrightText: 2024-2026 Emulsion contributors // // SPDX-License-Identifier: MIT import React, {useState} from 'react'; -import {render} from 'react-dom'; +import {createRoot} from 'react-dom/client'; class LoadedPage { constructor( @@ -113,4 +113,8 @@ const App = () => { } }; -render(, document.getElementById('app')); +const container = document.getElementById('app'); +if (!container) { + throw new Error('Root container #app not found'); +} +createRoot(container).render(); diff --git a/Emulsion.MessageArchive.Frontend/package-lock.json b/Emulsion.MessageArchive.Frontend/package-lock.json index e1b8243..439bfe3 100644 --- a/Emulsion.MessageArchive.Frontend/package-lock.json +++ b/Emulsion.MessageArchive.Frontend/package-lock.json @@ -10,8 +10,8 @@ "@types/react-dom": "^19.0.0", "parcel": "^2.9.3", "process": "^0.11.10", - "react": "^19.0.0", - "react-dom": "^19.0.0", + "react": "19.2.8", + "react-dom": "19.2.8", "typescript": "^7.0.0" } }, @@ -3469,22 +3469,20 @@ "resolved": "https://registry.npmjs.org/react/-/react-19.2.8.tgz", "integrity": "sha512-PWaYA1L/q9u2u7xYQi+Y3L3Yfnie7XyLeaJICV1MGD6LprsBxcAqGjYyr0eY3p+QdsA+x/Irkt4Qif8D63+Sbw==", "dev": true, - "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/react-dom": { - "version": "19.2.7", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.7.tgz", - "integrity": "sha512-t0BRVXvbiE/o20Hfw669rLbMCDWtYZLvmJigy2f0MxsXF+71pxhR3xOkspmsO8h3ZlNzyibAmtCa3l4lYKk6gQ==", + "version": "19.2.8", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-19.2.8.tgz", + "integrity": "sha512-rVprimfGBG3DR+Tq0IQG2DT5PxKth1WIGDmj5yPmlzr4YBe7uyE+Du4oVqTDXZSHGGGXRtTJEGSSePyQCMBglQ==", "dev": true, - "license": "MIT", "dependencies": { "scheduler": "^0.27.0" }, "peerDependencies": { - "react": "^19.2.7" + "react": "^19.2.8" } }, "node_modules/react-refresh": { diff --git a/Emulsion.MessageArchive.Frontend/package-lock.json.license b/Emulsion.MessageArchive.Frontend/package-lock.json.license index 8fcfab5..b94eb5b 100644 --- a/Emulsion.MessageArchive.Frontend/package-lock.json.license +++ b/Emulsion.MessageArchive.Frontend/package-lock.json.license @@ -1,3 +1,3 @@ -SPDX-FileCopyrightText: 2024 Emulsion contributors +SPDX-FileCopyrightText: 2024-2026 Emulsion contributors SPDX-License-Identifier: MIT diff --git a/Emulsion.MessageArchive.Frontend/package.json b/Emulsion.MessageArchive.Frontend/package.json index f72d8e5..4233714 100644 --- a/Emulsion.MessageArchive.Frontend/package.json +++ b/Emulsion.MessageArchive.Frontend/package.json @@ -1,6 +1,7 @@ { "scripts": { - "build": "parcel build --public-url ./ --cache-dir obj/.parcel-cache --dist-dir bin" + "typecheck": "tsc --noEmit", + "build": "npm run typecheck && parcel build --public-url ./ --cache-dir obj/.parcel-cache --dist-dir bin" }, "source": "index.html", "type": "module", @@ -10,8 +11,8 @@ "@types/react-dom": "^19.0.0", "parcel": "^2.9.3", "process": "^0.11.10", - "react": "^19.0.0", - "react-dom": "^19.0.0", + "react": "19.2.8", + "react-dom": "19.2.8", "typescript": "^7.0.0" } } diff --git a/Emulsion.MessageArchive.Frontend/package.json.license b/Emulsion.MessageArchive.Frontend/package.json.license index 8fcfab5..b94eb5b 100644 --- a/Emulsion.MessageArchive.Frontend/package.json.license +++ b/Emulsion.MessageArchive.Frontend/package.json.license @@ -1,3 +1,3 @@ -SPDX-FileCopyrightText: 2024 Emulsion contributors +SPDX-FileCopyrightText: 2024-2026 Emulsion contributors SPDX-License-Identifier: MIT diff --git a/Emulsion/Emulsion.fsproj b/Emulsion/Emulsion.fsproj index 59b7175..bda3de3 100644 --- a/Emulsion/Emulsion.fsproj +++ b/Emulsion/Emulsion.fsproj @@ -8,7 +8,7 @@ SPDX-License-Identifier: MIT Exe net10.0 - 5.0.0 + 5.0.1 Major