Skip to content

Commit

Permalink
Merge pull request #3135 from plotly/dash-3.0-rc1
Browse files Browse the repository at this point in the history
Dash version 3.0.0-rc1
  • Loading branch information
T4rk1n authored Jan 28, 2025
2 parents 8b3f422 + 500e541 commit b711247
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 16 deletions.
43 changes: 42 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,53 @@
All notable changes to `dash` will be documented in this file.
This project adheres to [Semantic Versioning](https://semver.org/).

## [UNRELEASED]
## [3.0.0-rc1] - 2025-01-28

## Added

- [#2276](https://github.com/plotly/dash/pull/2276) Python typing definition generation for components `__init__`.
- [#3035](https://github.com/plotly/dash/pull/3035) `PropType` generation for Typescript components allowing runtime prop validation when in debug mode.
- [#3066](https://github.com/plotly/dash/pull/3066) Adds `window.dash_component_api` for components developer as alternative to removed `_dashprivate` props.
- Add `dash_component_api.useDashContext`, `dash_component_api.DashContext` to access the redux store and loading mechanisms.
- `DashContext.componentPath` hold the path to the current component.
- `DashContext.useLoading(options?)` selector to get a boolean if the component is loading.
- `DashContext.isLoading` in case you need to use outside of a functional component.
- `DashContext.useSelector` to create custom selectors for the connected redux store.
- `DashContext.useStore` get the Dash app redux store.
- `DashContext.useDispatch` to dispatch new actions on the Dash redux store.
- Add `dash_component_api.getLayout(path)` to replace `_dashprivate_layout`.
- [#3029](https://github.com/plotly/dash/pull/3029) Add pip install based hooks to Dash functionalities.
- 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.
- Add `dash.hooks` methods to hook into Dash apps.
- `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.
- `hooks.callback` defines a callback to be added to Dash apps.
- `hooks.clientside_callback` defines a clientside callback to be added to Dash apps.
- `hooks.setup` is called before a Dash app is started to get an instance of the app as first argument.
- `hooks.error` to receive all callback errors.
- `hooks.index` to change the `Dash.index_string`.
- `hooks.route` to add a Flask route to the Dash app.

## Removed

- [#3066](https://github.com/plotly/dash/pull/3066) `loading_state` removed from components props.
- [#3078](https://github.com/plotly/dash/pull/3078) Deprecations removals
- Removed `dash.development.component_loader`, components libraries now required to generate the components with `dash-generate-components`.
- `Dash.run_server` has been removed in favor of `Dash.run`.
- Removed `dcc.LogoutButton` component.
- Renamed all `long` references to `background`.

## Changed

- [#3093](https://github.com/plotly/dash/pull/3093) Changed default React version to 18.3.1
- `defaultProps` on functional components now emits a deprecation warning.
- Deprecation notice on strings refs.

## Fixed

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

## [2.18.2] - 2024-11-04

Expand Down
4 changes: 2 additions & 2 deletions components/dash-core-components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/dash-core-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-core-components",
"version": "2.14.3",
"version": "3.0.0",
"description": "Core component suite for Dash",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions components/dash-html-components/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/dash-html-components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-html-components",
"version": "2.0.20",
"version": "3.0.0",
"description": "Vanilla HTML components for Dash",
"main": "lib/index.js",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions components/dash-table/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion components/dash-table/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-table",
"version": "5.2.13",
"version": "6.0.0",
"description": "Dash table",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions dash/_dash_renderer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import os

__version__ = "1.21.1"
__version__ = "2.0.0"

_available_react_versions = {"18.3.1", "18.2.0", "16.14.0"}
_available_reactdom_versions = {"18.3.1", "18.2.0", "16.14.0"}
Expand Down Expand Up @@ -64,7 +64,7 @@ def _set_react_version(v_react, v_reactdom=None):
{
"relative_package_path": "dash-renderer/build/dash_renderer.min.js",
"dev_package_path": "dash-renderer/build/dash_renderer.dev.js",
"external_url": "https://unpkg.com/dash-renderer@1.21.1"
"external_url": "https://unpkg.com/dash-renderer@2.0.0"
"/build/dash_renderer.min.js",
"namespace": "dash",
},
Expand Down
4 changes: 2 additions & 2 deletions dash/dash-renderer/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dash/dash-renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-renderer",
"version": "1.21.1",
"version": "2.0.0",
"description": "render dash components in react",
"main": "build/dash_renderer.min.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion dash/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.18.2"
__version__ = "3.0.0rc1"

0 comments on commit b711247

Please sign in to comment.