Skip to content

Commit 8068f37

Browse files
committed
bump plotly version and edition to 2021
- bump edition to 2021 - set resolver to 2 to bypass latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304 - remove patch versioning from all dependencies Signed-off-by: Andrei Gherghescu <[email protected]>
1 parent 3afb7ff commit 8068f37

File tree

21 files changed

+70
-64
lines changed

21 files changed

+70
-64
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ jobs:
9292
strategy:
9393
fail-fast: false
9494
matrix:
95-
example: [ # missing jupyter
95+
example: # missing jupyter
96+
[
9697
3d_charts,
9798
basic_charts,
9899
custom_controls,
@@ -103,7 +104,7 @@ jobs:
103104
ndarray,
104105
scientific_charts,
105106
shapes,
106-
subplots
107+
subplots,
107108
]
108109
runs-on: ubuntu-latest
109110
steps:
@@ -124,4 +125,3 @@ jobs:
124125
with:
125126
targets: wasm32-unknown-unknown
126127
- run: cd ${{ github.workspace }}/examples/${{ matrix.example }} && cargo build --target wasm32-unknown-unknown
127-

CHANGELOG.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ All notable changes to this project will be documented in this file.
33

44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
55

6-
## [0.11.0] - 2024-11-x
6+
## [0.11.0] - 2024-12-06
77
### Changed
88
- [[#251](https://github.com/plotly/plotly.rs/pull/251)] Expose image data as String with `to_base64` and `to_svg` using Kaleido
99
- [[#245](https://github.com/plotly/plotly.rs/pull/245)] Change Contours size to be `f64` instead of `usize`
1010
- [[#243](https://github.com/plotly/plotly.rs/pull/243)] Made `plotly_embed_js` embed all JS scripts when enabled.
1111
Renamed `use_cdn_plotly` to `use_cdn_js`.
1212

1313
### Fixed
14-
- [[#248]](https://github.com/plotly/plotly.rs/issues/248) Book recipes do not render graphs
15-
- [[#247]](https://github.com/plotly/plotly.rs/issues/247) Add function to export image (with Kaleido) as a b64 string
16-
- [[#246]](https://github.com/plotly/plotly.rs/pull/246) Expose pattern fill api for histograms and bar charts
14+
- [[#248](https://github.com/plotly/plotly.rs/issues/248)] Book recipes do not render graphs
15+
- [[#247](https://github.com/plotly/plotly.rs/issues/247)] Add function to export image (with Kaleido) as a b64 string
16+
- [[#246](https://github.com/plotly/plotly.rs/pull/246)] Expose pattern fill api for histograms and bar charts
1717
- [[#244](https://github.com/plotly/plotly.rs/pull/244)] Fix swapped x and y in the examples.
1818
- [[#242](https://github.com/plotly/plotly.rs/issues/242)] Disable request for tex-svg.js file
1919
- [[#237](https://github.com/plotly/plotly.rs/issues/237)] Add Categorical Axis ordering.
@@ -25,7 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
2525
### Fixed
2626
- [[#230](https://github.com/plotly/plotly.rs/pull/230)] Make Bar chart `width` and `offset` use `f64` values.
2727

28-
## [0.10.0] - 2024-09-06
28+
## [0.9.1] - 2024-09-06
2929
### Added
3030
- [[#217](https://github.com/plotly/plotly.rs/pull/217)] Added show_html(filename) method to bypass situations where accessing default `/tmp` is not possible, e.g., with in SNAP Firefox
3131
- [[#227](https://github.com/plotly/plotly.rs/pull/227)] Switch from HTML template render from `askama` to `rinja`

Cargo.toml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[workspace]
2-
members = [
3-
"plotly",
4-
"plotly_derive",
5-
"plotly_kaleido",
6-
]
2+
resolver = "2"
3+
members = ["plotly", "plotly_derive", "plotly_kaleido"]

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Add this to your `Cargo.toml`:
6161

6262
```toml
6363
[dependencies]
64-
plotly = "0.10.0"
64+
plotly = "0.11"
6565
```
6666

6767
## Exporting a single Interactive Plot
@@ -103,7 +103,7 @@ To save a plot as a static image, the `kaleido` feature is required:
103103
# Cargo.toml
104104

105105
[dependencies]
106-
plotly = { version = "0.10.0", features = ["kaleido"] }
106+
plotly = { version = "0.11", features = ["kaleido"] }
107107
```
108108

109109
With this feature enabled, plots can be saved as any of `png`, `jpeg`, `webp`, `svg`, `pdf` and `eps`. Note that the plot will be a static image, i.e. they will be non-interactive.
@@ -130,7 +130,7 @@ Using `Plotly.rs` in a Wasm-based frontend framework is possible by enabling the
130130
# Cargo.toml
131131

132132
[dependencies]
133-
plotly = { version = "0.10.0", features = ["wasm"] }
133+
plotly = { version = "0.11", features = ["wasm"] }
134134
```
135135

136136
First, make sure that you have the Plotly JavaScript library in your base HTML template:

docs/book/src/fundamentals/ndarray_support.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,4 @@ var data = [trace_0,trace_1,trace_2,trace_3,trace_4,trace_5,trace_6,trace_7,trac
130130
var layout = {};
131131
Plotly.newPlot('multiple_ndarray_traces_over_rows', data, layout, {"responsive": true});
132132
};
133-
</script>
133+
</script>

docs/book/src/getting_started.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ To start using [plotly.rs](https://github.com/plotly/plotly.rs) in your project
2222

2323
```toml
2424
[dependencies]
25-
plotly = "0.10.0"
25+
plotly = "0.11"
2626
```
2727

2828
[Plotly.rs](https://github.com/plotly/plotly.rs) is ultimately a thin wrapper around the `plotly.js` library. The main job of this library is to provide `structs` and `enums` which get serialized to `json` and passed to the `plotly.js` library to actually do the heavy lifting. As such, if you are familiar with `plotly.js` or its derivatives (e.g. the equivalent Python library), then you should find [`plotly.rs`](https://github.com/plotly/plotly.rs) intuitive to use.
@@ -97,7 +97,7 @@ To add the ability to save plots in the following formats: png, jpeg, webp, svg,
9797

9898
```toml
9999
[dependencies]
100-
plotly = { version = "0.10.0", features = ["kaleido"] }
100+
plotly = { version = "0.11", features = ["kaleido"] }
101101
```
102102

103103
## WebAssembly Support
@@ -152,4 +152,4 @@ pub fn plot(props: &PlotProps) -> Html {
152152
<div id={id.clone()} class={class.clone()}></div>
153153
}
154154
}
155-
```
155+
```

examples/3d_charts/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ authors = ["Michael Freeborn <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
ndarray = "0.16.0"
9-
rand = "0.8.5"
8+
ndarray = "0.16"
9+
rand = "0.8"
1010
plotly = { path = "../../plotly" }

examples/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[workspace]
22
members = ["*"]
3-
exclude = ["jupyter", "target"]
3+
resolver = "2"
4+
exclude = ["jupyter", "target"]

examples/basic_charts/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ authors = ["Michael Freeborn <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
ndarray = "0.16.0"
8+
ndarray = "0.16"
99
plotly = { path = "../../plotly" }
10-
rand = "0.8.5"
11-
rand_distr = "0.4.3"
10+
rand = "0.8"
11+
rand_distr = "0.4"

examples/custom_controls/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ authors = ["Michael Freeborn <[email protected]>"]
55
edition = "2021"
66

77
[dependencies]
8-
itertools = "0.10.3"
9-
plotly = { path = "../../plotly" }
8+
itertools = "0.10"
9+
plotly = { path = "../../plotly" }

0 commit comments

Comments
 (0)