chore: bump version to 0.5.11 (#645)

* chore: bump version to 0.5.11

* data: run black
This commit is contained in:
l5y
2026-03-01 21:59:04 +01:00
committed by GitHub
parent 17fa183c4f
commit ecce7f3504
10 changed files with 54 additions and 16 deletions

View File

@@ -15,11 +15,11 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>FMWK</string> <string>FMWK</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>0.5.10</string> <string>0.5.11</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>0.5.10</string> <string>0.5.11</string>
<key>MinimumOSVersion</key> <key>MinimumOSVersion</key>
<string>14.0</string> <string>14.0</string>
</dict> </dict>

View File

@@ -1,7 +1,7 @@
name: potato_mesh_reader name: potato_mesh_reader
description: Meshtastic Reader — read-only view for PotatoMesh messages. description: Meshtastic Reader — read-only view for PotatoMesh messages.
publish_to: "none" publish_to: "none"
version: 0.5.10 version: 0.5.11
environment: environment:
sdk: ">=3.4.0 <4.0.0" sdk: ">=3.4.0 <4.0.0"

View File

@@ -18,7 +18,7 @@ The ``data.mesh`` module exposes helpers for reading Meshtastic node and
message information before forwarding it to the accompanying web application. message information before forwarding it to the accompanying web application.
""" """
VERSION = "0.5.10" VERSION = "0.5.11"
"""Semantic version identifier shared with the dashboard and front-end.""" """Semantic version identifier shared with the dashboard and front-end."""
__version__ = VERSION __version__ = VERSION

2
matrix/Cargo.lock generated
View File

@@ -969,7 +969,7 @@ checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
[[package]] [[package]]
name = "potatomesh-matrix-bridge" name = "potatomesh-matrix-bridge"
version = "0.5.10" version = "0.5.11"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"axum", "axum",

View File

@@ -14,7 +14,7 @@
[package] [package]
name = "potatomesh-matrix-bridge" name = "potatomesh-matrix-bridge"
version = "0.5.10" version = "0.5.11"
edition = "2021" edition = "2021"
[dependencies] [dependencies]

View File

@@ -55,8 +55,38 @@ def _javascript_package_version() -> str:
raise AssertionError("package.json does not expose a string version") raise AssertionError("package.json does not expose a string version")
def _flutter_package_version() -> str:
pubspec_path = REPO_ROOT / "app" / "pubspec.yaml"
for line in pubspec_path.read_text(encoding="utf-8").splitlines():
if line.startswith("version:"):
version = line.split(":", 1)[1].strip()
if version:
return version
break
raise AssertionError("pubspec.yaml does not expose a version")
def _rust_package_version() -> str:
cargo_path = REPO_ROOT / "matrix" / "Cargo.toml"
inside_package = False
for line in cargo_path.read_text(encoding="utf-8").splitlines():
stripped = line.strip()
if stripped == "[package]":
inside_package = True
continue
if inside_package and stripped.startswith("[") and stripped.endswith("]"):
break
if inside_package:
literal = re.match(
r'version\s*=\s*["\'](?P<version>[^"\']+)["\']', stripped
)
if literal:
return literal.group("version")
raise AssertionError("Cargo.toml does not expose a package version")
def test_version_identifiers_match_across_languages() -> None: def test_version_identifiers_match_across_languages() -> None:
"""Guard against version drift between Python, Ruby, and JavaScript.""" """Guard against version drift between Python, Ruby, JavaScript, Flutter, and Rust."""
python_version = getattr(data, "__version__", None) python_version = getattr(data, "__version__", None)
assert ( assert (
@@ -65,5 +95,13 @@ def test_version_identifiers_match_across_languages() -> None:
ruby_version = _ruby_fallback_version() ruby_version = _ruby_fallback_version()
javascript_version = _javascript_package_version() javascript_version = _javascript_package_version()
flutter_version = _flutter_package_version()
rust_version = _rust_package_version()
assert python_version == ruby_version == javascript_version assert (
python_version
== ruby_version
== javascript_version
== flutter_version
== rust_version
)

View File

@@ -187,7 +187,7 @@ module PotatoMesh
# #
# @return [String] semantic version identifier. # @return [String] semantic version identifier.
def version_fallback def version_fallback
"0.5.10" "0.5.11"
end end
# Default refresh interval for frontend polling routines. # Default refresh interval for frontend polling routines.

4
web/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "potato-mesh", "name": "potato-mesh",
"version": "0.5.10", "version": "0.5.11",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "potato-mesh", "name": "potato-mesh",
"version": "0.5.10", "version": "0.5.11",
"devDependencies": { "devDependencies": {
"istanbul-lib-coverage": "^3.2.2", "istanbul-lib-coverage": "^3.2.2",
"istanbul-lib-report": "^3.0.1", "istanbul-lib-report": "^3.0.1",

View File

@@ -1,6 +1,6 @@
{ {
"name": "potato-mesh", "name": "potato-mesh",
"version": "0.5.10", "version": "0.5.11",
"type": "module", "type": "module",
"private": true, "private": true,
"scripts": { "scripts": {

View File

@@ -61,7 +61,7 @@ RSpec.describe "Ingestor endpoints" do
node_id: "!abc12345", node_id: "!abc12345",
start_time: now - 120, start_time: now - 120,
last_seen_time: now - 60, last_seen_time: now - 60,
version: "0.5.10", version: "0.5.11",
lora_freq: 915, lora_freq: 915,
modem_preset: "LongFast", modem_preset: "LongFast",
}.merge(overrides) }.merge(overrides)
@@ -133,7 +133,7 @@ RSpec.describe "Ingestor endpoints" do
with_db do |db| with_db do |db|
db.execute( db.execute(
"INSERT INTO ingestors(node_id, start_time, last_seen_time, version) VALUES(?,?,?,?)", "INSERT INTO ingestors(node_id, start_time, last_seen_time, version) VALUES(?,?,?,?)",
["!fresh000", now - 100, now - 10, "0.5.10"], ["!fresh000", now - 100, now - 10, "0.5.11"],
) )
db.execute( db.execute(
"INSERT INTO ingestors(node_id, start_time, last_seen_time, version) VALUES(?,?,?,?)", "INSERT INTO ingestors(node_id, start_time, last_seen_time, version) VALUES(?,?,?,?)",
@@ -141,7 +141,7 @@ RSpec.describe "Ingestor endpoints" do
) )
db.execute( db.execute(
"INSERT INTO ingestors(node_id, start_time, last_seen_time, version, lora_freq, modem_preset) VALUES(?,?,?,?,?,?)", "INSERT INTO ingestors(node_id, start_time, last_seen_time, version, lora_freq, modem_preset) VALUES(?,?,?,?,?,?)",
["!rich000", now - 200, now - 100, "0.5.10", 915, "MediumFast"], ["!rich000", now - 200, now - 100, "0.5.11", 915, "MediumFast"],
) )
end end
@@ -173,7 +173,7 @@ RSpec.describe "Ingestor endpoints" do
) )
db.execute( db.execute(
"INSERT INTO ingestors(node_id, start_time, last_seen_time, version) VALUES(?,?,?,?)", "INSERT INTO ingestors(node_id, start_time, last_seen_time, version) VALUES(?,?,?,?)",
["!new-ingestor", now - 60, now - 30, "0.5.10"], ["!new-ingestor", now - 60, now - 30, "0.5.11"],
) )
end end