Skip to content

Commit b95c2b9

Browse files
authored
Merge pull request #16 from rpearce/chore/fix-react-18
Fix: support react 18; use tslib dep via import helpers
2 parents 7b1ff9e + 7e5133d commit b95c2b9

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
## [0.3.5] - 2022-05-23
8+
9+
### Fixed
10+
11+
* Fix support for React 18
12+
* Fix `tslib` `importHelpers: true` not being set
13+
714
## [0.3.4] - 2021-10-28
815

916
### Fixed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-with-forwarded-ref",
3-
"version": "0.3.4",
3+
"version": "0.3.5",
44
"description": "React higher-order component (HOC) for ref forwarding",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",
@@ -74,7 +74,7 @@
7474
"typescript": "^4.4.4"
7575
},
7676
"peerDependencies": {
77-
"react": "^16.3.0 || ^17.0.0"
77+
"react": "^16.3.0 || ^17.0.0 || ^18.0.0"
7878
},
7979
"dependencies": {
8080
"tslib": "^2.0.3"

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"allowSyntheticDefaultImports": true,
55
"declaration": true,
66
"esModuleInterop": true,
7+
"importHelpers": true,
78
"jsx": "react",
89
"lib": ["es2020", "dom"],
910
"module": "es6",

0 commit comments

Comments
 (0)