From 56c9695e09ff1b2905382eaaf13b0c7cc8789d1d Mon Sep 17 00:00:00 2001 From: KeviM Date: Fri, 4 Sep 2026 05:10:23 -0700 Subject: [PATCH] chore(release): prepare v0.3.0 A minor rather than a patch: the two-argument parse_fire_weather() overload is gone, because a version that silently guessed the layer was how the dn label confusion survived v0.2.0, and a compile error with a one-line fix is the honest way to surface that. The release carries two defects that were reachable by any consumer of the public rate limiter, neither of them through this SDK's own clients: a zero refill interval divided by zero, which traps on x86-64 and returns a silent wrong answer on AArch64, and a daily limit with no max_wait made acquire() spin until the next UTC midnight. It also stops HttpClient reaching the local filesystem: a file:// URL was classified as relative, appended to the empty default base URL, and handed to libcurl, which read the file and returned it as the response body. --- CHANGELOG.md | 2 ++ CMakeLists.txt | 2 +- README.md | 2 +- include/spc/http_client.hpp | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f65fb7a..b0f976e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.3.0] - 2026-09-04 + ### Changed - **HTTP 404 now says which kind of 404 it was.** `ErrorCode::FeedUnavailable` diff --git a/CMakeLists.txt b/CMakeLists.txt index c39f590..00f9f9f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.20) -project(spc-cpp VERSION 0.2.0 LANGUAGES CXX) +project(spc-cpp VERSION 0.3.0 LANGUAGES CXX) set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) diff --git a/README.md b/README.md index 1c074c0..be84cac 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ FetchContent consumers can pin the release: include(FetchContent) FetchContent_Declare(spc_cpp GIT_REPOSITORY https://github.com/Reddimus/spc-cpp.git - GIT_TAG v0.2.0 + GIT_TAG v0.3.0 ) FetchContent_MakeAvailable(spc_cpp) target_link_libraries(myapp PRIVATE spc::spc) diff --git a/include/spc/http_client.hpp b/include/spc/http_client.hpp index 55c677d..88819cd 100644 --- a/include/spc/http_client.hpp +++ b/include/spc/http_client.hpp @@ -5,7 +5,7 @@ /// Set from `PROJECT_VERSION` by the build. The fallback keeps the header /// usable when it is read outside the project's own CMake targets. #ifndef SPC_VERSION_STRING -#define SPC_VERSION_STRING "0.2.0" +#define SPC_VERSION_STRING "0.3.0" #endif #include