Skip to content

Commit 44ea43e

Browse files
committed
update changelog + documentation and bump version to 1.4.0
1 parent d8a2070 commit 44ea43e

File tree

5 files changed

+33
-6
lines changed

5 files changed

+33
-6
lines changed

changelog.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,33 @@ application, major version changes in Plotly.js will also trigger a major
1111
version change in this application.
1212

1313

14+
## Version 1.4.0 (2021-04-18)
15+
16+
__[improvement]__
17+
The generated names for PNG files are using UUIDs (version 4) instead of a
18+
Unix timestamp in their name from now on. That is, the JSON output of a
19+
successful render will change from something like
20+
21+
{
22+
"success": true,
23+
"filename": "graph-1604764778687.png"
24+
}
25+
26+
to something like
27+
28+
{
29+
"success": true,
30+
"filename": "graph-25273999-dea9-4da2-aad2-dbdf2e38a0c9.png"
31+
}
32+
33+
instead. While it is highly unlikely that rendering of a plot with Plotly.js and
34+
JavaScript is so fast that two PNG files are created within the same millisecond
35+
this change makes sure we are on the safe side here.
36+
37+
Also note that the application never gave any guarantees for the naming pattern
38+
of the generated files in the first place. Therefore, anyone consuming the JSON
39+
response should treat the `filename` value as a purely random file name.
40+
1441
## Version 1.3.0
1542

1643
The version of Plotly.js is bumped from 1.57.1 to 1.58.4.
File renamed without changes.

export-server/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

export-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "plotly-node-export-server",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"description": "Plotly.js Node.js export server",
55
"repository": {
66
"url": "https://gitlab.com/striezel/plotly-node-export-server.git",

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,15 @@ will generate a JSON response like e.g.:
6868

6969
{
7070
"success": true,
71-
"filename": "graph-1604764778687.png"
71+
"filename": "graph-25273999-dea9-4da2-aad2-dbdf2e38a0c9.png"
7272
}
7373

7474
The field _filename_ in the response indicates the location of the generated
7575
image file on the server. In the example above you could then get the image from
76-
<http://localhost:3000/graph-1604764778687.png>. Given the data above the image
77-
would look like this:
76+
<http://localhost:3000/graph-25273999-dea9-4da2-aad2-dbdf2e38a0c9.png>. Given
77+
the data above the image would look like this:
7878

79-
![Generated image example](./documentation/graph-1604764778687.png)
79+
![Generated image example](./documentation/graph-25273999-dea9-4da2-aad2-dbdf2e38a0c9.png)
8080

8181
## Troubleshooting
8282

0 commit comments

Comments
 (0)