Skip to content

Commit e824199

Browse files
committed
2.25.2
1 parent 920a50e commit e824199

25 files changed

+236
-86
lines changed

dist/README.md

+21-21
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ The main plotly.js bundles weight in at:
4646
| 8.1 MB | 3.4 MB | 1 MB | 8.4 MB |
4747

4848
#### CDN links
49-
> https://cdn.plot.ly/plotly-2.25.1.js
49+
> https://cdn.plot.ly/plotly-2.25.2.js
5050
51-
> https://cdn.plot.ly/plotly-2.25.1.min.js
51+
> https://cdn.plot.ly/plotly-2.25.2.min.js
5252
5353

5454
#### npm packages
@@ -91,12 +91,12 @@ The `basic` partial bundle contains trace modules `bar`, `pie` and `scatter`.
9191

9292
| Raw size | Minified size | Minified + gzip size |
9393
|------|-----------------|------------------------|
94-
| 2.6 MB | 969.3 kB | 324.3 kB |
94+
| 2.6 MB | 969.5 kB | 324.4 kB |
9595

9696
#### CDN links
97-
> https://cdn.plot.ly/plotly-basic-2.25.1.js
97+
> https://cdn.plot.ly/plotly-basic-2.25.2.js
9898
99-
> https://cdn.plot.ly/plotly-basic-2.25.1.min.js
99+
> https://cdn.plot.ly/plotly-basic-2.25.2.min.js
100100
101101

102102
#### npm packages
@@ -114,12 +114,12 @@ The `cartesian` partial bundle contains trace modules `bar`, `box`, `contour`, `
114114

115115
| Raw size | Minified size | Minified + gzip size |
116116
|------|-----------------|------------------------|
117-
| 3.3 MB | 1.2 MB | 410.4 kB |
117+
| 3.3 MB | 1.2 MB | 410.5 kB |
118118

119119
#### CDN links
120-
> https://cdn.plot.ly/plotly-cartesian-2.25.1.js
120+
> https://cdn.plot.ly/plotly-cartesian-2.25.2.js
121121
122-
> https://cdn.plot.ly/plotly-cartesian-2.25.1.min.js
122+
> https://cdn.plot.ly/plotly-cartesian-2.25.2.min.js
123123
124124

125125
#### npm packages
@@ -140,9 +140,9 @@ The `geo` partial bundle contains trace modules `choropleth`, `scatter` and `sca
140140
| 3.1 MB | 1.1 MB | 368.4 kB |
141141

142142
#### CDN links
143-
> https://cdn.plot.ly/plotly-geo-2.25.1.js
143+
> https://cdn.plot.ly/plotly-geo-2.25.2.js
144144
145-
> https://cdn.plot.ly/plotly-geo-2.25.1.min.js
145+
> https://cdn.plot.ly/plotly-geo-2.25.2.min.js
146146
147147

148148
#### npm packages
@@ -163,9 +163,9 @@ The `gl3d` partial bundle contains trace modules `cone`, `isosurface`, `mesh3d`,
163163
| 3.6 MB | 1.5 MB | 488.9 kB |
164164

165165
#### CDN links
166-
> https://cdn.plot.ly/plotly-gl3d-2.25.1.js
166+
> https://cdn.plot.ly/plotly-gl3d-2.25.2.js
167167
168-
> https://cdn.plot.ly/plotly-gl3d-2.25.1.min.js
168+
> https://cdn.plot.ly/plotly-gl3d-2.25.2.min.js
169169
170170

171171
#### npm packages
@@ -183,12 +183,12 @@ The `gl2d` partial bundle contains trace modules `heatmapgl`, `parcoords`, `poin
183183

184184
| Raw size | Minified size | Minified + gzip size |
185185
|------|-----------------|------------------------|
186-
| 4.4 MB | 1.8 MB | 594.8 kB |
186+
| 4.4 MB | 1.8 MB | 594.9 kB |
187187

188188
#### CDN links
189-
> https://cdn.plot.ly/plotly-gl2d-2.25.1.js
189+
> https://cdn.plot.ly/plotly-gl2d-2.25.2.js
190190
191-
> https://cdn.plot.ly/plotly-gl2d-2.25.1.min.js
191+
> https://cdn.plot.ly/plotly-gl2d-2.25.2.min.js
192192
193193

194194
#### npm packages
@@ -209,9 +209,9 @@ The `mapbox` partial bundle contains trace modules `choroplethmapbox`, `densitym
209209
| 4.3 MB | 1.7 MB | 525.6 kB |
210210

