Skip to content

Commit

Permalink
Release 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcaldas committed Sep 5, 2019
1 parent ba6a52b commit c0ce37c
Show file tree
Hide file tree
Showing 17 changed files with 9,967 additions and 554 deletions.
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Change Log

## [2.2.0](https://github.com/danielcaldas/react-d3-graph/tree/2.2.0)

[Full Changelog](https://github.com/danielcaldas/react-d3-graph/compare/2.1.0...2.2.0)

**Fixed bugs:**

- Drag&Drop does not work for leaf nodes after collapsing and _"uncollapsing"_ [\#223](https://github.com/danielcaldas/react-d3-graph/issues/223)
- \[Sandbox\] Fail to remove links / nodes in the live demo example [\#212](https://github.com/danielcaldas/react-d3-graph/issues/212)
- Error clicking nodes composed of `mdi-react` icons [\#201](https://github.com/danielcaldas/react-d3-graph/issues/201)

**Closed issues:**

- link.renderLabel is not true by default [\#210](https://github.com/danielcaldas/react-d3-graph/issues/210)
- onDoubleClickNode [\#194](https://github.com/danielcaldas/react-d3-graph/issues/194)

**Merged pull requests:**

- Fix uncollapsing nodes causes entire graph to be dragged [\#224](https://github.com/danielcaldas/react-d3-graph/pull/224) ([danielcaldas](https://github.com/danielcaldas))
- Fix/allow custom properties to pass on update for links [\#220](https://github.com/danielcaldas/react-d3-graph/pull/220) ([danielcaldas](https://github.com/danielcaldas))
- Feature/new config static graph with drag and drop [\#217](https://github.com/danielcaldas/react-d3-graph/pull/217) ([danielcaldas](https://github.com/danielcaldas))
- Fix/Fail to remove links / nodes in the live demo [\#216](https://github.com/danielcaldas/react-d3-graph/pull/216) ([danielcaldas](https://github.com/danielcaldas))
- Feature/allow pass function in link.label property [\#215](https://github.com/danielcaldas/react-d3-graph/pull/215) ([danielcaldas](https://github.com/danielcaldas))
- Run CI on node 10.14.0 \(additionally\) [\#214](https://github.com/danielcaldas/react-d3-graph/pull/214) ([danielcaldas](https://github.com/danielcaldas))
- Use setState to set highlightedLink [\#213](https://github.com/danielcaldas/react-d3-graph/pull/213) ([danielcaldas](https://github.com/danielcaldas))

**Chore:**

- Supporting spread operator for objects. Moving from [Object.assign()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign).
- Update [cypress](https://github.com/cypress-io/cypress) from `v2.1.0` to `v.3.4.1`.
- Use [UNSAFE_componentWillReceiveProps](UNSAFE_componentWillReceiveProps) instead of `componentWillReceiveProps` (TBD: migrate to [static getDerivedStateFromProps(props, state)
](https://reactjs.org/docs/react-component.html#static-getderivedstatefromprops))

## [2.1.0](https://github.com/danielcaldas/react-d3-graph/tree/2.1.0)

[Full Changelog](https://github.com/danielcaldas/react-d3-graph/compare/2.0.2...2.1.0)
Expand Down
92 changes: 92 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# Contributing

When contributing to this repository, please first discuss the change you wish to make via issue,
email, or any other method with the owners of this repository before making a change.

Please note we have a code of conduct, please follow it in all your interactions with the project.

## Pull Request Process

1. Ensure any install or build dependencies are removed before the end of the layer when doing a
build.
2. Update the [README.md](https://github.com/danielcaldas/react-d3-graph/blob/master/README.md) with details of changes to the interface, this includes new environment
variables, exposed ports, useful file locations and container parameters.
3. Increase the version numbers in any examples files and the [README.md](https://github.com/danielcaldas/react-d3-graph/blob/master/README.md) to the new version that this
Pull Request would represent. The versioning scheme we use is [SemVer](http://semver.org/).
4. You may merge the Pull Request in once you have the sign-off of two other developers, or if you
do not have permission to do that, you may request the second reviewer to merge it for you.

## Code of Conduct

### Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

### Our Standards

Examples of behavior that contributes to creating a positive environment
include:

- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

- The use of sexualized language or imagery and unwelcome sexual attention or
advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic
address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a
professional setting

### Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

### Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

### Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project owner at [caldasjdaniel@gmail.com](mailto:caldasjdaniel@gmail.com). All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

### Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at [http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# react-d3-graph · [![Build Status](https://travis-ci.org/danielcaldas/react-d3-graph.svg?branch=master&style=flat-square)](https://travis-ci.org/danielcaldas/react-d3-graph)

[![npm version](https://img.shields.io/npm/v/react-d3-graph.svg?style=flat-square)](https://www.npmjs.com/package/react-d3-graph) [![probot enabled](https://img.shields.io/badge/probot:stale-enabled-yellow.svg?longCache=true&style=flat-square)](https://probot.github.io/) [![trello](https://img.shields.io/badge/trello-board-blue.svg?longCache=true&style=flat-square)](https://trello.com/b/KrnmFXha/react-d3-graph)
[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)
[![npm version](https://img.shields.io/npm/v/react-d3-graph.svg?style=flat-square)](https://www.npmjs.com/package/react-d3-graph) [![probot enabled](https://img.shields.io/badge/probot:stale-enabled-yellow.svg?longCache=true&style=flat-square)](https://probot.github.io/) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)

[![npm](https://img.shields.io/npm/dw/react-d3-graph.svg?style=flat-square)](https://www.npmjs.com/package/react-d3-graph)
[![npm](https://img.shields.io/npm/dt/react-d3-graph.svg?style=flat-square)](https://www.npmjs.com/package/react-d3-graph)
Expand All @@ -14,6 +13,12 @@

[![react-d3-graph gif sample](https://github.com/danielcaldas/react-d3-graph/blob/master/sandbox/rd3g_v2.gif?raw=true)](https://danielcaldas.github.io/react-d3-graph/sandbox/index.html)

## Donations

If you enjoy this library, please consider [supporting me](https://paypal.me/DanielCaldas321) for developing and maintaining it.

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/DanielCaldas321)

## Playground

[Here a live playground](https://danielcaldas.github.io/react-d3-graph/sandbox/index.html) page where you can interactively config your own graph, and generate a ready to use configuration! :sunglasses:
Expand Down Expand Up @@ -134,20 +139,11 @@ const onMouseOutLink = function(source, target) {
/>;
```

## Roadmap :railway_track:

Want to know what's ahead for react-d3-graph? Or simply curious on what comes next and stuff that is under development?
Check [this trello board](https://trello.com/b/KrnmFXha/react-d3-graph) where everything related to react-d3-graph is managed.

## Contributions

Contributions are welcome fell free to submit new ideas/features, just open an issue or send me an email or something. If you are more a _hands on_ person, just submit a pull request.

## Donation
Contributions are welcome fell free to submit new ideas/features, just open an issue or send me an email or something. If you are more a _hands on_ person, just submit a pull request. Before jumping into coding, please take at the contribution guidelines [CONTRIBUTING.md](https://github.com/danielcaldas/react-d3-graph/blob/master/CONTRIBUTING.md).

Using _react-d3-graph_ and want to help the project grow with new features or simply want to say thank you? You can always buy me a cup of coffee ☕☕☕

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://paypal.me/DanielCaldas321)
To run react-d3-graph in development mode you just need to run `npm run dev` and the interactive sandbox will reload with the changes to the library code, that way you can test your changes not only through unit test but also through a real life example. It's that simple.

## Alternatives (Not what you where looking for?)

Expand Down
3 changes: 2 additions & 1 deletion docs/0.3.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h4><a href="https://github.com/danielcaldas/react-d3-graph" target="_blank">
<h4><a href="https://danielcaldas.github.io/react-d3-graph/sandbox/index.html" target="_blank">🔗 Live Demo</a></h4>
<h5>Versions</h5>
<ul>
<li><a href="./index.html">2.1.0 (latest) 🚀</a></li>
<li><a href="./index.html">2.2.0 (latest) 🚀</a></li>
<li><a href="./2.1.0.html">2.1.0</a></li>
<li><a href="./2.0.2.html">2.0.2</a></li>
<li><a href="./1.3.0.html">1.3.0</a></li>
<li><a href="./1.2.2.html">1.2.2</a></li>
Expand Down
3 changes: 2 additions & 1 deletion docs/0.4.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h4><a href="https://github.com/danielcaldas/react-d3-graph" target="_blank">
<h4><a href="https://danielcaldas.github.io/react-d3-graph/sandbox/index.html" target="_blank">🔗 Live Demo</a></h4>
<h5>Versions</h5>
<ul>
<li><a href="./index.html">2.1.0 (latest) 🚀</a></li>
<li><a href="./index.html">2.2.0 (latest) 🚀</a></li>
<li><a href="./2.1.0.html">2.1.0</a></li>
<li><a href="./2.0.2.html">2.0.2</a></li>
<li><a href="./1.3.0.html">1.3.0</a></li>
<li><a href="./1.2.2.html">1.2.2</a></li>
Expand Down
3 changes: 2 additions & 1 deletion docs/1.0.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h4><a href="https://github.com/danielcaldas/react-d3-graph" target="_blank">
<h4><a href="https://danielcaldas.github.io/react-d3-graph/sandbox/index.html" target="_blank">🔗 Live Demo</a></h4>
<h5>Versions</h5>
<ul>
<li><a href="./index.html">2.1.0 (latest) 🚀</a></li>
<li><a href="./index.html">2.2.0 (latest) 🚀</a></li>
<li><a href="./2.1.0.html">2.1.0</a></li>
<li><a href="./2.0.2.html">2.0.2</a></li>
<li><a href="./1.3.0.html">1.3.0</a></li>
<li><a href="./1.2.2.html">1.2.2</a></li>
Expand Down
3 changes: 2 additions & 1 deletion docs/1.0.1.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h4><a href="https://github.com/danielcaldas/react-d3-graph" target="_blank">
<h4><a href="https://danielcaldas.github.io/react-d3-graph/sandbox/index.html" target="_blank">🔗 Live Demo</a></h4>
<h5>Versions</h5>
<ul>
<li><a href="./index.html">2.1.0 (latest) 🚀</a></li>
<li><a href="./index.html">2.2.0 (latest) 🚀</a></li>
<li><a href="./2.1.0.html">2.1.0</a></li>
<li><a href="./2.0.2.html">2.0.2</a></li>
<li><a href="./1.3.0.html">1.3.0</a></li>
<li><a href="./1.2.2.html">1.2.2</a></li>
Expand Down
3 changes: 2 additions & 1 deletion docs/1.2.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h4><a href="https://github.com/danielcaldas/react-d3-graph" target="_blank">
<h4><a href="https://danielcaldas.github.io/react-d3-graph/sandbox/index.html" target="_blank">🔗 Live Demo</a></h4>
<h5>Versions</h5>
<ul>
<li><a href="./index.html">2.1.0 (latest) 🚀</a></li>
<li><a href="./index.html">2.2.0 (latest) 🚀</a></li>
<li><a href="./2.1.0.html">2.1.0</a></li>
<li><a href="./2.0.2.html">2.0.2</a></li>
<li><a href="./1.3.0.html">1.3.0</a></li>
<li><a href="./1.2.2.html">1.2.2</a></li>
Expand Down
3 changes: 2 additions & 1 deletion docs/1.2.2.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h4><a href="https://github.com/danielcaldas/react-d3-graph" target="_blank">
<h4><a href="https://danielcaldas.github.io/react-d3-graph/sandbox/index.html" target="_blank">🔗 Live Demo</a></h4>
<h5>Versions</h5>
<ul>
<li><a href="./index.html">2.1.0 (latest) 🚀</a></li>
<li><a href="./index.html">2.2.0 (latest) 🚀</a></li>
<li><a href="./2.1.0.html">2.1.0</a></li>
<li><a href="./2.0.2.html">2.0.2</a></li>
<li><a href="./1.3.0.html">1.3.0</a></li>
<li><a href="./1.2.2.html">1.2.2</a></li>
Expand Down
3 changes: 2 additions & 1 deletion docs/1.3.0.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ <h4><a href="https://github.com/danielcaldas/react-d3-graph" target="_blank">
<h4><a href="https://danielcaldas.github.io/react-d3-graph/sandbox/index.html" target="_blank">🔗 Live Demo</a></h4>
<h5>Versions</h5>
<ul>
<li><a href="./index.html">2.1.0 (latest) 🚀</a></li>
<li><a href="./index.html">2.2.0 (latest) 🚀</a></li>
<li><a href="./2.1.0.html">2.1.0</a></li>
<li><a href="./2.0.2.html">2.0.2</a></li>
<li><a href="./1.3.0.html">1.3.0</a></li>
<li><a href="./1.2.2.html">1.2.2</a></li>
Expand Down
3 changes: 2 additions & 1 deletion docs/2.0.2.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ <h4><a href="https://github.com/danielcaldas/react-d3-graph" target="_blank">
<h4><a href="https://danielcaldas.github.io/react-d3-graph/sandbox/index.html" target="_blank">🔗 Live Demo</a></h4>
<h5>Versions</h5>
<ul>
<li><a href="./index.html">2.1.0 (latest) 🚀</a></li>
<li><a href="./index.html">2.2.0 (latest) 🚀</a></li>
<li><a href="./2.1.0.html">2.1.0</a></li>
<li><a href="./2.0.2.html">2.0.2</a></li>
<li><a href="./1.3.0.html">1.3.0</a></li>
<li><a href="./1.2.2.html">1.2.2</a></li>
Expand Down
Loading

0 comments on commit c0ce37c

Please sign in to comment.