Skip to content

Commit 3f97ec6

Browse files
committed
Merge branch 'master' into csp-no-inline-style
2 parents c0503e2 + a5b202c commit 3f97ec6

File tree

1,549 files changed

+2085364
-2076590
lines changed

Some content is hidden

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

1,549 files changed

+2085364
-2076590
lines changed

.circleci/config.yml

+49-14
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,12 @@ jobs:
3939
- image: cimg/node:18.20.4-browsers
4040
working_directory: ~/plotly.js
4141
steps:
42-
- browser-tools/install-browser-tools: &browser-versions
42+
- run: sudo apt-get update
43+
- browser-tools/install-browser-tools:
4344
install-firefox: false
4445
install-geckodriver: false
46+
install-chrome: true
47+
chrome-version: "127.0.6533.119"
4548
- attach_workspace:
4649
at: ~/
4750
- run:
@@ -72,12 +75,15 @@ jobs:
7275
environment:
7376
# Alaska time (arbitrary timezone to test date logic)
7477
TZ: "America/Anchorage"
75-
parallelism: 12
78+
parallelism: 4
7679
working_directory: ~/plotly.js
7780
steps:
78-
- browser-tools/install-browser-tools: &browser-versions
81+
- run: sudo apt-get update
82+
- browser-tools/install-browser-tools:
7983
install-firefox: false
8084
install-geckodriver: false
85+
install-chrome: true
86+
chrome-version: "127.0.6533.119"
8187
- attach_workspace:
8288
at: ~/
8389
- run:
@@ -94,9 +100,12 @@ jobs:
94100
parallelism: 8
95101
working_directory: ~/plotly.js
96102
steps:
97-
- browser-tools/install-browser-tools: &browser-versions
103+
- run: sudo apt-get update
104+
- browser-tools/install-browser-tools:
98105
install-firefox: false
99106
install-geckodriver: false
107+
install-chrome: true
108+
chrome-version: "127.0.6533.119"
100109
- attach_workspace:
101110
at: ~/
102111
- run:
@@ -113,27 +122,53 @@ jobs:
113122
parallelism: 8
114123
working_directory: ~/plotly.js
115124
steps:
116-
- browser-tools/install-browser-tools: &browser-versions
125+
- run: sudo apt-get update
126+
- browser-tools/install-browser-tools:
117127
install-firefox: false
118128
install-geckodriver: false
129+
install-chrome: true
130+
chrome-version: "127.0.6533.119"
119131
- attach_workspace:
120132
at: ~/
121133
- run:
122134
name: Run jasmine tests (part B)
123135
command: .circleci/test.sh virtual-webgl-jasmine
124136

125-
flaky-no-gl-jasmine:
137+
webgl-jasmine-chromeLatest:
126138
docker:
127139
# need '-browsers' version to test in real (xvfb-wrapped) browsers
128140
- image: cimg/node:18.20.4-browsers
129141
environment:
130142
# Alaska time (arbitrary timezone to test date logic)
131143
TZ: "America/Anchorage"
144+
parallelism: 8
132145
working_directory: ~/plotly.js
133146
steps:
134147
- browser-tools/install-browser-tools: &browser-versions
135148
install-firefox: false
136149
install-geckodriver: false
150+
install-chrome: true
151+
- attach_workspace:
152+
at: ~/
153+
- run:
154+
name: Run jasmine tests (part B)
155+
command: .circleci/test.sh webgl-jasmine
156+
157+
flaky-no-gl-jasmine:
158+
docker:
159+
# need '-browsers' version to test in real (xvfb-wrapped) browsers
160+
- image: cimg/node:18.20.4-browsers
161+
environment:
162+
# Alaska time (arbitrary timezone to test date logic)
163+
TZ: "America/Anchorage"
164+
working_directory: ~/plotly.js
165+
steps:
166+
- run: sudo apt-get update
167+
- browser-tools/install-browser-tools:
168+
install-firefox: false
169+
install-geckodriver: false
170+
install-chrome: true
171+
chrome-version: "127.0.6533.119"
137172
- attach_workspace:
138173
at: ~/
139174
- run:
@@ -149,9 +184,12 @@ jobs:
149184
TZ: "America/Anchorage"
150185
working_directory: ~/plotly.js
151186
steps:
152-
- browser-tools/install-browser-tools: &browser-versions
187+
- run: sudo apt-get update
188+
- browser-tools/install-browser-tools:
153189
install-firefox: false
154190
install-geckodriver: false
191+
install-chrome: true
192+
chrome-version: "127.0.6533.119"
155193
- attach_workspace:
156194
at: ~/
157195
- run:
@@ -167,7 +205,7 @@ jobs:
167205
TZ: "America/Anchorage"
168206
working_directory: ~/plotly.js
169207
steps:
170-
- browser-tools/install-browser-tools: &browser-versions
208+
- browser-tools/install-browser-tools:
171209
install-chrome: false
172210
install-chromedriver: false
173211
- attach_workspace:
@@ -426,12 +464,6 @@ jobs:
426464
- run:
427465
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")
428466
command: diff --unified --color dist/plot-schema.json test/plot-schema.json
429-
- run:
430-
name: Test plotly.min.js import using amdefine
431-
command: npm run test-amdefine
432-
- run:
433-
name: Test plotly.min.js import using requirejs
434-
command: npm run test-requirejs
435467

