Releases: disintegrate-es/disintegrate
Releases · disintegrate-es/disintegrate
v4.0.0
What's Changed
- Postgres serializable isolation level by @valerio-iachini @luca-iachini in #231
If you are upgrading from Disintegrate v3 to v4, you must migrate the database schema before starting the new version.
Use the provided Migrator utility:
use disintegrate_postgres::Migrator;
let migrator = Migrator::new(event_store.clone());
migrator.migrate_v3_x_x_to_v4_0_0().await?;This updates the database to the schema required by v4.
After verifying that the migration completed successfully and your application runs correctly, you can manually remove the obsolete objects:
Functions:
event_store_begin_epochevent_store_current_epoch
Table:event_sequence
Full Changelog: v3.0.0...v4.0.0
v3.0.0
What's Changed
- Bump sqlx from 0.8.3 to 0.8.6 by @dependabot[bot] in #209
- Bump tokio-util from 0.7.13 to 0.7.16 by @dependabot[bot] in #215
- Bump tokio from 1.45.1 to 1.47.1 by @dependabot[bot] in #214
- Change index type from HASH to BTREE for event_type by @matchish in #224
- Disintegrate v3.0.0 by @luca-iachini in #225
New Contributors
Full Changelog: V2.1.0...v3.0.0
V2.1.0
What's Changed
- fix: Append without validation concurrency check by @valerio-iachini in #166
- Add MessagePack support for serialisation and deserialisation by @ChristophRauch in #175
- Re-export messagepack by @valerio-iachini in #176
- Bump sqlx from 0.8.2 to 0.8.3 by @dependabot in #169
- Bump rust_decimal from 1.36.0 to 1.37.1 by @dependabot in #179
- Bump async-trait from 0.1.83 to 0.1.88 by @dependabot in #178
- Bump uuid from 1.11.0 to 1.16.0 by @dependabot in #177
- fix: make ci run on pr by @luca-iachini in #185
- Add a function
then_assertfor supporting complex assertions. by @gmkumar2005 in #184 - fix: clippy warnings by @luca-iachini in #186
- Bump serde_json from 1.0.138 to 1.0.140 by @dependabot in #180
- Documentation update concurrency page by @gmkumar2005 in #191
- Added FAQ Page under documentation by @gmkumar2005 in #190
- Event listener doc updates by @gmkumar2005 in #195
- Fix ci trigger by @luca-iachini in #197
- Clippy fixes by @luca-iachini in #200
- Bump tokio from 1.43.0 to 1.45.1 by @dependabot in #198
- Bump tower from 0.4.13 to 0.5.1 by @dependabot in #181
- Bump actix-web from 4.9.0 to 4.11.0 by @dependabot in #201
- Bump apache-avro from 0.16.0 to 0.17.0 by @dependabot in #168
- Bump tracing-subscriber from 0.3.18 to 0.3.19 by @dependabot in #170
- Bump tonic-reflection from 0.12.3 to 0.13.1 by @dependabot in #192
- Bump tonic-build from 0.12.3 to 0.13.1 by @dependabot in #202
- fix: add events insert transaction by @luca-iachini in #206
- bump version to 2.1.0 by @luca-iachini in #207
New Contributors
- @ChristophRauch made their first contribution in #175
- @gmkumar2005 made their first contribution in #184
Full Changelog: V2.0.0...V2.1.0
V2.0.0
What's Changed
- Fix courses read model by @luca-iachini in #129
- Stop event listener when a shutdown occurres. by @luca-iachini in #130
- Refactor state store by @luca-iachini in #131
- Bump tokio from 1.40.0 to 1.42.0 by @dependabot in #137
- Allow Creation of Postgres Components Without Database Initialization by @luca-iachini in #139
- Bump tokio-util from 0.7.12 to 0.7.13 by @dependabot in #136
- Bump protobuf from 3.6.0 to 3.7.1 by @dependabot in #135
- Add Id Indexer by @luca-iachini in #153
- Show feature gated docs by @valerio-iachini in #154
- Bump serde_json from 1.0.128 to 1.0.138 by @dependabot in #151
- Bump tracing from 0.1.40 to 0.1.41 by @dependabot in #133
- Bump thiserror from 1.0.64 to 2.0.11 by @dependabot in #146
- Bump serde from 1.0.210 to 1.0.217 by @dependabot in #145
- Bump tonic-build from 0.11.0 to 0.12.3 by @dependabot in #148
- Append without validation by @valerio-iachini in #155
- issue-161: add Send + Sync requirement to PgEventListener.executors by @dmrolfs in #163
- fix: events stream for highly concurrent environments by @luca-iachini in #164
- Bump prost from 0.13.3 to 0.13.5 by @dependabot in #162
- Bump regex from 1.11.0 to 1.11.1 by @dependabot in #156
- Bump quote from 1.0.37 to 1.0.38 by @dependabot in #159
- Bump tokio from 1.42.0 to 1.43.0 by @dependabot in #157
- Bump mockall from 0.12.1 to 0.13.1 by @dependabot in #158
- fix missing tokio dep by @valerio-iachini in #165
New Contributors
Full Changelog: v1.0.0...V2.0.0
v1.0.0
What's Changed
PgListener: Added PgListener to enable real-time event handling by invoking thePgEventListenerwhenever an event occurs.- Generic Event ID: Added a generic type for event IDs, allowing the backend to use a custom ID type instead of the default
i64. - Sparse Hash Index for Identifiers: We replaced the B-tree index with a sparse hash index for domain identifiers, improving memory efficiency and query performance. The old schema continues to work as expected, but to use the new index, drop the current index on the domain identifier columns.
- State Store API refactor: The
StateStoreAPI now directly accepts aStreamQuery - Stream Query simplification: now the
StreamQueryis a list ofStreamFilters combined with "OR" logic. EachStreamFilterdefines both the queried events and the domain identifiers:- Domain identifiers are combined with "AND".
- Events that do not have the specified domain identifiers defined in the query are returned.
- If an event contains a subset of the specified domain identifiers, only those identifiers must match.
Full Changelog: v0.8.0...v1.0.0
v0.8.0
What's Changed
- Remove postgres module in the Courses example by @luca-iachini in #76
- Rename attribute
#[group]to#[stream]by @luca-iachini in #83 - Bump thiserror from 1.0.57 to 1.0.58 by @dependabot in #79
- Bump proc-macro2 from 1.0.78 to 1.0.80 by @dependabot in #85
- Bump async-trait from 0.1.77 to 0.1.80 by @dependabot in #84
- Bump proc-macro2 from 1.0.78 to 1.0.81 by @dependabot in #86
- Bump sqlx from 0.7.3 to 0.7.4 by @dependabot in #80
- Bump heck from 0.4.1 to 0.5.0 by @dependabot in #78
- Bump version to 0.8.0 by @luca-iachini in #87
Full Changelog: v0.7.3...v0.8.0
v0.7.3
What's Changed
- Bump uuid from 1.6.1 to 1.7.0 by @dependabot in #55
- Bump anyhow from 1.0.71 to 1.0.79 by @dependabot in #54
- Bump mockall from 0.11.4 to 0.12.1 by @dependabot in #56
- Bump serde from 1.0.193 to 1.0.196 by @dependabot in #53
- Bump rust_decimal from 1.33.1 to 1.34.3 by @dependabot in #60
- Bump serde_json from 1.0.108 to 1.0.113 by @dependabot in #58
- Bump proc-macro2 from 1.0.75 to 1.0.78 by @dependabot in #57
- Bump tonic-reflection from 0.10.2 to 0.11.0 by @dependabot in #59
- Bump thiserror from 1.0.56 to 1.0.57 by @dependabot in #64
- Bump syn from 2.0.48 to 2.0.49 by @dependabot in #62
- Bump tonic-build from 0.10.2 to 0.11.0 by @dependabot in #61
- Bump apache-avro from 0.14.0 to 0.16.0 by @dependabot in #63
- Bump tower-http from 0.4.4 to 0.5.1 by @dependabot in #51
- Add badges by @valerio-iachini in #69
- Add support to boxed events by @luca-iachini in #72
- Bump syn from 2.0.50 to 2.0.52 by @dependabot in #71
- Bump assert2 from 0.3.13 to 0.3.14 by @dependabot in #70
- Add tracing to courses example by @luca-iachini in #73
- Bump protobuf from 3.3.0 to 3.4.0 by @dependabot in #68
- Bump tower-http from 0.5.1 to 0.5.2 by @dependabot in #65
- Add event listener double delivery check to the Courses example by @luca-iachini in #74
- Bump version to 0.7.3 by @luca-iachini in #75
Full Changelog: v0.7.2...v0.7.3
v0.7.2
What's Changed
- Improve errors by @valerio-iachini in #52
- Bump async-trait from 0.1.74 to 0.1.77 by @dependabot in #50
- Bump syn from 2.0.47 to 2.0.48 by @dependabot in #49
- Bump futures from 0.3.29 to 0.3.30 by @dependabot in #47
Full Changelog: v0.7.1...v0.7.2
v0.7.1
v0.7.0
What's Changed
- Add support for different domain identifier types by @valerio-iachini in #41
- Bump tonic-build from 0.9.2 to 0.10.2 by @dependabot in #32
- Bump thiserror from 1.0.50 to 1.0.55 by @dependabot in #42
- Bump regex from 1.9.4 to 1.10.2 by @dependabot in #31
- Bump thiserror from 1.0.55 to 1.0.56 by @dependabot in #43
- Bump tokio from 1.29.1 to 1.35.1 by @dependabot in #35
- update banking example by @valerio-iachini in #44
Full Changelog: v0.6.0...v0.7.0