Skip to content

Commit 2f70a8b

Browse files
author
Will Hawker
committed
Remove react-immutable-proptypes as a dependency, it enforces Immutable
1 parent ed11469 commit 2f70a8b

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/react-jsx-highcharts/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@
7878
"dependencies": {
7979
"immutable-is": "^3.7.6",
8080
"is-immutable": "^1.0.1",
81-
"lodash": "^4.17.4",
82-
"react-immutable-proptypes": "^2.1.0"
81+
"lodash": "^4.17.4"
8382
},
8483
"peerDependencies": {
8584
"highcharts": "^5.0.0",

packages/react-jsx-highcharts/src/components/Series/Series.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { Component } from 'react';
22
import PropTypes from 'prop-types';
3-
import ImmutablePropTypes from 'react-immutable-proptypes';
43
import isEqual from 'lodash/isEqual';
54
import isImmutable from 'is-immutable';
65
import immutableEqual from 'immutable-is';
@@ -15,7 +14,7 @@ class Series extends Component {
1514
type: validSeriesTypes.isRequired,
1615
axisId: PropTypes.string, // Provided by Axis component
1716
dimension: PropTypes.string, // Provided by Axis component
18-
data: PropTypes.oneOfType([PropTypes.array, ImmutablePropTypes.list]),
17+
data: PropTypes.any,
1918
visible: PropTypes.bool,
2019
addSeries: PropTypes.func, // Provided by ChartProvider
2120
update: PropTypes.func, // Provided by SeriesProvider

0 commit comments

Comments
 (0)