Skip to content

Commit

Permalink
v2.13.14 (#623)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHerbst authored Jun 7, 2023
1 parent 0ad13ce commit de4c04b
Show file tree
Hide file tree
Showing 3 changed files with 10 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.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
- 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)
Expand Down
4 changes: 2 additions & 2 deletions 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.14.12",
"version": "2.14.13",
"description": "Print React components in the browser",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit de4c04b

Please sign in to comment.