Skip to content

Commit 17c8aa9

Browse files
Issue 404 - Add source map to package (plotly#410)
1 parent 22072e2 commit 17c8aa9

12 files changed

+110821
-7859
lines changed

packages/dash-core-components/CHANGELOG.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
All notable changes to this project will be documented in this file.
33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
## [0.40.3] - 2018-12-07
6+
### Added
7+
- Source map [#404](https://github.com/plotly/dash-core-components/issues/404)
8+
Related Dash issue [#480](https://github.com/plotly/dash/issues/480)
9+
510
## [0.40.2] - 2018-12-04
611
### Fixed
712
- Put Input value set in onBlur/onSubmit under a debounce check [#384](https://github.com/plotly/dash-core-components/pull/384)
@@ -64,7 +69,7 @@ See https://github.com/plotly/dash-core-components/pull/182.
6469

6570
## [0.36.0] - 2018-11-01
6671
### Fixed
67-
- The `npm start` command now runs the Demo app again [#346](https://github.com/plotly/dash-core-components/issues/346)
72+
- The `npm start` command now runs the Demo app again [#346](https://github.com/plotly/dash-core-components/issues/346)
6873

6974
## [0.36.0] - 2018-10-31
7075
### Updated
@@ -187,7 +192,7 @@ See https://github.com/plotly/dash-core-components/pull/182.
187192
## [0.33.0] -- 2018-10-04
188193
### Added
189194

190-
- Upgraded Plotly.js, the underlying library behind the dash_core_components.Graph component, to version 1.41.3. See https://github.com/plotly/plotly.js/releases/tag/v1.41.3 for the official notes.
195+
- Upgraded Plotly.js, the underlying library behind the dash_core_components.Graph component, to version 1.41.3. See https://github.com/plotly/plotly.js/releases/tag/v1.41.3 for the official notes.
191196
Many of these features were funded directly by companies that rely on this library. If your organization or company would like to sponsor particular features or bug fixes in these open source libraries, please reach out: http://plot.ly/products/consulting-and-oem
192197

193198
### Fixed
@@ -236,7 +241,7 @@ As part of plotly.js release:
236241
## [0.29.0] -- 2018-09-13
237242
### Added
238243

239-
- Upgraded Plotly.js, the underlying library behind the dash_core_components.Graph component, to version 1.41.0. See https://github.com/plotly/plotly.js/releases/tag/v1.41.0 for the official notes.
244+
- Upgraded Plotly.js, the underlying library behind the dash_core_components.Graph component, to version 1.41.0. See https://github.com/plotly/plotly.js/releases/tag/v1.41.0 for the official notes.
240245
Many of these features were funded directly by companies that rely on this library. If your organization or company would like to sponsor particular features or bug fixes in these open source libraries, please reach out: http://plot.ly/products/consulting-and-oem
241246

242247
As part of plotly.js release:
@@ -289,7 +294,7 @@ As part of plotly.js release:
289294
## [0.28.3] - 2018-09-07
290295
### Changed
291296
- The `Interval` component's `max_interval` prop can now be used to stop/restart the interval. Fixes [#266](https://github.com/plotly/dash-core-components/issues/266)
292-
- The `Graph` component's `id` is now not required to be set.
297+
- The `Graph` component's `id` is now not required to be set.
293298
### Fixed
294299
- Fixed bug where Graph would resize randomly when rerendered, for example in a dcc.Tabs component.
295300

@@ -394,7 +399,7 @@ supported [#2697](https://github.com/plotly/plotly.js/pull/2697)
394399
- Fix colorbar edits for parcoords and histogram traces [#2681](https://github.com/plotly/plotly.js/pull/2681)
395400
- Fix bandwidth for single-value violins [#2775](https://github.com/plotly/plotly.js/pull/2775)
396401
- Make Plots.resize work when layout attribute is gone from graph div [#2710](https://github.com/plotly/plotly.js/pull/2710)
397-
- Fix colorscale attribute descriptions [#2658](https://github.com/plotly/plotly.js/pull/2658)
402+
- Fix colorscale attribute descriptions [#2658](https://github.com/plotly/plotly.js/pull/2658)
398403

399404
## [0.23.0]
400405
### Added

packages/dash-core-components/dash_core_components/__init__.py

+10
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,16 @@
4747
'/dash_core_components/dash_core_components.min.js'
4848
).format(__version__),
4949
'namespace': 'dash_core_components'
50+
},
51+
{
52+
'relative_package_path': '{}.min.js.map'.format(__name__),
53+
'dev_package_path': '{}.dev.js.map'.format(__name__),
54+
'external_url': (
55+
'https://unpkg.com/dash-core-components@{}'
56+
'/dash_core_components/dash_core_components.min.js.map'
57+
).format(__version__),
58+
'namespace': 'dash_core_components',
59+
'dynamic': True
5060
}
5161
]
5262

packages/dash-core-components/dash_core_components/dash_core_components.dev.js

+110,679-7,734
Large diffs are not rendered by default.

packages/dash-core-components/dash_core_components/dash_core_components.dev.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dash-core-components/dash_core_components/dash_core_components.min.js

+7-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dash-core-components/dash_core_components/dash_core_components.min.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/dash-core-components/dash_core_components/metadata.json

+106-106
Large diffs are not rendered by default.

packages/dash-core-components/dash_core_components/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-core-components",
3-
"version": "0.40.2",
3+
"version": "0.40.3",
44
"description": "Core component suite for Dash",
55
"repository": {
66
"type": "git",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.40.2'
1+
__version__ = '0.40.3'

packages/dash-core-components/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dash-core-components",
3-
"version": "0.40.2",
3+
"version": "0.40.3",
44
"description": "Core component suite for Dash",
55
"repository": {
66
"type": "git",

packages/dash-core-components/test/test_integration.py

+1
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ def update_pathname(n_clicks, current_pathname):
816816

817817
self.startServer(app=app)
818818

819+
time.sleep(1)
819820
self.snapshot('link -- location')
820821

821822
# Check that link updates pathname

packages/dash-core-components/webpack.config.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ module.exports = (env, argv) => {
3232

3333
const entry = overrides.entry || {main: './src/index.js'};
3434

35-
const devtool = overrides.devtool || (
36-
mode === 'development' ? "eval-source-map" : 'none'
37-
);
35+
const devtool = overrides.devtool || 'source-map';
3836

3937
const externals = ('externals' in overrides) ? overrides.externals : ({
4038
react: 'React',
@@ -51,6 +49,7 @@ module.exports = (env, argv) => {
5149
library: dashLibraryName,
5250
libraryTarget: 'window',
5351
},
52+
devtool,
5453
externals,
5554
module: {
5655
rules: [
@@ -76,7 +75,6 @@ module.exports = (env, argv) => {
7675
],
7776
},
7877
],
79-
},
80-
devtool
78+
}
8179
}
8280
};

0 commit comments

Comments
 (0)