Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' + update renderer build art…
Browse files Browse the repository at this point in the history
…ifacts
  • Loading branch information
Marc-André Rivet committed Apr 10, 2020
2 parents 9dc11a5 + 3ec55b5 commit 599cccb
Show file tree
Hide file tree
Showing 69 changed files with 8,443 additions and 4,058 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@
All notable changes to `dash` will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [1.11.0] - 2020-04-10
### Added
- [#1103](https://github.com/plotly/dash/pull/1103) Pattern-matching IDs and callbacks. Component IDs can be dictionaries, and callbacks can reference patterns of components, using three different wildcards: `ALL`, `MATCH`, and `ALLSMALLER`, available from `dash.dependencies`. This lets you create components on demand, and have callbacks respond to any and all of them. To help with this, `dash.callback_context` gets three new entries: `outputs_list`, `inputs_list`, and `states_list`, which contain all the ids, properties, and except for the outputs, the property values from all matched components.
- [#1103](https://github.com/plotly/dash/pull/1103) `dash.testing` option `--pause`: after opening the dash app in a test, will invoke `pdb` for live debugging of both Javascript and Python. Use with a single test case like `pytest -k cbwc001 --pause`.

### Changed
- [#1103](https://github.com/plotly/dash/pull/1103) Multiple changes to the callback pipeline:
- `dash.callback_context.triggered` now does NOT reflect any initial values, and DOES reflect EVERY value which has been changed either by activity in the app or as a result of a previous callback. That means that the initial call of a callback with no prerequisite callbacks will list nothing as triggering. For backward compatibility, we continue to provide a length-1 list for `triggered`, but its `id` and `property` are blank strings, and `bool(triggered)` is `False`.
- A user interaction which returns the same property value as was previously present will not trigger the component to re-render, nor trigger callbacks using that property as an input.
- Callback validation is now mostly done in the browser, rather than in Python. A few things - mostly type validation, like ensuring IDs are strings or dicts and properties are strings - are still done in Python, but most others, like ensuring outputs are unique, inputs and outputs don't overlap, and (if desired) that IDs are present in the layout, are done in the browser. This means you can define callbacks BEFORE the layout and still validate IDs to the layout; and while developing an app, most errors in callback definitions will not halt the app.

### Fixed
- [#1103](https://github.com/plotly/dash/pull/1103) Fixed multiple bugs with chained callbacks either not triggering, inconsistently triggering, or triggering multiple times. This includes: [#635](https://github.com/plotly/dash/issues/635), [#832](https://github.com/plotly/dash/issues/832), [#1053](https://github.com/plotly/dash/issues/1053), [#1071](https://github.com/plotly/dash/issues/1071), and [#1084](https://github.com/plotly/dash/issues/1084). Also fixed [#1105](https://github.com/plotly/dash/issues/1105): async components that aren't rendered by the page (for example in a background Tab) would block the app from executing callbacks.

## [1.10.0] - 2020-04-01
### Added
- [#1134](https://github.com/plotly/dash/pull/1134) Allow `dash.run_server()` host and port parameters to be set with environment variables HOST & PORT, respectively
Expand Down
4 changes: 2 additions & 2 deletions dash-renderer/dash_renderer/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import sys

__file__
__version__ = "1.3.0"
__version__ = "1.4.0"

_js_dist_dependencies = [
{
Expand Down Expand Up @@ -42,7 +42,7 @@
{
"relative_package_path": "{}.min.js".format(__name__),
"dev_package_path": "{}.dev.js".format(__name__),
"external_url": "https://unpkg.com/dash-renderer@1.3.0"
"external_url": "https://unpkg.com/dash-renderer@1.4.0"
"/dash_renderer/dash_renderer.min.js",
"namespace": "dash_renderer",
},
Expand Down
4,245 changes: 2,836 additions & 1,409 deletions dash-renderer/dash_renderer/dash_renderer.dev.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions dash-renderer/dash_renderer/dash_renderer.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dash-renderer/digest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"MD5 (dash_renderer.dev.js)":"ce92a68860c00cabcfd6a84270b1c3e5",
"MD5 (dash_renderer.min.js)":"dabe65b8acbd6cf956c4f0b4595deccb",
"MD5 (dash_renderer.dev.js)":"12ee1dc65b2f5bf5877a336b2834f120",
"MD5 (dash_renderer.min.js)":"41a5fa682ba3442a46539a231aeebd48",
"MD5 (polyfill@7.8.7.min.js)":"5090bae2c114802440412e301bdf5174",
"MD5 (prop-types@15.7.2.js)":"85947944e396a28895fad5f553eee36f",
"MD5 (prop-types@15.7.2.min.js)":"e3053393609bd2744010498629a43597",
"MD5 (react-dom@16.13.0.js)":"b6ce9c17ff84a6d80ff79dd47c7adb9a",
"MD5 (react-dom@16.13.0.min.js)":"a5a4de9578054f7fb44dd553574d0931",
"MD5 (react@16.13.0.js)":"c0f26206f3dc7a9ec41f1608da1245cc",
"MD5 (react@16.13.0.min.js)":"0a82f766cc2d7330a971407e82c4e4a1",
"dash-renderer":"1.3.0"
"dash-renderer":"1.4.0"
}
Loading

0 comments on commit 599cccb

Please sign in to comment.