Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Releases: gustavopch/firebase-event-sourcing

v1.0.0-alpha.14

11 Aug 21:35
Compare
Choose a tag to compare
v1.0.0-alpha.14 Pre-release
Pre-release

1.0.0-alpha.14 (2021-08-11)

Bug Fixes

  • dist entries pointing to wrong path (6dd029b)
  • remove types from global scope to prevent leaking them (65b22ea)
  • wrong return type in Client#dispatch (aad0636)

Features

  • add prefix to flow and view types (0515df1)
  • add TAppDefinition type param to App (dd8a140)
  • add timestamp to CommandMetadata (ac6911c)
  • add withScope method to LoggerService (7e46a5c)
  • bring projection persistence code into the lib (7f91392)
  • change AggregateService#get to allow getting multiple (87aeb1b)
  • change dispatch signature for a better auto-complete (0ee6ad6)
  • create new ProjectionsService (d7544a4)
  • define events through type params in ViewDefinition and FlowDefinition (a811767)
  • explicitly define collection name in ViewDefinition (48ee92e)
  • export new Context type (ab97c48)
  • implement generateId util (3bb9dcd)
  • implement LoggerService (8a1cdcf)
  • implement view reactions (19a76e1)
  • include metadata to commands passed to the handler (55a0ab1)
  • let projection handler return array (fcac920)
  • let projection handlers delete documents (7c2359f)
  • let userland services be accessed through the context (76a1fa5)
  • make IP and user agent non-optional in ClientInfo (ffb3733)
  • make metadata non-optional in app.dispatch() (28f9701)
  • make metadata optional in App#dispatch (1fed69c)
  • move user ID out of ClientInfo and make it non-nullable (3d11d57)
  • pass aggregate to handlers instead of its state only (9f6a32d)
  • pass context with logger and userland services to flow handlers (356ce08)
  • pass different contexts for both commands and projections (4170572)
  • remove the concept of a context (b4cc65a)
  • split AggregatesService#get into get and getAll (58a863f)
  • stop using transaction in runProjections as it's not needed (594cc7d)
  • use firebase.firestore.Timestamp in timestamp fields (2abad63)

v1.0.0-alpha.13

22 Oct 22:45
Compare
Choose a tag to compare
v1.0.0-alpha.13 Pre-release
Pre-release

1.0.0-alpha.13 (2020-10-22)

Features

  • allow passing string[] and null to AggregateService#exists (3aa1aa4)
  • let CommandHandler return a promise (917e1eb)

v1.0.0-alpha.12

21 Oct 19:04
Compare
Choose a tag to compare
v1.0.0-alpha.12 Pre-release
Pre-release

1.0.0-alpha.12 (2020-10-21)

Features

  • add CommandCreationProps, CommandPreset, etc. helper types (355df8e)
  • expose Aggregate and AggregateState types (dc1a69d)
  • implement API key authorization (d5a87c9)
  • let CommandHandler generate multiple events (39067ae)
  • let EventHandler return partial state (377ecc7)
  • let receive command with metadata in /commands (9b18525)
  • pass null state to CommandHandler when aggregate doesn't exist (e7ea3af)

v1.0.0-alpha.11

05 Oct 14:25
Compare
Choose a tag to compare
v1.0.0-alpha.11 Pre-release
Pre-release

1.0.0-alpha.11 (2020-10-05)

Features

  • create new AggregatesService and pass to command handler (b193ab4)
  • pass services object as second param to ReactionHandler (624e555)
  • pass state param to command handler (0178f96)
  • rename baseUrl config to functionsUrl (41bbe46)
  • reorder type params in CommandDefinition and EventDefinition (e2f7cf5)

v1.0.0-alpha.10

04 Oct 19:16
Compare
Choose a tag to compare
v1.0.0-alpha.10 Pre-release
Pre-release

1.0.0-alpha.10 (2020-10-04)

Bug Fixes

  • wrong type for data param in Client#dispatch (e46ed10)
  • wrong URL being used in Client (962f45a)

Features

  • add firebaseApp param to createClient (5e94e4d)
  • improve error messages in validateFirebaseIdToken middleware (decc087)
  • split entries to improve how/when dependencies are loaded (52fd3ce)

v1.0.0-alpha.9

03 Oct 18:43
Compare
Choose a tag to compare
v1.0.0-alpha.9 Pre-release
Pre-release

1.0.0-alpha.9 (2020-10-03)

Features

  • add getInitialState to AggregateDefinition (1c17c17)

v1.0.0-alpha.8

03 Oct 17:02
Compare
Choose a tag to compare
v1.0.0-alpha.8 Pre-release
Pre-release

1.0.0-alpha.8 (2020-10-03)

Features

  • expose createApplication (a9f6bc6)
  • improve log messages (82e10da)
  • pass state param to event handler (1d5c338)
  • rename aggregateId to only id in Aggregate (9234541)
  • rename Application to App to follow Firebase naming convention (b9fc7ec)
  • rename snapshots to aggregates (54303e5)

v1.0.0-alpha.7

02 Oct 18:47
Compare
Choose a tag to compare
v1.0.0-alpha.7 Pre-release
Pre-release

1.0.0-alpha.7 (2020-10-02)

Features

  • make isAuthorized optional in CommandDefinition (5338f41)
  • rename runCommand to dispatch in FlowService (e19a41d)
  • rename sendCommand to dispatch in Client (9025223)
  • stop exposing handler types (9a1226d)

v1.0.0-alpha.6

02 Oct 15:00
Compare
Choose a tag to compare
v1.0.0-alpha.6 Pre-release
Pre-release

1.0.0-alpha.6 (2020-10-02)

Bug Fixes

  • use 'export type' to export types in src/index.ts (736c222)

v1.0.0-alpha.5

19 Aug 23:31
Compare
Choose a tag to compare
v1.0.0-alpha.5 Pre-release
Pre-release

1.0.0-alpha.5 (2020-08-19)

Bug Fixes

  • standardize region and country fields to lower case in event (406fb4f)
  • wrap /commands handler with try/catch (114ab5b)

Features

  • validate command received in /commands (ace8131)