From cad030b937e44c443414cf82539d8e048480edca Mon Sep 17 00:00:00 2001 From: Ambroise Leclerc Date: Wed, 21 Oct 2026 12:56:15 +0200 Subject: [PATCH] Prepare WebFront 0.3.0 [#288] --- CHANGELOG.md | 7 ++++++- README.md | 4 ++-- docs/PROJECT_STATUS.md | 7 +++++++ include/WebFront.hpp | 2 +- 4 files changed, 16 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1da92449..4e2d2c00 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,14 @@ ## Unreleased +## 0.3.0 - 2026-10-21 + ### Added -- `webfront::Task`, `app.spawn(task)` and `ui.spawn(task)` launch application-owned coroutines without execution plumbing; a returned `TaskHandle` cancels an individual task. `app.shutdown()` joins owned work explicitly. Spawning during stop/shutdown returns a stopped handle when rejected; destructor joins log and wait for stalled external work instead of propagating drain errors. `jsFunctionSender(name)` defaults to `void`. `WebFrontAwaitBrowser` is a compiled example matching the README. +- `std::bitset` callback arguments and results, C++ call arguments and typed future/sender results cross the bridge as packed `Uint8Array` bytes (bit `i` in byte `i / 8`, least-significant first), with exact-length and zero-padding validation. A packed Life demonstration exchanges 128 bytes per generation. +- Opt-in browser-powered developer environment: `NativeApp::bootstrap("developer")` downloads a SHA-512-pinned environment (distribution 0.3.1 on GitHub Pages) whose terminal offers `wf create|install|list|preview|embed`. It resolves npm packages in the browser, locks and re-verifies them, compiles with esbuild-WASM, previews in an iframe and generates a gzip-compressed C++ resource header. The bridge callbacks `webfront.developer.*` publish files through staged, bounded, transactional writes confined to the explicit project directory; abandoned transactions expire and stale staging is purged at startup. WebSocket clients without an `Origin` are refused. + +- - `webfront::Task`, `app.spawn(task)` and `ui.spawn(task)` launch application-owned coroutines without execution plumbing; a returned `TaskHandle` cancels an individual task. `app.shutdown()` joins owned work explicitly. Spawning during stop/shutdown returns a stopped handle when rejected; destructor joins log and wait for stalled external work instead of propagating drain errors. `jsFunctionSender(name)` defaults to `void`. `WebFrontAwaitBrowser` is a compiled example matching the README. - `ui.jsFunctionSender(name)(...)` returns a lazy sender that can be awaited in a task and cancelled through its receiver's stop token. Cancellation stops the local wait; dispatched JavaScript continues. Existing `std::future` calls remain available. diff --git a/README.md b/README.md index 38c35a33..bccb076e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # WebFront -**[Version 0.2.0](https://github.com/ambroise-leclerc/WebFront/releases/tag/v0.2.0)** adds optional native windows on every desktop platform: WebView2 on Windows, WKWebView on macOS and WebKitGTK on Linux, with the explicit `NativeWebViewFrontend` alias. The system browser remains the default. This release also includes asynchronous bridge results, owned application coroutines, embedded UI components and input-decoding hardening. +**[Version 0.3.0](https://github.com/ambroise-leclerc/WebFront/releases/tag/v0.3.0)** adds packed `std::bitset` bridge values and an opt-in, browser-powered developer environment (`webfront::NativeApp::bootstrap("developer")`) with a packed Life demonstration. The 0.2.0 native windows (WebView2, WKWebView, WebKitGTK via `NativeWebViewFrontend`) remain opt-in and the system browser remains the default. **A straightforward way to add a cross-platform GUI to your C++ application.** @@ -36,7 +36,7 @@ That is the complete program (`src/HelloWorld.cpp`). Build it with the classic C ```bash git clone https://github.com/ambroise-leclerc/WebFront.git cd WebFront -git checkout v0.2.0 +git checkout v0.3.0 mkdir build cd build cmake .. diff --git a/docs/PROJECT_STATUS.md b/docs/PROJECT_STATUS.md index 7f6ad241..53c02fc5 100644 --- a/docs/PROJECT_STATUS.md +++ b/docs/PROJECT_STATUS.md @@ -90,6 +90,13 @@ Status snapshot: 2026-07-19. Optional mddlog integration note: 2026-10-02. Newco upgrade measurements](EMBEDDED_ASSETS.md). +## Release 0.3.0 (#288, 2026-10-21) + +`webfront::version` and the CMake project version are 0.3.0. The release adds packed `std::bitset` +bridge values (#289) and the opt-in developer environment with its packed Life demonstration (#288); +see `CHANGELOG.md`. The developer distribution 0.3.1 is published and archived as `developer-v0.3.1`; +published 0.1.0 to 0.3.1 remain immutable. APIs and packaging remain experimental. + ## Release 0.2.0 and native frontend epic (#253, 2026-10-19) All tasks in #253 are merged, including the opt-in platform alias in PR #277. diff --git a/include/WebFront.hpp b/include/WebFront.hpp index 548e4c76..45242b6e 100644 --- a/include/WebFront.hpp +++ b/include/WebFront.hpp @@ -33,7 +33,7 @@ namespace webfront { -inline constexpr std::string_view version = "0.2.0"; +inline constexpr std::string_view version = "0.3.0"; using NetProvider = networking::TCPStdnet; using ConnectionError = std::runtime_error;