Skip to content

Commit 092cc0c

Browse files
authored
Merge branch 'dev' into optimize-getReadyCallbacks
2 parents d500f5a + a354a73 commit 092cc0c

File tree

6 files changed

+15
-10
lines changed

6 files changed

+15
-10
lines changed

@plotly/dash-jupyterlab/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,16 @@
3333
"watch": "tsc -w"
3434
},
3535
"dependencies": {
36-
"@jupyterlab/application": "^2.0.0 || ^3.0.0",
37-
"@jupyterlab/notebook": "^2.0.0 || ^3.0.0",
38-
"@jupyterlab/console": "^2.0.0 || ^3.0.0"
36+
"@jupyterlab/application": "^2.0.0 || ^3.0.0 || ^4.0.0",
37+
"@jupyterlab/console": "^2.0.0 || ^3.0.0 || ^4.0.0",
38+
"@jupyterlab/notebook": "^2.0.0 || ^3.0.0 || ^4.0.0"
3939
},
4040
"devDependencies": {
41+
"@types/json-schema": "^7.0.15",
42+
"mkdirp": "^0.5.1",
4143
"prettier": "2.0.5",
4244
"rimraf": "3.0.2",
43-
"typescript": "3.9.3",
44-
"mkdirp": "^0.5.1"
45+
"typescript": "5.6.2"
4546
},
4647
"jupyterlab": {
4748
"extension": true

@plotly/dash-jupyterlab/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"declaration": true,
4-
"lib": ["es2015", "dom"],
4+
"lib": ["es2018", "dom"],
55
"module": "commonjs",
66
"moduleResolution": "node",
77
"noEmitOnError": true,
@@ -10,7 +10,7 @@
1010
"rootDir": "src",
1111
"strict": true,
1212
"strictNullChecks": false,
13-
"target": "es2015",
13+
"target": "es2018",
1414
"types": [],
1515
"esModuleInterop": true
1616
},

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ This project adheres to [Semantic Versioning](https://semver.org/).
88

99
- [#2994](https://github.com/plotly/dash/pull/2994) Keep generated doc-string order for shape or exact props. Fixes [#2990](https://github.com/plotly/dash/issues/2990)
1010
- [#3011](https://github.com/plotly/dash/pull/3011) Fixed an exception error caused by assigning `None` to array properties with `exact` or `shape` element types. Fixes [#3010](https://github.com/plotly/dash/issues/3010)
11+
- [#2991](https://github.com/plotly/dash/pull/2991) Add support for URL decoding of the search parameter for pages.
12+
- [#3025](https://github.com/plotly/dash/pull/3025) Fix no output callback with error handler setting the response to NoUpdate and triggering an error.
13+
- [#3034](https://github.com/plotly/dash/pull/3034) Remove whitespace from `metadata.json` files to reduce package size
1114

1215
## [2.18.1] - 2024-09-12
1316

dash/_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ def add_context(*args, **kwargs):
508508
output_value = error_handler(err)
509509

510510
# If the error returns nothing, automatically puts NoUpdate for response.
511-
if output_value is None:
511+
if output_value is None and has_output:
512512
output_value = NoUpdate()
513513
else:
514514
raise err

dash/_pages.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from fnmatch import fnmatch
77
from pathlib import Path
88
from os.path import isfile, join
9-
from urllib.parse import parse_qs
9+
from urllib.parse import parse_qs, unquote
1010

1111
import flask
1212

@@ -113,6 +113,7 @@ def _infer_module_name(page_path):
113113

114114

115115
def _parse_query_string(search):
116+
search = unquote(search)
116117
if search and len(search) > 0 and search[0] == "?":
117118
search = search[1:]
118119
else:

dash/development/component_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def generate_components(
138138
with open(
139139
os.path.join(project_shortname, "metadata.json"), "w", encoding="utf-8"
140140
) as f:
141-
json.dump(metadata, f, indent=2)
141+
json.dump(metadata, f, separators=(",", ":"))
142142

143143
generate_imports(project_shortname, components)
144144

0 commit comments

Comments
 (0)