You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+7
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,12 @@
1
1
# Changelog
2
2
3
+
## [0.1.1] - 2025-02-10
4
+
5
+
### Added
6
+
7
+
- Add `Leaf::is_unchanged` and `Leaf::is_modified` when the stored type is `Eq`.
8
+
- Add `BTreeMapDiff::is_unchanged`, `BTreeMapDiff::is_modified`, `BTreeMapDiff::get_unchanged`, `BTreeMapDiff::get_modified`, and similar methods for `HashMapDiff` when map values are `Eq`.
The [`Diffable`](https://docs.rs/daft/0.1.0/daft/diffable/trait.Diffable.html) trait can also be implemented manually for custom behavior.
352
+
The [`Diffable`](https://docs.rs/daft/0.1.1/daft/diffable/trait.Diffable.html) trait can also be implemented manually for custom behavior.
353
353
354
354
In general, most custom implementations will likely use one of the built-in
355
355
diff types directly.
@@ -378,7 +378,7 @@ impl Diffable for Identifier {
378
378
379
379
### Type and lifetime parameters
380
380
381
-
If a type parameter is specified, the [`Diffable`](https://docs.rs/daft-derive/0.1.0/daft_derive/derive.Diffable.html) derive
381
+
If a type parameter is specified, the [`Diffable`](https://docs.rs/daft-derive/0.1.1/daft_derive/derive.Diffable.html) derive
382
382
macro for structs normally requires that the type parameter implement
383
383
`Diffable`. This is not required if the field is annotated with
384
384
`#[daft(leaf)]`.
@@ -443,9 +443,9 @@ this crate and a great alternative. Daft diverges from diffus in a few ways:
443
443
In practice, we’ve found that diffing enums across different variants is less
444
444
useful than it first appears.
445
445
446
-
* Daft has the notion of a [`Leaf`](https://docs.rs/daft/0.1.0/daft/leaf/struct.Leaf.html) type, which represents an atomic unit.
447
-
(For example, the [`Diffable`](https://docs.rs/daft/0.1.0/daft/diffable/trait.Diffable.html) implementation for `i32` is a [`Leaf`](https://docs.rs/daft/0.1.0/daft/leaf/struct.Leaf.html).)
448
-
[`Leaf`](https://docs.rs/daft/0.1.0/daft/leaf/struct.Leaf.html)s are also used for enums, as well as in any other place where lazy
446
+
* Daft has the notion of a [`Leaf`](https://docs.rs/daft/0.1.1/daft/leaf/struct.Leaf.html) type, which represents an atomic unit.
447
+
(For example, the [`Diffable`](https://docs.rs/daft/0.1.1/daft/diffable/trait.Diffable.html) implementation for `i32` is a [`Leaf`](https://docs.rs/daft/0.1.1/daft/leaf/struct.Leaf.html).)
448
+
[`Leaf`](https://docs.rs/daft/0.1.1/daft/leaf/struct.Leaf.html)s are also used for enums, as well as in any other place where lazy
449
449
diffing is desired.
450
450
451
451
* Diffus has a `Same` trait, which is like `Eq` except it’s also implemented
0 commit comments