Skip to content

Commit 885f887

Browse files
committed
Merge branch 'dev' into feat/dynamic-loading
# Conflicts: # dash/_dash_renderer.py # dash/dash-renderer/src/TreeContainer.js
2 parents 6b74463 + 6051319 commit 885f887

Some content is hidden

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

52 files changed

+13099
-8509
lines changed

.circleci/config.yml

Lines changed: 123 additions & 108 deletions
Large diffs are not rendered by default.

.pylintrc

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# A comma-separated list of package or module names from where C extensions may
44
# be loaded. Extensions are loading into the active Python interpreter and may
55
# run arbitrary code
6-
extension-pkg-whitelist=
6+
extension-pkg-allow-list=
77

88
# Add files or directories to the blacklist. They should be base names, not
99
# paths.
@@ -68,7 +68,13 @@ disable=fixme,
6868
superfluous-parens,
6969
bad-continuation,
7070
line-too-long,
71-
bad-option-value
71+
bad-option-value,
72+
use-dict-literal,
73+
missing-timeout,
74+
unnecessary-dunder-call,
75+
unnecessary-lambda-assignment,
76+
broad-exception-raised,
77+
consider-using-generator,
7278

7379

7480
# Enable the message, report, category or checker with the given id(s). You can
@@ -234,13 +240,6 @@ indent-string=' '
234240
# Maximum number of lines in a module
235241
max-module-lines=1000
236242

237-
# List of optional constructs for which whitespace checking is disabled. `dict-
238-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
239-
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
240-
# `empty-line` allows space-only lines.
241-
no-space-check=trailing-comma,
242-
dict-separator
243-
244243
# Allow the body of a class to be on the same line as the declaration if body
245244
# contains single statement.
246245
single-line-class-stmt=no
@@ -415,7 +414,7 @@ max-bool-expr=5
415414
max-branches=15
416415

417416
# Maximum number of locals for function / method body
418-
max-locals=15
417+
max-locals=18
419418

420419
# Maximum number of parents for a class (see R0901).
421420
max-parents=7
@@ -467,10 +466,3 @@ known-standard-library=
467466

468467
# Force import order to recognize a module as part of a third party library.
469468
known-third-party=enchant
470-
471-
472-
[EXCEPTIONS]
473-
474-
# Exceptions that will emit a warning when being caught. Defaults to
475-
# "Exception"
476-
overgeneral-exceptions=Exception

.pylintrc39 renamed to .pylintrc312

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# A comma-separated list of package or module names from where C extensions may
44
# be loaded. Extensions are loading into the active Python interpreter and may
55
# run arbitrary code.
6-
extension-pkg-whitelist=
6+
extension-pkg-allow-list=
77

88
# Add files or directories to the blacklist. They should be base names, not
99
# paths.
@@ -159,7 +159,13 @@ disable=invalid-name,
159159
line-too-long,
160160
super-with-arguments,
161161
raise-missing-from,
162-
bad-option-value
162+
bad-option-value,
163+
use-dict-literal,
164+
missing-timeout,
165+
unnecessary-dunder-call,
166+
unnecessary-lambda-assignment,
167+
broad-exception-raised,
168+
consider-using-generator,
163169

164170
# Enable the message, report, category or checker with the given id(s). You can
165171
# either give multiple identifier separated by comma (,) or put this option
@@ -332,13 +338,6 @@ indent-string=' '
332338
# Maximum number of lines in a module.
333339
max-module-lines=1000
334340

335-
# List of optional constructs for which whitespace checking is disabled. `dict-
336-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
337-
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
338-
# `empty-line` allows space-only lines.
339-
no-space-check=trailing-comma,
340-
dict-separator
341-
342341
# Allow the body of a class to be on the same line as the declaration if body
343342
# contains single statement.
344343
single-line-class-stmt=no
@@ -516,7 +515,7 @@ max-bool-expr=5
516515
max-branches=15
517516

518517
# Maximum number of locals for function / method body.
519-
max-locals=15
518+
max-locals=18
520519

