ai-error-solution 1.0.0 → 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 (3) hide show
  1. package/CHANGELOG.md +91 -75
  2. package/README.md +2 -10
  3. package/package.json +8 -6
package/CHANGELOG.md CHANGED
@@ -1,75 +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.0] - 2025-12-31
9
-
10
- ### Added
11
- - Initial release of ai-error-solution
12
- - Core error handling with `fixError()` function
13
- - OpenAI integration using native curl (zero dependencies)
14
- - Middleware pattern with `initAutoErrorSolution()` for one-time API key setup
15
- - Beautiful console logging with colors and emojis
16
- - Support for ESM (ES Modules)
17
- - Error analysis with AI-powered:
18
- - Plain-English explanations
19
- - Likely causes identification
20
- - Suggested fixes with code snippets
21
- - Relevant documentation links
22
- - Timeout handling and retry mechanism
23
- - Silent mode for programmatic access to analysis results
24
- - Function wrapper utility `wrapWithErrorHandler()`
25
- - Global error handler setup with `setupGlobalHandler()`
26
- - Graceful failure handling when API calls fail
27
- - Comprehensive README with examples
28
- - MIT License
29
- - Publishing guide
30
-
31
- ### Technical Details
32
- - Node.js 18+ support
33
- - Zero npm dependencies
34
- - Uses native `child_process` with curl
35
- - ESM-first architecture
36
- - Production-ready error handling
37
- - Privacy-focused (no telemetry, no data storage)
38
-
39
- ### Documentation
40
- - Complete API reference
41
- - Usage examples
42
- - Environment setup guide
43
- - Troubleshooting section
44
- - Best practices and disclaimers
45
-
46
- ---
47
-
48
- ## [Unreleased]
49
-
50
- ### Planned Features
51
- - TypeScript type definitions (.d.ts files)
52
- - Support for custom AI prompts
53
- - Batch error analysis
54
- - Local caching of similar errors
55
- - Support for other LLM providers (Anthropic, etc.)
56
- - Configuration file support (.autoerrorrc)
57
-
58
- ---
59
-
60
- ## Version History
61
-
62
- - **1.0.0** (2025-12-31) - Initial release
63
-
64
- ---
65
-
66
- ## Contributing
67
-
68
- See [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to contribute to this project.
69
-
70
- ## Support
71
-
72
- For issues and questions, please visit:
73
- - GitHub Issues: https://github.com/yourusername/ai-error-solution/issues
74
- - npm Page: https://www.npmjs.com/package/ai-error-solution
75
-
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/README.md CHANGED
@@ -372,20 +372,12 @@ Contributions are welcome! Please feel free to submit a Pull Request.
372
372
  ## 🔗 Links
373
373
 
374
374
  - [npm Package](https://www.npmjs.com/package/ai-error-solution)
375
- - [GitHub Repository](https://github.com/yourusername/ai-error-solution)
375
+ - [GitHub Repository](https://github.com/Rashidqf/ai-error-solution)
376
376
  - [OpenAI API Documentation](https://platform.openai.com/docs)
377
- - [Report Issues](https://github.com/yourusername/ai-error-solution/issues)
377
+ - [Report Issues](https://github.com/Rashidqf/ai-error-solution/issues)
378
378
 
379
379
  ---
380
380
 
381
- ## 💡 What This Package Does NOT Do
382
-
383
- - ❌ **No auto-fixing** - Does not modify your code automatically
384
- - ❌ **No telemetry** - Does not collect or store any usage data
385
- - ❌ **No remote storage** - Errors are not stored anywhere
386
- - ❌ **No background processes** - Only runs when you call it
387
-
388
- ---
389
381
 
390
382
  ## 🌟 Why This Package?
391
383
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-error-solution",
3
- "version": "1.0.0",
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,15 +23,17 @@
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/yourusername/ai-error-solution.git"
33
+ "url": "git+https://github.com/Rashidqf/ai-error-solution.git"
31
34
  },
32
35
  "bugs": {
33
- "url": "https://github.com/yourusername/ai-error-solution/issues"
36
+ "url": "https://github.com/Rashidqf/ai-error-solution/issues"
34
37
  },
35
- "homepage": "https://github.com/yourusername/ai-error-solution#readme"
38
+ "homepage": "https://github.com/Rashidqf/ai-error-solution#readme"
36
39
  }
37
-