Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
Issue 404 - Add source map to package (#410)
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-Andre-Rivet committed Dec 7, 2018
1 parent 19ac349 commit 7328bae
Show file tree
Hide file tree
Showing 12 changed files with 110,821 additions and 7,859 deletions.
15 changes: 10 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
All notable changes to this project will be documented in this file.
This project adheres to [Semantic Versioning](http://semver.org/).

## [0.40.3] - 2018-12-07
### Added
- Source map [#404](https://github.com/plotly/dash-core-components/issues/404)
Related Dash issue [#480](https://github.com/plotly/dash/issues/480)

## [0.40.2] - 2018-12-04
### Fixed
- Put Input value set in onBlur/onSubmit under a debounce check [#384](https://github.com/plotly/dash-core-components/pull/384)
Expand Down Expand Up @@ -64,7 +69,7 @@ See https://github.com/plotly/dash-core-components/pull/182.

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

## [0.36.0] - 2018-10-31
### Updated
Expand Down Expand Up @@ -187,7 +192,7 @@ See https://github.com/plotly/dash-core-components/pull/182.
## [0.33.0] -- 2018-10-04
### Added

- 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.
- 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.
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

### Fixed
Expand Down Expand Up @@ -236,7 +241,7 @@ As part of plotly.js release:
## [0.29.0] -- 2018-09-13
### Added

- 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.
- 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.
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

As part of plotly.js release:
Expand Down Expand Up @@ -289,7 +294,7 @@ As part of plotly.js release:
## [0.28.3] - 2018-09-07
### Changed
- 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)
- The `Graph` component's `id` is now not required to be set.
- The `Graph` component's `id` is now not required to be set.
### Fixed
- Fixed bug where Graph would resize randomly when rerendered, for example in a dcc.Tabs component.

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

## [0.23.0]
### Added
Expand Down
10 changes: 10 additions & 0 deletions dash_core_components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,16 @@
'/dash_core_components/dash_core_components.min.js'
).format(__version__),
'namespace': 'dash_core_components'
},
{
'relative_package_path': '{}.min.js.map'.format(__name__),
'dev_package_path': '{}.dev.js.map'.format(__name__),
'external_url': (
'https://unpkg.com/dash-core-components@{}'
'/dash_core_components/dash_core_components.min.js.map'
).format(__version__),
'namespace': 'dash_core_components',
'dynamic': True
}
]

Expand Down
118,413 changes: 110,679 additions & 7,734 deletions dash_core_components/dash_core_components.dev.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dash_core_components/dash_core_components.dev.js.map

Large diffs are not rendered by default.

13 changes: 7 additions & 6 deletions dash_core_components/dash_core_components.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions dash_core_components/dash_core_components.min.js.map

Large diffs are not rendered by default.

212 changes: 106 additions & 106 deletions dash_core_components/metadata.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dash_core_components/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-core-components",
"version": "0.40.2",
"version": "0.40.3",
"description": "Core component suite for Dash",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion dash_core_components/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = '0.40.2'
__version__ = '0.40.3'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dash-core-components",
"version": "0.40.2",
"version": "0.40.3",
"description": "Core component suite for Dash",
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions test/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ def update_pathname(n_clicks, current_pathname):

self.startServer(app=app)

time.sleep(1)
self.snapshot('link -- location')

# Check that link updates pathname
Expand Down
8 changes: 3 additions & 5 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ module.exports = (env, argv) => {

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

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

const externals = ('externals' in overrides) ? overrides.externals : ({
react: 'React',
Expand All @@ -51,6 +49,7 @@ module.exports = (env, argv) => {
library: dashLibraryName,
libraryTarget: 'window',
},
devtool,
externals,
module: {
rules: [
Expand All @@ -76,7 +75,6 @@ module.exports = (env, argv) => {
],
},
],
},
devtool
}
}
};

0 comments on commit 7328bae

Please sign in to comment.