bsv-sdk 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/bsv/network/protocols/arc.rb +4 -2
- data/lib/bsv/network/protocols/arcade.rb +2 -1
- data/lib/bsv/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ce9ccc589a407c6ad98d92e40b9ac05925f3fbf32cc73aa235b9fd9a35b7ad43
|
|
4
|
+
data.tar.gz: 46992e9ea4f2465c4ca80ad2bb84e2591426610b46d1eea72e11171efdc271bf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ac7da8fbd4e5cb9e0385bb3035dc34d44460232afe826b095d19cccc04faece15cd090045c49d7d176f68d7ba98b5a16105812c66ae8ac27d657df8682b8c499
|
|
7
|
+
data.tar.gz: 1b6946dd9762ac777aa8d1fff4392c96e30cfabd5c6b14f3eba7a8997e7ef0f8d5eca86383c131dfb479ce7f6ac94b7049bc50490edde5b0ff6b6994d8392629
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,16 @@ All notable changes to the `bsv-sdk` gem are documented here.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
|
|
6
6
|
and this gem adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 0.23.1 — 2026-06-06
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- `Protocols::Arcade#parse_broadcast_response`, `Protocols::ARC#parse_single_broadcast_response`,
|
|
12
|
+
and `Protocols::ARC#parse_batch_broadcast_response` now preserve the parsed response body as
|
|
13
|
+
`data:` on non-2xx responses. Previously the body was parsed only to extract an `error_message`,
|
|
14
|
+
then discarded — leaving callers with `data: nil` and no way to read `txStatus` / `extraInfo`
|
|
15
|
+
from synchronous broadcast failures (the terminal-rejection shape). Additive change; the 2xx
|
|
16
|
+
success path and ARC's existing 2xx-REJECTED branch are unchanged. (#793)
|
|
17
|
+
|
|
8
18
|
## 0.23.0 — 2026-06-03
|
|
9
19
|
|
|
10
20
|
### Changed (breaking)
|
|
@@ -179,7 +179,8 @@ module BSV
|
|
|
179
179
|
return ProtocolResponse.new(
|
|
180
180
|
response,
|
|
181
181
|
http_success: false,
|
|
182
|
-
error_message: body['detail'] || body['title'] || "HTTP #{code}"
|
|
182
|
+
error_message: body['detail'] || body['title'] || "HTTP #{code}",
|
|
183
|
+
data: body
|
|
183
184
|
)
|
|
184
185
|
end
|
|
185
186
|
|
|
@@ -215,7 +216,8 @@ module BSV
|
|
|
215
216
|
return ProtocolResponse.new(
|
|
216
217
|
response,
|
|
217
218
|
http_success: false,
|
|
218
|
-
error_message: body.is_a?(Hash) ? (body['detail'] || body['title'] || "HTTP #{code}") : "HTTP #{code}"
|
|
219
|
+
error_message: body.is_a?(Hash) ? (body['detail'] || body['title'] || "HTTP #{code}") : "HTTP #{code}",
|
|
220
|
+
data: body.is_a?(Hash) || body.is_a?(Array) ? body : nil
|
|
219
221
|
)
|
|
220
222
|
end
|
|
221
223
|
|
|
@@ -127,7 +127,8 @@ module BSV
|
|
|
127
127
|
return ProtocolResponse.new(
|
|
128
128
|
response,
|
|
129
129
|
http_success: false,
|
|
130
|
-
error_message: body.is_a?(Hash) ? (body['reason'] || body['detail'] || "HTTP #{code}") : "HTTP #{code}"
|
|
130
|
+
error_message: body.is_a?(Hash) ? (body['reason'] || body['detail'] || "HTTP #{code}") : "HTTP #{code}",
|
|
131
|
+
data: body.is_a?(Hash) ? body : nil
|
|
131
132
|
)
|
|
132
133
|
end
|
|
133
134
|
|
data/lib/bsv/version.rb
CHANGED