@med1802/repository-manager 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -581,16 +581,3 @@ try {
|
|
|
581
581
|
console.error(error.message); // Repository "non-existent" not found
|
|
582
582
|
}
|
|
583
583
|
```
|
|
584
|
-
|
|
585
|
-
## Best Practices
|
|
586
|
-
|
|
587
|
-
1. **Define interfaces for dependencies and repositories** - Better type safety
|
|
588
|
-
2. **Use one workspace per context** - Separate API, database, etc.
|
|
589
|
-
3. **Always call disconnect** - Proper cleanup prevents memory leaks
|
|
590
|
-
4. **Enable logging during development** - Helps debug lifecycle issues
|
|
591
|
-
5. **Keep repositories focused** - Single responsibility principle
|
|
592
|
-
6. **Use dependency interfaces, not concrete classes** - Easier to test and swap
|
|
593
|
-
|
|
594
|
-
## License
|
|
595
|
-
|
|
596
|
-
MIT
|