Skip to content

Release WebFront 0.5.0 [#282] - #375

Merged
AM-L merged 185 commits into
masterfrom
282-release-0.5.0
Oct 26, 2026
Merged

AM-L merged 185 commits into
masterfrom
282-release-0.5.0

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Promote the prepared WebFront 0.5.0 source to master for publication. Merge only after #373 and #374, successful CI on the approved gzip commit, and successful release checks. The tag must point at the resulting master commit and match webfront::version/CMake.

The proposed GitHub release notes follow.

WebFront 0.5.0 is an experimental C++23 header-only library for serving a browser UI from a C++ application.

Highlights

  • A self-contained developer workflow: project manifests and locks, wf init, install, restore, build, dev, check, test, run, exec and embed. The environment builds itself and runs Jasmine specs without a JavaScript runtime or package manager on the developer's machine.
  • A smaller embedded core, generated and verified with pure CMake. Applications install their own dependencies and generate providers with wf embed.
  • Bounded gzip identity fallback: validated GET/HEAD cache, owned cold-decode worker, admission limits and coalescing, plus buffered bit reads and a small Huffman lookup. Informational Release measurements show about 31% lower decoder time for the representative compiler bundle, with unchanged allocations; results vary by workload.
  • A simpler Game of Life quick start and automatic native-window detection when the platform dependencies are available.
  • Browser disconnection cleanup, safer link ownership and expanded cross-platform, sanitizer, fuzzing and differential validation.

Migration

  • Include public headers as <webfront/WebFront.hpp>, <webfront/http/...> and <webfront/system/...>; the previous generic include spellings are removed.
  • The developer terminal and webfront::Commands replace the removed terminal component and tool-manager APIs. Use wf install and wf embed instead of the removed React/Babel/Jasmine filesystem providers. See UI migration.
  • BasicWF::getLink(id) is replaced by findLink(id), which returns shared ownership or null after disconnection.
  • Server gzip identity fallback has a separate default 4 MiB compressed-input cap, alongside the decoded-output budget. Exceeding the input cap returns 500; saturated decode admission returns 503. See HTTP assets.

The library pins published developer environment 0.6.2. The 0.6.3 environment sources in this tree are not a newly published developer package. APIs and packaging remain experimental; the developer environment is not a sandbox.

Full changelog: v0.4.0...v0.5.0

ambroise-leclerc and others added 30 commits October 22, 2026 10:17
Move the headers to include/webfront/ (included as <webfront/...>), the
browser sources to js/core and js/developer, the tests to test/{unit,web,
fuzz,cmake}, and the documentation, CI and container files to docs/,
.github/ and .devcontainer/. Remove the historical prototype and the
unused compressed header. Add the RepositoryLayout CTest case.

The generated-provider include changed, so the developer distribution is
bumped to 0.4.1; its publication is a separate maintainer step.
Reduce asset check cost and parallelize CI tests [#298]
Record the published developer distribution 0.4.1 [#320]
ADR-016: the bootstrap environment as WebFront's foundation [#304]
…ck publication [#305]

webfront.project.json (format 1) is validated strictly and read by wf install,
preview and embed. The lock records the digest of the manifest dependencies and
every command reports a desynchronized state. developer::Store::commitGroup
publishes both files through a synced intent journal recovered at startup, with
a fingerprint precondition against concurrent installations. Fill the commit
links of ADR-009, 010, 013, 014, 015 and 016.
…update and bump the developer distribution to 0.5.0 [#305]
… registry fixture [#306]

wf restore rebuilds the package cache from the lock alone, at the locked
versions and SHA-512 integrities; --offline only checks the cache and lists
missing or corrupted packages. Each cached package is followed by a record of
its files' digests, written last. DeveloperBootstrapOptions::registry becomes
optional and takes precedence over the manifest's registry; install and restore
print the registry in use. The tests' local registry is generated reproducibly
from pinned and synthetic packages.
…ble and fix review findings [#305]

- Windows: recovery read the journal through a stream still open when rollForward removed it.
- A committed publication that cannot be completed no longer prevents opening the project: it is
  reported as IncompletePublication, its journal is kept, and state() or commitGroup() completes it.
- A failure before the commit point returns the staged files to their transactions.
- wf install validates requested ranges before resolving and rewrites the manifest as written.
- wf init writes the root manifest and adopts the roots of an existing lock; a lock without a
  manifest digest whose roots satisfy the dependencies is usable and gets its digest recorded.
- wf embed <provider> names the class after the provider; --output requires a C++ class name.
- The installer reuses parseSpec.
- CI checks a pin behind the sources against the published archive.
…f-restore

# Conflicts:
#	docs/CHANGELOG.md
#	js/developer/environment/bundles.json
#	js/developer/environment/installer.mjs
#	js/developer/environment/packages.bundle.mjs
#	js/developer/environment/runtime.mjs
#	js/developer/tools/manifest-check.mjs
… cached files [#306]

- The 256 MiB bound counts the packages already in the cache and is checked
  before each publication, so a failed or resumed restore cannot exceed it.
- A cached file larger than the bound is a corrupted package: reading stops at
  the bound instead of failing, so wf restore downloads it again and --offline
  lists it.
Project manifest, wf init and transactional manifest and lock publication [#305]
…res on cache records [#306]

- A same-origin registry path starting with // or containing a backslash is
  refused in C++, in the manifest and when it is resolved: on an HTTPS page,
  "/\\host" resolves to another HTTPS origin.
- Only a malformed cache record makes a package corrupted; a bridge failure
  while reading it is reported instead of triggering a download.
…er test [#306]

The competing publication's exception crossed threads through std::future;
ThreadSanitizer on libc++ reports the shared exception object as a data race
because libc++abi's reference counting is not instrumented. The thread now
returns the message, and the test also checks that the first publication won.
…st permissions [#307]

Scripts of the manifest and webfront.bin entries of locked packages are bundled
by esbuild-wasm and run in a dedicated Worker with a bounded context API
(args, signal, console, project read/list/write, packages.resolve, fetch,
exit). The page applies the manifest permissions to context operations and
publishes each write with developer::Store. Ctrl+C or the time limit aborts
the script's signal, then terminates the Worker after a grace period; staged
writes are aborted and committed ones complete. npm's bin is never run and
Node.js imports are refused while loading. Store::list backs
context.project.list.
…st link case without symlink rights [#307]

- A commit refused by the store is aborted too, so its transaction and staging
  do not linger and exhaust the transaction limit.
- context.exit throws to unwind the script at once, and nothing the script does
  after its first exit reaches the page.
- The Store::list link case uses the error_code overload and is skipped where
  links cannot be created, like the other link scenarios.
- lockPath moves to manifest.mjs, so the script Worker no longer bundles semver.
wf restore, application registry precedence and local npm registry fixture [#306]
ambroise-leclerc and others added 20 commits October 25, 2026 09:06
Local CI: run Linux lanes over SSH with offline kits [#346]
Local CI: run native Windows lanes over SSH [#346]
Local CI: run native macOS lanes over SSH [#346]
Cache validated gzip fallback representations [#281]
…#366]

WebFrontLifeDeveloper uses ./life-project (created when missing, reused
untouched) and the pinned environment when run without argument; the
explicit <project> [<environment-url> <sha512-integrity>] form remains.

Configuration enables the native engine of the platform when its
dependencies are found (top-level builds with examples and without tests;
an explicit WEBFRONT_EMBED_* value always wins, WEBFRONT_AUTODETECT_NATIVE=OFF
disables it). Without a native engine the Life examples are built for the
default browser and CMake explains what to install.

The terminal no longer prints its redundant "browser-powered" banner, the
README walkthrough builds with mkdir/cd/cmake/cmake --build, and the
bundle checksum is refreshed.
The terminal change alters the environment archive, and a published version is immutable. The release pin stays on the published 0.6.2.
Bound gzip workers and keep transport benchmarks out of CI [#283]
…ults

Start the Life example without arguments and detect the native window [#366]
@ambroise-leclerc
ambroise-leclerc requested review from AM-L and a balanced review from Copilot October 25, 2026 23:04
@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e70f6277-b575-4e02-b453-6f0090896bb4

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@AM-L
AM-L merged commit a197091 into master Oct 26, 2026
16 checks passed
@AM-L
AM-L deleted the 282-release-0.5.0 branch October 26, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants