2019-03-20 13:37:07 +00:00
|
|
|
# Change Log
|
|
|
|
|
2019-03-23 14:17:09 +00:00
|
|
|
## Unreleased
|
|
|
|
|
|
|
|
### Added
|
|
|
|
|
2019-03-27 17:09:20 +00:00
|
|
|
* Add the `ContextMut` trait, that is a manipulable configuration/context
|
2019-03-27 16:53:01 +00:00
|
|
|
* Add `ContextNotManipulable` error variant for the `EmptyContext`
|
2019-03-27 17:19:05 +00:00
|
|
|
* Make the `TupleType` alias public
|
|
|
|
* Add the `ValueType` enum that represents the type of a value for easier comparisons and matchings
|
|
|
|
* Add `EvalexprResult<T>` type that uses the `EvalexprError` type (renamed from `Error`)
|
2019-03-27 17:54:45 +00:00
|
|
|
* Add `Node::eval_number` and `Node::eval_number_with_context` to evaluate to int or float and silently converting to float
|
2019-03-27 17:59:06 +00:00
|
|
|
* Add `eval_number` and `eval_number_with_context` crate methods to evaluate to int or float and silently converting to float
|
2019-03-27 16:53:01 +00:00
|
|
|
|
2019-03-23 14:17:09 +00:00
|
|
|
### Removed
|
|
|
|
|
|
|
|
### Changed
|
|
|
|
|
2019-03-27 15:19:56 +00:00
|
|
|
* Get rid of some unwraps to improve safety
|
2019-03-27 17:19:05 +00:00
|
|
|
* Rename `Error` to `EvalexprError`
|
2019-03-27 17:09:20 +00:00
|
|
|
* Rename `Configuration` to `Context`
|
2019-03-27 16:53:01 +00:00
|
|
|
* Rename `HashMapConfiguration` to `HashMapContext` and `EmptyConfiguration` to `EmptyContext`
|
2019-03-27 17:45:33 +00:00
|
|
|
* Rename `Value::as_float` to `Value::as_number` and add new `Value::as_float` that fails if value is an integer
|
2019-03-27 15:19:56 +00:00
|
|
|
|
2019-03-23 14:17:09 +00:00
|
|
|
### Fixed
|
|
|
|
|
|
|
|
### Deprecated
|
|
|
|
|
2019-03-23 14:15:48 +00:00
|
|
|
## [1.2.0](https://github.com/ISibboI/evalexpr/compare/1.1.0...1.2.0) - 2019-03-23
|
2019-03-21 10:45:58 +00:00
|
|
|
|
2019-03-20 15:43:06 +00:00
|
|
|
### Added
|
|
|
|
|
2019-03-23 10:46:52 +00:00
|
|
|
* Add `serde` feature
|
2019-03-23 13:20:43 +00:00
|
|
|
* Implement `serde::de::Deserialize` for `Node`
|
|
|
|
* Document `serde` usage
|
2019-03-23 13:30:54 +00:00
|
|
|
* Add custom error type with a `String` message
|
2019-03-23 10:46:52 +00:00
|
|
|
|
2019-03-20 15:43:06 +00:00
|
|
|
### Changed
|
|
|
|
|
2019-03-23 14:15:48 +00:00
|
|
|
* Highlighting in documentation
|
2019-03-20 15:43:06 +00:00
|
|
|
|
|
|
|
## [1.1.0](https://github.com/ISibboI/evalexpr/compare/1.0.0...1.1.0) - 2019-03-20
|
2019-03-20 13:37:07 +00:00
|
|
|
|
|
|
|
### Added
|
|
|
|
|
2019-03-20 15:09:16 +00:00
|
|
|
* Internal aliases `IntType` and `FloatType` used by the `Value` enum are now public
|
2019-03-20 14:39:27 +00:00
|
|
|
* Type alias `TupleType` used to represent tuples was added
|
2019-03-20 15:09:16 +00:00
|
|
|
* Error types like `Error::ExpectedInt` for expecting each value type were added
|
|
|
|
* Shortcut functions like `eval_int` or `eval_int_with_configuration` to evaluate directly into a value type were added
|
|
|
|
* Documentation for the shortcut functions was added
|
2019-03-20 15:43:06 +00:00
|
|
|
* Functions to decompose `Value`s were added and documented
|
2019-03-20 14:18:52 +00:00
|
|
|
|
2019-03-20 13:37:07 +00:00
|
|
|
### Removed
|
|
|
|
|
2019-03-20 14:39:27 +00:00
|
|
|
* Integration tests were removed from shipped crate
|
2019-03-20 13:47:33 +00:00
|
|
|
|
2019-03-20 13:37:07 +00:00
|
|
|
### Fixed
|
|
|
|
|
2019-03-20 14:39:27 +00:00
|
|
|
* Wording of some documentation items was changed to improve readability
|
2019-03-20 13:37:07 +00:00
|
|
|
|
|
|
|
## [1.0.0](https://github.com/ISibboI/evalexpr/tree/1.0.0) - 2019-03-20
|
|
|
|
|
|
|
|
* First stable release
|