Skip to content

0.3.0 — Tools for dynamic view components

Pre-release
Pre-release

Choose a tag to compare

@AlexusEl AlexusEl released this 07 Sep 20:15

Register tools for individual view components with registerTools(handlers, { root }). A cart or search panel can now replace its HTML and register its new tools while preserving the rest of the page's tools.

  • Each component has its own cleanup through await tools.dispose() and optional AbortSignal.
  • Omitting root preserves the whole-document behavior. Tool names remain unique across the page.
  • Native Chromium tests cover component replacement and independent cleanup, custom Java /static and Scala /assets routes, and deployment under /shop.
  • The English README includes an integration example, a lifecycle diagram, and instructions for updating the dependency.

Upgrade the dependency to 0.3.0, then run sbt clean update before rebuilding to remove any older extracted WebJar files. Existing helpers and the public runtime path remain compatible.

Install using the resolver and dependency in the English guide. The same JARs support Java and Scala applications and target Java 11.

Validation: all 26 CI jobs passed, including independent installation across Play 3.0.0–3.0.11, both Scala families, and Java 11/17/21 checks. The runtime has 32 passing unit tests; 12 native-browser scenarios passed across both applications and deployment paths.

WebMCP remains experimental. Browser and agent support are documented separately in the README; no test with a ChatGPT account is claimed.