Skip to content

Commit adc34e1

Browse files
committed
Upgrade dom-helpers@5
1 parent 318347f commit adc34e1

File tree

4 files changed

+21
-11
lines changed

4 files changed

+21
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"postpublish": "rm *.md"
2020
},
2121
"dependencies": {
22-
"dom-helpers": "^3.3.1",
22+
"dom-helpers": "^5.2.0",
2323
"prop-types": "^15.7.2"
2424
},
2525
"peerDependencies": {

packages/react-css-transition-replace/src/ReactCSSTransitionReplace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react'
22
import { findDOMNode } from 'react-dom'
33
import PropTypes from 'prop-types'
44

5-
import raf from 'dom-helpers/util/requestAnimationFrame'
5+
import { request as raf } from 'dom-helpers/animationFrame'
66

77
import ReactCSSTransitionReplaceChild from './ReactCSSTransitionReplaceChild'
88
import { nameShape, transitionTimeout } from './utils/PropTypes'

packages/react-css-transition-replace/src/ReactCSSTransitionReplaceChild.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* In addition, the first animation frame is skipped when starting new transitions since
55
* entering absolutely positioned elements in Chrome does not animate otherwise.
66
*/
7-
import addClass from 'dom-helpers/class/addClass'
8-
import removeClass from 'dom-helpers/class/removeClass'
9-
import raf from 'dom-helpers/util/requestAnimationFrame'
10-
import { transitionEnd, animationEnd } from 'dom-helpers/transition/properties'
7+
import addClass from 'dom-helpers/addClass'
8+
import removeClass from 'dom-helpers/removeClass'
9+
import transitionEnd from 'dom-helpers/transitionEnd'
10+
import { request as raf } from 'dom-helpers/animationFrame'
1111
import React from 'react'
1212
import PropTypes from 'prop-types'
1313
import { findDOMNode } from 'react-dom'
@@ -18,9 +18,6 @@ const events = []
1818
if (transitionEnd) {
1919
events.push(transitionEnd)
2020
}
21-
if (animationEnd) {
22-
events.push(animationEnd)
23-
}
2421

2522
function addEndListener(node, listener) {
2623
if (events.length) {

yarn.lock

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1117,7 +1117,7 @@
11171117
dependencies:
11181118
regenerator-runtime "^0.13.4"
11191119

1120-
"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.3.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4":
1120+
"@babel/runtime@^7.0.0", "@babel/runtime@^7.1.2", "@babel/runtime@^7.10.2", "@babel/runtime@^7.11.2", "@babel/runtime@^7.12.1", "@babel/runtime@^7.3.4", "@babel/runtime@^7.4.5", "@babel/runtime@^7.7.2", "@babel/runtime@^7.8.4", "@babel/runtime@^7.8.7":
11211121
version "7.12.5"
11221122
resolved "https://registry.npmjs.org/@babel/runtime/-/runtime-7.12.5.tgz#410e7e487441e1b360c29be715d870d9b985882e"
11231123
integrity sha512-plcc+hbExy3McchJCEQG3knOsuh3HH+Prx1P6cLIkET/0dLuQDEnrT+s27Axgc9bqfsmNUNHfscgMUdBpC9xfg==
@@ -3564,6 +3564,11 @@ cssstyle@^1.0.0, cssstyle@^1.1.1:
35643564
dependencies:
35653565
cssom "0.3.x"
35663566

3567+
csstype@^3.0.2:
3568+
version "3.0.6"
3569+
resolved "https://registry.npmjs.org/csstype/-/csstype-3.0.6.tgz#865d0b5833d7d8d40f4e5b8a6d76aea3de4725ef"
3570+
integrity sha512-+ZAmfyWMT7TiIlzdqJgjMb7S4f1beorDbWbsocyK4RaiqA5RTX3K14bnBWmmA9QEM0gRdsjyyrEmcyga8Zsxmw==
3571+
35673572
cyclist@^1.0.1:
35683573
version "1.0.1"
35693574
resolved "https://registry.npmjs.org/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9"
@@ -3819,13 +3824,21 @@ dom-converter@^0.2:
38193824
dependencies:
38203825
utila "~0.4"
38213826

3822-
dom-helpers@^3.2.0, dom-helpers@^3.2.1, dom-helpers@^3.3.1, dom-helpers@^3.4.0:
3827+
dom-helpers@^3.2.0, dom-helpers@^3.2.1, dom-helpers@^3.4.0:
38233828
version "3.4.0"
38243829
resolved "https://registry.npmjs.org/dom-helpers/-/dom-helpers-3.4.0.tgz#e9b369700f959f62ecde5a6babde4bccd9169af8"
38253830
integrity sha512-LnuPJ+dwqKDIyotW1VzmOZ5TONUN7CwkCR5hrgawTUbkBGYdeoNLZo6nNfGkCrjtE1nXXaj7iMMpDa8/d9WoIA==
38263831
dependencies:
38273832
"@babel/runtime" "^7.1.2"
38283833

3834+
dom-helpers@^5.2.0:
3835+
version "5.2.0"
3836+
resolved "https://registry.npmjs.org/dom-helpers/-/dom-helpers-5.2.0.tgz#57fd054c5f8f34c52a3eeffdb7e7e93cd357d95b"
3837+
integrity sha512-Ru5o9+V8CpunKnz5LGgWXkmrH/20cGKwcHwS4m73zIvs54CN9epEmT/HLqFJW3kXpakAFkEdzgy1hzlJe3E4OQ==
3838+
dependencies:
3839+
"@babel/runtime" "^7.8.7"
3840+
csstype "^3.0.2"
3841+
38293842
dom-serializer@0:
38303843
version "0.2.2"
38313844
resolved "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51"

0 commit comments

Comments
 (0)