Skip to content

Commit cf7edc9

Browse files
committed
Merge remote-tracking branch 'upstream/master' into pr-merge
2 parents 0135ec7 + 3f8cfe7 commit cf7edc9

File tree

496 files changed

+1319242
-1527588
lines changed

Some content is hidden

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

496 files changed

+1319242
-1527588
lines changed

.circleci/config.yml

+26-29
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
install-and-cibuild: # main cibuild using node 16 & npm 7
3030
docker:
31-
- image: cimg/node:16.8.0
31+
- image: cimg/node:16.17.1
3232
working_directory: ~/plotly.js
3333
steps:
3434
- checkout
@@ -52,11 +52,11 @@ jobs:
5252
timezone-jasmine:
5353
docker:
5454
# need '-browsers' version to test in real (xvfb-wrapped) browsers
55-
- image: cimg/node:16.8.0-browsers
55+
- image: cimg/node:16.17.1-browsers
5656
working_directory: ~/plotly.js
5757
steps:
5858
- browser-tools/install-browser-tools: &browser-versions
59-
chrome-version: 93.0.4577.63
59+
chrome-version: 110.0.5481.100
6060
install-firefox: false
6161
install-geckodriver: false
6262
- attach_workspace:
@@ -85,15 +85,15 @@ jobs:
8585
no-gl-jasmine:
8686
docker:
8787
# need '-browsers' version to test in real (xvfb-wrapped) browsers
88-
- image: cimg/node:16.8.0-browsers
88+
- image: cimg/node:16.17.1-browsers
8989
environment:
9090
# Alaska time (arbitrary timezone to test date logic)
9191
TZ: "America/Anchorage"
9292
parallelism: 12
9393
working_directory: ~/plotly.js
9494
steps:
9595
- browser-tools/install-browser-tools: &browser-versions
96-
chrome-version: 93.0.4577.63
96+
chrome-version: 110.0.5481.100
9797
install-firefox: false
9898
install-geckodriver: false
9999
- attach_workspace:
@@ -105,15 +105,15 @@ jobs:
105105
webgl-jasmine:
106106
docker:
107107
# need '-browsers' version to test in real (xvfb-wrapped) browsers
108-
- image: cimg/node:16.8.0-browsers
108+
- image: cimg/node:16.17.1-browsers
109109
environment:
110110
# Alaska time (arbitrary timezone to test date logic)
111111
TZ: "America/Anchorage"
112112
parallelism: 8
113113
working_directory: ~/plotly.js
114114
steps:
115115
- browser-tools/install-browser-tools: &browser-versions
116-
chrome-version: 93.0.4577.63
116+
chrome-version: 110.0.5481.100
117117
install-firefox: false
118118
install-geckodriver: false
119119
- attach_workspace:
@@ -125,14 +125,14 @@ jobs:
125125
flaky-no-gl-jasmine:
126126
docker:
127127
# need '-browsers' version to test in real (xvfb-wrapped) browsers
128-
- image: cimg/node:16.8.0-browsers
128+
- image: cimg/node:16.17.1-browsers
129129
environment:
130130
# Alaska time (arbitrary timezone to test date logic)
131131
TZ: "America/Anchorage"
132132
working_directory: ~/plotly.js
133133
steps:
134134
- browser-tools/install-browser-tools: &browser-versions
135-
chrome-version: 93.0.4577.63
135+
chrome-version: 110.0.5481.100
136136
install-firefox: false
137137
install-geckodriver: false
138138
- attach_workspace:
@@ -144,14 +144,14 @@ jobs:
144144
bundle-jasmine:
145145
docker:
146146
# need '-browsers' version to test in real (xvfb-wrapped) browsers
147-
- image: cimg/node:16.8.0-browsers
147+
- image: cimg/node:16.17.1-browsers
148148
environment:
149149
# Alaska time (arbitrary timezone to test date logic)
150150
TZ: "America/Anchorage"
151151
working_directory: ~/plotly.js
152152
steps:
153153
- browser-tools/install-browser-tools: &browser-versions
154-
chrome-version: 93.0.4577.63
154+
chrome-version: 110.0.5481.100
155155
install-firefox: false
156156
install-geckodriver: false
157157
- attach_workspace:
@@ -163,7 +163,7 @@ jobs:
163163
mathjax-firefox81:
164164
docker:
165165
# need '-browsers' version to test in real (xvfb-wrapped) browsers
166-
- image: cimg/node:16.8.0-browsers
166+
- image: cimg/node:16.17.1-browsers
167167
environment:
168168
# Alaska time (arbitrary timezone to test date logic)
169169
TZ: "America/Anchorage"
@@ -182,7 +182,7 @@ jobs:
182182
mathjax-firefox82:
183183
docker:
184184
# need '-browsers' version to test in real (xvfb-wrapped) browsers
185-
- image: cimg/node:16.8.0-browsers
185+
- image: cimg/node:16.17.1-browsers
186186
environment:
187187
# Alaska time (arbitrary timezone to test date logic)
188188
TZ: "America/Anchorage"
@@ -201,7 +201,7 @@ jobs:
201201
mathjax-firefoxLatest:
202202
docker:
203203
# need '-browsers' version to test in real (xvfb-wrapped) browsers
204-
- image: cimg/node:16.8.0-browsers
204+
- image: cimg/node:16.17.1-browsers
205205
environment:
206206
# Alaska time (arbitrary timezone to test date logic)
207207
TZ: "America/Anchorage"
@@ -255,7 +255,7 @@ jobs:
255255

