Skip to content

Commit 7c23483

Browse files
committed
Merge branch 'master' of https://github.com/LucaVazz/plotly.js into fix-choropleth-interactions-for-firefox
2 parents 7b3929a + 32d4631 commit 7c23483

35 files changed

+17953
-11649
lines changed

.circleci/config.yml

+28-4
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
docker:
4545
# need '-browsers' version to test in real (xvfb-wrapped) browsers
4646
- image: circleci/node:12.13.0-browsers
47-
parallelism: 2
47+
parallelism: 8
4848
working_directory: ~/plotly.js
4949
steps:
5050
- attach_workspace:
@@ -57,7 +57,7 @@ jobs:
5757
docker:
5858
# need '-browsers' version to test in real (xvfb-wrapped) browsers
5959
- image: circleci/node:12.13.0-browsers
60-
parallelism: 3
60+
parallelism: 8
6161
working_directory: ~/plotly.js
6262
steps:
6363
- attach_workspace:
@@ -170,6 +170,18 @@ jobs:
170170
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.js
171171
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plotly.min.js
172172
echo https://$CIRCLE_BUILD_NUM-$PROJECT_NUM-gh.circle-artifacts.com/0/dist/plot-schema.json
173+
- persist_to_workspace:
174+
root: ~/
175+
paths:
176+
- plotly.js
177+
178+
test-dist1:
179+
docker:
180+
- image: circleci/node:12.13.0
181+
working_directory: ~/plotly.js
182+
steps:
183+
- attach_workspace:
184+
at: ~/
173185
- run:
174186
name: Test validation using node.js and jsdom
175187
command: npm run test-plain-obj
@@ -182,13 +194,19 @@ jobs:
182194
- run:
183195
name: Test certain bundles against function constructors
184196
command: npm run no-new-func
197+
198+
test-dist2:
199+
docker:
200+
- image: circleci/node:12.13.0
201+
working_directory: ~/plotly.js
202+
steps:
203+
- attach_workspace:
204+
at: ~/
185205
- run:
186206
name: Test plotly bundles against es6
187207
command: npm run no-es6-dist
188208
- run:
189209
name: Test plotly bundles againt duplicate keys
190-
environment:
191-
NODE_OPTIONS: --max_old_space_size=4096
192210
command: npm run no-dup-keys
193211

194212
workflows:
@@ -220,3 +238,9 @@ workflows:
220238
- publish-dist:
221239
requires:
222240
- install-and-cibuild
241+
- test-dist1:
242+
requires:
243+
- publish-dist
244+
- test-dist2:
245+
requires:
246+
- publish-dist

CHANGELOG.md

+24-3
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,25 @@ where X.Y.Z is the semver of most recent plotly.js release.
1212
## [2.0.0] -- UNRELEASED
1313

