Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ members = [
resolver = "2"

[workspace.dependencies]
alto-client = { version = "0.0.3", path = "client" }
alto-types = { version = "0.0.3", path = "types" }
alto-client = { version = "0.0.4", path = "client" }
alto-types = { version = "0.0.4", path = "types" }
commonware-consensus = { version = "0.0.40" }
commonware-cryptography = { version = "0.0.40" }
commonware-deployer = { version = "0.0.40" }
Expand Down
2 changes: 1 addition & 1 deletion chain/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alto-chain"
version = "0.0.3"
version = "0.0.4"
publish = true
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alto-client"
version = "0.0.3"
version = "0.0.4"
publish = true
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
21 changes: 5 additions & 16 deletions explorer/package.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,25 @@
{
"name": "explorer",
"version": "0.0.1",
"name": "alto-explorer",
"version": "0.0.4",
"private": true,
"dependencies": {
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.2.0",
"@testing-library/user-event": "^13.5.0",
"@types/chart.js": "^2.9.41",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.126",
"@types/react": "^19.0.10",
"@types/react-dom": "^19.0.4",
"leaflet": "^1.9.4",
"react": "^19.0.0",
"react-chartjs-2": "^5.3.0",
"react-dom": "^19.0.0",
"react-leaflet": "^5.0.0",
"react-scripts": "5.0.1",
"typescript": "^4.9.5",
"web-vitals": "^2.1.4"
"typescript": "^4.9.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"build": "react-scripts build"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
"react-app"
],
"parserOptions": {
"ecmaVersion": 2020
Expand Down
2 changes: 1 addition & 1 deletion inspector/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alto-inspector"
version = "0.0.3"
version = "0.0.4"
publish = true
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down
30 changes: 29 additions & 1 deletion scripts/bump_versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,32 @@ find . -name "Cargo.toml" | while read -r cargo_file; do
done > "${cargo_file}"
echo "Updated ${cargo_file}"
fi
done
done

# Handle explorer/package.json
if [ -f "explorer/package.json" ]; then
# Create a temporary file
temp_file=$(mktemp)
changed=false

# Read the file line by line and process it directly
while IFS= read -r line || [ -n "$line" ]; do # The -n "$line" part handles the last line if it doesn't end with newline
# Look directly for the version line
if [[ "${line}" =~ ^[[:space:]]*\"version\":[[:space:]]*\"([0-9]+\.[0-9]+\.[0-9]+)\".*$ ]]; then
old="${BASH_REMATCH[1]}"
new="$(bump_version "${old}")"
line="${line/${old}/${new}}"
changed=true
fi
# Write to temp file, preserving line endings
echo "$line" >> "$temp_file"
done < "explorer/package.json"

# If we changed anything, replace the original file
if ${changed}; then
mv "$temp_file" "explorer/package.json"
echo "Updated explorer/package.json"
else
rm "$temp_file"
fi
fi
2 changes: 1 addition & 1 deletion types/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alto-types"
version = "0.0.3"
version = "0.0.4"
publish = true
edition = "2021"
license = "MIT OR Apache-2.0"
Expand Down