更新日志¶
本页直接同步自仓库根目录的 CHANGELOG.md,版本规范见发布流程、文档版本与仓库治理。
v0.2.0 - 2026-11-27¶
Added¶
- expose managed
cache_font,cached_fonts,unregister_font, andclear_fontsthroughTakumiAPI, and supportunicode_rangein both capability leases and configured fonts. - render named Python drawing functions through
DrawingRendererandgraphics.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
HtmlPreparercaller contract throughservice.preparation, with explicitprepare_html,prepare_text,prepare_markdown, andprepare_templatestages feedingrasterize_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, andDrawingRendererdirectly in Entari handlers and refresh them with the plugin lifecycle.
Changed¶
- require
takumi-py>=0.4.0without 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_bytesandprovider_config.font_cache_max_bytes.nullretains upstream defaults: 64 MiB for resource caching and no limit for the evictable font cache. - register font subsets under a shared
namewith inclusiveunicode_rangecodepoint pairs. Existingsubset_ofconfiguration remains compatible and takes precedence overname. - 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.0and Entari>=0.19.4,<0.20.0, with release validation across Python 3.11–3.14. - switch Markdown math to
pymdownx.arithmatexin generic mode withsmart_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
HtmlRenderServiceplugin-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.
- classify managed Takumi input validation failures consistently while preserving native execution error semantics.
- 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
devpreviews ofDocument,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.
v0.1.0 - 2026-08-14¶
Chore¶
- inline markdown lint configuration (8542b67 by Tacrolimus).
- reset package metadata for new repository (c60dae2 by Tacrolimus).
- import htmlrender source baseline (e1e9847 by BalconyJH).
Continuous Integration¶
- consolidate build and release workflows (38dec35 by Tacrolimus).
Docs¶
- reorganize guides around public contracts (f6db727 by Tacrolimus).
Bug Fixes¶
- restore CI compatibility (dc77635 by Tacrolimus).
- harden lifecycle and distribution boundaries (0d78ecf by BalconyJH).