1414
### Added
15-
- Removed usage of function constructors from `basic`, `cartesian`, `finance`, `geo`, and `mapbox`
15+
- CSP safety: refactored to avoid usage of function constructors from `basic`, `cartesian`, `finance`, `geo`, and `mapbox`
1616
partial bundles and added tests to ensure that they will not again do so in the future [[#5359](https://github.com/plotly/plotly.js/pull/5359), [#5383](https://github.com/plotly/plotly.js/pull/5383), [#5387](https://github.com/plotly/plotly.js/pull/5387)],
1717
with thanks to [Equinor](https://www.equinor.com) for sponsoring the related development!
1818
- Add `strict` partial bundle [[#5413](https://github.com/plotly/plotly.js/pull/5413), [#5444](https://github.com/plotly/plotly.js/pull/5444)], which includes
1919
the maximal subset of the library which does not rely on function constructors
20+
- Add `partial-bundle` script to facilitate generation of custom bundles [[#5527](https://github.com/plotly/plotly.js/pull/5527), [#5508](https://github.com/plotly/plotly.js/pull/5508)]
2021
- Implement "fast" `zsmooth` option for `image` trace [[#5354](https://github.com/plotly/plotly.js/pull/5354), [#5386](https://github.com/plotly/plotly.js/pull/5386)],
2122
with thanks to @almarklein for the contribution!
23+
- Implement various `marker.pattern` options in `histogram`, `bar` and `barpolar` traces [[#5520](https://github.com/plotly/plotly.js/pull/5520), [#5537](https://github.com/plotly/plotly.js/pull/5537)]
24+
with thanks to @s417-lama for the contribution!
25+
- Implement `ticklabeloverflow` options on cartesian axes and colorbars to drop tick labels going outside div or domain [[#5584](https://github.com/plotly/plotly.js/pull/5584)]
26+
- Implement `(x|y|z)hoverformat`, `(u|v|w)hoverformat` and `valueformat` to cartesian and gl3d traces [[#5563](https://github.com/plotly/plotly.js/pull/5563)]
2227

2328
### Removed
24-
- Drop support for old browsers IE9 and IE10 [[#5376](https://github.com/plotly/plotly.js/pull/5376), [#5380](https://github.com/plotly/plotly.js/pull/5380), [#5460](https://github.com/plotly/plotly.js/pull/5460)]
29+
- Drop support for old browsers IE9 and IE10 [[#5376](https://github.com/plotly/plotly.js/pull/5376), [#5380](https://github.com/plotly/plotly.js/pull/5380), [#5460](https://github.com/plotly/plotly.js/pull/5460), [#5491](https://github.com/plotly/plotly.js/pull/5491)]
2530
- Stop exporting v3 of d3 under `Plotly.d3` [[#5400](https://github.com/plotly/plotly.js/pull/5400), [#5406](https://github.com/plotly/plotly.js/pull/5406)]
2631
- Stop attaching `_has*` plot types to `fullLayout` [[#5409](https://github.com/plotly/plotly.js/pull/5409)]
32+
- Stop injecting MathJax config by default [[#5514](https://github.com/plotly/plotly.js/pull/5514)]
33+
- Remove `sane-topojson` and MathJax v2.3 files from dist folder and change supported MathJax version to v2.7.5 [[#5487](https://github.com/plotly/plotly.js/pull/5487), [#5492](https://github.com/plotly/plotly.js/pull/5492), [#5494](https://github.com/plotly/plotly.js/pull/5494)]
2734
- Reduce the number of exported methods from `Plotly.Fx` and `Plotly.Plots` in the API [[#5420](https://github.com/plotly/plotly.js/pull/5420)]
2835
- Drop `Plotly.plot` from the API [[#5412](https://github.com/plotly/plotly.js/pull/5412), [#5370](https://github.com/plotly/plotly.js/pull/5370), [#5393](https://github.com/plotly/plotly.js/pull/5393)]
2936
- Drop `Plotly.Queue` from the API [[#5423](https://github.com/plotly/plotly.js/pull/5423)]
@@ -40,7 +47,12 @@ where X.Y.Z is the semver of most recent plotly.js release.
4047
- Add major versions e.g. "latest-v2" when publishing latest to CDN and keep "latest" for v1 [[#5462](https://github.com/plotly/plotly.js/pull/5462)]
4148
- Switch to `native-promise-only` module to handle es6 promises [[#5358](https://github.com/plotly/plotly.js/pull/5358)]
4249
- Switch to `probe-image-size` module to get width and height of images [[#5388](https://github.com/plotly/plotly.js/pull/5388)]
43-
- Relax test for plain objects to enable validation in node.js and multiple window contexts [[#5411](https://github.com/plotly/plotly.js/pull/5411)]
50+
- Relax test for plain objects to enable validation in node.js and multiple window contexts [[#5411](https://github.com/plotly/plotly.js/pull/5411), [#5498](https://github.com/plotly/plotly.js/pull/5498)]
51+
- Display latitudes before longitudes in hoverlabels to comply with ISO 6709 (Standard representation of geographic point location by coordinates) [[#5485](https://github.com/plotly/plotly.js/pull/5485)]
52+
- Adjust text shadow color in respect to `paper_bgcolor` for better dark mode display of
53+
`sankey`, `parcoords` and `parcats` traces [[#5506](https://github.com/plotly/plotly.js/pull/5506)]
54+
- Improve `sankey` text namely support pseudo-html, fix `textfont.color` and avoid clipping [[#5531](https://github.com/plotly/plotly.js/pull/5531)]
55+
- Make selection event data of `scattergl` on par with `scatter` traces [[#5534](https://github.com/plotly/plotly.js/pull/5534)]
4456
- Fire `plotly_unhover` event when dragging [[#5407](https://github.com/plotly/plotly.js/pull/5407)],
4557
with thanks to @rreusser for the contribution!
4658
- Include transforms and calendars in partial bundles [[#5379](https://github.com/plotly/plotly.js/pull/5379), [#5422](https://github.com/plotly/plotly.js/pull/5422)]
@@ -56,10 +68,19 @@ where X.Y.Z is the semver of most recent plotly.js release.
5668
with thanks to @ruijin for the contribution!
5769
- Fix element targeting on hover in shadow DOM [[#5256](https://github.com/plotly/plotly.js/pull/5256)],
5870
with thanks to @dbluhm for the contribution!
71+
- Hide gridlines and ticks overlapping "inside" ticklabels [[#5550](https://github.com/plotly/plotly.js/pull/5550), [#5586](https://github.com/plotly/plotly.js/pull/5586), [#5589](https://github.com/plotly/plotly.js/pull/5589)]
72+
- Fix hover filter to display close period points [[#5543](https://github.com/plotly/plotly.js/pull/5543)]
73+
- Fix spike on `bar`-like traces [[#5542](https://github.com/plotly/plotly.js/pull/5542)]
5974
- Fix displaying zero `threshold` for `indicator` trace [[#5430](https://github.com/plotly/plotly.js/pull/5430)]
75+
- Fix axis constraints for `heatmapgl` [[#5476](https://github.com/plotly/plotly.js/pull/5476)]
76+
- Fix setTimeout functions to return in the case of undefined layouts [[#5482](https://github.com/plotly/plotly.js/pull/5482)]
6077
- Avoid duplicate keys in object literals within plotly builds [[#5458](https://github.com/plotly/plotly.js/pull/5458)]
6178
- Improve attribute compression and avoid redundant copyright comments in non-minified
6279
bundles [[#5426](https://github.com/plotly/plotly.js/pull/5426), [#5429](https://github.com/plotly/plotly.js/pull/5429), [#5439](https://github.com/plotly/plotly.js/pull/5439)]
80+
- Provide links to all pull requests in the changelog [[#5469](https://github.com/plotly/plotly.js/pull/5469)]
81+
- Fix syntax test on the dist files [[#5471](https://github.com/plotly/plotly.js/pull/5471)]
82+
- Publish partial bundles using relevant tag from the package e.g. `latest` or `rc` [[#5467](https://github.com/plotly/plotly.js/pull/5467)]
83+
- Place CDN publish script inside plotly.js repository [[#5468](https://github.com/plotly/plotly.js/pull/5468), [#5470](https://github.com/plotly/plotly.js/pull/5470)]
6384

6485

6586
## [1.58.4] -- 2020-12-21

0 commit comments

Comments
 (0)