Skip to content

Commit

Permalink
make event ID creation deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Aug 24, 2023
1 parent 5db9c38 commit c17a091
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
This list is not intended to be all-encompassing - it will document major and breaking API
changes with their rationale when appropriate. Given version `A.B.C.D`, breaking changes are to be expected in version number increments where changes in the `A` or `B` sections:

### v5.1.6.0
- **http4k-connect-*** - Upgrade dependencies.
- **http4k-connect-**** - Make generation of IDs more deterministic

### v5.1.5.0
- **http4k-connect-*** - Upgrade dependencies.
- **http4k-connect-cognito-**** - Add ConfirmForgottenPassword. H/T @dmcg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fun AmazonJsonFake.putEvents(events: Storage<List<Event>>) = route<PutEvents> {
events[bus.value] = (events[bus.value] ?: listOf()) + new
new.map {
EventResult(
EventId.of(UUID.nameUUIDFromBytes(it.toString().toByteArray()).toString()),
EventId.of(UUID(0, events.keySet().size.toLong()).toString()),
null, null
)
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ pluginManagement {
}

plugins {
id("de.fayard.refreshVersions").version("0.60.0")
id("de.fayard.refreshVersions").version("0.60.1")
}

refreshVersions {
Expand Down
6 changes: 3 additions & 3 deletions versions.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#### Dependencies and Plugin versions with their available updates.
#### Generated by `./gradlew refreshVersions` version 0.60.0
#### Generated by `./gradlew refreshVersions` version 0.60.1
####
#### Don't manually edit or split the comments that start with four hashtags (####),
#### they will be overwritten by refreshVersions.
Expand All @@ -13,7 +13,7 @@ plugin.com.github.kt3k.coveralls=2.12.2

plugin.com.google.devtools.ksp=1.9.0-1.0.13

plugin.de.fayard.buildSrcLibs=0.60.0
plugin.de.fayard.buildSrcLibs=0.60.1

plugin.com.github.davidmc24.gradle.plugin.avro=1.8.0

Expand Down Expand Up @@ -64,6 +64,6 @@ version.se.ansman.kotshi..api=2.13.1

version.se.ansman.kotshi..compiler=2.13.1

version.software.amazon.awssdk..bom=2.20.132
version.software.amazon.awssdk..bom=2.20.133

version.com.nimbusds..nimbus-jose-jwt=9.31

0 comments on commit c17a091

Please sign in to comment.