From 7835e837b9d91c89a0a5a0af95d54367d54b0ae0 Mon Sep 17 00:00:00 2001 From: Matthew Herbst Date: Thu, 15 Oct 2020 11:57:50 -0700 Subject: [PATCH] v2.10.1 --- CHANGELOG.md | 5 + README.md | 14 +- package-lock.json | 439 ++++++++++++++++++++++++++++------------------ package.json | 12 +- 4 files changed, 284 insertions(+), 186 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1dfec1..7bfc6a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG +## 2.10.1 (October 15th, 2020) + +- FIX [296](https://github.com/gregnb/react-to-print/pull/296): Ensure `bodyClass` can handle multiple class names instead of just a single class name. Thanks [seanblonien](https://github.com/seanblonien) +- CHORE: update patch and minor `devDependencies`, `dedupe`, and `audit fix` + ## 2.10.0 (August 23rd, 2020) - FEATURE [272](https://github.com/gregnb/react-to-print/pull/272): a new prop `print` has been added. This can be used to override the default browser [`Window.print`](https://developer.mozilla.org/en-US/docs/Web/API/Window/print). This can be useful if you want to print in an alternative environment such as Electron. As part of this change, `onPrintError` will now report if an error occurs in a passed in `print` method. Thanks to [Ririshi](https://github.com/Ririshi) for this idea diff --git a/README.md b/README.md index 49fbece..df4c8e3 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ The component accepts the following props: | Name | Type | Description | | :-------------------: | :------- | :---------------------------------------------------------------------------------------------------------------------------------- | -| **`bodyClass?`** | `string` | Class to pass to the print window | +| **`bodyClass?`** | `string` | One or more class names to pass to the print window, separated by spaces | | **`content`** | `function` | A function that returns a component reference value. The content of this reference value is then used for print | | **`copyStyles?`** | `boolean` | Copy all `