diff --git a/CHANGELOG.md b/CHANGELOG.md index 093a328..b7ce898 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # CHANGELOG +## 3.0.1 (September 30th, 2024) + +- FIX [743](https://github.com/MatthewHerbst/react-to-print/pull/743) Allow passing the function returned from `useReactToPrint` directly to event handlers (this is primarily geared at non-typescript users who are not aware of the new v3 API that prefers the function be wrapped, by changing `onClick={printFn}` to `onClick={() => printFn()}`) + ## 3.0.0 (September 28th, 2024) v3.0.0 brings API modernization, React 19 support, a smaller package size, Shadow DOM support, and improved error handling. diff --git a/package-lock.json b/package-lock.json index 745779b..aec91be 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-to-print", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index edd8cea..c1a8a5f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-to-print", - "version": "3.0.0", + "version": "3.0.1", "description": "Print React components in the browser", "main": "lib/index.js", "types": "lib/index.d.ts",