Skip to content

Commit ef1dcbf

Browse files
committed
Merge branch 'master' of https://github.com/plotly/plotly.js into fix-choropleth-interactions-for-firefox
2 parents 37b46d0 + 1bc2eb5 commit ef1dcbf

File tree

96 files changed

+1379
-2943
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+1379
-2943
lines changed

.circleci/config.yml

+28-14
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version: 2.0
1010
jobs:
1111
install-and-cibuild:
1212
docker:
13-
- image: circleci/node:12.13.0
13+
- image: circleci/node:12.22.1
1414
working_directory: ~/plotly.js
1515
steps:
1616
- checkout
@@ -43,7 +43,7 @@ jobs:
4343
no-gl-jasmine:
4444
docker:
4545
# need '-browsers' version to test in real (xvfb-wrapped) browsers
46-
- image: circleci/node:12.13.0-browsers
46+
- image: circleci/node:12.22.1-browsers
4747
parallelism: 8
4848
working_directory: ~/plotly.js
4949
steps:
@@ -56,7 +56,7 @@ jobs:
5656
webgl-jasmine:
5757
docker:
5858
# need '-browsers' version to test in real (xvfb-wrapped) browsers
59-
- image: circleci/node:12.13.0-browsers
59+
- image: circleci/node:12.22.1-browsers
6060
parallelism: 8
6161
working_directory: ~/plotly.js
6262
steps:
@@ -69,7 +69,7 @@ jobs:
6969
no-gl-flaky-jasmine:
7070
docker:
7171
# need '-browsers' version to test in real (xvfb-wrapped) browsers
72-
- image: circleci/node:12.13.0-browsers
72+
- image: circleci/node:12.22.1-browsers
7373
working_directory: ~/plotly.js
7474
steps:
7575
- attach_workspace:
@@ -93,7 +93,7 @@ jobs:
9393
npm run docker -- setup
9494
- run:
9595
name: Run image tests (part A)
96-
command: ./.circleci/test.sh stable-image
96+
command: ./.circleci/test.sh stable-image ; find build -maxdepth 1 -type f -delete
9797
- store_artifacts:
9898
path: build
9999
destination: /
@@ -112,14 +112,28 @@ jobs:
112112
npm run docker -- setup
113113
- run:
114114
name: Run image tests (part B)
115-
command: ./.circleci/test.sh flaky-image
115+
command: ./.circleci/test.sh flaky-image ; find build -maxdepth 1 -type f -delete
116116
- store_artifacts:
117117
path: build
118118
destination: /
119119

120+
mock-validation:
121+
docker:
122+
- image: circleci/node:12.22.1
123+
working_directory: ~/plotly.js
124+
steps:
125+
- attach_workspace:
126+
at: ~/
127+
- run:
128+
name: Test validation using node.js and jsdom
129+
command: npm run test-plain-obj
130+
- run:
131+
name: Validate mocks
132+
command: npm run test-mock
133+
120134
source-syntax:
121135
docker:
122-
- image: circleci/node:12.13.0
136+
- image: circleci/node:12.22.1
123137
working_directory: ~/plotly.js
124138
steps:
125139
- attach_workspace:
@@ -131,7 +145,7 @@ jobs:
131145
jasmine-bundle:
132146
docker:
133147
# need '-browsers' version to test in real (xvfb-wrapped) browsers
134-
- image: circleci/node:12.13.0-browsers
148+
- image: circleci/node:12.22.1-browsers
135149
working_directory: ~/plotly.js
136150
steps:
137151
- attach_workspace:
@@ -142,7 +156,7 @@ jobs:
142156

143157
publish-dist:
144158
docker:
145-
- image: circleci/node:12.13.0
159+
- image: circleci/node:12.22.1
146160
working_directory: ~/plotly.js
147161
steps:
148162
- attach_workspace:
@@ -177,14 +191,11 @@ jobs:
177191

178192
test-dist1:
179193
docker:
180-
- image: circleci/node:12.13.0
194+
- image: circleci/node:12.22.1
181195
working_directory: ~/plotly.js
182196
steps:
183197
- attach_workspace:
184198
at: ~/
185-
- run:
186-
name: Test validation using node.js and jsdom
187-
command: npm run test-plain-obj
188199
- run:
189200
name: Test plotly.min.js import using requirejs
190201
command: npm run test-requirejs
@@ -197,7 +208,7 @@ jobs:
197208

198209
test-dist2:
199210
docker:
200-
- image: circleci/node:12.13.0
211+
- image: circleci/node:12.22.1
201212
working_directory: ~/plotly.js
202213
steps:
203214
- attach_workspace:
@@ -232,6 +243,9 @@ workflows:
232243
- flaky-image:
233244
requires:
234245
- install-and-cibuild
246+
- mock-validation:
247+
requires:
248+
- install-and-cibuild
235249
- source-syntax:
236250
requires:
237251
- install-and-cibuild

.circleci/test.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ case $1 in
4545
set_tz
4646

4747
SUITE=$(circleci tests glob "$ROOT/test/jasmine/tests/*" | circleci tests split)
48-
npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
48+
MAX_AUTO_RETRY=2
49+
retry npm run test-jasmine -- $SUITE --skip-tags=gl,noCI,flaky || EXIT_STATE=$?
4950

5051
exit $EXIT_STATE
5152
;;
@@ -55,7 +56,7 @@ case $1 in
5556

5657
SHARDS=($(node $ROOT/tasks/shard_jasmine_tests.js --limit=5 --tag=gl | circleci tests split))
5758
for s in ${SHARDS[@]}; do
58-
MAX_AUTO_RETRY=1
59+
MAX_AUTO_RETRY=2
5960
retry npm run test-jasmine -- "$s" --tags=gl --skip-tags=noCI --doNotFailOnEmptyTestSuite
6061
done
6162

package-lock.json

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

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
"docker": "node tasks/docker.js",
4040
"pretest": "node tasks/pretest.js",
4141
"test-jasmine": "karma start test/jasmine/karma.conf.js",
42+
"test-mock": "node tasks/test_mock.js",
4243
"test-image": "node tasks/test_image.js",
4344
"test-export": "node tasks/test_export.js",
4445
"test-syntax": "node tasks/test_syntax.js && npm run find-strings -- --no-output",
@@ -168,7 +169,7 @@
168169
"mathjax": "2.7.5",
169170
"minify-stream": "^2.1.0",
170171
"mkdirp": "^1.0.4",
171-
"node-sass": "^5.0.0",
172+
"node-sass": "^6.0.0",
172173
"npm-link-check": "^4.0.0",
173174
"open": "^8.0.7",
174175
"prepend-file": "^2.0.0",

src/components/calendars/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,11 @@ module.exports = {
236236
transforms: {
237237
filter: {
238238
valuecalendar: makeAttrs([
239+
'WARNING: All transforms are deprecated and may be removed from the API in next major version.',
239240
'Sets the calendar system to use for `value`, if it is a date.'
240241
].join(' ')),
241242
targetcalendar: makeAttrs([
243+
'WARNING: All transforms are deprecated and may be removed from the API in next major version.',
242244
'Sets the calendar system to use for `target`, if it is an',
243245
'array of dates. If `target` is a string (eg *x*) we use the',
244246
'corresponding trace attribute (eg `xcalendar`) if it exists,',

0 commit comments

Comments
 (0)