From ada7849aa18f468ad32fcbdbc3d9783a375b7247 Mon Sep 17 00:00:00 2001 From: Matt Herbst Date: Sun, 22 Dec 2024 15:59:30 -0800 Subject: [PATCH] v3.0.3 --- CHANGELOG.md | 12 +++++++++--- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff70347..f8ef57c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,16 @@ # CHANGELOG -## 3.0.3-beta-1 (December 16th, 2024) - -This is a beta release. Please report any issues in the issue below, thank you! +## 3.0.3 (December 22th, 2024) - FIX [764](https://github.com/MatthewHerbst/react-to-print/pull/764) Ensure `onAfterPrint` is called, and print iframe is removed, after the print preview dialog has closed. Previously these would happen when the `afterprint` event was received which, as noted in the README, may occur immediately in some browsers, rather than when the print preview dialog closes. Thanks [sensasi-delight](https://github.com/sensasi-delight) +- FIX [768](https://github.com/MatthewHerbst/react-to-print/issues/768) React 19 made a small change to the typing for Refs which requires explicitly handling `null`/`undefined` initial types +- CHORE: Minor code cleanup and comments +- CHORE: Updated `devDependencies` to latest, including now using React 19 for our examples +- DOCS: README updates, including a link to using the lazy method of providing content + +### Beta Versions + +- `3.0.3-beta-1` (16th Dec 2024) ## 3.0.2 (October 17th, 2024) diff --git a/package-lock.json b/package-lock.json index e9db943..a00cbf4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "react-to-print", - "version": "3.0.3-beta-1", + "version": "3.0.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "react-to-print", - "version": "3.0.3-beta-1", + "version": "3.0.3", "license": "MIT", "devDependencies": { "@eslint/js": "^9.17.0", diff --git a/package.json b/package.json index 1af7822..812d69b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-to-print", - "version": "3.0.3-beta-1", + "version": "3.0.3", "description": "Print React components in the browser", "main": "lib/index.js", "types": "lib/index.d.ts",