521520
# Maximum number of parents for a class (see R0901).
522521
max-parents=7
@@ -574,4 +573,4 @@ known-third-party=enchant
574573

575574
# Exceptions that will emit a warning when being caught. Defaults to
576575
# "Exception".
577-
overgeneral-exceptions=Exception
576+
overgeneral-exceptions=builtins.Exception

@plotly/dash-jupyterlab/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"build:pack": "jlpm run prepare && jlpm pack --filename ../../dash/labextension/dist/dash-jupyterlab.tgz && jlpm run build:copy",
2929
"build:copy": "cp package.json ../../dash/labextension/dist/package.json",
3030
"clean": "rimraf lib",
31-
"prepare": "mkdir -p ../../dash/labextension/dist && jlpm run clean && jlpm run build",
31+
"prepare": "mkdirp ../../dash/labextension/dist && jlpm run clean && jlpm run build",
3232
"prettier": "prettier --write '{!(package),src/**,!(lib)/**}{.js,.jsx,.ts,.tsx,.css,.json,.md}'",
3333
"watch": "tsc -w"
3434
},
@@ -40,7 +40,8 @@
4040
"devDependencies": {
4141
"prettier": "2.0.5",
4242
"rimraf": "3.0.2",
43-
"typescript": "3.9.3"
43+
"typescript": "3.9.3",
44+
"mkdirp": "^0.5.1"
4445
},
4546
"jupyterlab": {
4647
"extension": true

CHANGELOG.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,32 @@ This project adheres to [Semantic Versioning](https://semver.org/).
44

55
## [UNRELEASED]
66

7-
### Added
7+
## Fixed
8+
9+
- [#2756](https://github.com/plotly/dash/pull/2756) Prevent false dangerous link warning. Fixes [#2743](https://github.com/plotly/dash/issues/2743)
10+
11+
## Changed
12+
13+
- [#2734](https://github.com/plotly/dash/pull/2734) Configure CI for Python 3.10 [#1863](https://github.com/plotly/dash/issues/1863)
14+
- [#2735](https://github.com/plotly/dash/pull/2735) Configure CI for Python 3.8 and 3.12, drop support for Python 3.6 and Python 3.7 [#2736](https://github.com/plotly/dash/issues/2736)
15+
16+
## [2.15.0] - 2024-01-31
17+
18+
## Added
819
- [#2695](https://github.com/plotly/dash/pull/2695) Adds `triggered_id` to `dash_clientside.callback_context`. Fixes [#2692](https://github.com/plotly/dash/issues/2692)
20+
- [#2723](https://github.com/plotly/dash/pull/2723) Improve dcc Slider/RangeSlider tooltips. Fixes [#1846](https://github.com/plotly/dash/issues/1846)
21+
- Add `tooltip.template` a string for the format template, {value} will be formatted with the actual value.
22+
- Add `tooltip.style` a style object to give to the div of the tooltip.
23+
- Add `tooltip.transform` a reference to a function in the `window.dccFunctions` namespace.
24+
- [#2732](https://github.com/plotly/dash/pull/2732) Add special key `_dash_error` to `setProps`, allowing component developers to send error without throwing in render. Usage `props.setProps({_dash_error: new Error("custom error")})`
25+
26+
## Fixed
27+
28+
- [#2732](https://github.com/plotly/dash/pull/2732) Sanitize html props that are vulnerable to xss vulnerability if user data is inserted. Fix Validate url to prevent XSS attacks [#2729](https://github.com/plotly/dash/issues/2729)
29+
30+
## Changed
31+
- [#2652](https://github.com/plotly/dash/pull/2652) dcc.Clipboard supports htm_content and triggers a copy to clipboard when n_clicks are changed
32+
- [#2721](https://github.com/plotly/dash/pull/2721) Remove ansi2html, fixes [#2613](https://github.com/plotly/dash/issues/2713)
933

1034
## [2.14.2] - 2023-11-27
1135

0 commit comments

Comments
 (0)