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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.49.0 - 2026-02-24

### Enhancements
- Added `SkippedRecordsAfterSlowReading` to the `ErrorCode` enum for gateway errors
originating from slow client catch-up

## 0.48.0 - 2026-02-18

### Enhancements
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cmake_minimum_required(VERSION 3.24..4.2)

project(
databento
VERSION 0.48.0
VERSION 0.49.0
LANGUAGES CXX
DESCRIPTION "Official Databento client library"
)
Expand Down
3 changes: 3 additions & 0 deletions include/databento/enums.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,9 @@ enum ErrorCode : std::uint8_t {
InvalidSubscription = 5,
// An error occurred in the gateway.
InternalError = 6,
// A slow client was detected and records were skipped by the gateway to allow
// catching up.
SkippedRecordsAfterSlowReading = 7,
// No error code was specified or this record was upgraded from a version 1 struct
// where the code field didn't exist.
Unset = 255,
Expand Down
2 changes: 1 addition & 1 deletion pkg/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Databento <support@databento.com>
_pkgname=databento-cpp
pkgname=databento-cpp-git
pkgver=0.48.0
pkgver=0.49.0
pkgrel=1
pkgdesc="Official C++ client for Databento"
arch=('any')
Expand Down
6 changes: 6 additions & 0 deletions src/enums.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,9 @@ const char* ToString(ErrorCode error_code) {
case ErrorCode::InternalError: {
return "internal_error";
}
case ErrorCode::SkippedRecordsAfterSlowReading: {
return "skipped_records_after_slow_reading";
}
case ErrorCode::Unset: {
return "unset";
}
Expand Down Expand Up @@ -1256,6 +1259,9 @@ ErrorCode FromString(const std::string& str) {
if (str == "internal_error") {
return ErrorCode::InternalError;
}
if (str == "skipped_records_after_slow_reading") {
return ErrorCode::SkippedRecordsAfterSlowReading;
}
if (str == "unset") {
return ErrorCode::Unset;
}
Expand Down
Loading