Skip to content

Commit

Permalink
Merge pull request #257 from gregnb/version-2.9.0
Browse files Browse the repository at this point in the history
Version 2.9.0
  • Loading branch information
MatthewHerbst authored Jun 3, 2020
2 parents 8e9510f + 8f06fbd commit c735f9e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## 2.9.0 (June 2nd, 2020)

- FEATURE [255](https://github.com/gregnb/react-to-print/pull/255): updated local development examples so that every use case is covered
- FIX [255](https://github.com/gregnb/react-to-print/pull/255): `onload` event listener is now cleared after being called
- FIX [255](https://github.com/gregnb/react-to-print/pull/255): `useReactToPrint` now properly sets `defaultProps`
- CHORE [256](https://github.com/gregnb/react-to-print/pull/256): updated `devDependencies` to latest. This clears a high severity `npm audit` issue

## 2.8.0 (May 19th, 2020)

- FEATURE [245](https://github.com/gregnb/react-to-print/pull/245): `documentTitle` prop can now be passed to set a default filename when the user is saving as a PDF. Thanks [zb2oby](https://github.com/zb2oby)
Expand Down
4 changes: 3 additions & 1 deletion example/FunctionalComponentWithHook/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ export const FunctionalComponentWithHook = () => {
return (
<div>
{loading && <p className="indicator">Loading...</p>}
<button onClick={handlePrint}>Print this out!</button>
<button onClick={handlePrint}>
Print using a Functional Component with the useReactToPrint hook
</button>
<ComponentToPrint ref={componentRef} text={text} />
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-to-print",
"version": "2.8.0",
"version": "2.9.0",
"description": "Print React components in the browser",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit c735f9e

Please sign in to comment.