436468
test-stackgl-bundle:
437469
docker:
@@ -475,6 +507,9 @@ workflows:
475507
- virtual-webgl-jasmine:
476508
requires:
477509
- install-and-cibuild
510+
- webgl-jasmine-chromeLatest:
511+
requires:
512+
- install-and-cibuild
478513
- flaky-no-gl-jasmine:
479514
requires:
480515
- install-and-cibuild

.github/dependabot.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "npm"
9+
directory: "/"
10+
schedule:
11+
interval: "daily"
12+
open-pull-requests-limit: 1
13+
versioning-strategy: increase
14+
- package-ecosystem: "npm"
15+
directory: "/stackgl_modules"
16+
schedule:
17+
interval: "daily"
18+
open-pull-requests-limit: 1
19+
versioning-strategy: increase

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ npm-debug.log*
1212
tags
1313

1414
.*
15+
!.github
1516
!.circleci
1617
!.gitignore
1718
!.npmignore

CHANGELOG.md

+36
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,42 @@ To see all merged commits on the master branch that will be part of the next plo
99

1010
where X.Y.Z is the semver of most recent plotly.js release.
1111

12+
## [2.35.2] -- 2024-09-10
13+
14+
### Fixed
15+
- Fix require path to maplibre-gl.css (regression introduced in 2.35.1) [[#7146](https://github.com/plotly/plotly.js/pull/7146)],
16+
with thanks to @birkskyum for the contribution!
17+
18+
19+
## [2.35.1] -- 2024-09-09
20+
21+
### Fixed
22+
- Fix rendering traces with `zorder` on overlayed subplots case of multiple traces in each subplot [[#7141](https://github.com/plotly/plotly.js/pull/7141)]
23+
- Fix missing CSS for map(maplibre) subplots when used offline [[#7140](https://github.com/plotly/plotly.js/pull/7140)],
24+
with thanks to @birkskyum for the contribution!
25+
26+
27+
## [2.35.0] -- 2024-08-29
28+
29+
### Added
30+
- Add new traces: scattermap, choroplethmap and densitymap and map subplots which use maplibre to render maps [[#7015](https://github.com/plotly/plotly.js/pull/7015), [#7060](https://github.com/plotly/plotly.js/pull/7060), [#7085](https://github.com/plotly/plotly.js/pull/7085), [#7088](https://github.com/plotly/plotly.js/pull/7088), [#7090](https://github.com/plotly/plotly.js/pull/7090), [#7092](https://github.com/plotly/plotly.js/pull/7092), [#7094](https://github.com/plotly/plotly.js/pull/7094), [#7134](https://github.com/plotly/plotly.js/pull/7134)],
31+
with thanks to @birkskyum for the contribution!
32+
33+
### Changed
34+
- Deprecate mapbox traces and mapbox subplot [[#7087](https://github.com/plotly/plotly.js/pull/7087)]
35+
- Drop obsolete `npm v6` installation [[#7095](https://github.com/plotly/plotly.js/pull/7095)]
36+
- Use `Node.js v18` and `npm v10` in development [[#7078](https://github.com/plotly/plotly.js/pull/7078)]
37+
- Update npm lockfile to v3 [[#7099](https://github.com/plotly/plotly.js/pull/7099)]
38+
- Update turf to v7 [[#7116](https://github.com/plotly/plotly.js/pull/7116)]
39+
40+
### Fixed
41+
- Fix centroid calculation in turf [[#7115](https://github.com/plotly/plotly.js/pull/7115)],
42+
with thanks to @birkskyum for the contribution!
43+
- Fix missing cursor for Ternary Plot[[#7057](https://github.com/plotly/plotly.js/pull/7057)],
44+
with thanks to @Lexachoc for the contribution!
45+
- Elaborate on the Custom Bundle guide [[#7101](https://github.com/plotly/plotly.js/pull/7101)]
46+
47+
1248
## [2.34.0] -- 2024-07-18
1349

1450
### Added

LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
The MIT License (MIT)
1+
MIT License
22

3-
Copyright (c) 2021 Plotly, Inc
3+
Copyright (c) 2016-2024 Plotly Technologies Inc.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
6262
6363
```html
6464
<head>
65-
<script src="https://cdn.plot.ly/plotly-2.34.0.min.js" charset="utf-8"></script>
65+
<script src="https://cdn.plot.ly/plotly-2.35.2.min.js" charset="utf-8"></script>
6666
</head>
6767
<body>
6868
<div id="gd"></div>
@@ -79,7 +79,7 @@ You may also consider using [`plotly.js-dist`](https://www.npmjs.com/package/plo
7979
Alternatively you may consider using [native ES6 import](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules) in the script tag.
8080
```html
8181
<script type="module">
82-
import "https://cdn.plot.ly/plotly-2.34.0.min.js"
82+
import "https://cdn.plot.ly/plotly-2.35.2.min.js"
8383
Plotly.newPlot("gd", [{ y: [1, 2, 3] }])
8484
</script>
8585
```
@@ -89,7 +89,7 @@ Fastly supports Plotly.js with free CDN service. Read more at <https://www.fastl
8989
### Un-minified versions are also available on CDN
9090
While non-minified source files may contain characters outside UTF-8, it is recommended that you specify the `charset` when loading those bundles.
9191
```html
92-
<script src="https://cdn.plot.ly/plotly-2.34.0.js" charset="utf-8"></script>
92+
<script src="https://cdn.plot.ly/plotly-2.35.2.js" charset="utf-8"></script>
9393
```
9494

9595
> Please note that as of v2 the "plotly-latest" outputs (e.g. https://cdn.plot.ly/plotly-latest.min.js) will no longer be updated on the CDN, and will stay at the last v1 patch v1.58.5. Therefore, to use the CDN with plotly.js v2 and higher, you must specify an exact plotly.js version.
@@ -151,6 +151,7 @@ Plotly.js is at the core of a large and dynamic ecosystem with many contributors
151151
|**Mojtaba Samimi** | [@archmoj](https://github.com/archmoj) | [@solarchvision](https://twitter.com/solarchvision) | Active, Maintainer |
152152
|**Emily Kellison-Linn** | [@emilykl](https://github.com/emilykl) | | Active, Maintainer |
153153
|**My-Tien Nguyen**| [@my-tien](https://github.com/my-tien) | | Active, Community Contributor |
154+
|**Birk Skyum**| [@birkskyum](https://github.com/birkskyum) | | Active, Community Contributor |
154155
|**Étienne Tétreault-Pinard**| [@etpinard](https://github.com/etpinard) | [@etpinard](https://twitter.com/etpinard) | Hall of Fame |
155156
|**Antoine Roy-Gobeil** | [@antoinerg](https://github.com/antoinerg) | | Hall of Fame |
156157
|**Jack Parmer**| [@jackparmer](https://github.com/jackparmer) | | Hall of Fame |

biome.json

+29-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
33
"organizeImports": { "enabled": true },
44
"files": {
5-
"include": ["src", "lib", "test", "tasks", "build", "devtools"],
5+
"maxSize": 10000000,
6+
"include": [
7+
"src",
8+
"lib",
9+
"test",
10+
"tasks",
11+
"devtools"
12+
],
613
"ignore": [
714
"test/plot-schema.json",
8-
"test/image/mocks",
915
"dist",
1016
"stackgl_modules",
1117
"node_modules",
@@ -109,6 +115,26 @@
109115
"Uint8Array",
110116
"Int8Array",
111117
"Uint32Array"
112-
]
118+
],
119+
"formatter": {
120+
"quoteStyle": "single",
121+
"trailingCommas": "none",
122+
"indentStyle": "space",
123+
"indentWidth": 4,
124+
"lineEnding": "lf",
125+
"lineWidth": 120
126+
}
127+
},
128+
"json": {
129+
"linter": {
130+
"enabled": true
131+
},
132+
"formatter": {
133+
"enabled": true,
134+
"indentStyle": "space",
135+
"indentWidth": 1,
136+
"lineEnding": "lf",
137+
"lineWidth": 80
138+
}
113139
}
114140
}

0 commit comments

Comments
 (0)