Skip to content

Commit

Permalink
Make d3-selection a peer dependency
Browse files Browse the repository at this point in the history
d3-graphviz extends the d3-selection prototype so d3-selection should
be a peer dependency. See
d3/d3-transition#92 for similar reasoneing
about d3-transition.
  • Loading branch information
magjac committed Apr 2, 2021
1 parent bde959a commit 29119c7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Expand Up @@ -16,6 +16,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
longer compatible with D3 version 5 or lower (microlibraries version
1). For more info see the [D3 6.0 migration
guide](https://observablehq.com/@d3/d3v6-migration-guide)
* Make [d3-selection](https://github.com/d3/d3-selection) a [peer
dependency](https://docs.npmjs.com/cli/v7/configuring-npm/package-json#peerdependencies)
since d3-graphviz adds new methods on the d3-selection object.

## [3.2.0]

Expand Down
4 changes: 3 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Expand Up @@ -67,9 +67,11 @@
"d3-format": "^2.0.0",
"d3-interpolate": "^2.0.1",
"d3-path": "^2.0.0",
"d3-selection": "^2.0.0",
"d3-timer": "^2.0.0",
"d3-transition": "^2.0.0",
"d3-zoom": "^2.0.0"
},
"peerDependencies": {
"d3-selection": "^2.0.0"
}
}

0 comments on commit 29119c7

Please sign in to comment.