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
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.3.0] - 2026-06-22

### Added
- **Symbol joining on `to_dataframe`.** `to_dataframe(store; symbols=true)` joins
the human-readable `raw_symbol` onto the frame as a `:symbol` column, resolved
Expand Down Expand Up @@ -47,6 +49,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
transient statuses (429/5xx) are retried as before (#31).

### Fixed
- **`User-Agent` now tracks the package version.** The default request
`User-Agent` was a hard-coded `DatabentoAPI.jl/0.2.0` that had to be bumped by
hand each release (and was already stale); it's now derived from
`pkgversion`, so it always matches the installed version.
- **Package precompiles cleanly again.** `src/store.jl` defined the internal
`_foreach_typed_tolerant` helper twice (an identical copy-paste), which made
the module fail precompilation on Julia 1.12+ with "Method overwriting is not
Expand Down Expand Up @@ -269,7 +275,8 @@ Initial public release. Registered in the General registry.
`ReconnectPolicy`, `JobState`, `SplitDuration`, `Packaging`, `Delivery`,
`SymbologyResolution`, `RollRule`, `SlowReaderBehavior`.

[Unreleased]: https://github.com/tbeason/DatabentoAPI.jl/compare/v0.2.0...HEAD
[Unreleased]: https://github.com/tbeason/DatabentoAPI.jl/compare/v0.3.0...HEAD
[0.3.0]: https://github.com/tbeason/DatabentoAPI.jl/compare/v0.2.0...v0.3.0
[0.2.0]: https://github.com/tbeason/DatabentoAPI.jl/compare/v0.1.2...v0.2.0
[0.1.2]: https://github.com/tbeason/DatabentoAPI.jl/compare/v0.1.1...v0.1.2
[0.1.1]: https://github.com/tbeason/DatabentoAPI.jl/compare/v0.1.0...v0.1.1
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "DatabentoAPI"
uuid = "feb0aed8-3291-460b-9688-521dcb17a4bf"
version = "0.2.0"
version = "0.3.0"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep the HTTP user agent in sync with the release version

With Project.toml publishing 0.3.0 here, the default Historical/Live clients still pick up USER_AGENT from src/http.jl, which is hard-coded to DatabentoAPI.jl/0.2.0 and used when callers do not override user_agent. In any 0.3.0 install, requests will therefore be mislabeled as 0.2.0, making server-side diagnostics and support/rate-limit analysis inaccurate; update that constant or derive it from the package version as part of the release bump.

Useful? React with 👍 / 👎.

authors = ["Tyler Beason <tbeas12@gmail.com>"]

[deps]
Expand Down
5 changes: 4 additions & 1 deletion src/http.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
const USER_AGENT = "DatabentoAPI.jl/0.2.0"
# Derived from the package version (Project.toml) so it can never drift out of
# sync with the release — `pkgversion` returns `nothing` only when the module
# isn't loaded as a package, in which case we fall back to a sentinel.
const USER_AGENT = "DatabentoAPI.jl/$(something(pkgversion(@__MODULE__), v"0.0.0"))"
# Read (inactivity) timeout. Long-range `timeseries.get_range` queries can
# spend minutes in server-side assembly (continuous-symbol resolution +
# day-partitioned scans) before the first byte streams, so this needs to be
Expand Down
Loading