Skip to content

Commit 2ea78c7

Browse files
[release] 0.0.4 (#18)
* update versions * update package.json * change package name * remove unnecessary pieces * support package.json
1 parent df78bb4 commit 2ea78c7

File tree

8 files changed

+44
-27
lines changed

8 files changed

+44
-27
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ members = [
88
resolver = "2"
99

1010
[workspace.dependencies]
11-
alto-client = { version = "0.0.3", path = "client" }
12-
alto-types = { version = "0.0.3", path = "types" }
11+
alto-client = { version = "0.0.4", path = "client" }
12+
alto-types = { version = "0.0.4", path = "types" }
1313
commonware-consensus = { version = "0.0.40" }
1414
commonware-cryptography = { version = "0.0.40" }
1515
commonware-deployer = { version = "0.0.40" }

chain/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "alto-chain"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
publish = true
55
edition = "2021"
66
license = "MIT OR Apache-2.0"

client/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "alto-client"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
publish = true
55
edition = "2021"
66
license = "MIT OR Apache-2.0"

explorer/package.json

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,25 @@
11
{
2-
"name": "explorer",
3-
"version": "0.0.1",
2+
"name": "alto-explorer",
3+
"version": "0.0.4",
44
"private": true,
55
"dependencies": {
6-
"@testing-library/dom": "^10.4.0",
7-
"@testing-library/jest-dom": "^6.6.3",
8-
"@testing-library/react": "^16.2.0",
9-
"@testing-library/user-event": "^13.5.0",
10-
"@types/chart.js": "^2.9.41",
11-
"@types/jest": "^27.5.2",
126
"@types/node": "^16.18.126",
137
"@types/react": "^19.0.10",
148
"@types/react-dom": "^19.0.4",
159
"leaflet": "^1.9.4",
1610
"react": "^19.0.0",
17-
"react-chartjs-2": "^5.3.0",
1811
"react-dom": "^19.0.0",
1912
"react-leaflet": "^5.0.0",
2013
"react-scripts": "5.0.1",
21-
"typescript": "^4.9.5",
22-
"web-vitals": "^2.1.4"
14+
"typescript": "^4.9.5"
2315
},
2416
"scripts": {
2517
"start": "react-scripts start",
26-
"build": "react-scripts build",
27-
"test": "react-scripts test",
28-
"eject": "react-scripts eject"
18+
"build": "react-scripts build"
2919
},
3020
"eslintConfig": {
3121
"extends": [
32-
"react-app",
33-
"react-app/jest"
22+
"react-app"
3423
],
3524
"parserOptions": {
3625
"ecmaVersion": 2020

inspector/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "alto-inspector"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
publish = true
55
edition = "2021"
66
license = "MIT OR Apache-2.0"

scripts/bump_versions.sh

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,32 @@ find . -name "Cargo.toml" | while read -r cargo_file; do
5555
done > "${cargo_file}"
5656
echo "Updated ${cargo_file}"
5757
fi
58-
done
58+
done
59+
60+
# Handle explorer/package.json
61+
if [ -f "explorer/package.json" ]; then
62+
# Create a temporary file
63+
temp_file=$(mktemp)
64+
changed=false
65+
66+
# Read the file line by line and process it directly
67+
while IFS= read -r line || [ -n "$line" ]; do # The -n "$line" part handles the last line if it doesn't end with newline
68+
# Look directly for the version line
69+
if [[ "${line}" =~ ^[[:space:]]*\"version\":[[:space:]]*\"([0-9]+\.[0-9]+\.[0-9]+)\".*$ ]]; then
70+
old="${BASH_REMATCH[1]}"
71+
new="$(bump_version "${old}")"
72+
line="${line/${old}/${new}}"
73+
changed=true
74+
fi
75+
# Write to temp file, preserving line endings
76+
echo "$line" >> "$temp_file"
77+
done < "explorer/package.json"
78+
79+
# If we changed anything, replace the original file
80+
if ${changed}; then
81+
mv "$temp_file" "explorer/package.json"
82+
echo "Updated explorer/package.json"
83+
else
84+
rm "$temp_file"
85+
fi
86+
fi

types/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "alto-types"
3-
version = "0.0.3"
3+
version = "0.0.4"
44
publish = true
55
edition = "2021"
66
license = "MIT OR Apache-2.0"

0 commit comments

Comments
 (0)