211211
#### CDN links
212-
> https://cdn.plot.ly/plotly-mapbox-2.25.1.js
212+
> https://cdn.plot.ly/plotly-mapbox-2.25.2.js
213213
214-
> https://cdn.plot.ly/plotly-mapbox-2.25.1.min.js
214+
> https://cdn.plot.ly/plotly-mapbox-2.25.2.min.js
215215
216216

217217
#### npm packages
@@ -232,9 +232,9 @@ The `finance` partial bundle contains trace modules `bar`, `candlestick`, `funne
232232
| 2.8 MB | 1 MB | 353 kB |
233233

234234
#### CDN links
235-
> https://cdn.plot.ly/plotly-finance-2.25.1.js
235+
> https://cdn.plot.ly/plotly-finance-2.25.2.js
236236
237-
> https://cdn.plot.ly/plotly-finance-2.25.1.min.js
237+
> https://cdn.plot.ly/plotly-finance-2.25.2.min.js
238238
239239

240240
#### npm packages
@@ -255,9 +255,9 @@ The `strict` partial bundle contains trace modules `bar`, `barpolar`, `box`, `ca
255255
| 8.6 MB | 3.7 MB | 1.1 MB |
256256

257257
#### CDN links
258-
> https://cdn.plot.ly/plotly-strict-2.25.1.js
258+
> https://cdn.plot.ly/plotly-strict-2.25.2.js
259259
260-
> https://cdn.plot.ly/plotly-strict-2.25.1.min.js
260+
> https://cdn.plot.ly/plotly-strict-2.25.2.min.js
261261
262262

263263
#### npm packages

