From 670ad18e7ff1ad38ea27a4b74a8fefcbc890bf24 Mon Sep 17 00:00:00 2001 From: Matthew Herbst Date: Sat, 28 Sep 2024 15:38:06 -0700 Subject: [PATCH] v3.0.0 (#741) --- CHANGELOG.md | 31 +++++++++++++++++-------------- package-lock.json | 2 +- package.json | 2 +- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 93f132e..093a328 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,8 @@ # CHANGELOG -## (BETA) 3.0.0 (Upcoming) +## 3.0.0 (September 28th, 2024) -### Beta Versions - -- `3.0.0-beta-3` (19 Aug 2024) -- `3.0.0-beta-2` (19 Aug 2024) -- `3.0.0-beta-1` (15 Jul 2024) - -### New - -- FEATURE [717](https://github.com/MatthewHerbst/react-to-print/pull/717): React 19 support + API modernization -- FEATURE [707](https://github.com/MatthewHerbst/react-to-print/issues/707): Improved error handling when `canvas` elements have not properly loaded -- FEATURE [723](https://github.com/MatthewHerbst/react-to-print/pull/723): Add new option, `copyShadowRoots`, to support copying [`ShadowRoot`](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot)s -- CHORE: package size reduced by 18.7kb (34%) +v3.0.0 brings API modernization, React 19 support, a smaller package size, Shadow DOM support, and improved error handling. ### BREAKING CHANGES @@ -28,7 +17,21 @@ - Default package export removed, use named `useReactToPrint` export - Removed `event?: unknown` type from `useReactToPrint` callback. `optionalContent` is now the only (optional) argument - Build is now ES6 code. Previously it was ES5 -- No longer officially support IE11 (will still try but no promises) +- No longer supporting IE11 + +### New + +- FEATURE [717](https://github.com/MatthewHerbst/react-to-print/pull/717): React 19 support + API modernization +- FEATURE [707](https://github.com/MatthewHerbst/react-to-print/issues/707): Improved error handling when `canvas` elements have not properly loaded +- FEATURE [723](https://github.com/MatthewHerbst/react-to-print/pull/723): Add new option, `copyShadowRoots`, to support copying [`ShadowRoot`](https://developer.mozilla.org/en-US/docs/Web/API/ShadowRoot)s. Thanks [boehlke](https://github.com/boehlke) +- CHORE: package size reduced by 18.7kb (34%) +- CHORE: dev dependencies updated + +### Beta Versions + +- `3.0.0-beta-3` (19 Aug 2024) +- `3.0.0-beta-2` (19 Aug 2024) +- `3.0.0-beta-1` (15 Jul 2024) ## 2.15.1 (February 13th, 2024) diff --git a/package-lock.json b/package-lock.json index 9f293e0..745779b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "react-to-print", - "version": "3.0.0-beta-3", + "version": "3.0.0", "lockfileVersion": 2, "requires": true, "packages": { diff --git a/package.json b/package.json index 1bf2927..edd8cea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-to-print", - "version": "3.0.0-beta-3", + "version": "3.0.0", "description": "Print React components in the browser", "main": "lib/index.js", "types": "lib/index.d.ts",