castore icon indicating copy to clipboard operation
castore copied to clipboard

Making Event Sourcing easy 😎

Results 25 castore issues
Sort by recently updated
recently updated
newest added

**Describe the bug** When using a ConnectedEventStore that is connected to a message bus, the message bus does not receive events that are created via the `EventStore.pushEventGroup` method. This seems...

The command exemple ```ts import { Command, tuple } from '@castore/core'; import { pokemonsEventStore, trainersEventStore } from './stores'; type Input = { name: string; level: number }; type Output =...

**Describe the bug** If you provide a schema for the command-zod output, it won't type the actual returned by the handler's value. This is because the OUTPUT type is inferred...

**I'm always frustrated when** I've to denormalize something in my code for instance: ```typescript import { EventType } from '@castore/core'; const pokemonAppearedEventType = new EventType< 'POKEMON_APPEARED', { name: string; level:...

# Description đŸĻĢ Add snapshot capabilities : ```ts export const pokemonsEventStoreWithSnapshot = new EventStore({ eventStoreId: 'POKEMONS', eventTypes: [pokemonAppearedEvent, pokemonCaughtEvent, pokemonLeveledUpEvent], reducer: pokemonsReducer, eventStorageAdapter: eventStorageAdapterMock, snapshotConfig: { currentReducerVersion: 'v1.0.0', shouldSaveSnapshot: createShouldSaveForRecurentSnapshots(5),...