Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-to-print

Package Overview
Dependencies
Maintainers
2
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-to-print - npm Package Versions

13
10

2.14.15

Diff

Changelog

Source

2.14.15 (October 2nd, 2023)

This is a republish of 2.14.14 since that version got screwed up by some downtime at npm and seems to be in an unrecoverable state.

herbstmb
published 2.14.14 •

Changelog

Source

2.14.14 (September 22nd, 2023)

  • FIX 635: Ensure proper handling of <link> nodes that have multiple value rel attributes set such as rel="prefetch stylesheet", and, ensure proper handling of <link> nodes using rel="preload" + as="style"
  • DOCS 637: Added README section regarding having proper a media attribute set on <link> nodes
  • DOCS 633 Added README section regarding proper printing of scrolled containers. Thanks siaikin!
  • DEPENDENCIES: Upgrade all devDependencies to their latest versions
herbstmb
published 2.14.13 •

Changelog

Source

2.14.13 (June 7th, 2023)

  • FIX 616: When passing a custom print function we were not waiting for that function to resolve its promise before removing the printing iframe if removeAfterPrint={true} was set. Further, we were not calling onAfterPrint at all when a custom printing function was passed. While not strictly needed since the caller knows when the printing has completed by resolving the promise, we now call onAfterPrint when that promise has resolved and before removing the print iframe
  • DEPENDENCIES: Removed our long unused single prod dependency, prop-types. The package now has zero dependencies 🪓
  • CHORE: Updated all devDependencies to their latest versions
  • CHORE: Removed a bunch of old unused files including require.d.ts, .babelrc, and an unused example
herbstmb
published 2.14.12 •

Changelog

Source

2.14.12 (February 18th, 2023)

  • FIX 565: Support font-weight and font-style for custom fonts (and add more font examples). Thanks gauthierrodaro
  • CHORE: Updated all devDependencies
herbstmb
published 2.14.11 •

Changelog

Source

2.14.11 (January 3rd, 2023)

Happy new year! We can't wait to see what 2023 brings

  • FIX: Ensure we wait for fonts to print if they are given
  • FIX: Ensure we continue trying to print when fonts are passed by the browser doesn't support the FontFace API
  • FIX: Improved chances of FireFox printing backgrounds by default in the Print Preview window
  • FIX: Ensure we only process resources once
  • CHORE: Simplified loading logic, including improved error messages when a resource fails to load
  • CHORE: Removed unused TravisCI config
  • CHORE: Updated all devDependencies
  • CHORE: License year updated for 2023 :)
  • DOCS: A bunch of examples and gotchas were added to the README, improved example
herbstmb
published 2.14.10 •

Changelog

Source

2.14.10 (November 17th, 2022)

  • FIX 556 In 2.14.9 we changed the print iframe size to be dynamic but didn't take into account the fixed offset we were giving to hide it on the page. This resulted in the print iframe being partially visible when printing on wide screens. This has been corrected
herbstmb
published 2.14.9 •

Changelog

Source

2.14.9 (November 14th, 2022)

  • FIX 553 Ensures that the iframe used for printing has the same viewport size as the parent window of the node being printed. Prior to this the browser set the default 300px/150px size on the iframe, causing code that changes styles based on viewport sizes (such as many grid systems) to sometimes change the display of the elements being printed, requiring CSS hacks to avoid. Thanks dantecarlo for reviving this issue
herbstmb
published 2.14.8 •

Changelog

Source

2.14.8 (November 3rd, 2022)

  • FIX 537/545 <link> nodes marked with the disabled attribute were causing printing to hang. Thanks luckrnx09
  • FIX/CHORE 545 Updated examples to use React 18. This also exposed a minor typing bug (ReactToPrint needed to specify a children prop to fully support React 18) which was corrected. Other dependencies were also updated, mostly dropping Node 12 support
  • CHORE 538 The examples had some minor Webpack related refactors
herbstmb
published 2.14.7 •

Changelog

Source

2.14.7 (April 28th, 2022)

  • FIX 484: Previously onAfterPrint was not being called if a custom print function was passed. Now it will always be called
  • CHORE: a couple devDependency updates to make npm audit happy
herbstmb
published 2.14.6 •

Changelog

Source

2.14.6 (April 9th, 2022)

  • FIX 485: react-to-print assumed that the tagName of <style> nodes was always 'STYLE', however, sometimes it can be 'style' or possibly other case combinations. Added resiliency to the check so now any casing of 'style' will pass the check
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc