Skip to content

Commit

Permalink
bump plotly minor version
Browse files Browse the repository at this point in the history
 - bump edition to 2021 (implies default resolver 2)
   - also implies resolver 2 to bypass latest wasm-bindgen bug: rustwasm/wasm-bindgen#4304
 - remove patch versioning from all dependencies

Signed-off-by: Andrei Gherghescu <[email protected]>
  • Loading branch information
andrei-ng committed Nov 30, 2024
1 parent 3afb7ff commit a6c7717
Show file tree
Hide file tree
Showing 17 changed files with 57 additions and 55 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file.

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).

## [0.11.0] - 2024-11-x
## [0.11.0] - 2024-11-30
### Changed
- [[#251](https://github.com/plotly/plotly.rs/pull/251)] Expose image data as String with `to_base64` and `to_svg` using Kaleido
- [[#245](https://github.com/plotly/plotly.rs/pull/245)] Change Contours size to be `f64` instead of `usize`
Expand All @@ -25,7 +25,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
### Fixed
- [[#230](https://github.com/plotly/plotly.rs/pull/230)] Make Bar chart `width` and `offset` use `f64` values.

## [0.10.0] - 2024-09-06
## [0.9.1] - 2024-09-06
### Added
- [[#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
- [[#227](https://github.com/plotly/plotly.rs/pull/227)] Switch from HTML template render from `askama` to `rinja`
Expand Down
6 changes: 1 addition & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
[workspace]
members = [
"plotly",
"plotly_derive",
"plotly_kaleido",
]
members = ["plotly", "plotly_derive", "plotly_kaleido"]
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Add this to your `Cargo.toml`:

```toml
[dependencies]
plotly = "0.10.0"
plotly = "0.11"
```

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

[dependencies]
plotly = { version = "0.10.0", features = ["kaleido"] }
plotly = { version = "0.11", features = ["kaleido"] }
```

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.
Expand All @@ -130,7 +130,7 @@ Using `Plotly.rs` in a Wasm-based frontend framework is possible by enabling the
# Cargo.toml

[dependencies]
plotly = { version = "0.10.0", features = ["wasm"] }
plotly = { version = "0.11", features = ["wasm"] }
```

First, make sure that you have the Plotly JavaScript library in your base HTML template:
Expand Down
2 changes: 1 addition & 1 deletion docs/book/src/fundamentals/ndarray_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
To enable [ndarray](https://github.com/rust-ndarray/ndarray) support in [Plotly.rs](https://github.com/plotly/plotly.rs) add the following feature to your `Cargo.toml` file:
```toml
[dependencies]
plotly = { version = ">=0.7.0", features = ["plotly_ndarray"] }
plotly = { version = ">=0.7", features = ["plotly_ndarray"] }
```

This extends the [Plotly.rs](https://github.com/plotly/plotly.rs) API in two ways:
Expand Down
6 changes: 3 additions & 3 deletions docs/book/src/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ To start using [plotly.rs](https://github.com/plotly/plotly.rs) in your project

```toml
[dependencies]
plotly = "0.10.0"
plotly = "0.11"
```

[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.
Expand Down Expand Up @@ -97,7 +97,7 @@ To add the ability to save plots in the following formats: png, jpeg, webp, svg,

```toml
[dependencies]
plotly = { version = "0.10.0", features = ["kaleido"] }
plotly = { version = "0.11", features = ["kaleido"] }
```

## WebAssembly Support
Expand All @@ -106,7 +106,7 @@ As of v0.8.0, [plotly.rs](https://github.com/plotly/plotly.rs) can now be used i

```toml
[dependencies]
plotly = { version = ">=0.8.0" features = ["wasm"] }
plotly = { version = ">=0.8" features = ["wasm"] }
```

The `wasm` feature exposes rudimentary bindings to the `plotly.js` library, which can then be used in a `wasm` environment such as the [`Yew`](https://yew.rs/) frontend framework.
Expand Down
4 changes: 2 additions & 2 deletions examples/3d_charts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ authors = ["Michael Freeborn <[email protected]>"]
edition = "2021"

[dependencies]
ndarray = "0.16.0"
rand = "0.8.5"
ndarray = "0.16"
rand = "0.8"
plotly = { path = "../../plotly" }
6 changes: 3 additions & 3 deletions examples/basic_charts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Michael Freeborn <[email protected]>"]
edition = "2021"

[dependencies]
ndarray = "0.16.0"
ndarray = "0.16"
plotly = { path = "../../plotly" }
rand = "0.8.5"
rand_distr = "0.4.3"
rand = "0.8"
rand_distr = "0.4"
4 changes: 2 additions & 2 deletions examples/custom_controls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ authors = ["Michael Freeborn <[email protected]>"]
edition = "2021"

[dependencies]
itertools = "0.10.3"
plotly = { path = "../../plotly" }
itertools = "0.10"
plotly = { path = "../../plotly" }
4 changes: 2 additions & 2 deletions examples/financial_charts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ authors = ["Michael Freeborn <[email protected]>"]
edition = "2021"

[dependencies]
csv = "1.1.6"
csv = "1.1"
plotly = { path = "../../plotly" }
serde = "1.0.147"
serde = "1.0"
7 changes: 5 additions & 2 deletions examples/images/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ edition = "2021"

[dependencies]
image = "0.25"
ndarray = "0.16.0"
plotly = { path = "../../plotly", features = ["plotly_image", "plotly_ndarray"] }
ndarray = "0.16"
plotly = { path = "../../plotly", features = [
"plotly_image",
"plotly_ndarray",
] }
2 changes: 1 addition & 1 deletion examples/ndarray/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ authors = ["Michael Freeborn <[email protected]>"]
edition = "2021"

[dependencies]
ndarray = "0.16.0"
ndarray = "0.16"
plotly = { path = "../../plotly", features = ["plotly_ndarray"] }
6 changes: 3 additions & 3 deletions examples/shapes/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Michael Freeborn <[email protected]>"]
edition = "2021"

[dependencies]
ndarray = "0.16.0"
ndarray = "0.16"
plotly = { path = "../../plotly" }
rand = "0.8.5"
rand_distr = "0.4.3"
rand = "0.8"
rand_distr = "0.4"
6 changes: 3 additions & 3 deletions examples/statistical_charts/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ authors = ["Michael Freeborn <[email protected]>"]
edition = "2021"

[dependencies]
ndarray = "0.16.0"
ndarray = "0.16"
plotly = { path = "../../plotly" }
rand = "0.8.5"
rand_distr = "0.4.3"
rand = "0.8"
rand_distr = "0.4"
11 changes: 7 additions & 4 deletions examples/wasm-yew-minimal/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
[package]
name = "wasm-yew-minimal"
version = "0.1.0"
authors = ["Michael Freeborn <[email protected]>", "Yuichi Nakamura <[email protected]>"]
authors = [
"Michael Freeborn <[email protected]>",
"Yuichi Nakamura <[email protected]>",
]
edition = "2021"

[dependencies]
plotly = { path = "../../plotly", features = ["wasm"] }
yew = "0.21.0"
yew-hooks = "0.3.2"
log = "0.4.6"
yew = "0.21"
yew-hooks = "0.3"
log = "0.4"
wasm-logger = "0.2"
24 changes: 12 additions & 12 deletions plotly/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "plotly"
version = "0.10.0"
version = "0.11.0"
description = "A plotting library powered by Plotly.js"
authors = ["Ioannis Giagkiozis <[email protected]>"]
license = "MIT"
readme = "../README.md"
homepage = "https://github.com/plotly/plotly.rs"
documentation = "https://docs.rs/plotly"
repository = "https://github.com/plotly/plotly.rs"
edition = "2018"
edition = "2021"
keywords = ["plot", "chart", "plotly"]

exclude = ["target/*"]
Expand All @@ -24,30 +24,30 @@ with-axum = ["rinja/with-axum", "rinja_axum"]

[dependencies]
rinja = { version = "0.3", features = ["serde_json"] }
rinja_axum = { version = "0.3.0", optional = true }
rinja_axum = { version = "0.3", optional = true }
dyn-clone = "1"
erased-serde = "0.4"
getrandom = { version = "0.2", features = ["js"], optional = true }
image = { version = "0.25", optional = true }
js-sys = { version = "0.3", optional = true }
plotly_derive = { version = "0.10.0", path = "../plotly_derive" }
plotly_kaleido = { version = "0.10.0", path = "../plotly_kaleido", optional = true }
ndarray = { version = "0.16.0", optional = true }
plotly_derive = { version = "0.11", path = "../plotly_derive" }
plotly_kaleido = { version = "0.11", path = "../plotly_kaleido", optional = true }
ndarray = { version = "0.16", optional = true }
once_cell = "1"
serde = { version = "1.0.132", features = ["derive"] }
serde_json = "1.0.73"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
serde_repr = "0.1"
serde_with = ">=2, <4"
rand = "0.8"
wasm-bindgen = { version = "0.2", optional = true }
wasm-bindgen-futures = { version = "0.4", optional = true }

[dev-dependencies]
csv = "1.1.6"
csv = "1.1"
image = "0.25"
itertools = ">=0.10, <0.14"
itertools-num = "0.1.3"
ndarray = "0.16.0"
plotly_kaleido = { version = "0.10.0", path = "../plotly_kaleido" }
itertools-num = "0.1"
ndarray = "0.16"
plotly_kaleido = { version = "0.11", path = "../plotly_kaleido" }
rand_distr = "0.4"
base64 = "0.22"
4 changes: 2 additions & 2 deletions plotly_derive/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[package]
name = "plotly_derive"
version = "0.10.0"
version = "0.11.0"
description = "Internal proc macro crate for Plotly-rs."
authors = ["Ioannis Giagkiozis <[email protected]>"]
license = "MIT"
homepage = "https://github.com/plotly/plotly.rs"
documentation = "https://docs.rs/plotly"
repository = "https://github.com/plotly/plotly.rs"
edition = "2018"
edition = "2021"
keywords = ["plot", "chart", "plotly"]

[dependencies]
Expand Down
10 changes: 5 additions & 5 deletions plotly_kaleido/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "plotly_kaleido"
version = "0.10.0"
version = "0.11.0"
description = "Additional output format support for plotly using Kaleido"
authors = ["Ioannis Giagkiozis <[email protected]>"]
license = "MIT"
Expand All @@ -9,16 +9,16 @@ workspace = ".."
homepage = "https://github.com/plotly/plotly.rs"
documentation = "https://docs.rs/plotly_kaleido"
repository = "https://github.com/plotly/plotly.rs"
edition = "2018"
edition = "2021"
keywords = ["plot", "chart", "plotly", "ndarray"]

exclude = ["target/*", "kaleido/*", "examples/*"]

[dependencies]
serde = { version = "1.0.132", features = ["derive"] }
serde_json = "1.0.73"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
base64 = "0.22"
dunce = "1.0.2"
dunce = "1.0"
directories = ">=4, <6"

[build-dependencies]
Expand Down

0 comments on commit a6c7717

Please sign in to comment.