Skip to content

Releases: xunmi1/light-print

v2.9.0

Choose a tag to compare

@xunmi1 xunmi1 released this 17 Jul 03:03

🚀 Features

  • Support for aborting/timeout print operations

    const abortController = new AbortController();
    await lightPrint('#id', { signal: abortController.signal });
    // Abort printing immediately.
    abortController.abort();
    // Abort printing after 5 seconds.
    await lightPrint('#id', { signal: AbortSignal.timeout(5000) });

v2.8.2

Choose a tag to compare

@xunmi1 xunmi1 released this 21 Apr 08:48

🚨 Changes

  • Eagerly load resources for media elements
  • Distinguish document rendering modes

v2.8.1

Choose a tag to compare

@xunmi1 xunmi1 released this 11 Mar 03:55
release: v2.8.1

v2.8.0

Choose a tag to compare

@xunmi1 xunmi1 released this 06 Jan 08:16

🚀 Features

  • Support CSS counters
  • Support for printing the body element

🚨 Changes

  • Default print-color-adjust to exact

🐛 Bug Fixes

  • Fix incorrect border-width in edge cases

v2.7.0

Choose a tag to compare

@xunmi1 xunmi1 released this 31 Oct 08:48

🚀 Features

  • support web component
  • Boost style accuracy
  • Preserve style and link elements

🐛 Bug Fixes

  • Fix !important in external styles not taking effect

v2.6.0

Choose a tag to compare

@xunmi1 xunmi1 released this 21 Oct 01:41

🚀 Features

  • Faster: skips hidden elements
  • Lower-specificity styles → effortless overrides
  • Scroll position restored automatically

🐛 Bug Fixes

  • Fixed printing failures when canvas width/height is 0
  • Resolved videos hanging indefinitely

v2.5.1

Choose a tag to compare

@xunmi1 xunmi1 released this 21 Jul 08:53

No changes.

add unit & E2E test cases

v2.5.0

Choose a tag to compare

@xunmi1 xunmi1 released this 09 Jul 02:55
  • Validate pseudo-element viability to minimize generation.
  • Use a differential cloning algorithm.

v2.4.0

Choose a tag to compare

@xunmi1 xunmi1 released this 02 Jul 06:35
  • support custom fonts

v2.3.0

Choose a tag to compare

@xunmi1 xunmi1 released this 25 Jun 07:39
  • support MathML element.
  • support SVG's image element.