Skip to content

Commit

Permalink
Prepare for v0.0.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
bluk committed Sep 4, 2023
1 parent 5878213 commit 5d1c101
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
29 changes: 29 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# CHANGELOG

## [0.0.2]

### Changed

- Refactor `Passdata` constructors to create a new instance with a `Schema` or
an unchecked `Vec<u8>` and `Schema`.
- Use a single `Vec<u8>` to store data instead of multiple `Vec` or `BTreeMap`
instances. Allow easier serialization/deserialization.
- Use byte slices as a primitive value type instead of strings
Refactor `Constant` to use byte slice instead of a `Cow<'_, str>`.
- Make `AnyBool`, `AnyNum`, and `AnyStr` public
- Remove `ArrayLength` generic arguments in functions

### Added

- Add `Schema` for describing stored data
- Add `Passdata::into_inner` which returns the underlying byte vector which
stores the data.
- Add `contains_edb` and `query_only_one_edb` methods to `Passdata`
- Add `edb_iter` to iterate through declared facts. A `FactTerms` is the `Item`
returned which allows the constants to be filled in an existing buffer or a
new `Vec`.
- Add `predicates_iter` to iterate through predicates
- Implement `QueryResult` for non-tuple types which implement `QueryValue`
- Add `AnyConstant` as a possible `QueryValue`
- Implement `IntoArray` for `&[u8]`
- Derive `PartialEq` to error types

## [0.0.1]

### Added
Expand All @@ -9,4 +37,5 @@
[Unreleased]: https://github.com/bluk/passdata/compare/v0.1.0...HEAD
[0.2.0]: https://github.com/bluk/passdata/compare/v0.1.0...v0.2.0
[0.1.0]: https://github.com/bluk/passdata/releases/tag/v0.1.0
[0.0.2]: https://github.com/bluk/passdata/compare/v0.0.1...v0.0.2
[0.0.1]: https://github.com/bluk/passdata/releases/tag/v0.0.1
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ include = [
"src/**/*.rs",
"Cargo.toml",
"README.md",
"CHANGELOG.md",
"LICENSE-APACHE",
"LICENSE-MIT",
]
license = "MIT OR Apache-2.0"
name = "passdata"
repository = "https://github.com/bluk/passdata"
readme = "README.md"
version = "0.0.1"
version = "0.0.2"

[dependencies]
either = { version ="1.9.0", default-features = false }
Expand Down

0 comments on commit 5d1c101

Please sign in to comment.