Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

Commit 3a334da

Browse files
committed
Update changelog.
1 parent 7efed42 commit 3a334da

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jvm/CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
- **Memoization** ([#219](https://github.com/diffplug/selfie/pull/219) implements [#215](https://github.com/diffplug/selfie/issues/215))
1616
- like `expectSelfie`, all are available as `Selfie.memoize` or as `suspend fun` in `com.diffplug.selfie.coroutines`.
1717
```kotlin
18-
val cachedResult: ByteArray = Selfie.memoizeBinary { dalleJpeg() }.toBePath("example.jpg")
18+
val cachedResult: ByteArray = Selfie.memoizeBinary { dalleJpeg() }.toBeFile("example.jpg")
1919
val cachedResult: String = Selfie.memoize { someString() }.toBe("what it was earlier")
2020
val cachedResult: T = Selfie.memoizeAsJson { anyKotlinxSerializable() }.toBe("""{"key": "value"}""")
2121
val cachedResult: T = Selfie.memoizeBinarySerializable { anyJavaIoSerializable() }.toMatchDisk()
2222
```
23+
- `toBeBase64` and `toBeFile` for true binary comparison of binary snapshots and facets. ([#224](https://github.com/diffplug/selfie/pull/224))
24+
### Changed
25+
- **BREAKING** reordered a class hierarchy for better binary support. ([#221](https://github.com/diffplug/selfie/issues/221))
26+
- most users won't need to make any changes at all
27+
- only exception is that `expectSelfie(byte[]).toBe` is now a compile error, must do `toBeBase64`
2328

2429
## [1.2.0] - 2024-02-12
2530
### Added

0 commit comments

Comments
 (0)