Commit Graph

73 Commits

Author SHA1 Message Date
de8c249faf Rename deno.jsonc to deno.json and improve imports definitions to better define dependencies 2024-10-20 11:32:58 -03:00
2cd252511a [fabric/core] Move some types from domain to core 2024-10-20 11:31:22 -03:00
53a7b31bdc [fabric/core] Add ClockTime class 2024-10-20 11:29:51 -03:00
c38f74414b [fabric/sqlite-store] Refactor collection references to use new model definitions 2024-10-17 14:41:14 -03:00
3c3ce276c0 [fabric/domain] Refactor aggregate model implementation and related types 2024-10-17 14:36:49 -03:00
2ed9291c4d [fabric/core] Add utility functions for value checks and string sanitization 2024-10-17 14:32:47 -03:00
4574b9871b [templates/domain] Refactor UseCases to use Query type instead of UseCaseDefinition 2024-10-16 16:22:41 -03:00
d8e4028193 Update VSCode settings for Deno integration and formatting 2024-10-16 16:22:16 -03:00
67921efac7 [fabric/sqlite-store] Refactor event store and query builder to use the new AsyncResult 2024-10-16 16:22:02 -03:00
307a82d83c [fabric/domain] Rename StoreQuery 2024-10-16 16:21:03 -03:00
558ee2b9bc [fabric/domain] Refactor use-cases to commands and queries 2024-10-16 16:18:19 -03:00
d56c4bd469 [fabric/core] convert AsyncResult to a class for improved usability and update Run functions to use AsyncResult 2024-10-16 16:15:57 -03:00
4950730d9e Merge pull request 'chore: migrate monorepo to deno 2' (#3) from chore-migrate-to-deno2 into main
Reviewed-on: #3
2024-10-16 13:13:55 -03:00
dfee950913 Remove src directory in template modules 2024-10-16 12:41:19 -03:00
aadefd30f8 [fabric/testing] Remove src directory 2024-10-16 12:33:17 -03:00
0b05168544 Add deno task check to perform full project checks 2024-10-16 11:59:11 -03:00
6d2218f9f5 [fabric/sqlite-store] Remove src directory 2024-10-16 11:53:28 -03:00
72780b9803 [fabric/domain] Remove src directory 2024-10-16 11:53:03 -03:00
26cc090284 [fabric/core] Remove src directory for improved usability 2024-10-16 02:07:20 -03:00
7f4a0bd06b [templates/domain] Update import statements to use TypeScript file extensions 2024-10-16 02:03:51 -03:00
b2e8b33dae Remove Yarn-related entries from .gitattributes and .gitignore; update VSCode extensions for Deno support 2024-10-16 02:01:19 -03:00
4cc99aec91 Format files and configure workspace formatting in vscode 2024-10-16 01:53:38 -03:00
a79683d9d4 Migrate template modules to deno 2 2024-10-16 01:53:15 -03:00
f6de496e73 Migrate packages to deno 2 2024-10-16 01:33:51 -03:00
4503ff4576 WIP Add deno 2024-10-15 16:16:28 -03:00
bfb471b166 Merge pull request 'Feature: Basic Events, Models and Projections' (#2) from feat-base-projections into main
Reviewed-on: #2
2024-10-15 15:20:23 -03:00
8c6f043f86 [fabric/domain] Add Projection interface to handle model projection from events 2024-10-15 15:16:10 -03:00
c9a061419c [fabric/sqlite-store] Add null handling for value conversion and update tests for deletedAt field 2024-10-15 15:13:59 -03:00
6a0be50ef7 [fabric/domain] Simplify StoreQueryError constructor 2024-10-15 15:13:21 -03:00
758f8d933a [fabric/domain] Add optional deletedAt field to DefaultModelFields 2024-10-15 15:12:01 -03:00
76af85a496 [fabric/core] Add ensureValue utility function and export utils 2024-10-15 15:10:37 -03:00
0ac04a839f [fabric/core] Add export for Record type in core types 2024-10-15 15:10:08 -03:00
7a56c34941 [fabric/core] Refactor TaggedError and UnexpectedError to accept custom error messages 2024-10-15 14:58:22 -03:00
1886c52ece [fabric/core] Enhance VariantMatcher to support return type parameterization in match function 2024-10-15 07:59:52 -03:00
38e23ba095 Refactor event interface to use VariantTag for event types 2024-10-15 07:45:11 -03:00
4ea00f515b [fabric/sqlite-store] Implement SQLiteEventStore 2024-10-14 09:56:45 -03:00
a6a303f256 [fabric/domain] Refactor EventStore interface and remove EventStream 2024-10-14 09:55:39 -03:00
9a63ba22f1 [fabric/domain] Add 'utils' export 2024-10-14 09:50:43 -03:00
3afdb5d230 [fabric/domain] Remove validator dependency and simplify isInMemoryFile function 2024-10-14 09:50:01 -03:00
b71ecb5de1 [fabric/core] Add EmptyRecord type to define an empty object structure 2024-10-14 09:49:12 -03:00
4171107227 [fabric/core] Add Run.seq overload to handle 4 params 2024-10-14 09:48:43 -03:00
6b46677be9 [fabric/core] Refactor AsyncResult to accept MaybePromise in tryFrom and from functions 2024-10-14 09:47:18 -03:00
559a3f3c22 Update packages and vitest configurations 2024-10-12 21:33:05 -03:00
d62b588033 Rename store-sqlite -> sqlite-store to match package name 2024-10-12 17:08:54 -03:00
d443e9e395 Remove storage-driver interface; Add state-store as driver-specific implementation 2024-10-12 17:01:25 -03:00
010e3eecfc Standardize exports and add exports field for improved module resolution 2024-10-12 16:59:09 -03:00
69caa775d1 Rename store-sqlite package to sqlite-store and update imports accordingly 2024-10-12 15:47:48 -03:00
475ec309cb [fabric/store-sqlite] Refactor SQLite wrapper: replace old functions with SQLiteDatabase class for improved management and caching of statements 2024-10-12 15:41:12 -03:00
6919a819b6 [fabric/domain] Refactor event store and event stream interfaces 2024-10-12 15:39:51 -03:00
4fff9f91f5 [fabric/domain] Improve Result & AsyncResult types; Refactor model types; Add timestamp and embedded field support 2024-10-10 15:19:15 -03:00