Skip to content

Commit 2788995

Browse files
Merge branch 'dev' into fix-graph-animate-frames
2 parents ecd4e9c + 58bec06 commit 2788995

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+12831
-13539
lines changed

.circleci/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,14 @@ jobs:
5959
mkdir dash-package && cp dist/*.tar.gz dash-package/dash-package.tar.gz
6060
ls -la dash-package
6161
no_output_timeout: 30m
62+
- run:
63+
name: Display npm errors and exit on failed builds
64+
command: |
65+
if [ -d "/home/circleci/.npm/_logs" ]
66+
then
67+
cat /home/circleci/.npm/_logs/*
68+
exit 1
69+
fi
6270
- save_cache:
6371
key: dep-{{ checksum ".circleci/config.yml" }}-{{ checksum "ver.txt" }}-{{ checksum "requires-all.txt" }}
6472
paths:
@@ -111,7 +119,7 @@ jobs:
111119
. venv/bin/activate
112120
set -eo pipefail
113121
pip install -e . --progress-bar off && pip list | grep dash
114-
npm install --production && npm run initialize
122+
npm install npm run initialize
115123
npm run build
116124
npm run lint
117125
- run:

.husky/pre-commit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
npm run lint
1+
npm run lint && \
2+
(cd components/dash-core-components && npm run lint) && \
3+
(cd components/dash-table && npm run lint)

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,34 @@ This project adheres to [Semantic Versioning](https://semver.org/).
44

55
## [Unreleased]
66

7+
### Fixed
8+
- [#1953](https://github.com/plotly/dash/pull/1953) Fix bug [#1783](https://github.com/plotly/dash/issues/1783) in which a failed hot reloader blocks the UI with alerts.
9+
10+
## [2.2.0] - 2022-02-18
11+
12+
### Added
13+
- [#1923](https://github.com/plotly/dash/pull/1923):
14+
- `dash.get_relative_path`
15+
- `dash.strip_relative_path`
16+
- `dash.get_asset_url`
17+
This is similar to `dash.callback` where you don't need the `app` object. It makes it possible to use these
18+
functions in the `pages` folder of a multi-page app without running into the circular `app` imports issue.
19+
20+
### Updated
21+
- [#1911](https://github.com/plotly/dash/pull/1911) Upgrade Plotly.js to v2.9.0 (from v2.8.3).
22+
- Adds `ticklabelstep` to axes to reduce tick labels while still showing all ticks.
23+
- Displays the plotly.js version when hovering on the modebar. This helps debugging situations where there might be multiple sources of plotly.js, for example `/assets` vs the versions built into `dcc` or `ddk`.
24+
25+
- [#1930](https://github.com/plotly/dash/pull/1930) Upgrade JavaScript dependencies across renderer and all components.
26+
27+
### Fixed
28+
- [#1932](https://github.com/plotly/dash/pull/1932) Fixes several bugs:
29+
- Restores compatibility with IE11 [#1925](https://github.com/plotly/dash/issues/1925)
30+
- Restores `style_header` text alignment in Dash Table [#1914](https://github.com/plotly/dash/issues/1914)
31+
- Clears the unneeded `webdriver-manager` requirement from `dash[testing]` [#1919](https://github.com/plotly/dash/issues/1925)
32+
33+
## [2.1.0] - 2022-01-22
34+
735
### Changed
836
- [#1876](https://github.com/plotly/dash/pull/1876) Delays finalizing `Dash.config` attributes not used in the constructor until `init_app()`.
937
- [#1869](https://github.com/plotly/dash/pull/1869), [#1873](https://github.com/plotly/dash/pull/1873) Upgrade Plotly.js to v2.8.3. This includes:

CONTRIBUTING.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,21 @@ $ python3 -m venv .venv/dev
1414
# on some linux / mac environments, use `.` instead of `source`
1515
$ source .venv/dev/bin/activate
1616
# install dash and dependencies
17-
$ pip install -e .[testing,dev] # in some shells you need \ to escape []
17+
$ pip install -e .[ci,dev,testing,celery,diskcache] # in some shells you need \ to escape []
1818
$ npm install
1919
# this script will build the dash-core-components, dash-html-components, dash-table,
2020
# and renderer bundles; this will build all bundles from source code in their
2121
# respective directories. The only true source of npm version is defined
2222
# in package.json for each package.
23+
#
2324
$ npm run build # runs `renderer build` and `npm build` in dcc, html, table
2425
# build and install components used in tests
26+
#
27+
# Alternatively one could run part of the build process e.g.
28+
$ dash-update-components "dash-core-components"
29+
# to only build dcc when developing dcc
30+
# But when you first clone check out a new branch, you must run the full build as above.
31+
#
2532
$ npm run setup-tests.py # or npm run setup-tests.R
2633
# you should see dash points to a local source repo
2734
$ pip list | grep dash

components/dash-core-components/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ lib/
44
lib/bundle.js*
55
coverage/
66
node_modules/
7+
packages/
78
.npm
89
vv/
910
venv/

components/dash-core-components/CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ you've pulled from upstream otherwise you may be running with an out of date
3131
`bundle.js`. See the instructions for building `bundle.js` in the [Testing
3232
Locally](README.md#testing-locally) section of README.md.
3333

34-
## Updating Plotly.js
34+
## Updating official version of Plotly.js
3535

36-
1. Update the version of `plotly.js` in package.json. Always use an exact version without "^" or "~"
36+
1. Update the version of `plotly.js-dist-min` in package.json. Always use an exact version without "^" or "~"
3737
2. Run `npm install` followed by `npm run build`, the Plotly.js artifact will be copied and bundled over as required
3838
4. Update `CHANGELOG.md` with links to the releases and a description of the changes. The message should state (see the existing `CHANGELOG.md` for examples):
3939
* If you're only bumping the patch level, the heading is "Fixed" and the text starts "Patched plotly.js". Otherwise the heading is "Updated" and the text starts "Upgraded plotly.js"
@@ -42,6 +42,11 @@ Locally](README.md#testing-locally) section of README.md.
4242
* All patch versions included, with links to their release pages and a note that these fix bugs
4343
5. When bumping the dcc version, a plotly.js patch/minor/major constitutes a dcc patch/minor/major respectively as well.
4444

45+
### Using a temporary `plotly.js-dist-min` package (or other dependencies)
46+
47+
> During integrated development of new features or bug fixes in plotly.js and dash, it may be required to install a temporary plotly.js-dist-min package (or other packages) including proposed changes. To do so, please place the `.tgz` file in `packages/` folder then `npm install` the file.
48+
49+
4550
## Financial Contributions
4651

4752
If your company wishes to sponsor development of open source dash components, please [get in touch][].

0 commit comments

Comments
 (0)