Bump react-to-print from 2.14.15 to 3.0.2
Bumps react-to-print from 2.14.15 to 3.0.2.
Release notes
Sourced from react-to-print's releases.
v3.0.2
Please see the CHANGELOG for release notes.
Full Changelog: https://github.com/MatthewHerbst/react-to-print/compare/v3.0.1...v3.0.2
v3.0.1
Please see the CHANGELOG for release notes.
Full Changelog: https://github.com/MatthewHerbst/react-to-print/compare/v3.0.0...v3.0.1
v3.0.0
Please see the CHANGELOG for release notes.
Full Changelog: https://github.com/MatthewHerbst/react-to-print/compare/v2.15.1...v3.0.0
v3.0.0-beta-3
Please see the CHANGELOG for release notes.
Full Changelog: https://github.com/gregnb/react-to-print/compare/v3.0.0-beta-2..v3.0.0-beta-3
v3.0.0-beta-2
Please see the CHANGELOG for release notes.
Full Changelog: https://github.com/gregnb/react-to-print/compare/v3.0.0-beta-1..v3.0.0-beta-2
v3.0.0-beta-1
Please see the CHANGELOG for release notes.
Full Changelog: https://github.com/gregnb/react-to-print/compare/v2.15.0..v3.0.0-beta-1
v2.15.1
Please see the CHANGELOG for release notes.
Full Changelog: https://github.com/gregnb/react-to-print/compare/v2.15.0..v2.15.1
v2.15.0
Please see the CHANGELOG for release notes.
Full Changelog: https://github.com/gregnb/react-to-print/compare/v2.14.15..v2.15.0
Changelog
Sourced from react-to-print's changelog.
3.0.2 (October 17th, 2024)
- FIX 751 Ensure selected
<select>
option printed. Currently the first option is printed regardless of selection state- FIX 753 Fix incorrect ESLint config reference to tsconfig file
3.0.1 (September 30th, 2024)
- FIX 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 changingonClick={printFn}
toonClick={() => 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.
BREAKING CHANGES
content
renamed tocontentRef
and type changed from() => React.ReactInstance
toRefObject<Element | Text>
. The core impact here is that Class components now need to have the ref forwarded via props internally to a DOM node- React >= 16.8.0 required (dropped support for React versions that don't support hooks)
onBeforeGetContent
removed. UseonBeforePrint
, which similar toonBeforeGetContent
, now runs before the print iframe is loadedremoveAfterPrint
renamed topreserveAfterPrint
which defaults tofalse
ReactToPrint
removed. UseuseReactToPrint
PrintContextConsumer
removed. UseuseReactToPrint
trigger
removed, use the function returned byuseReactToPrint
IReactToPrintProps
renamed toUseReactToPrintOptions
- Default package export removed, use named
useReactToPrint
export- Removed
event?: unknown
type fromuseReactToPrint
callback.optionalContent
is now the only (optional) argument- Build is now ES6 code. Previously it was ES5
- No longer supporting IE11
New
- FEATURE 717: React 19 support + API modernization
- FEATURE 707: Improved error handling when
canvas
elements have not properly loaded- FEATURE 723: Add new option,
copyShadowRoots
, to support copyingShadowRoot
s. Thanks boehlke- CHORE: package size reduced by 18.7kb (34%)
- CHORE: dev dependencies updated
Beta Versions
3.0.0-beta-3
(19 Aug 2024)3.0.0-beta-2
(19 Aug 2024)3.0.0-beta-1
(15 Jul 2024)2.15.1 (February 13th, 2024)
2.15.0 (February 11th, 2024)
- FEATURE 652: When using the
useReactToPrint
hook it is now possible to pass the returned callback thecontent
ref at call time, rather than needing to pass it to the hook directly. This allows for generating the content to be printed closer to when the print occurs. Thanks isocroft- DEPENDENCIES: Upgraded all
devDependencies
to their latest versions
... (truncated)
Commits
-
46dde74
v3.0.2 (#754) -
706119d
Correct tsconfig reference in ESLint setup (#753) -
c7784f5
Fix regression with select inputs (#752) -
53b825a
Remove unused dev tsconfig (#746) -
6a10451
v3.0.1 (#744) -
2900c34
Handle hook fn being passed to event handlers raw (#743) -
670ad18
v3.0.0 (#741) -
3de1317
Display original error when css fails to load (#740) -
0f0ddd3
Update dev dependencies (#739) -
d35c205
Add Relative Project (#730) - Additional commits viewable in compare view