Skip to content

Commit 7e15ce5

Browse files
Merge remote-tracking branch 'origin' into fix-graph-customdata-for-pointnumbers
2 parents a524bc4 + 6ee3eee commit 7e15ce5

Some content is hidden

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

43 files changed

+12804
-13527
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: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,30 @@
22
All notable changes to `dash` will be documented in this file.
33
This project adheres to [Semantic Versioning](https://semver.org/).
44

5-
## [Unreleased]
5+
## [2.2.0] - 2022-02-18
6+
7+
### Added
8+
- [#1923](https://github.com/plotly/dash/pull/1923):
9+
- `dash.get_relative_path`
10+
- `dash.strip_relative_path`
11+
- `dash.get_asset_url`
12+
This is similar to `dash.callback` where you don't need the `app` object. It makes it possible to use these
13+
functions in the `pages` folder of a multi-page app without running into the circular `app` imports issue.
14+
15+
### Updated
16+
- [#1911](https://github.com/plotly/dash/pull/1911) Upgrade Plotly.js to v2.9.0 (from v2.8.3).
17+
- Adds `ticklabelstep` to axes to reduce tick labels while still showing all ticks.
18+
- 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`.
19+
20+
- [#1930](https://github.com/plotly/dash/pull/1930) Upgrade JavaScript dependencies across renderer and all components.
21+
22+
### Fixed
23+
- [#1932](https://github.com/plotly/dash/pull/1932) Fixes several bugs:
24+
- Restores compatibility with IE11 [#1925](https://github.com/plotly/dash/issues/1925)
25+
- Restores `style_header` text alignment in Dash Table [#1914](https://github.com/plotly/dash/issues/1914)
26+
- Clears the unneeded `webdriver-manager` requirement from `dash[testing]` [#1919](https://github.com/plotly/dash/issues/1925)
27+
28+
## [2.1.0] - 2022-01-22
629

730
### Changed
831
- [#1876](https://github.com/plotly/dash/pull/1876) Delays finalizing `Dash.config` attributes not used in the constructor until `init_app()`.

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

0 commit comments

Comments
 (0)