Skip to content

Commit f1441bc

Browse files
authored
Merge pull request #2157 from input-output-hk/jpraynaud/2124-upgrade-dependencies-distribution-2448
Chore: update dependencies for distribution `2450`
2 parents 5d1cbea + 8aeaf9e commit f1441bc

File tree

37 files changed

+6017
-4310
lines changed

37 files changed

+6017
-4310
lines changed

Cargo.lock

Lines changed: 458 additions & 406 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/protocol-demo/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "mithrildemo"
3-
version = "0.1.44"
3+
version = "0.1.45"
44
authors = { workspace = true }
55
edition = { workspace = true }
66
documentation = { workspace = true }
@@ -11,15 +11,15 @@ repository = { workspace = true }
1111
[dependencies]
1212
base64 = "0.22.1"
1313
blake2 = "0.10.6"
14-
clap = { version = "4.5.20", features = ["derive"] }
14+
clap = { version = "4.5.23", features = ["derive"] }
1515
hex = "0.4.3"
1616
log = "0.4.22"
1717
mithril-common = { path = "../../mithril-common", features = ["fs"] }
1818
mithril-doc = { path = "../../internal/mithril-doc" }
1919
rand_chacha = "0.3.1"
2020
rand_core = "0.6.4"
21-
serde = { version = "1.0.214", features = ["derive"] }
22-
serde_json = "1.0.132"
21+
serde = { version = "1.0.215", features = ["derive"] }
22+
serde_json = "1.0.133"
2323

2424
[target.'cfg(not(windows))'.dependencies]
2525
# non-windows: use default rug backend

docs/devbook/upgrade-repository-dependencies/README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ This devbook provides step-by-step instructions to upgrade the dependencies in t
88

99
The `update_dependencies.sh` script allows you to update dependencies performing all the steps described in the next chapter.
1010

11-
It requires having `cargo-edit` installed, which can be done with the following command:
11+
It requires having `cargo-edit` and `cargo-audit` installed, which can be done with the following command:
1212

1313
```
14-
cargo install cargo-edit
14+
cargo install cargo-edit cargo-audit
1515
```
1616

1717
To start the update, execute the command below from the root of the repository:
@@ -176,8 +176,8 @@ Create a dedicated commit, e.g.:
176176
chore: bump javascript packages versions
177177

178178
By running:
179-
- 'make www-install' command in 'mithril-client-wasm'.
180-
- 'make www-test-install' command in 'mithril-client-wasm'.
179+
- 'make install' command in 'examples/client-wasm-web'.
180+
- 'make install' command in 'examples/client-wasm-nodejs'.
181181
- 'make install' command in 'mithril-explorer'.
182182
- 'make install' command in 'docs/website'.
183183
```
@@ -195,3 +195,9 @@ chore: update nix flake dependencies
195195

196196
By running 'nix flake update' command.
197197
```
198+
199+
### Run a security audit on the Rust dependencies:
200+
201+
```bash
202+
cargo audit
203+
```

docs/devbook/upgrade-repository-dependencies/upgrade_dependencies.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ make -C docs/website install
7272
git commit -am "chore: bump javascript packages versions
7373
7474
By running:
75-
- 'make www-install' command in 'mithril-client-wasm'.
76-
- 'make www-test-install' command in 'mithril-client-wasm'.
75+
- 'make install' command in 'examples/client-wasm-web'.
76+
- 'make install' command in 'examples/client-wasm-nodejs'.
7777
- 'make install' command in 'mithril-explorer'.
7878
- 'make install' command in 'docs/website'."
7979

@@ -92,3 +92,6 @@ nix --extra-experimental-features 'nix-command flakes' flake update" > "$TMP_SCR
9292
git commit -am "chore: update nix flake dependencies
9393
9494
By running 'nix flake update' command."
95+
96+
# Audit Rust dependencies
97+
cargo audit

docs/website/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ clean:
1919
rm package-lock.json || true
2020

2121
upgrade: clean install
22+
# Update to the latest version of react and react-dom when it is supported and does not create dependency conflicts
2223
npm install \
2324
@docusaurus/core@latest \
25+
@docusaurus/plugin-client-redirects@latest \
26+
@docusaurus/plugin-sitemap@latest \
2427
@docusaurus/preset-classic@latest \
2528
@docusaurus/theme-mermaid@latest \
2629
clsx@latest \
27-
react@latest \
28-
react-dom@latest \
30+
react@^18.3.1 \
31+
react-dom@^18.3.1 \
2932
redocusaurus@latest
3033

3134
update-current:

0 commit comments

Comments
 (0)