Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Fix dependencies #78

Merged
merged 4 commits into from
Jan 27, 2016
Merged

Fix dependencies #78

merged 4 commits into from
Jan 27, 2016

Conversation

coopy
Copy link
Contributor

@coopy coopy commented Jan 22, 2016

  • move radium and lodash from archetype to project
  • Remove d3-scale as dependency; update docs
  • Add React as peerDependency

Part of FormidableLabs/victory#176

@@ -71,7 +72,7 @@ export default class App extends React.Component {
<VictoryAxis
label="time axis"
padding={{left: 10, right: 80}}
scale={"time"}
scale={d3Scale.time()}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually no, with the most recent refactor, d3-scale is not a dependency of victory-axis. It is now possible to pass a string scale, and have victory-util interpret that into a d3-scale. If a user would like to pass a d3-scale function anyhow, that will now be something they would include in their app.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the fix should be to add String as a valid propType for scale?

Edit: nevermind, my victory-util was out of date. npm install!!

Per Nilsson added 2 commits January 22, 2016 13:15
- Add Radium & Lodash to dependencies
- Add React to peerDependencies
@boygirl
Copy link

boygirl commented Jan 22, 2016

thanks @coopy I forgot about the docs! LGTM

coopy pushed a commit that referenced this pull request Jan 27, 2016
@coopy coopy merged commit 4df2e4a into master Jan 27, 2016
@coopy coopy deleted the task-commonDeps branch January 27, 2016 02:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants