Skip to content

Commit e454317

Browse files
authored
VER: Release 0.50.0
2 parents ceae0dc + 2328cee commit e454317

File tree

9 files changed

+24
-9
lines changed

9 files changed

+24
-9
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 0.50.0 - 2026-02-24
4+
5+
### Enhancements
6+
- Added `SkippedRecordsAfterSlowReading` to the `ErrorCode` enum for gateway errors
7+
originating from slow client catch-up
8+
39
## 0.49.0 - 2026-02-17
410

511
### Enhancements

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ resolver = "2"
1111
[workspace.package]
1212
authors = ["Databento <support@databento.com>"]
1313
edition = "2021"
14-
version = "0.49.0"
14+
version = "0.50.0"
1515
documentation = "https://databento.com/docs"
1616
repository = "https://github.com/databento/dbn"
1717
license = "Apache-2.0"

python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "databento-dbn"
3-
version = "0.49.0"
3+
version = "0.50.0"
44
description = "Python bindings for encoding and decoding Databento Binary Encoding (DBN)"
55
readme = "README.md"
66
requires-python = ">=3.10"

python/python/databento_dbn/_lib.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,8 @@ class ErrorCode(Enum):
11451145
There was an issue with a subscription request (other than symbol resolution).
11461146
INTERNAL_ERROR
11471147
An error occurred in the gateway.
1148+
SKIPPED_RECORDS_AFTER_SLOW_READING
1149+
A slow client was detected and records were skipped by the gateway to allow catching up.
11481150
UNSET
11491151
No error code was specified or this record was upgraded from a version 1 struct where the code field didn't exist.
11501152
@@ -1156,6 +1158,7 @@ class ErrorCode(Enum):
11561158
SYMBOL_RESOLUTION_FAILED: int
11571159
INVALID_SUBSCRIPTION: int
11581160
INTERNAL_ERROR: int
1161+
SKIPPED_RECORDS_AFTER_SLOW_READING: int
11591162
UNSET: int
11601163

11611164
def __init__(self, value: int) -> None: ...

rust/dbn-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ name = "dbn"
1616
path = "src/main.rs"
1717

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

2121
anyhow.workspace = true
2222
clap = { version = "4.5", features = ["derive", "wrap_help"] }

rust/dbn/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ serde = ["dep:serde", "time/parsing", "time/serde"]
2525
trivial_copy = []
2626

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

3030
async-compression = { version = "0.4.37", features = ["tokio", "zstd"], optional = true }
3131
csv = { workspace = true }

rust/dbn/src/enums.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1429,6 +1429,9 @@ pub enum ErrorCode {
14291429
/// An error occurred in the gateway.
14301430
#[pyo3(name = "INTERNAL_ERROR")]
14311431
InternalError = 6,
1432+
/// A slow client was detected and records were skipped by the gateway to allow catching up.
1433+
#[pyo3(name = "SKIPPED_RECORDS_AFTER_SLOW_READING")]
1434+
SkippedRecordsAfterSlowReading = 7,
14321435
/// No error code was specified or this record was upgraded from a version 1 struct where the code field didn't exist.
14331436
#[default]
14341437
#[pyo3(name = "UNSET")]
@@ -1446,6 +1449,7 @@ impl std::str::FromStr for ErrorCode {
14461449
"symbol_resolution_failed" => Ok(Self::SymbolResolutionFailed),
14471450
"invalid_subscription" => Ok(Self::InvalidSubscription),
14481451
"internal_error" => Ok(Self::InternalError),
1452+
"skipped_records_after_slow_reading" => Ok(Self::SkippedRecordsAfterSlowReading),
14491453
"unset" => Ok(Self::Unset),
14501454
_ => Err(crate::Error::conversion::<Self>(s.to_owned())),
14511455
}
@@ -1468,6 +1472,7 @@ impl ErrorCode {
14681472
Self::SymbolResolutionFailed => "symbol_resolution_failed",
14691473
Self::InvalidSubscription => "invalid_subscription",
14701474
Self::InternalError => "internal_error",
1475+
Self::SkippedRecordsAfterSlowReading => "skipped_records_after_slow_reading",
14711476
Self::Unset => "unset",
14721477
}
14731478
}

rust/dbn/src/python/enums.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1379,6 +1379,7 @@ impl ErrorCode {
13791379
Self::SymbolResolutionFailed => "SYMBOL_RESOLUTION_FAILED",
13801380
Self::InvalidSubscription => "INVALID_SUBSCRIPTION",
13811381
Self::InternalError => "INTERNAL_ERROR",
1382+
Self::SkippedRecordsAfterSlowReading => "SKIPPED_RECORDS_AFTER_SLOW_READING",
13821383
Self::Unset => "UNSET",
13831384
}
13841385
}

0 commit comments

Comments
 (0)