Skip to content

Commit ea2f2a5

Browse files
authored
VER: Release 0.28.0
2 parents 81020a7 + 0f73827 commit ea2f2a5

File tree

13 files changed

+27
-16
lines changed

13 files changed

+27
-16
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.28.0 - 2025-02-11
4+
5+
### Breaking changes
6+
- Added `CommoditySpot` `InstrumentClass` variant and made `InstrumentClass`
7+
non-exhaustive to allow future additions without breaking changes
8+
39
## 0.27.0 - 2025-01-21
410

511
### Breaking changes

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 <[email protected]>"]
1313
edition = "2021"
14-
version = "0.27.0"
14+
version = "0.28.0"
1515
documentation = "https://databento.com/docs"
1616
repository = "https://github.com/databento/dbn"
1717
license = "Apache-2.0"

python/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "databento-dbn"
3-
version = "0.27.0"
3+
version = "0.28.0"
44
description = "Python bindings for encoding and decoding Databento Binary Encoding (DBN)"
55
authors = ["Databento <[email protected]>"]
66
license = "Apache-2.0"
@@ -17,7 +17,7 @@ build-backend = "maturin"
1717

1818
[project]
1919
name = "databento-dbn"
20-
version = "0.27.0"
20+
version = "0.28.0"
2121
authors = [
2222
{ name = "Databento", email = "[email protected]" }
2323
]

python/python/databento_dbn/_lib.pyi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ class InstrumentClass(Enum):
129129
A spread composed of options.
130130
FX_SPOT
131131
A foreign exchange spot.
132+
COMMODITY_SPOT
133+
A commodity being traded for immediate delivery.
132134
133135
"""
134136

@@ -141,6 +143,7 @@ class InstrumentClass(Enum):
141143
FUTURE_SPREAD: str
142144
OPTION_SPREAD: str
143145
FX_SPOT: str
146+
COMMODITY_SPOT: str
144147

145148
@classmethod
146149
def from_str(cls, value: str) -> InstrumentClass: ...

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.27.0", default-features = false }
19+
dbn = { path = "../dbn", version = "=0.28.0", default-features = false }
2020

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

rust/dbn-cli/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ cargo install dbn-cli
1919

2020
## Usage
2121

22-
`dbn` currently supports CSV and JSON (technically [newline-delimited JSON](http://ndjson.org/))
23-
as output formats.
22+
`dbn` currently supports CSV and [JSON lines](https://jsonlines.org/) as output formats.
2423
By default, `dbn` outputs the result to standard output for ease of use with
2524
text-based command-line utilities.
2625
Running

rust/dbn-cli/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct Args {
5353
action = ArgAction::SetTrue,
5454
default_value = "false",
5555
group = "output_encoding",
56-
help = "Output the result as NDJSON (newline-delimited JSON)"
56+
help = "Output the result as JSON lines"
5757
)]
5858
pub json: bool,
5959
#[clap(

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.27.0", path = "../dbn-macros" }
28+
dbn-macros = { version = "=0.28.0", path = "../dbn-macros" }
2929

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

rust/dbn/src/encode/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Encoding of DBN records into newline-delimited JSON (ndjson).
1+
//! Encoding of DBN records into [JSON lines](https://jsonlines.org).
22
33
pub(crate) mod serialize;
44
mod sync;

0 commit comments

Comments
 (0)