Skip to content

Commit 97de81d

Browse files
committed
Undo whitespace changes.
1 parent 4ccddf6 commit 97de81d

File tree

1 file changed

+4
-61
lines changed

1 file changed

+4
-61
lines changed

jvm/CHANGELOG.md

Lines changed: 4 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# Changelog
2-
32
Changelog for the selfie JVM libraries.
43

54
- [`com.diffplug.selfie:selfie-lib:VERSION`](https://central.sonatype.com/artifact/com.diffplug.selfie/selfie-lib)
@@ -8,13 +7,11 @@ Changelog for the selfie JVM libraries.
87
- works with Kotest JVM
98
- [`com.diffplug.selfie:selfie-runner-kotest:VERSION`](https://central.sonatype.com/artifact/com.diffplug.selfie/selfie-runner-kotest)
109
- written in Kotlin Multiplatform
11-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
12-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
10+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
11+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
1312

1413
## [Unreleased]
15-
1614
### Added
17-
1815
- Snapshot mismatch error messages now show a diff of the first mismatched line. ([#477](https://github.com/diffplug/selfie/pull/477))
1916
- before
2017
```
@@ -32,178 +29,124 @@ Changelog for the selfie JVM libraries.
3229
```
3330
3431
## [2.3.0] - 2024-07-11
35-
3632
### Added
37-
3833
- `DiskSelfie` now makes the `Snapshot actual` value public, so that other testing infrastructure can read from snapshotted values. ([#467](https://github.com/diffplug/selfie/pull/467))
39-
4034
### Fixed
41-
4235
- `cacheSelfie` was missing `@JvmOverloads` on the methods with default arguments. ([#425](https://github.com/diffplug/selfie/pull/425))
4336
4437
## [2.2.1] - 2024-06-05
45-
4638
### Fixed
47-
4839
- Added `Selfie.expectSelfies(Iterable<T> items, Function<T, String> toString)` for doing easy "multi-asserts" in `suspend fun` also. ([#421](https://github.com/diffplug/selfie/pull/421))
4940
5041
## [2.2.0] - 2024-06-04
51-
5242
### Added
53-
5443
- `SelfieSettingsAPI` now has a field `javaDontUseTripleQuoteLiterals` which ensures that multiline strings are always encoded as `"` strings. ([#417](https://github.com/diffplug/selfie/pull/417))
5544
5645
## [2.1.0] - 2024-06-03
57-
5846
### Added
59-
6047
- Added `Selfie.expectSelfies(Iterable<T> items, Function<T, String> toString)` for doing easy "multi-asserts". ([#416](https://github.com/diffplug/selfie/pull/416))
6148
- For java versions which don't support multiline string literals, we now encode multiline strings like so: ([#406](https://github.com/diffplug/selfie/pull/406))
6249
- ```java
6350
toBe("line1",
6451
"line2",
6552
"line3");
6653
```
67-
6854
### Changed
69-
7055
- Bump Kotlin to 2.0.0. ([#405](https://github.com/diffplug/selfie/pull/405))
71-
7256
### Fixed
73-
7457
- Do not remove stale snapshot files when readonly is true. ([#367](https://github.com/diffplug/selfie/pull/367))
7558
- Provide more debugging info when a snapshot gets set multiple times. (helps with [#370](https://github.com/diffplug/selfie/issues/370))
7659
7760
## [2.0.2] - 2024-03-20
78-
7961
### Fixed
80-
8162
- `toBeFile` now checks for duplicate writes and throws a more helpful error message if the file doesn't exist. ([#277](https://github.com/diffplug/selfie/pull/277))
8263
8364
## [2.0.1] - 2024-02-24
84-
8565
### Fixed
86-
8766
- The `coroutines` methods used to eagerly throw an exception if they were ever called from anywhere besides a Kotest method. Now they wait until `toMatchDisk()` is called, because they can work just fine anywhere if you use `toBe`. ([#247](https://github.com/diffplug/selfie/pull/247))
8867
8968
## [2.0.0] - 2024-02-21
90-
9169
### Added
92-
9370
- **Memoization** ([#219](https://github.com/diffplug/selfie/pull/219) implements [#215](https://github.com/diffplug/selfie/issues/215))
94-
- like `expectSelfie`, all are available as `Selfie.cacheSelfie` or as `suspend fun` in `com.diffplug.selfie.coroutines`.
95-
71+
- like `expectSelfie`, all are available as `Selfie.cacheSelfie` or as `suspend fun` in `com.diffplug.selfie.coroutines`.
9672
```kotlin
9773
val cachedResult: ByteArray = Selfie.cacheSelfieBinary { dalleJpeg() }.toBeFile("example.jpg")
9874
val cachedResult: String = Selfie.cacheSelfie { someString() }.toBe("what it was earlier")
9975
val cachedResult: T = Selfie.cacheSelfieJson { anyKotlinxSerializable() }.toBe("""{"key": "value"}""")
10076
val cachedResult: T = Selfie.cacheSelfieBinarySerializable { anyJavaIoSerializable() }.toMatchDisk()
10177
```
102-
10378
- `toBeBase64` and `toBeFile` for true binary comparison of binary snapshots and facets. ([#224](https://github.com/diffplug/selfie/pull/224))
10479
- spaces in multiline string literals aren't always escaped. ([#220](https://github.com/diffplug/selfie/issues/220))
10580
- if the leading spaces in the string literal match the file's existing indentation
106-
10781
### Changed
108-
10982
- **BREAKING** reordered a class hierarchy for better binary support. ([#221](https://github.com/diffplug/selfie/issues/221))
11083
- most users won't need to make any changes at all
11184
- only exception is that `expectSelfie(byte[]).toBe` is now a compile error, must do `toBeBase64`
11285

11386
## [1.2.0] - 2024-02-12
114-
11587
### Added
116-
11788
- **Kotest support**.
11889
- Add `SelfieExtension` to your `AbstractProjectConfig`.
11990
- Instead of calling `Selfie.expectSelfie`, call `com.diffplug.selfie.coroutines.expectSelfie`.
12091
- `selfie-runner-junit5` supports snapshots in regular JUnit tests and Kotest tests in the same project.
12192
- `selfie-runner-kotest` is a new selfie implemented in Kotlin Multiplatform, but doesn't support snapshots within regular JUnit tests.
12293
- Full docs at https://selfie.dev/jvm/kotest.
123-
12494
### Fixed
125-
12695
- Swap thread-local cache for thread-ignorant LRU to improve performance when used with coroutines. ([#191](https://github.com/diffplug/selfie/pull/191))
127-
12896
### Changes
129-
13097
- (no user-facing changes) replaced terrible platform-specific `Path` with `TypedPath`. ([#184](https://github.com/diffplug/selfie/pull/184))
13198
- (no user-facing changes) replaced `SnapshotStorage` with `SnapshotSystem` + `DiskStorage`. ([#198](https://github.com/diffplug/selfie/pull/198))
13299
- (no user-facing changes) replaced most `synchronized` with CAS. ([#199](https://github.com/diffplug/selfie/pull/199))
133100

134101
## [1.1.2] - 2024-01-30
135-
136102
### Fixed
137-
138103
- `@ParameterizedTest` no longer has. ([#140](https://github.com/diffplug/selfie/issues/140))
139104
- If a test class contained package-private methods and a single test method was run without the others, selfie would erroneously garbage collect disk snapshots for the other methods, now fixed. ([#175](https://github.com/diffplug/selfie/pull/175) fixes [#174](https://github.com/diffplug/selfie/issues/174))
140105

141106
## [1.1.1] - 2024-01-25
142-
143107
### Fixed
144-
145108
- Selfie was erroneously garbage collecting snapshots when a test class contained no `@Test public` methods. ([#124](https://github.com/diffplug/selfie/pull/124) fixes [#123](https://github.com/diffplug/selfie/issues/123))
146109

147110
## [1.1.0] - 2024-01-21
148-
149111
### Added
150-
151112
- Support for `@ParameterizedTest`. ([#118](https://github.com/diffplug/selfie/pull/118))
152113
- `ArraySet<K>` has been added to the standard library alongside `ArrayMap<K, V>`. ([#119](https://github.com/diffplug/selfie/pull/119))
153114
- These have the strange property that if the key is `String`, then `/` characters are sorted to be the lowest possible character.
154-
155115
### Fixed
156-
157116
- We already [smuggle errors from initialization](https://github.com/diffplug/selfie/pull/94) to help debug them, and now we also smuggle errors that happen during test execution. ([#117](https://github.com/diffplug/selfie/pull/117))
158117
- Fix a garbage collection bug which occurred when a test method's name was a prefix of another test method's name. ([#119](https://github.com/diffplug/selfie/pull/119))
159118

160119
## [1.0.1] - 2024-01-19
161-
162120
### Fixed
163-
164121
- Fix `CompoundLens` for Java users.
165122

166123
## [1.0.0] - 2024-01-18
167-
168124
### Added
169-
170125
- Full support for binary snapshots. ([#108](https://github.com/diffplug/selfie/pull/108))
171-
172126
### Fixed
173-
174127
- Groovy multiline string values just go into `"` strings instead of `"""` until we have a chance to implement them properly. ([#107](https://github.com/diffplug/selfie/pull/107))
175128

176129
## [0.3.0] - 2024-01-17
177-
178130
### Added
179-
180131
- `toBe("mismatched")` now gets rewritten in write mode
181132
- fully implemented the new control scheme ([#74](https://github.com/diffplug/selfie/issues/74))
182133
- integers get `_` separators for thousands, millions, etc
183-
184134
### Known broken
185-
186135
- Groovy multiline strings
187136
- Binary
188137

189138
## [0.2.0] - 2023-12-27
190-
191139
### Added
192-
193140
- `DiskSelfie.toMatchDisk` now returns `DiskSelfie` so that we can fluently chain inline assertions on facets.
194141

195142
## [0.1.3] - 2023-12-26
196-
197-
- Publish `selfie-lib-jvm` _and_ `selfie-lib` to Maven Central.
143+
- Publish `selfie-lib-jvm` *and* `selfie-lib` to Maven Central.
198144

199145
## [0.1.2] - 2023-12-26
200-
201146
- Publish `selfie-lib-jvm` instead of just `selfie-lib` to Maven Central.
202147

203148
## [0.1.1] - 2023-12-24
204-
205149
- Initial release, take 2.
206150

207151
## [0.1.0] - 2023-12-24
208-
209152
- Initial release.

0 commit comments

Comments
 (0)