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

1
10

2.12.3

Diff

Changelog

Source

2.12.3 (February 5th, 2021)

herbstmb
published 2.12.2 •

Changelog

Source

2.12.2 (January 1st, 2021)

Happy new years!

  • FIX 196: For a long time various inputs/select did not properly copy their value over into the print window. This has been corrected!
  • FIX 292: Removed usage of document.write
  • FIX: Edge case where passing a function to the pageStyle prop that did not return a string could cause problems
  • CHORE: Upgraded all devDependencies
  • CHORE: Minor README updates
herbstmb
published 2.12.1 •

Changelog

Source

2.12.1 (December 14th, 2020)

  • FIX 329: v2.12.0 upgraded Webpack from 4 -> 5 which broke the package for environments that didn't support ES6 as Webpack now requires finer grained controls to output pure ES5 code. These changes have been made.
  • CHORE: upgraded all devDependencies
herbstmb
published 2.12.0 •

Changelog

Source

2.12.0 (November 27th, 2020)

  • CHORE: added React/ReactDOM ^17 to allowed peerDependencies. Library still supports React >= 15, though expect a major release in the near-future that drops React 15 support, which will clear the way to removing the restriction that the top-level component being printed must be a class component
  • CHORE: upgraded all devDependencies. Big changes here include updating Typescript from 3 -> 4 and Webpack from 4 -> 5. While upgrading Webpack the minifier was changed from UglifyJS to Terser, resulting in a 5.7% reduced file size (14.1kb -> 13.3kb)
  • CHORE: Use Node ^14 for CLI tests
  • DOCUMENTATION: small improvements to the examples, including renaming them from example -> examples
  • DOCUMENTATION: added a note about finding the examples folder
  • DOCUMENTATION 311: small type fix, thanks nealeu
  • DOCUMENTATION: added a "Common Pitfalls" section to the README, starting with a note on using the library with a component wrapped in connect from react-redux
herbstmb
published 2.11.0 •

Changelog

Source

2.11.0 (October 30th, 2020)

  • FIX/FEATURE 285: Adds a new fonts prop which allows the passing of custom fonts. Previously custom fonts were not loaded into the print window
  • CHORE: update patch and minor devDependencies, dedupe, and audit fix
herbstmb
published 2.10.3 •

Changelog

Source

2.10.3 (October 16th, 2020)

  • FIX 301: Ensures the library works with modules that have a null prototype such as ES modules and SystemJS modules. Thanks joeldenning
herbstmb
published 2.10.2 •

Changelog

Source

2.10.2 (October 16th, 2020)

  • FIX 298: Fixes a long-standing issue of checkbox state not always copying properly into the print window. Thanks aviklai
  • CHORE: update patch and minor devDependencies, dedupe, and audit fix
herbstmb
published 2.10.1 •

Changelog

Source

2.10.1 (October 15th, 2020)

  • FIX 296: Ensure bodyClass can handle multiple class names instead of just a single class name. Thanks seanblonien
  • CHORE: update patch and minor devDependencies, dedupe, and audit fix
herbstmb
published 2.10.0 •

Changelog

Source

2.10.0 (August 23rd, 2020)

  • FEATURE 272: a new prop print has been added. This can be used to override the default browser Window.print. This can be useful if you want to print in an alternative environment such as Electron. As part of this change, onPrintError will now report if an error occurs in a passed in print method. Thanks to Ririshi for this idea
  • DOCS 269: added guidelines for how to achieve nice page breaks. Thanks hbrannan
  • CHORE 273: updated devDependencies, npm dedupe, npm audit fix
herbstmb
published 2.9.0 •

Changelog

Source

2.9.0 (June 2nd, 2020)

  • FEATURE 255: updated local development examples so that every use case is covered
  • FIX 255: onload event listener is now cleared after being called
  • FIX 255: useReactToPrint now properly sets defaultProps
  • CHORE 256: updated devDependencies to latest. This clears a high severity npm audit issue
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