dist/plotly-basic.js

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (basic) v2.25.1
2+
* plotly.js (basic) v2.25.2
33
* Copyright 2012-2023, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -25867,6 +25867,10 @@ lib.objectFromPath = function (path, value) {
2586725867
// the inner loop.
2586825868
var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/;
2586925869
var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;
25870+
function notValid(prop) {
25871+
// guard against polluting __proto__ and other internals getters and setters
25872+
return prop.slice(0, 2) === '__';
25873+
}
2587025874
lib.expandObjectPaths = function (data) {
2587125875
var match, key, prop, datum, idx, dest, trailingPath;
2587225876
if (typeof data === 'object' && !Array.isArray(data)) {
@@ -25875,11 +25879,13 @@ lib.expandObjectPaths = function (data) {
2587525879
if (match = key.match(dottedPropertyRegex)) {
2587625880
datum = data[key];
2587725881
prop = match[1];
25882+
if (notValid(prop)) continue;
2587825883
delete data[key];
2587925884
data[prop] = lib.extendDeepNoArrays(data[prop] || {}, lib.objectFromPath(key, lib.expandObjectPaths(datum))[prop]);
2588025885
} else if (match = key.match(indexedPropertyRegex)) {
2588125886
datum = data[key];
2588225887
prop = match[1];
25888+
if (notValid(prop)) continue;
2588325889
idx = parseInt(match[2]);
2588425890
delete data[key];
2588525891
data[prop] = data[prop] || [];
@@ -25905,9 +25911,12 @@ lib.expandObjectPaths = function (data) {
2590525911
} else {
2590625912
// This is the case where this property is the end of the line,
2590725913
// e.g. xaxis.range[0]
25914+
25915+
if (notValid(prop)) continue;
2590825916
data[prop][idx] = lib.expandObjectPaths(datum);
2590925917
}
2591025918
} else {
25919+
if (notValid(key)) continue;
2591125920
data[key] = lib.expandObjectPaths(data[key]);
2591225921
}
2591325922
}
@@ -26832,13 +26841,19 @@ module.exports = function nestedProperty(container, propStr) {
2683226841
if (isNumeric(propStr)) propStr = String(propStr);else if (typeof propStr !== 'string' || propStr.substr(propStr.length - 4) === '[-1]') {
2683326842
throw 'bad property string';
2683426843
}
26835-
var j = 0;
2683626844
var propParts = propStr.split('.');
2683726845
var indexed;
2683826846
var indices;
26839-
var i;
26847+
var i, j;
26848+
for (j = 0; j < propParts.length; j++) {
26849+
// guard against polluting __proto__ and other internals
26850+
if (String(propParts[j]).slice(0, 2) === '__') {
26851+
throw 'bad property string';
26852+
}
26853+
}
2684026854

2684126855
// check for parts of the nesting hierarchy that are numbers (ie array elements)
26856+
j = 0;
2684226857
while (j < propParts.length) {
2684326858
// look for non-bracket chars, then any number of [##] blocks
2684426859
indexed = String(propParts[j]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/);
@@ -60286,7 +60301,7 @@ function getSortFunc(opts, d2c) {
6028660301

6028760302

6028860303
// package version injected by `npm run preprocess`
60289-
exports.version = '2.25.1';
60304+
exports.version = '2.25.2';
6029060305

6029160306
/***/ }),
6029260307

dist/plotly-basic.min.js

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

dist/plotly-cartesian.js

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (cartesian) v2.25.1
2+
* plotly.js (cartesian) v2.25.2
33
* Copyright 2012-2023, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -25976,6 +25976,10 @@ lib.objectFromPath = function (path, value) {
2597625976
// the inner loop.
2597725977
var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/;
2597825978
var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;
25979+
function notValid(prop) {
25980+
// guard against polluting __proto__ and other internals getters and setters
25981+
return prop.slice(0, 2) === '__';
25982+
}
2597925983
lib.expandObjectPaths = function (data) {
2598025984
var match, key, prop, datum, idx, dest, trailingPath;
2598125985
if (typeof data === 'object' && !Array.isArray(data)) {
@@ -25984,11 +25988,13 @@ lib.expandObjectPaths = function (data) {
2598425988
if (match = key.match(dottedPropertyRegex)) {
2598525989
datum = data[key];
2598625990
prop = match[1];
25991+
if (notValid(prop)) continue;
2598725992
delete data[key];
2598825993
data[prop] = lib.extendDeepNoArrays(data[prop] || {}, lib.objectFromPath(key, lib.expandObjectPaths(datum))[prop]);
2598925994
} else if (match = key.match(indexedPropertyRegex)) {
2599025995
datum = data[key];
2599125996
prop = match[1];
25997+
if (notValid(prop)) continue;
2599225998
idx = parseInt(match[2]);
2599325999
delete data[key];
2599426000
data[prop] = data[prop] || [];
@@ -26014,9 +26020,12 @@ lib.expandObjectPaths = function (data) {
2601426020
} else {
2601526021
// This is the case where this property is the end of the line,
2601626022
// e.g. xaxis.range[0]
26023+
26024+
if (notValid(prop)) continue;
2601726025
data[prop][idx] = lib.expandObjectPaths(datum);
2601826026
}
2601926027
} else {
26028+
if (notValid(key)) continue;
2602026029
data[key] = lib.expandObjectPaths(data[key]);
2602126030
}
2602226031
}
@@ -26941,13 +26950,19 @@ module.exports = function nestedProperty(container, propStr) {
2694126950
if (isNumeric(propStr)) propStr = String(propStr);else if (typeof propStr !== 'string' || propStr.substr(propStr.length - 4) === '[-1]') {
2694226951
throw 'bad property string';
2694326952
}
26944-
var j = 0;
2694526953
var propParts = propStr.split('.');
2694626954
var indexed;
2694726955
var indices;
26948-
var i;
26956+
var i, j;
26957+
for (j = 0; j < propParts.length; j++) {
26958+
// guard against polluting __proto__ and other internals
26959+
if (String(propParts[j]).slice(0, 2) === '__') {
26960+
throw 'bad property string';
26961+
}
26962+
}
2694926963

2695026964
// check for parts of the nesting hierarchy that are numbers (ie array elements)
26965+
j = 0;
2695126966
while (j < propParts.length) {
2695226967
// look for non-bracket chars, then any number of [##] blocks
2695326968
indexed = String(propParts[j]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/);
@@ -70699,7 +70714,7 @@ function getSortFunc(opts, d2c) {
7069970714

7070070715

7070170716
// package version injected by `npm run preprocess`
70702-
exports.version = '2.25.1';
70717+
exports.version = '2.25.2';
7070370718

7070470719
/***/ }),
7070570720

dist/plotly-cartesian.min.js

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

dist/plotly-finance.js

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* plotly.js (finance) v2.25.1
2+
* plotly.js (finance) v2.25.2
33
* Copyright 2012-2023, Plotly, Inc.
44
* All rights reserved.
55
* Licensed under the MIT license
@@ -25956,6 +25956,10 @@ lib.objectFromPath = function (path, value) {
2595625956
// the inner loop.
2595725957
var dottedPropertyRegex = /^([^\[\.]+)\.(.+)?/;
2595825958
var indexedPropertyRegex = /^([^\.]+)\[([0-9]+)\](\.)?(.+)?/;
25959+
function notValid(prop) {
25960+
// guard against polluting __proto__ and other internals getters and setters
25961+
return prop.slice(0, 2) === '__';
25962+
}
2595925963
lib.expandObjectPaths = function (data) {
2596025964
var match, key, prop, datum, idx, dest, trailingPath;
2596125965
if (typeof data === 'object' && !Array.isArray(data)) {
@@ -25964,11 +25968,13 @@ lib.expandObjectPaths = function (data) {
2596425968
if (match = key.match(dottedPropertyRegex)) {
2596525969
datum = data[key];
2596625970
prop = match[1];
25971+
if (notValid(prop)) continue;
2596725972
delete data[key];
2596825973
data[prop] = lib.extendDeepNoArrays(data[prop] || {}, lib.objectFromPath(key, lib.expandObjectPaths(datum))[prop]);
2596925974
} else if (match = key.match(indexedPropertyRegex)) {
2597025975
datum = data[key];
2597125976
prop = match[1];
25977+
if (notValid(prop)) continue;
2597225978
idx = parseInt(match[2]);
2597325979
delete data[key];
2597425980
data[prop] = data[prop] || [];
@@ -25994,9 +26000,12 @@ lib.expandObjectPaths = function (data) {
2599426000
} else {
2599526001
// This is the case where this property is the end of the line,
2599626002
// e.g. xaxis.range[0]
26003+
26004+
if (notValid(prop)) continue;
2599726005
data[prop][idx] = lib.expandObjectPaths(datum);
2599826006
}
2599926007
} else {
26008+
if (notValid(key)) continue;
2600026009
data[key] = lib.expandObjectPaths(data[key]);
2600126010
}
2600226011
}
@@ -26921,13 +26930,19 @@ module.exports = function nestedProperty(container, propStr) {
2692126930
if (isNumeric(propStr)) propStr = String(propStr);else if (typeof propStr !== 'string' || propStr.substr(propStr.length - 4) === '[-1]') {
2692226931
throw 'bad property string';
2692326932
}
26924-
var j = 0;
2692526933
var propParts = propStr.split('.');
2692626934
var indexed;
2692726935
var indices;
26928-
var i;
26936+
var i, j;
26937+
for (j = 0; j < propParts.length; j++) {
26938+
// guard against polluting __proto__ and other internals
26939+
if (String(propParts[j]).slice(0, 2) === '__') {
26940+
throw 'bad property string';
26941+
}
26942+
}
2692926943

2693026944
// check for parts of the nesting hierarchy that are numbers (ie array elements)
26945+
j = 0;
2693126946
while (j < propParts.length) {
2693226947
// look for non-bracket chars, then any number of [##] blocks
2693326948
indexed = String(propParts[j]).match(/^([^\[\]]*)((\[\-?[0-9]*\])+)$/);
@@ -66593,7 +66608,7 @@ function getSortFunc(opts, d2c) {
6659366608

6659466609

6659566610
// package version injected by `npm run preprocess`
66596-
exports.version = '2.25.1';
66611+
exports.version = '2.25.2';
6659766612

6659866613
/***/ }),
6659966614

dist/plotly-finance.min.js

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

dist/plotly-geo-assets.js

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

0 commit comments

Comments
 (0)