256256
test-baselines:
257257
docker:
258-
- image: circleci/node:16.8.0
258+
- image: circleci/node:16.9.0
259259
working_directory: ~/plotly.js
260260
steps:
261261
- attach_workspace:
@@ -269,7 +269,7 @@ jobs:
269269

270270
test-baselines-mathjax3:
271271
docker:
272-
- image: circleci/node:16.8.0
272+
- image: circleci/node:16.9.0
273273
working_directory: ~/plotly.js
274274
steps:
275275
- attach_workspace:
@@ -306,7 +306,7 @@ jobs:
306306

307307
test-exports:
308308
docker:
309-
- image: circleci/node:16.8.0
309+
- image: circleci/node:16.9.0
310310
working_directory: ~/plotly.js
311311
steps:
312312
- attach_workspace:
@@ -320,7 +320,7 @@ jobs:
320320

321321
mock-validation:
322322
docker:
323-
- image: cimg/node:16.8.0
323+
- image: cimg/node:16.17.1
324324
working_directory: ~/plotly.js
325325
steps:
326326
- attach_workspace:
@@ -334,7 +334,7 @@ jobs:
334334

335335
source-syntax:
336336
docker:
337-
- image: cimg/node:16.8.0
337+
- image: cimg/node:16.17.1
338338
working_directory: ~/plotly.js
339339
steps:
340340
- attach_workspace:
@@ -345,7 +345,7 @@ jobs:
345345

346346
publish-dist:
347347
docker:
348-
- image: cimg/node:16.8.0
348+
- image: cimg/node:16.17.1
349349
working_directory: ~/plotly.js
350350
steps:
351351
- checkout
@@ -400,21 +400,18 @@ jobs:
400400
- run:
401401
name: Test plot-schema.json diff - If failed, after (npm start) you could run (npm run schema && git add test/plot-schema.json && git commit -m "update plot-schema diff")
402402
command: diff --unified --color dist/plot-schema.json test/plot-schema.json
403+
- run:
404+
name: Test plotly.min.js import using amdefine
405+
command: npm run test-amdefine
403406
- run:
404407
name: Test plotly.min.js import using requirejs
405408
command: npm run test-requirejs
406-
- run:
407-
name: Test plotly bundles againt unexpected characters
408-
command: npm run no-bad-char
409-
- run:
410-
name: Display function constructors in plotly.js bundle
411-
command: npm run log-new-func
412-
- run:
413-
name: Test certain bundles against function constructors
414-
command: npm run no-new-func
415409
- run:
416410
name: Test plotly bundles against es6
417411
command: npm run no-es6-dist
412+
- run:
413+
name: Display function constructors in all bundles
414+
command: npm run no-new-func
418415

419416
workflows:
420417
version: 2

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ node_modules
33
dist
44
build
55

6+
tasks/test_amdefine.js
67
tasks/test_requirejs.js
78
test/jasmine/assets/jquery-1.8.3.min.js

.eslintrc

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
"no-floating-decimal": [2],
5656
"space-infix-ops": [2, {"int32Hint": true}],
5757
"quotes": [2, "single"],
58+
"quote-props": ["error", "as-needed"],
5859
"dot-notation": [2],
5960
"dot-location": [2, "property"],
6061
"operator-linebreak": [2, "after"],

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ build/*
44
!build/plotcss.js
55
!build/README.md
66

7+
dist/*.LICENSE.txt
8+
79
npm-debug.log*
810
*.sublime*
911
*~

BUILDING.md

-35
Original file line numberDiff line numberDiff line change
@@ -3,41 +3,6 @@ Depending on your needs you may require/import one of [the distributed plotly.js
33

44
The sections below provide additional info in respect to alternative building frameworks.
55

6-
## Browserify example
7-
8-
Given source file:
9-
```js
10-
// file: index.js
11-
var Plotly = require('plotly.js-dist-min');
12-
// ....
13-
```
14-
15-
then simply run
16-
17-
```sh
18-
browserify index.js > bundle.js
19-
```
20-
21-
---
22-
## Webpack
23-
24-
For plotly.js to build with Webpack you will need to install [[email protected]+](https://github.com/hughsk/ify-loader) and add it to your `webpack.config.json`. This adds Browserify transform compatibility to Webpack which is necessary for some plotly.js dependencies.
25-
26-
A repo that demonstrates how to build plotly.js with Webpack can be found [here](https://github.com/plotly/plotly-webpack). In short add `ify-loader` to the `module` section in your `webpack.config.js`:
27-
28-
```js
29-
...
30-
module: {
31-
rules: [
32-
{
33-
test: /\.js$/,
34-
loader: 'ify-loader'
35-
}
36-
]
37-
},
38-
...
39-
```
40-
416
---
427
## Angular CLI
438

0 commit comments

Comments
 (0)