Skip to content

Commit 654a9e5

Browse files
committed
5.0.0
1 parent 18896f8 commit 654a9e5

File tree

6 files changed

+21
-12
lines changed

6 files changed

+21
-12
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
### v5.0.0 (17 May 2023)
2+
3+
- [BREAKING] Remove deprecated findDOMNode; now requires functional child components to use `forwardRef` (#101)
4+
- [BUGFIX] Avoid an occasional flicker when the exiting node is removed (#114)
5+
16
### v4.0.5 (6 September 2021)
27

38
- [UPGRADE] Add React 17 to peer dependencies.

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ Install via `npm`:
3030
npm install --save react-css-transition-replace
3131
```
3232

33+
## Important Note
34+
35+
All functional child components must be wrapped in `forwardRef` to work correctly.
36+
3337
## Usage
3438

3539
A `ReactCSSTransitionReplace` component can only have a single child. Other than that, the basic usage
@@ -49,7 +53,7 @@ This provides many possibilities for animating the replacement as illustrated in
4953

5054
Additionally, the boolean property `changeWidth` can be used to animate changing the width of the component.
5155
This change will happen at the same time as changing the height. Animating this change should be done using
52-
the same class name as is used for animating the change in height.
56+
the same class name that is used for animating the change in height.
5357

5458
It is also possible to remove the child component (i.e. leave `ReactCSSTransitionReplace` with no children)
5559
which will animate the `height` going to zero along with the `leave` transition. Similarly, a single child

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-css-transition-replace",
3-
"version": "4.0.5",
3+
"version": "5.0.0",
44
"private": true,
55
"authors": "Marnus Weststrate <[email protected]>",
66
"license": "MIT",

packages/demo/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-css-transition-replace-demo",
3-
"version": "4.0.4",
3+
"version": "5.0.0",
44
"private": true,
55
"homepage": "https://marnusw.github.io/react-css-transition-replace",
66
"scripts": {

packages/react-css-transition-replace/package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-css-transition-replace",
3-
"version": "4.0.5",
3+
"version": "5.0.0",
44
"description": "A React component to animate replacing one element with another.",
55
"main": "lib/ReactCSSTransitionReplace.js",
66
"module": "es/ReactCSSTransitionReplace.js",
@@ -19,12 +19,12 @@
1919
"postpublish": "rm *.md"
2020
},
2121
"dependencies": {
22-
"dom-helpers": "^5.2.0",
23-
"prop-types": "^15.7.2"
22+
"dom-helpers": "^5.2.1",
23+
"prop-types": "^15.8.1"
2424
},
2525
"peerDependencies": {
26-
"react": "^16.3.0 || ^17.0.0",
27-
"react-dom": "^16.3.0 || ^17.0.0"
26+
"react": ">=16.3.0",
27+
"react-dom": ">=16.3.0"
2828
},
2929
"devDependencies": {
3030
"@babel/cli": "^7.6.0",

yarn.lock

+4-4
Original file line numberDiff line numberDiff line change
@@ -4773,10 +4773,10 @@ dom-helpers@^3.2.0, dom-helpers@^3.2.1, dom-helpers@^3.4.0:
47734773
dependencies:
47744774
"@babel/runtime" "^7.1.2"
47754775

4776-
dom-helpers@^5.2.0:
4777-
version "5.2.0"
4778-
resolved "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.0.tgz#57fd054c5f8f34c52a3eeffdb7e7e93cd357d95b"
4779-
integrity sha512-Ru5o9+V8CpunKnz5LGgWXkmrH/20cGKwcHwS4m73zIvs54CN9epEmT/HLqFJW3kXpakAFkEdzgy1hzlJe3E4OQ==
4776+
dom-helpers@^5.2.1:
4777+
version "5.2.1"
4778+
resolved "https://registry.yarnpkg.com/dom-helpers/-/dom-helpers-5.2.1.tgz#d9400536b2bf8225ad98fe052e029451ac40e902"
4779+
integrity sha512-nRCa7CK3VTrM2NmGkIy4cbK7IZlgBE/PYMn55rrXefr5xXDP0LdtfPnblFDoVdcAfslJ7or6iqAUnx0CCGIWQA==
47804780
dependencies:
47814781
"@babel/runtime" "^7.8.7"
47824782
csstype "^3.0.2"

0 commit comments

Comments
 (0)