ai-error-solution 1.1.1 → 1.1.2

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.
Files changed (2) hide show
  1. package/CHANGELOG.md +91 -88
  2. package/package.json +6 -3
package/CHANGELOG.md CHANGED
@@ -1,88 +1,91 @@
1
- # Changelog
2
-
3
- All notable changes to this project will be documented in this file.
4
-
5
- The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
- and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
-
8
- ## [1.0.1] - 2025-12-31
9
-
10
- ### Fixed
11
- - Removed self-dependency issue in package.json
12
- - Cleaned up unnecessary documentation files
13
- - Package optimization
14
-
15
- ### Changed
16
- - Streamlined package structure for npm distribution
17
-
18
- ---
19
-
20
- ## [1.0.0] - 2025-12-31
21
-
22
- ### Added
23
- - Initial release of ai-error-solution
24
- - Core error handling with `fixError()` function
25
- - OpenAI integration using native curl (zero dependencies)
26
- - Middleware pattern with `initAutoErrorSolution()` for one-time API key setup
27
- - Beautiful console logging with colors and emojis
28
- - Support for ESM (ES Modules)
29
- - Error analysis with AI-powered:
30
- - Plain-English explanations
31
- - Likely causes identification
32
- - Suggested fixes with code snippets
33
- - Relevant documentation links
34
- - Timeout handling and retry mechanism
35
- - Silent mode for programmatic access to analysis results
36
- - Function wrapper utility `wrapWithErrorHandler()`
37
- - Global error handler setup with `setupGlobalHandler()`
38
- - Graceful failure handling when API calls fail
39
- - Comprehensive README with examples
40
- - MIT License
41
- - Publishing guide
42
-
43
- ### Technical Details
44
- - Node.js 18+ support
45
- - Zero npm dependencies
46
- - Uses native `child_process` with curl
47
- - ESM-first architecture
48
- - Production-ready error handling
49
- - Privacy-focused (no telemetry, no data storage)
50
-
51
- ### Documentation
52
- - Complete API reference
53
- - Usage examples
54
- - Environment setup guide
55
- - Troubleshooting section
56
- - Best practices and disclaimers
57
-
58
- ---
59
-
60
- ## [Unreleased]
61
-
62
- ### Planned Features
63
- - TypeScript type definitions (.d.ts files)
64
- - Support for custom AI prompts
65
- - Batch error analysis
66
- - Local caching of similar errors
67
- - Support for other LLM providers (Anthropic, etc.)
68
- - Configuration file support (.autoerrorrc)
69
-
70
- ---
71
-
72
- ## Version History
73
-
74
- - **1.0.1** (2025-12-31) - Bug fixes and optimization
75
- - **1.0.0** (2025-12-31) - Initial release
76
-
77
- ---
78
-
79
- ## Contributing
80
-
81
- See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.
82
-
83
- ## Support
84
-
85
- For issues and questions, please visit:
86
- - GitHub Issues: https://github.com/Rashidqf/ai-error-solution/issues
87
- - npm Page: https://www.npmjs.com/package/ai-error-solution
88
-
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [1.1.2] - 2025-12-31
9
+
10
+ ### Fixed
11
+ - Removed self-dependency issue in package.json
12
+ - Cleaned up unnecessary documentation files
13
+ - Package optimization
14
+
15
+ ### Changed
16
+ - Streamlined package structure for npm distribution
17
+ - Added author information to package.json
18
+ - Updated repository URL format
19
+
20
+ ---
21
+
22
+ ## [1.0.0] - 2025-12-31
23
+
24
+ ### Added
25
+ - Initial release of ai-error-solution
26
+ - Core error handling with `fixError()` function
27
+ - OpenAI integration using native curl (zero dependencies)
28
+ - Middleware pattern with `initAutoErrorSolution()` for one-time API key setup
29
+ - Beautiful console logging with colors and emojis
30
+ - Support for ESM (ES Modules)
31
+ - Error analysis with AI-powered:
32
+ - Plain-English explanations
33
+ - Likely causes identification
34
+ - Suggested fixes with code snippets
35
+ - Relevant documentation links
36
+ - Timeout handling and retry mechanism
37
+ - Silent mode for programmatic access to analysis results
38
+ - Function wrapper utility `wrapWithErrorHandler()`
39
+ - Global error handler setup with `setupGlobalHandler()`
40
+ - Graceful failure handling when API calls fail
41
+ - Comprehensive README with examples
42
+ - MIT License
43
+ - Publishing guide
44
+
45
+ ### Technical Details
46
+ - Node.js 18+ support
47
+ - Zero npm dependencies
48
+ - Uses native `child_process` with curl
49
+ - ESM-first architecture
50
+ - Production-ready error handling
51
+ - Privacy-focused (no telemetry, no data storage)
52
+
53
+ ### Documentation
54
+ - Complete API reference
55
+ - Usage examples
56
+ - Environment setup guide
57
+ - Troubleshooting section
58
+ - Best practices and disclaimers
59
+
60
+ ---
61
+
62
+ ## [Unreleased]
63
+
64
+ ### Planned Features
65
+ - TypeScript type definitions (.d.ts files)
66
+ - Support for custom AI prompts
67
+ - Batch error analysis
68
+ - Local caching of similar errors
69
+ - Support for other LLM providers (Anthropic, etc.)
70
+ - Configuration file support (.autoerrorrc)
71
+
72
+ ---
73
+
74
+ ## Version History
75
+
76
+ - **1.1.2** (2025-12-31) - Bug fixes and optimization
77
+ - **1.1.1** (2025-12-31) - Already published (updated author info)
78
+ - **1.0.0** (2025-12-31) - Initial release
79
+
80
+ ---
81
+
82
+ ## Contributing
83
+
84
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.
85
+
86
+ ## Support
87
+
88
+ For issues and questions, please visit:
89
+ - GitHub Issues: https://github.com/Rashidqf/ai-error-solution/issues
90
+ - npm Page: https://www.npmjs.com/package/ai-error-solution
91
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-error-solution",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Lightweight Node.js error handler that uses OpenAI to provide explanations, causes, fixes, and documentation links for runtime errors",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -23,11 +23,14 @@
23
23
  "runtime-errors",
24
24
  "stack-trace"
25
25
  ],
26
- "author": "",
26
+ "author": {
27
+ "name": "Rashid",
28
+ "url": "https://github.com/Rashidqf"
29
+ },
27
30
  "license": "MIT",
28
31
  "repository": {
29
32
  "type": "git",
30
- "url": "https://github.com/Rashidqf/ai-error-solution.git"
33
+ "url": "git+https://github.com/Rashidqf/ai-error-solution.git"
31
34
  },
32
35
  "bugs": {
33
36
  "url": "https://github.com/Rashidqf/ai-error-solution/issues"