Skip to content

Commit

Permalink
update deps + release 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Karn committed Dec 29, 2023
1 parent 6f38202 commit 742a3a7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [1.0.0] - 2023-12-29
### Changed
- Updated deps.
- Releasing 1.0.0.

## [0.12.0] - 2023-06-17
### Changed
- Function signature of custom coercions to allow parsing more complex coercions types such as substr.
Expand Down Expand Up @@ -120,7 +125,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial release.

[Unreleased]: https://github.com/rust-playground/ksql/compare/v0.12.0...HEAD
[Unreleased]: https://github.com/rust-playground/ksql/compare/v1.0.0...HEAD
[1.0.0]: https://github.com/rust-playground/ksql/compare/v0.12.0...v1.0.0
[0.12.0]: https://github.com/rust-playground/ksql/compare/v0.11.0...v0.12.0
[0.11.0]: https://github.com/rust-playground/ksql/compare/v0.10.0...v0.11.0
[0.10.0]: https://github.com/rust-playground/ksql/compare/v0.9.1...v0.10.0
Expand Down
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "ksql"
description = "A JSON data expression lexer, parser, cli and library"
version = "0.12.0"
version = "1.0.0"
edition = "2021"
license = "MIT OR Apache-2.0"
readme = "README.md"
Expand All @@ -17,13 +17,13 @@ keywords = [

[dependencies]
anydate = "0.3.0"
anyhow = "1.0.71"
chrono = { version = "0.4.26", features = ["serde"] }
clap = { version = "4.3.0", features = ["derive"] }
anyhow = "1.0.75"
chrono = { version = "0.4.31", features = ["serde"] }
clap = { version = "4.4.7", features = ["derive"] }
gjson = "0.8.1"
serde = { version = "1.0.163", features = ["derive"] }
serde_json = "1.0.96"
thiserror = "1.0.40"
serde = { version = "1.0.192", features = ["derive"] }
serde_json = "1.0.108"
thiserror = "1.0.50"

[dev-dependencies]
criterion = { version = "0.5.1", features = ["html_reports"] }
Expand Down
4 changes: 3 additions & 1 deletion src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,9 @@ impl Expression for COERCENumber {
)),
Value::Number(num) => Ok(Value::Number(num)),
Value::Bool(b) => Ok(Value::Number(if b { 1.0 } else { 0.0 })),
Value::DateTime(dt) => Ok(Value::Number(dt.timestamp_nanos() as f64)),
Value::DateTime(dt) => Ok(Value::Number(
dt.timestamp_nanos_opt().unwrap_or_default() as f64
)),
_ => Err(Error::UnsupportedCOERCE(
format!("{value} COERCE datetime",),
)),
Expand Down

0 comments on commit 742a3a7

Please sign in to comment.