Skip to content

Commit b711247

Browse files
authored
Merge pull request #3135 from plotly/dash-3.0-rc1
Dash version 3.0.0-rc1
2 parents 8b3f422 + 500e541 commit b711247

File tree

11 files changed

+57
-16
lines changed

11 files changed

+57
-16
lines changed

CHANGELOG.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,53 @@
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+
## [3.0.0-rc1] - 2025-01-28
6+
7+
## Added
8+
9+
- [#2276](https://github.com/plotly/dash/pull/2276) Python typing definition generation for components `__init__`.
10+
- [#3035](https://github.com/plotly/dash/pull/3035) `PropType` generation for Typescript components allowing runtime prop validation when in debug mode.
11+
- [#3066](https://github.com/plotly/dash/pull/3066) Adds `window.dash_component_api` for components developer as alternative to removed `_dashprivate` props.
12+
- Add `dash_component_api.useDashContext`, `dash_component_api.DashContext` to access the redux store and loading mechanisms.
13+
- `DashContext.componentPath` hold the path to the current component.
14+
- `DashContext.useLoading(options?)` selector to get a boolean if the component is loading.
15+
- `DashContext.isLoading` in case you need to use outside of a functional component.
16+
- `DashContext.useSelector` to create custom selectors for the connected redux store.
17+
- `DashContext.useStore` get the Dash app redux store.
18+
- `DashContext.useDispatch` to dispatch new actions on the Dash redux store.
19+
- Add `dash_component_api.getLayout(path)` to replace `_dashprivate_layout`.
20+
- [#3029](https://github.com/plotly/dash/pull/3029) Add pip install based hooks to Dash functionalities.
21+
- Packages can add an `entry_points` with key `dash-hooks` to their `setup.py` for a module to be run when a Dash app is started.
22+
- Add `dash.hooks` methods to hook into Dash apps.
23+
- `hooks.layout` takes the layout as argument and must return a layout, can be used to wrap or add to the layout of Dash apps.
24+
- `hooks.callback` defines a callback to be added to Dash apps.
25+
- `hooks.clientside_callback` defines a clientside callback to be added to Dash apps.
26+
- `hooks.setup` is called before a Dash app is started to get an instance of the app as first argument.
27+
- `hooks.error` to receive all callback errors.
28+
- `hooks.index` to change the `Dash.index_string`.
29+
- `hooks.route` to add a Flask route to the Dash app.
30+
31+
## Removed
32+
33+
- [#3066](https://github.com/plotly/dash/pull/3066) `loading_state` removed from components props.
34+
- [#3078](https://github.com/plotly/dash/pull/3078) Deprecations removals
35+
- Removed `dash.development.component_loader`, components libraries now required to generate the components with `dash-generate-components`.
36+
- `Dash.run_server` has been removed in favor of `Dash.run`.
37+
- Removed `dcc.LogoutButton` component.
38+
- Renamed all `long` references to `background`.
39+
40+
## Changed
41+
42+
- [#3093](https://github.com/plotly/dash/pull/3093) Changed default React version to 18.3.1
43+
- `defaultProps` on functional components now emits a deprecation warning.
44+
- Deprecation notice on strings refs.
645

746
## Fixed
847

948
- [#3080](https://github.com/plotly/dash/pull/3080) Fix docstring generation for components using single-line or nonstandard-indent leading comments
1049
- [#3103](https://github.com/plotly/dash/pull/3103) Fix Graph component becomes unresponsive if an invalid figure is passed
50+
- [#3130](https://github.com/plotly/dash/pull/3130) Fix HOST variable when using conda.
51+
- [#3066](https://github.com/plotly/dash/pull/3066) Improve performance of context components re-rendering.
1152

1253
## [2.18.2] - 2024-11-04
1354

components/dash-core-components/package-lock.json

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

components/dash-core-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-core-components",
3-
"version": "2.14.3",
3+
"version": "3.0.0",
44
"description": "Core component suite for Dash",
55
"repository": {
66
"type": "git",

components/dash-html-components/package-lock.json

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

components/dash-html-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-html-components",
3-
"version": "2.0.20",
3+
"version": "3.0.0",
44
"description": "Vanilla HTML components for Dash",
55
"main": "lib/index.js",
66
"repository": {

components/dash-table/package-lock.json

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

components/dash-table/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-table",
3-
"version": "5.2.13",
3+
"version": "6.0.0",
44
"description": "Dash table",
55
"repository": {
66
"type": "git",

dash/_dash_renderer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import os
22

3-
__version__ = "1.21.1"
3+
__version__ = "2.0.0"
44

55
_available_react_versions = {"18.3.1", "18.2.0", "16.14.0"}
66
_available_reactdom_versions = {"18.3.1", "18.2.0", "16.14.0"}
@@ -64,7 +64,7 @@ def _set_react_version(v_react, v_reactdom=None):
6464
{
6565
"relative_package_path": "dash-renderer/build/dash_renderer.min.js",
6666
"dev_package_path": "dash-renderer/build/dash_renderer.dev.js",
67-
"external_url": "https://unpkg.com/dash-renderer@1.21.1"
67+
"external_url": "https://unpkg.com/dash-renderer@2.0.0"
6868
"/build/dash_renderer.min.js",
6969
"namespace": "dash",
7070
},

dash/dash-renderer/package-lock.json

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

dash/dash-renderer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-renderer",
3-
"version": "1.21.1",
3+
"version": "2.0.0",
44
"description": "render dash components in react",
55
"main": "build/dash_renderer.min.js",
66
"scripts": {

0 commit comments

Comments
 (0)