From 2db8dbb3eaed8c2db56ed46301eba8c610e0cbd3 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Tue, 10 Nov 2026 16:26:36 +0100 Subject: [PATCH 1/2] Prepare the 0.9.0 release (#482) The library goes to 0.9.0 and its row of the compatibility table is frozen on the environment 0.9.0, published by the release-developer workflow. The freeze refused a library version equal to the environment's, because it looked for the version in any cell of the table: it now looks in the first cell of a row only. --- README.md | 1 + cmake/DeveloperCompatibility.cmake | 5 ++++- docs/CHANGELOG.md | 2 ++ docs/DEVELOPER_ENVIRONMENT.md | 1 + include/webfront/WebFront.hpp | 2 +- test/cmake/CheckDeveloperCompatibility.cmake | 8 ++++++++ 6 files changed, 17 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fc3cddca..d274e97e 100644 --- a/README.md +++ b/README.md @@ -345,6 +345,7 @@ The [changelog](docs/CHANGELOG.md) is exhaustive; the main additions are: - **0.6.0.** `ui.document()` for [DOM islands from C++](docs/DOM.md); [forms and inspectors](docs/FORMS.md) generated from type descriptions (with an optional C++26 reflection layer); the [`@webfront/react` adapter](docs/REACT.md) with coalesced C++ stores and `Island`; `app.broadcast(...)` and `app.forEachUI(...)` to reach every browser from any thread; connection generations that reject a stale `UI`; local [automation](docs/AUTOMATION.md) (`webfront-agent`, stdio MCP and JSON CLI). - **0.7.0.** **Breaking:** test, fuzzing, coverage and sanitizer CMake options require the `WEBFRONT_` prefix (`WEBFRONT_ENABLE_TESTING`, ...); several agent shutdown fixes; faster pull-request CI. - **0.8.0.** Authorized native programs and private temporary files from [Jasmine specs](docs/CONSUMER_TESTING.md); PNG screenshots and image sequences of the web view (`webFrontCapture`); `webfront::embeddedFrontendAvailable` and `webfront::EmbeddedWebFront`; `init`, `create`, `install`, `restore` and `embed` available to automation. +- **0.9.0.** The last minor revision before 1.0, with the developer environment at the same number. System services groundwork ([ADR-020](docs/adr/README.md)): writable storage confined to declared roots, typed access to the native window and an interface-thread executor for every frontend, dynamic and ranged HTTP routes, file inputs and downloads in the embedded frontends, automation of an application's own window, and the `@webfront/services` package skeleton. Developer environment 0.9.0 is the first published by the `release-developer` workflow. - **Developer distribution.** The developer environment is served from `dist.webfront.fr` ([ADR-021](docs/adr/README.md)). Libraries older than the sources' pin keep the former address, which no longer works for the developer bootstrap: rebuild against the current sources. ## Use WebFront in your project diff --git a/cmake/DeveloperCompatibility.cmake b/cmake/DeveloperCompatibility.cmake index 0d5c644d..1d8fc7b7 100644 --- a/cmake/DeveloperCompatibility.cmake +++ b/cmake/DeveloperCompatibility.cmake @@ -51,7 +51,10 @@ elseif(MODE STREQUAL "freeze") if(NOT LIBRARY_VERSION MATCHES "^[0-9]+[.][0-9]+[.][0-9]+$") message(FATAL_ERROR "LIBRARY_VERSION must be MAJOR.MINOR.PATCH") endif() - if(table MATCHES "[|] ${LIBRARY_VERSION} [|]") + # The first cell of a row: the version of the environment column may be the same number, and a dot is literal. + string(REPLACE "." "[.]" version_pattern "${LIBRARY_VERSION}") + if(table MATCHES " +[|] ${version_pattern} [|]") message(FATAL_ERROR "The compatibility table already has a row for ${LIBRARY_VERSION}") endif() string(REPLACE "${unreleased_row}" "${new_unreleased}| ${LIBRARY_VERSION} | ${environment} | ${api} |\n" table "${table}") diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index bddad167..968d9a6f 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +## 0.9.0 - 2026-11-10 + - Diagnose asynchronous media and file-services specs before Jasmine's generic timeout (#504). Each spec shares a 15 s budget across named operations with a 20 s Jasmine deadline; video failures include the media state and a bounded `mediaRanges` query. The video waits for initial data and checks the destination of each `seeked` event. Consumer diff --git a/docs/DEVELOPER_ENVIRONMENT.md b/docs/DEVELOPER_ENVIRONMENT.md index 41842150..f660404f 100644 --- a/docs/DEVELOPER_ENVIRONMENT.md +++ b/docs/DEVELOPER_ENVIRONMENT.md @@ -597,6 +597,7 @@ above). Rows before 0.9 were reconstructed from the header of each tag; 0.4.0 pr | Library | Environment | Minimum api | | --- | --- | --- | | unreleased | 0.9.0 | 1 | +| 0.9.0 | 0.9.0 | 1 | | 0.8.0 | 0.6.3 | 1 | | 0.7.0 | 0.6.3 | 1 | | 0.6.0 | 0.6.3 | 1 | diff --git a/include/webfront/WebFront.hpp b/include/webfront/WebFront.hpp index af3bad01..f248f056 100644 --- a/include/webfront/WebFront.hpp +++ b/include/webfront/WebFront.hpp @@ -44,7 +44,7 @@ namespace webfront { -inline constexpr std::string_view version = "0.8.0"; +inline constexpr std::string_view version = "0.9.0"; namespace testing { /// Test-only access to the connection identifiers of an application; not part of the API. diff --git a/test/cmake/CheckDeveloperCompatibility.cmake b/test/cmake/CheckDeveloperCompatibility.cmake index aa9eb725..84b8652a 100644 --- a/test/cmake/CheckDeveloperCompatibility.cmake +++ b/test/cmake/CheckDeveloperCompatibility.cmake @@ -46,4 +46,12 @@ run(status -DMODE=freeze -DLIBRARY_VERSION=1.2.3) if(status EQUAL 0) message(FATAL_ERROR "A repeated freeze was accepted") endif() +# The library version may equal the environment's (one number for both): only the first cell of a row is a library. +run(status -DMODE=freeze -DLIBRARY_VERSION=0.6.9) +document(content) +if(NOT status EQUAL 0 OR NOT content MATCHES " +[|] 0[.]6[.]9 [|] 0[.]6[.]9 [|] 2 [|] +") + message(FATAL_ERROR "A library version equal to the environment's was refused: ${last_output}") +endif() file(REMOVE_RECURSE "${WORK}") From c1fb15455cfe0631da9e221a488a39a558fa12a9 Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc <6860842+ambroise-leclerc@users.noreply.github.com> Date: Tue, 10 Nov 2026 16:37:16 +0100 Subject: [PATCH 2/2] State in the changelog that the environment 0.9.0 was published by the workflow (#482) --- docs/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 968d9a6f..fe4ac5fd 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -44,8 +44,8 @@ `wf run pin` now fails (instead of warning) when the pinned URL is off the origin of `baseUrl`, redirects or lacks CORS, and reads `previousBase` and `baseSince` for the migration waiver, which covers only versions before `baseSince`. `DeveloperPinConsistency` checks the states (a) to (c) and the inconsistencies of ADR-021 decision 2. The compatibility table of `docs/DEVELOPER_ENVIRONMENT.md` is maintained by - `cmake/DeveloperCompatibility.cmake` and enforced on `v*` tags by `CheckReleaseVersion.cmake`. The application, the tag rule - and the first real publication are repository operations that remain to be done by a maintainer. + `cmake/DeveloperCompatibility.cmake` and enforced on `v*` tags by `CheckReleaseVersion.cmake`. Environment 0.9.0 is the first + published by this workflow (tag `developer-v0.9.0`); the application and the tag rule are configured on the repository. - `@webfront/services` package (#461, ADR-010 1.8, ADR-020 step 4). The browser side of the optional system services is delivered outside the core, like `@webfront/react`: `js/services/` (a skeleton: an empty frozen `services` object and `selfTest()`, declarations, license), `wf run services-package` for its deterministic archive and SHA-512, the same