npm / @takumi-rs/wasm
@takumi-rs/wasm
What changed in @takumi-rs/wasm 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-24.
14 breaking3 new APIs and options1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli init@takumi-rs/wasm 217 changes
Breaking changes 13
The shorthand no longer parses or resets background-blend-mode; set the blend mode with the longhand.
An omitted border width now resolves to medium (3px) instead of 0; thin, medium, and thick are accepted.
encodeFrames is removed; use renderAnimation or render once per frame for raw output.
Pass each render's required images through images, keyed by src; the renderer no longer retains a persistent image store.
line-clamp is now a shorthand for max-lines, block-ellipsis, and continue; clamped ancestors no longer impose their line limit on descendants.
The default changes from top-left to center (50% 50%); specify the anchor explicitly where you relied on the old default.
An omitted outline width now resolves to medium (3px) instead of 0; thin, medium, and thick are accepted.
The default changes from relative to static; set position: relative where you relied on the old containing-block or inset behavior.
Use registerFont to preload fonts on a reused renderer; it accepts raw bytes or a font descriptor and resolves to registered families.
Rendering throws when animation frame rate exceeds the format limit: 90 fps for WebP and APNG, or 50 fps for GIF.
The constructor no longer accepts fonts or a context; construct it without arguments and pass fonts through each render's fonts option.
Negative scale values now reflect or mirror the element instead of collapsing it to zero.
The default changes from top-left to center (50% 50%); specify the origin explicitly where you relied on the old default.
New APIs and options 3
Each render can specify an ordered font family fallback list; by default, all registered families are tried in registration order.
Render options accept fonts, including bare URL strings; URL fonts are fetched on demand and cached.
A Map-like byte cache can be shared across renders to deduplicate concurrent image fetches.
Behavior and default changes 1
The WebAssembly binding supports the quality field for JPEG only; it does not support lossless, and WebP is always lossless.
@takumi-rs/wasm 12 changes
Breaking changes 1
takumi-js now detects the runtime and selects the appropriate bindings; import ImageResponse from takumi-js/response instead of importing WASM bindings directly.
Fixes and other changes 1
CJS consumers resolve the package’s
.d.ctsdeclarations through export types split by import/require condition.