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.50.0 - 2026-02-24

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

## 0.49.0 - 2026-02-17

### Enhancements
Expand Down
10 changes: 5 additions & 5 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ resolver = "2"
[workspace.package]
authors = ["Databento <support@databento.com>"]
edition = "2021"
version = "0.49.0"
version = "0.50.0"
documentation = "https://databento.com/docs"
repository = "https://github.com/databento/dbn"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "databento-dbn"
version = "0.49.0"
version = "0.50.0"
description = "Python bindings for encoding and decoding Databento Binary Encoding (DBN)"
readme = "README.md"
requires-python = ">=3.10"
Expand Down
3 changes: 3 additions & 0 deletions python/python/databento_dbn/_lib.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1145,6 +1145,8 @@ class ErrorCode(Enum):
There was an issue with a subscription request (other than symbol resolution).
INTERNAL_ERROR
An error occurred in the gateway.
SKIPPED_RECORDS_AFTER_SLOW_READING
A slow client was detected and records were skipped by the gateway to allow catching up.
UNSET
No error code was specified or this record was upgraded from a version 1 struct where the code field didn't exist.

Expand All @@ -1156,6 +1158,7 @@ class ErrorCode(Enum):
SYMBOL_RESOLUTION_FAILED: int
INVALID_SUBSCRIPTION: int
INTERNAL_ERROR: int
SKIPPED_RECORDS_AFTER_SLOW_READING: int
UNSET: int

def __init__(self, value: int) -> None: ...
Expand Down
2 changes: 1 addition & 1 deletion rust/dbn-cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ name = "dbn"
path = "src/main.rs"

[dependencies]
dbn = { path = "../dbn", version = "=0.49.0", default-features = false }
dbn = { path = "../dbn", version = "=0.50.0", default-features = false }

anyhow.workspace = true
clap = { version = "4.5", features = ["derive", "wrap_help"] }
Expand Down
2 changes: 1 addition & 1 deletion rust/dbn/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ serde = ["dep:serde", "time/parsing", "time/serde"]
trivial_copy = []

[dependencies]
dbn-macros = { version = "=0.49.0", path = "../dbn-macros" }
dbn-macros = { version = "=0.50.0", path = "../dbn-macros" }

async-compression = { version = "0.4.37", features = ["tokio", "zstd"], optional = true }
csv = { workspace = true }
Expand Down
5 changes: 5 additions & 0 deletions rust/dbn/src/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1429,6 +1429,9 @@ pub enum ErrorCode {
/// An error occurred in the gateway.
#[pyo3(name = "INTERNAL_ERROR")]
InternalError = 6,
/// A slow client was detected and records were skipped by the gateway to allow catching up.
#[pyo3(name = "SKIPPED_RECORDS_AFTER_SLOW_READING")]
SkippedRecordsAfterSlowReading = 7,
/// No error code was specified or this record was upgraded from a version 1 struct where the code field didn't exist.
#[default]
#[pyo3(name = "UNSET")]
Expand All @@ -1446,6 +1449,7 @@ impl std::str::FromStr for ErrorCode {
"symbol_resolution_failed" => Ok(Self::SymbolResolutionFailed),
"invalid_subscription" => Ok(Self::InvalidSubscription),
"internal_error" => Ok(Self::InternalError),
"skipped_records_after_slow_reading" => Ok(Self::SkippedRecordsAfterSlowReading),
"unset" => Ok(Self::Unset),
_ => Err(crate::Error::conversion::<Self>(s.to_owned())),
}
Expand All @@ -1468,6 +1472,7 @@ impl ErrorCode {
Self::SymbolResolutionFailed => "symbol_resolution_failed",
Self::InvalidSubscription => "invalid_subscription",
Self::InternalError => "internal_error",
Self::SkippedRecordsAfterSlowReading => "skipped_records_after_slow_reading",
Self::Unset => "unset",
}
}
Expand Down
1 change: 1 addition & 0 deletions rust/dbn/src/python/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1379,6 +1379,7 @@ impl ErrorCode {
Self::SymbolResolutionFailed => "SYMBOL_RESOLUTION_FAILED",
Self::InvalidSubscription => "INVALID_SUBSCRIPTION",
Self::InternalError => "INTERNAL_ERROR",
Self::SkippedRecordsAfterSlowReading => "SKIPPED_RECORDS_AFTER_SLOW_READING",
Self::Unset => "UNSET",
}
}
Expand Down