From 8cb033a0e0ff8cca41d0fd92d90b5589d88c206f Mon Sep 17 00:00:00 2001 From: Matt Herbst Date: Tue, 12 Mar 2024 09:59:01 -0700 Subject: [PATCH] Update repo link --- CHANGELOG.md | 146 ++++++++++++++-------------- LICENSE | 2 +- README.md | 28 +++--- examples/ComponentToPrint/index.tsx | 2 +- package.json | 6 +- src/components/ReactToPrint.tsx | 10 +- 6 files changed, 97 insertions(+), 97 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bfa1b58..b6a9c15 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,11 @@ ## 2.15.1 (February 13th, 2024) -- FIX [686](https://github.com/gregnb/react-to-print/pull/686) A breaking type error was mistakenly introduced as part of [652](https://github.com/gregnb/react-to-print/issues/652). This has been fixed. +- FIX [686](https://github.com/MatthewHerbst/react-to-print/pull/686) A breaking type error was mistakenly introduced as part of [652](https://github.com/MatthewHerbst/react-to-print/issues/652). This has been fixed. ## 2.15.0 (February 11th, 2024) -- FEATURE [652](https://github.com/gregnb/react-to-print/issues/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](https://github.com/isocroft) +- FEATURE [652](https://github.com/MatthewHerbst/react-to-print/issues/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](https://github.com/isocroft) - DEPENDENCIES: Upgraded all `devDependencies` to their latest versions - CHORE: broke up the single file in the repo, started organizing things a bit @@ -16,21 +16,21 @@ This is a republish of 2.14.14 since that version got screwed up by some [downti ## 2.14.14 (September 22nd, 2023) -- FIX [635](https://github.com/gregnb/react-to-print/issues/635): Ensure proper handling of `` nodes that have multiple value `rel` attributes set such as `rel="prefetch stylesheet"`, and, ensure proper handling of `` nodes using `rel="preload" + as="style"` -- DOCS [637](https://github.com/gregnb/react-to-print/issues/637): Added README section regarding having proper a `media` attribute set on `` nodes -- DOCS [633](https://github.com/gregnb/react-to-print/pull/633) Added README section regarding proper printing of scrolled containers. Thanks [siaikin](https://github.com/siaikin)! +- FIX [635](https://github.com/MatthewHerbst/react-to-print/issues/635): Ensure proper handling of `` nodes that have multiple value `rel` attributes set such as `rel="prefetch stylesheet"`, and, ensure proper handling of `` nodes using `rel="preload" + as="style"` +- DOCS [637](https://github.com/MatthewHerbst/react-to-print/issues/637): Added README section regarding having proper a `media` attribute set on `` nodes +- DOCS [633](https://github.com/MatthewHerbst/react-to-print/pull/633) Added README section regarding proper printing of scrolled containers. Thanks [siaikin](https://github.com/siaikin)! - DEPENDENCIES: Upgrade all `devDependencies` to their latest versions ## 2.14.13 (June 7th, 2023) -- FIX [616](https://github.com/gregnb/react-to-print/issues/616): When passing a custom `print` function we were not waiting for that function to resolve its promise before removing the printing iframe if `removeAfterPrint={true}` was set. Further, we were not calling `onAfterPrint` at all when a custom printing function was passed. While not strictly needed since the caller knows when the printing has completed by resolving the promise, we now call `onAfterPrint` when that promise has resolved and before removing the print iframe +- FIX [616](https://github.com/MatthewHerbst/react-to-print/issues/616): When passing a custom `print` function we were not waiting for that function to resolve its promise before removing the printing iframe if `removeAfterPrint={true}` was set. Further, we were not calling `onAfterPrint` at all when a custom printing function was passed. While not strictly needed since the caller knows when the printing has completed by resolving the promise, we now call `onAfterPrint` when that promise has resolved and before removing the print iframe - DEPENDENCIES: Removed our long unused single prod dependency, `prop-types`. The package now has zero `dependencies` 🪓 - CHORE: Updated all `devDependencies` to their latest versions - CHORE: Removed a bunch of old unused files including `require.d.ts`, `.babelrc`, and an unused example ## 2.14.12 (February 18th, 2023) -- FIX [565](https://github.com/gregnb/react-to-print/pull/565): Support font-weight and font-style for custom fonts (and add more font examples). Thanks [gauthierrodaro](https://github.com/gauthierrodaro) +- FIX [565](https://github.com/MatthewHerbst/react-to-print/pull/565): Support font-weight and font-style for custom fonts (and add more font examples). Thanks [gauthierrodaro](https://github.com/gauthierrodaro) - CHORE: Updated all `devDependencies` ## 2.14.11 (January 3rd, 2023) @@ -49,41 +49,41 @@ Happy new year! We can't wait to see what 2023 brings ## 2.14.10 (November 17th, 2022) -- FIX [556](https://github.com/gregnb/react-to-print/pull/556) In 2.14.9 we changed the print `iframe` size to be dynamic but didn't take into account the fixed offset we were giving to hide it on the page. This resulted in the print `iframe` being partially visible when printing on wide screens. This has been corrected +- FIX [556](https://github.com/MatthewHerbst/react-to-print/pull/556) In 2.14.9 we changed the print `iframe` size to be dynamic but didn't take into account the fixed offset we were giving to hide it on the page. This resulted in the print `iframe` being partially visible when printing on wide screens. This has been corrected ## 2.14.9 (November 14th, 2022) -- FIX [553](https://github.com/gregnb/react-to-print/pull/553) Ensures that the `iframe` used for printing has the same viewport size as the parent window of the node being printed. Prior to this the browser set the default 300px/150px size on the `iframe`, causing code that changes styles based on viewport sizes (such as many grid systems) to sometimes change the display of the elements being printed, requiring CSS hacks to avoid. Thanks [dantecarlo](https://github.com/dantecarlo) for reviving this issue +- FIX [553](https://github.com/MatthewHerbst/react-to-print/pull/553) Ensures that the `iframe` used for printing has the same viewport size as the parent window of the node being printed. Prior to this the browser set the default 300px/150px size on the `iframe`, causing code that changes styles based on viewport sizes (such as many grid systems) to sometimes change the display of the elements being printed, requiring CSS hacks to avoid. Thanks [dantecarlo](https://github.com/dantecarlo) for reviving this issue ## 2.14.8 (November 3rd, 2022) -- FIX [537](https://github.com/gregnb/react-to-print/pull/537)/[545](https://github.com/gregnb/react-to-print/pull/543) `` nodes marked with the `disabled` attribute were causing printing to hang. Thanks [luckrnx09](https://github.com/luckrnx09) -- FIX/CHORE [545](https://github.com/gregnb/react-to-print/pull/545) Updated examples to use React 18. This also exposed a minor typing bug (`ReactToPrint` needed to specify a `children` prop to fully support React 18) which was corrected. Other dependencies were also updated, mostly dropping Node 12 support -- CHORE [538](https://github.com/gregnb/react-to-print/pull/538) The examples had some minor Webpack related refactors +- FIX [537](https://github.com/MatthewHerbst/react-to-print/pull/537)/[545](https://github.com/MatthewHerbst/react-to-print/pull/543) `` nodes marked with the `disabled` attribute were causing printing to hang. Thanks [luckrnx09](https://github.com/luckrnx09) +- FIX/CHORE [545](https://github.com/MatthewHerbst/react-to-print/pull/545) Updated examples to use React 18. This also exposed a minor typing bug (`ReactToPrint` needed to specify a `children` prop to fully support React 18) which was corrected. Other dependencies were also updated, mostly dropping Node 12 support +- CHORE [538](https://github.com/MatthewHerbst/react-to-print/pull/538) The examples had some minor Webpack related refactors ## 2.14.7 (April 28th, 2022) -- FIX [484](https://github.com/gregnb/react-to-print/issues/484): Previously `onAfterPrint` was not being called if a custom `print` function was passed. Now it will always be called +- FIX [484](https://github.com/MatthewHerbst/react-to-print/issues/484): Previously `onAfterPrint` was not being called if a custom `print` function was passed. Now it will always be called - CHORE: a couple `devDependency` updates to make `npm audit` happy ## 2.14.6 (April 9th, 2022) -- FIX [485](https://github.com/gregnb/react-to-print/issues/485): `react-to-print` assumed that the `tagName` of `