Skip to content
This repository was archived by the owner on Jun 3, 2024. It is now read-only.

Commit a50ba4d

Browse files
Fixed merge conflicts & updated version
2 parents b71875b + d23db91 commit a50ba4d

20 files changed

+1177
-182
lines changed

CHANGELOG.md

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,69 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5-
## [0.24.0] - UNRELEASED
5+
## [0.26.0]
66
### Added
7-
- New Tabs and Tab components!
7+
- New Tabs and Tab components! [#213](https://github.com/plotly/dash-core-components/pull/213#pullrequestreview-135893345)
88

9-
## [0.23.0]
9+
## [0.25.1]
10+
### Fixed
11+
- `__init__` version formatting for unpkg.
12+
13+
## [0.25.0]
14+
### Added
15+
- `ConfirmDialog` and `ConfirmDialogProvider` components [#211](https://github.com/plotly/dash-core-components/pull/211)
16+
17+
## [0.24.1]
18+
### Fixed
19+
- Improved DatePickerRange, fixing issues [#209](https://github.com/plotly/dash-core-components/issues/209) and [#152](https://github.com/plotly/dash-core-components/issues/152)
20+
- Link component now is a proper <a> tag so you can right click on it, and will scroll back to top. Fixes [#99](https://github.com/plotly/dash-core-components/issues/99), implemented in [#215](https://github.com/plotly/dash-core-components/pull/215)
21+
- Added `max_interval` prop to `Interval` component, fixing issue [#222](https://github.com/plotly/dash-core-components/issues/222)
22+
23+
24+
## [0.24.0]
1025
### Added
1126
- Upgraded Plotly.js, the underlying library behind the
12-
`dash_core_components.Graph` component, to [version 1.38.0](https://github.com/plotly/plotly.js/releases/tag/v1.38.0).
13-
See https://github.com/plotly/plotly.js/releases/tag/v1.38.0 for the official notes.
27+
`dash_core_components.Graph` component, to [version 1.39.1](https://github.com/plotly/plotly.js/releases/tag/v1.39.1).
28+
See https://github.com/plotly/plotly.js/releases/tag/v1.39.1 for the official notes.
1429

1530
Many of these features were funded directly by companies that rely on this library.
1631
If your organization or company would like to sponsor particular features or
1732
bug fixes in these open source libraries, please reach out: http://plot.ly/products/consulting-and-oem
1833

34+
As part of plotly.js release:
35+
- Add support for on-graph text in scattergl traces [#2737](https://github.com/plotly/plotly.js/pull/2737), [#2783](https://github.com/plotly/plotly.js/pull/2783)
36+
- Add gridshape attribute to polar subplots with values 'circular' (the default) and 'linear' (to draw polygon grids) [#2739](https://github.com/plotly/plotly.js/pull/2739)
37+
- Add support for colorbar linked to marker.color values for splom,
38+
scatterpolar and scatterpolargl traces [#2681](https://github.com/plotly/plotly.js/pull/2681)
39+
- Revamp icon settings in custom mode bar buttons, allowing users to specify their own dimensions and SVG transforms [#2762](https://github.com/plotly/plotly.js/pull/2762)
40+
- Add plotlyServerURL config option [#2760](https://github.com/plotly/plotly.js/pull/2760)
41+
- Added no-WebGL warnings for graphs with scattergl, scatterpolargl, splom and parcoords traces [#2697](https://github.com/plotly/plotly.js/pull/2697)
42+
43+
### Fixed
44+
As part of plotly.js release:
45+
- Fix Plotly.react's handling of changing auto-margins [#2681](https://github.com/plotly/plotly.js/pull/2681)
46+
- Make plotting/updating WebGL-based traces fail gracefully when WebGL isn't
47+
supported [#2697](https://github.com/plotly/plotly.js/pull/2697)
48+
- Fix mapbox layout layer updates [#2734](https://github.com/plotly/plotly.js/pull/2734)
49+
- Fix mapbox event inconsistencies [#2766](https://github.com/plotly/plotly.js/pull/2766)
50+
- Correctly emit plotly_relayout at end of scroll on mapbox subplots [#2709](https://github.com/plotly/plotly.js/pull/2709)
51+
- Fix scatter3d scalar hovertext handling [#2698](https://github.com/plotly/plotly.js/pull/2698)
52+
- Fix line decimation for segments crossing the viewport [#2705](https://github.com/plotly/plotly.js/pull/2705)
53+
- Fix surface trace contours when first level has length zero [#2712](https://github.com/plotly/plotly.js/pull/2712)
54+
- Fix contour(x|y|z).highlight partial settings [#2712](https://github.com/plotly/plotly.js/pull/2712)
55+
- Fix old date timezone precision in Chrome 67+ [#2747](https://github.com/plotly/plotly.js/pull/2747)
56+
- Fix x-only zoom moves when xaxis.fixedrange: true[#2776](https://github.com/plotly/plotly.js/pull/2776)
57+
- Fix colorbar edits for parcoords and histogram traces [#2681](https://github.com/plotly/plotly.js/pull/2681)
58+
- Fix bandwidth for single-value violins [#2775](https://github.com/plotly/plotly.js/pull/2775)
59+
- Make Plots.resize work when layout attribute is gone from graph div [#2710](https://github.com/plotly/plotly.js/pull/2710)
60+
- Fix colorscale attribute descriptions [#2658](https://github.com/plotly/plotly.js/pull/2658)
61+
62+
## [0.23.0]
63+
### Added
64+
- Upgraded Plotly.js, the underlying library behind the
65+
`dash_core_components.Graph` component, to [version 1.38.0](https://github.com/plotly/plotly.js/releases/tag/v1.38.0).
66+
See https://github.com/plotly/plotly.js/releases/tag/v1.38.0 for the official notes.
67+
1968
- Add 3D `cone` traces to visualize vector fields [#2641](https://github.com/plotly/plotly.js/pull/2641), [#2647](https://github.com/plotly/plotly.js/pull/2647)
2069
- Add ability to interactively change length and rotate line shapes [#2594](https://github.com/plotly/plotly.js/pull/2594)
2170
- Add `toImageButtonOptions` config object to override to-image mode bar button options [#2607](https://github.com/plotly/plotly.js/pull/2607)

MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ include dash_core_components/bundle.js.map
33
include dash_core_components/metadata.json
44
include dash_core_components/[email protected]
55
include dash_core_components/[email protected]
6-
include dash_core_components/plotly-1.38.0.min.js
6+
include dash_core_components/plotly-1.39.1.min.js
77
include dash_core_components/[email protected]
88
include dash_core_components/[email protected]
99
include dash_core_components/[email protected]

README.md

Lines changed: 15 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -59,42 +59,18 @@ You have to maintain the list of components in `demo/Demo.react.js`.
5959

6060
### Code quality and tests
6161

62-
#### To run lint and unit tests:
62+
### To run integration tests (test_integration.py)
63+
We run our integration tests on CircleCI with help from Tox. There’s a tox.ini file which holds the configuration, refer to [tox's documentation](http://tox.readthedocs.io/en/latest/index.html) for help. You may need to set environment variables in your terminal, like `TOX_PYTHON_27` to my version of python that I wanted tox to use. So running:
6364

6465
```sh
65-
$ npm test
66+
export TOX_PYTHON_27=python2
6667
```
6768

68-
#### To run unit tests and watch for changes:
69+
set the `TOX_PYTHON_27` env variable to point to `python2`, which is Python 2.7 running on my machine.
70+
You could also look in `tox.ini` and see which tests it runs, and run those commands yourself:
6971

7072
```sh
71-
$ npm run test-watch
72-
```
73-
74-
#### To debug unit tests in a browser (Chrome):
75-
76-
```sh
77-
$ npm run test-debug
78-
```
79-
80-
1. Wait until Chrome launches.
81-
2. Click the "DEBUG" button in the top right corner.
82-
3. Open up Chrome Devtools (`Cmd+opt+i`).
83-
4. Click the "Sources" tab.
84-
5. Find source files
85-
- Navigate to `webpack:// -> . -> spec/components` to find your test source files.
86-
- Navigate to `webpack:// -> [your/repo/path]] -> dash-core-components -> src` to find your component source files.
87-
6. Now you can set breakpoints and reload the page to hit them.
88-
7. The test output is available in the "Console" tab, or in any tab by pressing "Esc".
89-
90-
#### To run a specific test
91-
92-
In your test, append `.only` to a `describe` or `it` statement:
93-
94-
```javascript
95-
describe.only('Foo component', () => {
96-
// ...
97-
});
73+
python -m unittest test.test_integration
9874
```
9975

10076
### Testing your components in Dash
@@ -142,26 +118,18 @@ publishing steps into one workflow.
142118

143119
Ask @chriddyp to get NPM / PyPi package publishing access.
144120

145-
1. Preparing to publish to NPM
146-
147-
# Bump the package version
148-
$ npm version major|minor|patch
149-
150-
# Push branch and tags to repo
151-
$ git push --follow-tags
152-
153-
2. Preparing to publish to PyPi
121+
1 - Update `version.py`, we're using [semantic versioning](https://semver.org/)!
154122

155-
# Bump the PyPi package to the same version
156-
$ vi setup.py
123+
2 - Update `package.json`
157124

158-
# Commit to github
159-
$ git add setup.py
160-
$ git commit -m "Bump pypi package version to vx.x.x"
161-
162-
3. Publish to npm and PyPi
125+
4 - Publish: `npm run publish-all` (Make sure you have access to NPM and PyPI)
126+
4b - If the `publish-all` script fails on the `twine` command, try running
127+
```sh
128+
twine upload dist/dash_core_components-X.X.X.tar.gz # where xx.x.x is the version number
129+
```
163130

164-
$ npm run publish-all
131+
If you want to publish a prerelease package, change `version.py` to X.X.XrcX (0.23.1rc1 for example) and
132+
`package.json` to X.X.X-rcX (notice how the rc syntax is different between node and python. npm requires a - between the version number and the prerelease tag while python's pip just has 0.23.1rc1)
165133

166134

167135
## Builder / Archetype

circle.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ machine:
88

99
dependencies:
1010
override:
11+
- pip install setuptools --upgrade
12+
- pip install virtualenv
1113
- pip install tox
1214
- npm install -g eslint
1315
- npm install --ignore-scripts

dash_core_components/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@
2323

2424
_js_dist = [
2525
{
26-
'external_url': 'https://cdn.plot.ly/plotly-1.38.0.min.js',
27-
'relative_package_path': 'plotly-1.38.0.min.js',
26+
'external_url': 'https://cdn.plot.ly/plotly-1.39.1.min.js',
27+
'relative_package_path': 'plotly-1.39.1.min.js',
2828
'namespace': 'dash_core_components'
2929
},
3030
{
3131
'relative_package_path': 'bundle.js',
3232
'external_url': (
3333
'https://unpkg.com/dash-core-components@{}'
3434
'/dash_core_components/bundle.js'
35-
).format('0.24.0-rc6'),
35+
).format(__version__),
3636
'namespace': 'dash_core_components'
3737
}
3838
]
@@ -51,7 +51,7 @@
5151
'https://unpkg.com/[email protected]/styles.css',
5252
'https://unpkg.com/[email protected]/styles.css',
5353
'https://unpkg.com/[email protected]/assets/index.css',
54-
'https://unpkg.com/dash-core-components@{}/dash_core_components/[email protected]'.format('0.24.0-rc6')
54+
'https://unpkg.com/dash-core-components@{}/dash_core_components/[email protected]'.format(__version__)
5555
],
5656
'namespace': 'dash_core_components'
5757
}

dash_core_components/bundle.js

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)