unstale

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

@unstale/cli 0.2.6 on npm

@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.

    2.0.0upgrade guide

  • An omitted border width now resolves to medium (3px) instead of 0; thin, medium, and thick are accepted.

    2.0.0upgrade guide

  • encodeFrames is removed; use renderAnimation or render once per frame for raw output.

    2.0.0upgrade guide

  • Pass each render's required images through images, keyed by src; the renderer no longer retains a persistent image store.

    2.0.0upgrade guide

  • line-clamp is now a shorthand for max-lines, block-ellipsis, and continue; clamped ancestors no longer impose their line limit on descendants.

    2.0.0upgrade guide

  • The default changes from top-left to center (50% 50%); specify the anchor explicitly where you relied on the old default.

    2.0.0upgrade guide

  • An omitted outline width now resolves to medium (3px) instead of 0; thin, medium, and thick are accepted.

    2.0.0upgrade guide

  • The default changes from relative to static; set position: relative where you relied on the old containing-block or inset behavior.

    2.0.0upgrade guide

  • Use registerFont to preload fonts on a reused renderer; it accepts raw bytes or a font descriptor and resolves to registered families.

    2.0.0upgrade guide

  • Rendering throws when animation frame rate exceeds the format limit: 90 fps for WebP and APNG, or 50 fps for GIF.

    2.0.0upgrade guide

  • The constructor no longer accepts fonts or a context; construct it without arguments and pass fonts through each render's fonts option.

    2.0.0upgrade guide

  • Negative scale values now reflect or mirror the element instead of collapsing it to zero.

    2.0.0upgrade guide

  • The default changes from top-left to center (50% 50%); specify the origin explicitly where you relied on the old default.

    2.0.0upgrade guide

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.

    2.0.0upgrade guide

  • Render options accept fonts, including bare URL strings; URL fonts are fetched on demand and cached.

    2.0.0upgrade guide

  • A Map-like byte cache can be shared across renders to deduplicate concurrent image fetches.

    2.0.0upgrade guide

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.

    2.0.0upgrade guide

@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.

    1.0.0upgrade guide

Fixes and other changes 1

  • CJS consumers resolve the package’s .d.cts declarations through export types split by import/require condition.

    1.8.7release notes