Skip to content

Commit

Permalink
v3.0.0 (#741)
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHerbst authored Sep 28, 2024
1 parent 3de1317 commit 670ad18
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 16 deletions.
31 changes: 17 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion 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": "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",
Expand Down

0 comments on commit 670ad18

Please sign in to comment.