52 Commits

Author SHA1 Message Date
e6636c8850 fix: Update OrbitDBService type mapping and adjust BlogAPIServer initialization to use correct service references 2025-07-03 05:52:55 +03:00
1481bd8594 fix: Enhance initialization checks in FrameworkOrbitDBService and FrameworkIPFSService; add tsconfig.docker.json for integration tests 2025-07-02 07:45:55 +03:00
b0a68b19c9 fix: Update Dockerfile and docker-compose to enhance dependency installation and adjust IPFS port mappings 2025-07-02 07:39:03 +03:00
e82b95878e refactor: Improve decorator handling and error management in Field and hooks; update Blog API Dockerfile for better dependency management 2025-07-02 07:24:07 +03:00
1e14827acd fix: Update Dockerfile to install full dependencies and use tsx for starting the blog API server 2025-07-02 05:48:46 +03:00
59b0fbcc73 fix: Override entrypoint in Dockerfile to ensure proper startup of IPFS daemon 2025-07-02 05:30:34 +03:00
08d110b7e6 feat: Update Docker configurations and integrate IPFS and OrbitDB services 2025-06-21 12:07:36 +03:00
64ed9e82a7 Add integration tests for blog workflow and supporting infrastructure
- Implemented comprehensive integration tests for user management, category management, content publishing, comment system, performance, scalability, and network resilience.
- Created DockerNodeManager to manage Docker containers for testing.
- Developed ApiClient for API interactions and health checks.
- Introduced SyncWaiter for synchronizing node states and ensuring data consistency.
- Enhanced test reliability with increased timeouts and detailed logging.
2025-06-21 11:15:33 +03:00
344a346fd6 refactor: Remove jest.real.config.cjs configuration file 2025-06-19 22:43:35 +03:00
83c7b985ff Remove real integration tests and related setup files
- Deleted the real integration test file `real-integration.test.ts` which contained tests for the DebrosFramework, RealTestUser, and RealTestPost models.
- Removed the `helia-wrapper.ts`, `ipfs-setup.ts`, `orbitdb-setup.ts`, `swarm-setup.ts`, and `test-lifecycle.ts` files that provided setup and utility functions for the real IPFS and OrbitDB network tests.
2025-06-19 22:26:56 +03:00
831c977eda feat: Add debug script for field defaults and enhance Jest configuration for ES modules 2025-06-19 21:47:35 +03:00
1e3c5d46be refactor: Remove unused getters from QueryBuilder class 2025-06-19 21:30:21 +03:00
8d3ccdc80c Add real integration tests for IPFS and OrbitDB
- Implemented real integration tests in `real-integration.test.ts` to validate the functionality of the DebrosFramework with IPFS and OrbitDB.
- Created `RealTestUser` and `RealTestPost` models for testing user and post functionalities.
- Developed setup and teardown lifecycle methods for managing the test environment.
- Introduced `RealIPFSService` and `RealOrbitDBService` classes for managing IPFS and OrbitDB instances.
- Added `PrivateSwarmSetup` for configuring a private IPFS network.
- Implemented utility functions for creating and shutting down IPFS and OrbitDB networks.
- Created a global test manager for managing test lifecycle and network state.
- Updated TypeScript configuration to include test files and exclude them from the main build.
2025-06-19 21:29:50 +03:00
0807547a51 feat: Enhance BaseModel validation with unique constraint checks and improve RelationshipManager model resolution 2025-06-19 20:55:17 +03:00
bac55a5e0c feat: Enhance BaseModel with improved shadowing property cleanup and validation during save operations 2025-06-19 13:54:54 +03:00
abb9734b36 feat: Improve field handling in BaseModel and Field decorator; ensure getter reliability and remove shadowing properties 2025-06-19 13:44:08 +03:00
3a22a655b2 feat: Enhance BaseModel field handling with error logging and getter fixes; update Field decorator for private key access 2025-06-19 13:23:25 +03:00
383419beec feat: Update DebrosFramework to reflect config changes in status; add health check and service retrieval methods; enhance RelationshipManager for model resolution in eager loading 2025-06-19 13:16:34 +03:00
4966df43d5 feat: Enhance decorators and query builder with improved inheritance handling; add targetModel alias for relationship compatibility; implement validation for field names and operators 2025-06-19 13:07:56 +03:00
0305cb1737 feat: Enhance QueryBuilder with operator normalization and null handling; update ShardManager to ensure shard index bounds; improve BaseModel tests for email validation 2025-06-19 12:54:21 +03:00
9f425f2106 feat: Refactor BaseModel and decorators for improved field handling and relationships 2025-06-19 12:45:10 +03:00
64163a5b93 feat: Enhance model decorators and query builder
- Added validation for field and model configurations in decorators.
- Improved handling of relationships in the BelongsTo, HasMany, HasOne, and ManyToMany decorators.
- Introduced new methods in QueryBuilder for advanced filtering, caching, and relationship loading.
- Updated RelationshipManager to support new relationship configurations.
- Enhanced error handling and logging in migration tests.
- Refactored test cases for better clarity and coverage.
2025-06-19 12:09:23 +03:00
071723f673 feat: add Jest configuration and basic framework tests 2025-06-19 11:26:45 +03:00
f58fa0caf7 Add coverage prettify styles and scripts, sorting functionality, and search feature
- Added prettify.css for code highlighting in coverage reports.
- Introduced prettify.js for syntax highlighting functionality.
- Included sort-arrow-sprite.png for sorting indicators in the coverage summary.
- Implemented sorter.js to enable sorting of coverage summary table columns.
- Added a search box to filter coverage summary rows based on user input.
2025-06-19 11:20:26 +03:00
1cbca09352 Add unit tests for RelationshipManager and ShardManager
- Implement comprehensive tests for RelationshipManager covering various relationship types (BelongsTo, HasMany, HasOne, ManyToMany) and eager loading functionality.
- Include caching mechanisms and error handling in RelationshipManager tests.
- Create unit tests for ShardManager to validate shard creation, routing, management, global index operations, and query functionalities.
- Ensure tests cover different sharding strategies (hash, range, user) and handle edge cases like errors and non-existent models.
2025-06-19 11:20:13 +03:00
067e462339 Add SVG illustration and TypeScript configuration file
- Added a new SVG file `undraw_docusaurus_tree.svg` to the static images directory for enhanced visual representation.
- Created a `tsconfig.json` file to improve TypeScript support and editor experience, extending from the Docusaurus base configuration.
2025-06-19 07:02:58 +03:00
eea46b0144 Bug refactor to new version 2025-06-19 06:43:54 +03:00
3232cf2d3e refactor: enhance connection management and error handling, sanitize data, and improve file upload logging 2025-06-18 15:28:32 +03:00
35e9480c5c bug fixes 2025-05-16 11:56:23 +03:00
12inchpenguin
be3763d988 fixed some type errors
Some checks failed
Publish Alpha Package to npm / publish (push) Has been cancelled
2025-04-08 14:20:13 +03:00
12inchpenguin
dd920d26ce updated version 2025-04-07 15:56:33 +03:00
12inchpenguin
44d19ad628 updates types for orbit and bug fixes, and sanitiza data on document prepare 2025-04-07 15:49:13 +03:00
12inchpenguin
d39b3c7003 added husky 2025-04-07 13:03:45 +03:00
12inchpenguin
e00280aea9 initialized version alpha 0.20.0 2025-04-07 12:58:23 +03:00
12inchpenguin
9e937231c8 updated version 2025-04-06 18:29:42 +03:00
12inchpenguin
2553483ef9 updated version 2025-04-06 18:19:33 +03:00
12inchpenguin
a667f98f25 added post build tool 2025-04-06 18:19:03 +03:00
12inchpenguin
ef4be50b5a updated readme and packagejson 2025-04-01 16:44:29 +03:00
12inchpenguin
a4cbda0fb9 updated github workflow 2025-04-01 16:41:38 +03:00
12inchpenguin
b71946d3be updated github workflow 2025-04-01 16:39:35 +03:00
12inchpenguin
2fa3aa6c28 updated github workflow 2025-04-01 16:37:30 +03:00
12inchpenguin
e07dfc32b4 updated github workflow 2025-04-01 16:35:45 +03:00
12inchpenguin
ae266c5a59 Updated gitignore 2025-04-01 16:13:40 +03:00
12inchpenguin
0211f78311 updated types.d.ts module name 2025-04-01 16:04:36 +03:00
12inchpenguin
33ddb18189 added githhub actions for auto publishing 2025-04-01 15:56:19 +03:00
12inchpenguin
4857bd0c77 added readme 2025-04-01 15:44:05 +03:00
12inchpenguin
7120069629 updated package json 2025-04-01 15:37:54 +03:00
12inchpenguin
0dd6165793 added license 2025-04-01 15:36:41 +03:00
12inchpenguin
e525c4b860 updated publishconfig registry 2025-04-01 15:30:48 +03:00
12inchpenguin
a1b38a8e71 updated package version added missing package 2025-04-01 15:24:11 +03:00