File tree Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Expand file tree Collapse file tree 5 files changed +19
-9
lines changed Original file line number Diff line number Diff line change 2
2
All notable changes to `dash` will be documented in this file.
3
3
This project adheres to [Semantic Versioning](https://semver.org/).
4
4
5
+ ## [2.14.1] - 2023-10-26
6
+
7
+ ## Fixed
8
+
9
+ - [#2672](https://github.com/plotly/dash/pull/2672) Fix `get_caller_name` in case the source is not available.
10
+
11
+ ## Changed
12
+
13
+ - [#2674](https://github.com/plotly/dash/pull/2674) Raise flask & werkzeug limits to <3.1
14
+
5
15
## [2.14.0] - 2023-10-11
6
16
7
17
## Fixed
Original file line number Diff line number Diff line change @@ -284,10 +284,10 @@ def parse_version(version):
284
284
return tuple (int (s ) for s in version .split ("." ))
285
285
286
286
287
- def get_caller_name (name : str ):
287
+ def get_caller_name ():
288
288
stack = inspect .stack ()
289
289
for s in stack :
290
- for code in s . code_context :
291
- if f" { name } (" in code :
292
- return s . frame . f_locals . get ( "__name__" , "__main__" )
290
+ if s . function == "<module>" :
291
+ return s . frame . f_locals . get ( "__name__" , "__main__" )
292
+
293
293
return "__main__"
Original file line number Diff line number Diff line change @@ -396,7 +396,7 @@ def __init__( # pylint: disable=too-many-statements
396
396
):
397
397
_validate .check_obsolete (obsolete )
398
398
399
- caller_name = get_caller_name (self . __class__ . __name__ )
399
+ caller_name = None if name else get_caller_name ()
400
400
401
401
# We have 3 cases: server is either True (we create the server), False
402
402
# (defer server creation) or a Flask app instance (we use their server)
Original file line number Diff line number Diff line change 1
- __version__ = "2.14.0 "
1
+ __version__ = "2.14.1 "
Original file line number Diff line number Diff line change 1
- Flask>=1.0.4,<2.3.0
2
- Werkzeug<2.3.0
1
+ Flask>=1.0.4,<3.1
2
+ Werkzeug<3.1
3
3
plotly>=5.0.0
4
4
dash_html_components==2.0.0
5
5
dash_core_components==2.0.0
@@ -12,4 +12,4 @@ requests
12
12
retrying
13
13
ansi2html
14
14
nest-asyncio
15
- setuptools
15
+ setuptools
You can’t perform that action at this time.
0 commit comments