You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expose managed cache_font, cached_fonts, unregister_font, and clear_fonts through TakumiAPI, and support unicode_range in both capability leases and configured fonts.
render named Python drawing functions through DrawingRenderer and graphics.drawings, with native Pillow/Skia canvases and optional source reload.
load standalone drawing sources in isolated module generations, and use Entari's plugin system for canonical imports, shared helpers, dependency reloads, and drawing lifecycle ownership.
add the plugin-scoped HtmlPreparer caller contract through service.preparation, with explicit prepare_html, prepare_text, prepare_markdown, and prepare_template stages feeding rasterize_prepared().
expose complete managed Takumi compile, measure, SVG, node, animation, frame, and font operations through lease_api(), with lease and compiled-document ownership guards.
support simultaneous Pillow and Skia backends with typed capabilities and independent budgets.
expose independent template-variable and URL resolution with immutable, exact URL authorization mappings.
forward custom Jinja filters and extensions through template rendering and preparation.
inject HtmlRenderer, TemplateRenderer, HtmlPreparer, ResourceAccess, GraphicsRenderer, and DrawingRenderer directly in Entari handlers and refresh them with the plugin lifecycle.
Changed
require takumi-py>=0.4.0 without an upper bound. The 0.4.0 baseline uses Takumi 2.17 rendering behavior and removes upstream's deprecated resource APIs.
expose native resource and font-cache budgets through provider_config.cache_max_bytes and provider_config.font_cache_max_bytes. null retains upstream defaults: 64 MiB for resource caching and no limit for the evictable font cache.
register font subsets under a shared name with inclusive unicode_range codepoint pairs. Existing subset_of configuration remains compatible and takes precedence over name.
retain separate native resource, native font, and compiled HTML/CSS caches. Native resource caching includes repeated data: URI images; the font-cache budget guides eviction rather than bounding peak memory, and fonts added by the current call or pinned by registration are not evicted for space.
retain native Playwright and Takumi static types without eagerly importing optional engines.
use Python 3.11 built-in exception groups and string enums.
require Python >=3.11,<4.0 and Entari >=0.19.4,<0.20.0, with release validation across Python 3.11–3.14.
switch Markdown math to pymdownx.arithmatex in generic mode with smart_dollar=True; $x$ and \(x\) remain inline, while $ x $ stays literal and $$...$$ / \[...\] require standalone paragraph or block context for display math.
mark only parser-generated Arithmatex containers with data-htmlrender-arithmatex, inject KaTeX assets for browser rendering, and reject JavaScript-requiring formula documents through the Takumi source boundary.
raise core dependency floors to AnyIO >=4.13.0, Markdown >=3.11.3, and PyMdown Extensions >=12.3.
keep HtmlRenderService plugin-scoped through Entari DI and Launart stages, including cancellation-safe runtime drain and hosted-resource shutdown.
keep the 0.2.0 distribution on a framework-neutral boundary: it does not include a NoneBot framework plugin dependency, initialize another host framework, or ship a migration shim for one.
update the third-party provider example, documentation navigation, provider selection matrix, installation ranges, and versioned-docs examples for the 0.2 release line.
Fixed
preserve bracketed IPv6 identities when matching published browser-resource authorization, so a host/port pair cannot share credentials with a different IPv6 address.
report expired rendering deadlines after cancellation-shielded workers drain, instead of returning a late successful result.
decode local file URLs once, retain literal percent-encoded filename characters, and avoid fetching document-local SVG/CSS fragment references.
reject further native calls on a poisoned Takumi lease, keep font-family state accurate after partial registration failures, and inherit document bases for prepared stylesheets.
retain filehost listener and temporary-directory ownership until cleanup succeeds, allowing failed or cancelled cleanup to be retried.
isolate cancellation between Entari DI callers and release unused drawing module fingerprints without disturbing active or borrowed plugins.
guarantee runtime cleanup when Provider conformance checks fail or are cancelled.
require real browser-test execution in the Entari compatibility workflow and include that workflow in exact-source release gates and the main protection template.
preserve resource URL fragments and decode local URL paths before authorization, while keeping filehost request headers scoped to the exact fragment-free request URL.
harden release workflow dispatch (d224199 by Tacrolimus).
strengthen distribution metadata and CI contracts for the Python/Entari support matrix and minimum versions for native extras.
Documentation
document Takumi 0.4.0's supported wheel platforms, Unicode font subsets, cache and release lifecycles, and animation limits.
distinguish published Takumi capabilities from the upstream dev previews of Document, RasterImage, and MathJax. This release still uses Playwright for Markdown formulas.
include named drawings, shared-package imports, and initializer-only packages in the 0.2 migration and service documentation.