feat(core): enhance error handling, type safety, and documentation

- Add comprehensive error handling with try/catch blocks and meaningful error messages
- Improve type safety with proper IEnvDeps interface replacing 'any' types
- Add complete JSDoc documentation for all classes and methods
- Add return type annotations for better TypeScript support
- Add ensureInitialized() validation method
- Fix missing return statement in createRepoByClone() method
- Remove deprecated @types/minimatch dependency
- Complete readme rewrite with modern styling, accurate documentation, and proper API examples
- Update license from LICENSE to license.md following project guidelines
This commit is contained in:
2025-08-04 15:12:23 +00:00
parent a92275088b
commit c6e3a1caa3
6 changed files with 262 additions and 102 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@push.rocks/smartgit",
"version": "3.1.1",
"version": "3.2.0",
"description": "A smart wrapper for nodegit that simplifies Git operations in Node.js.",
"main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts",
@@ -40,7 +40,6 @@
"@push.rocks/smartstring": "^4.0.15",
"@push.rocks/smarttime": "^4.1.1",
"@types/diff": "^8.0.0",
"@types/minimatch": "^6.0.0",
"diff": "^8.0.2",
"isomorphic-git": "^1.32.2"
},