FIX 686 A breaking type error was mistakenly introduced as part of 652. This has been fixed.
2.15.0 (February 11th, 2024)
FEATURE 652: When using the useReactToPrint hook it is now possible to pass the returned callback the content 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
CHORE: broke up the single file in the repo, started organizing things a bit
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.
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
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps react-to-print from 2.14.13 to 2.15.1.
Release notes
Sourced from react-to-print's releases.
Changelog
Sourced from react-to-print's changelog.
Commits
5b56731
v2.15.1 (#687)d172651
Ensureevent
argument is optional (#686)223730c
v2.15.0 (#684)756888b
UpdatedevDependencies
, break up and organize code (#683)3cc32aa
impl(lazy-initialize): set content for handlePrint() and handleClick() via se...4b3ed1a
v2.14.15 (#654)834dd40
v2.14.14 (#647)5f1c144
Handle\<link>
nodes that have multiplerel
values and/or use `rel="preloa...293394a
Add README section aboutmedia
attribute on\<link>
(#645)03319ce
Upgrade alldevDependencies
to latest (#644)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show