Skip to content

Commit da41d69

Browse files
committed
chore(dependencies): bump deps to latest version
1 parent 064249c commit da41d69

File tree

4 files changed

+6902
-10250
lines changed

4 files changed

+6902
-10250
lines changed

package.json

Lines changed: 69 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -56,90 +56,90 @@
5656
"react-dom": ">=16.0.0"
5757
},
5858
"dependencies": {
59-
"prop-types": "^15.7.2",
59+
"prop-types": "^15.8.1",
6060
"uuid": "^8.3.2"
6161
},
6262
"devDependencies": {
63-
"@babel/cli": "^7.7.4",
64-
"@babel/core": "^7.7.4",
65-
"@babel/plugin-proposal-class-properties": "^7.8.3",
66-
"@babel/plugin-proposal-decorators": "^7.8.3",
67-
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
68-
"@babel/plugin-syntax-import-meta": "^7.8.3",
69-
"@babel/register": "^7.8.3",
70-
"@commitlint/cli": "^8.3.5",
71-
"@commitlint/config-conventional": "^8.2.0",
72-
"@commitlint/travis-cli": "^8.3.5",
73-
"@rollup/plugin-commonjs": "^11.0.2",
74-
"@rollup/plugin-node-resolve": "^7.1.1",
75-
"@semantic-release/changelog": "^5.0.0",
76-
"@semantic-release/commit-analyzer": "^8.0.1",
77-
"@semantic-release/git": "^9.0.0",
78-
"@semantic-release/npm": "^7.0.5",
79-
"@semantic-release/release-notes-generator": "^9.0.1",
80-
"@svgr/rollup": "^4.3.3",
81-
"@testing-library/react": "^11.0.4",
82-
"babel-eslint": "^4.1.1",
83-
"babel-loader": "v8.0.0-beta.0",
84-
"babelify": "^9.0.0",
85-
"browserify": "^13.0.0",
86-
"browserify-shim": "^3.8.12",
87-
"chai": "^4.2.0",
63+
"@babel/cli": "^7.18.10",
64+
"@babel/core": "^7.18.10",
65+
"@babel/plugin-proposal-class-properties": "^7.18.6",
66+
"@babel/plugin-proposal-decorators": "^7.18.10",
67+
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
68+
"@babel/plugin-syntax-import-meta": "^7.10.4",
69+
"@babel/register": "^7.18.9",
70+
"@commitlint/cli": "^17.0.3",
71+
"@commitlint/config-conventional": "^17.0.3",
72+
"@commitlint/travis-cli": "^17.0.3",
73+
"@rollup/plugin-commonjs": "^22.0.1",
74+
"@rollup/plugin-node-resolve": "^13.3.0",
75+
"@semantic-release/changelog": "^6.0.1",
76+
"@semantic-release/commit-analyzer": "^9.0.2",
77+
"@semantic-release/git": "^10.0.1",
78+
"@semantic-release/npm": "^9.0.1",
79+
"@semantic-release/release-notes-generator": "^10.0.3",
80+
"@svgr/rollup": "^6.3.1",
81+
"@testing-library/react": "^13.3.0",
82+
"babel-eslint": "^10.1.0",
83+
"babel-loader": "8.2.5",
84+
"babelify": "^10.0.0",
85+
"browserify": "^17.0.0",
86+
"browserify-shim": "^3.8.15",
87+
"chai": "^4.3.6",
8888
"chai-enzyme": "^1.0.0-beta.1",
8989
"chai-spies": "^1.0.0",
90-
"commitizen": "2.9.6",
91-
"concurrently": "^2.1.0",
92-
"core-js": "^3.12.1",
93-
"cpy-cli": "^3.1.1",
94-
"cz-conventional-changelog": "^3.1.0",
95-
"enzyme": "^2.3.0",
96-
"enzyme-adapter-react-16": "^1.15.2",
97-
"eslint": "^6.8.0",
90+
"commitizen": "4.2.5",
91+
"concurrently": "^7.3.0",
92+
"core-js": "^3.24.1",
93+
"cpy-cli": "^4.1.0",
94+
"cz-conventional-changelog": "^3.3.0",
95+
"enzyme": "^3.11.0",
96+
"enzyme-adapter-react-16": "^1.15.6",
97+
"eslint": "^8.21.0",
9898
"eslint-config-jss": "5.0.1",
99-
"eslint-config-prettier": "6.10.0",
100-
"eslint-config-standard": "^14.1.0",
101-
"eslint-config-standard-react": "^9.2.0",
102-
"eslint-plugin-import": "^2.18.2",
103-
"eslint-plugin-node": "^10.0.0",
104-
"eslint-plugin-prettier": "3.1.2",
105-
"eslint-plugin-promise": "^4.2.1",
106-
"eslint-plugin-react": "^7.16.0",
107-
"eslint-plugin-standard": "^4.0.1",
108-
"gh-pages": "1.1.0",
109-
"github-changes": "^1.1.2",
110-
"http-server": "^0.11.1",
111-
"husky": "^3.1.0",
99+
"eslint-config-prettier": "8.5.0",
100+
"eslint-config-standard": "^17.0.0",
101+
"eslint-config-standard-react": "^11.0.1",
102+
"eslint-plugin-import": "^2.26.0",
103+
"eslint-plugin-node": "^11.1.0",
104+
"eslint-plugin-prettier": "4.2.1",
105+
"eslint-plugin-promise": "^6.0.0",
106+
"eslint-plugin-react": "^7.30.1",
107+
"eslint-plugin-standard": "^5.0.0",
108+
"gh-pages": "4.0.0",
109+
"github-changes": "^2.0.3",
110+
"http-server": "^14.1.1",
111+
"husky": "^8.0.1",
112112
"ignore-styles": "5.0.1",
113-
"jsdom": "^16.4.0",
114-
"lint-staged": "^10.2.7",
115-
"mocha": "^8.1.3",
113+
"jsdom": "^20.0.0",
114+
"lint-staged": "^13.0.3",
115+
"mocha": "^10.0.0",
116116
"mocha-each": "^2.0.1",
117117
"mocha-jsdom": "^2.0.0",
118118
"npm-run-all": "^4.1.5",
119-
"postcss-nested": "^4.2.1",
120-
"postcss-simple-vars": "^5.0.2",
121-
"prettier": "1.19.1",
122-
"pretty-quick": "^2.0.1",
123-
"react": "^16.4.1",
119+
"postcss-nested": "^5.0.6",
120+
"postcss-simple-vars": "^6.0.3",
121+
"prettier": "2.7.1",
122+
"pretty-quick": "^3.1.3",
123+
"react": "^18.2.0",
124124
"react-addons-test-utils": "^15.1.0",
125-
"react-dom": "^16.4.1",
126-
"rimraf": "^3.0.0",
127-
"rollup": "^1.27.5",
128-
"rollup-plugin-babel": "^4.3.3",
125+
"react-dom": "^18.2.0",
126+
"rimraf": "^3.0.2",
127+
"rollup": "^2.77.2",
128+
"rollup-plugin-babel": "^4.4.0",
129129
"rollup-plugin-eslint": "7.0.0",
130-
"rollup-plugin-peer-deps-external": "^2.2.0",
131-
"rollup-plugin-postcss": "^2.0.3",
132-
"rollup-plugin-sass": "^1.2.2",
130+
"rollup-plugin-peer-deps-external": "^2.2.4",
131+
"rollup-plugin-postcss": "^4.0.2",
132+
"rollup-plugin-sass": "^1.2.13",
133133
"rollup-plugin-stylelint": "1.0.0",
134134
"rollup-plugin-url": "^3.0.1",
135-
"sass": "^1.34.0",
136-
"semantic-release": "^17.0.4",
137-
"snazzy": "^2.0.1",
138-
"standard": "^5.2.2",
139-
"stylelint": "13.2.0",
140-
"stylelint-config-standard": "20.0.0",
135+
"sass": "^1.54.1",
136+
"semantic-release": "^19.0.3",
137+
"snazzy": "^9.0.0",
138+
"standard": "^17.0.0",
139+
"stylelint": "14.9.1",
140+
"stylelint-config-standard": "26.0.0",
141141
"uglifyjs": "^2.4.10",
142-
"watchify": "^3.11.1"
142+
"watchify": "^4.0.0"
143143
},
144144
"files": [
145145
"dist"

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import 'core-js/modules/es.array.find';
3232
@getEffect
3333
@bodyMode
3434
@trackRemoval
35-
class ReactTooltip extends React.ReactNode {
35+
class ReactTooltip extends React.Component {
3636
static get propTypes() {
3737
return {
3838
uuid: PropTypes.string,

test/index.spec.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import ReactTooltip from '../src/index.js';
3-
import { render, cleanup } from '@testing-library/react';
3+
import { render, cleanup, fireEvent, screen } from '@testing-library/react';
44
import { expect } from 'chai';
55
const forEach = require('mocha-each');
66
const jsdom = require('mocha-jsdom');
@@ -173,17 +173,15 @@ describe('Tooltip', () => {
173173
]
174174
]).it('Popup color generation - show', (props, res) => {
175175
render(
176-
<span id="colorSpecInvoker" data-tip data-for="colorSpec">
176+
<span id="colorSpecInvoker" data-tip data-for="colorSpec" onMouseEnter={() => console.log('ENTER*******')}>
177177
Invoker
178178
</span>
179179
);
180180
render(<ReactTooltip id="colorSpec" {...props} />);
181-
document
182-
.getElementById('colorSpecInvoker')
183-
.dispatchEvent(new window.Event('mouseenter'));
181+
fireEvent( document
182+
.getElementById('colorSpecInvoker'), new window.Event('mouseenter'))
184183

185184
const tooltip = document.getElementById('colorSpec');
186-
187185
expect(tooltip.className).to.match(
188186
new RegExp(
189187
'__react_component_tooltip [a-zA-Z0-9-]+ show' +

0 commit comments

Comments
 (0)