immediate-error 8.0.0 → 8.1.0
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/CHANGELOG.md +236 -0
- package/README.md +3 -0
- package/output.txt +0 -0
- package/package.json +6 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
Noitce: ai generated this changelog, so it might not be completely accurate.
|
|
5
|
+
|
|
6
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
7
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
|
+
|
|
9
|
+
## [8.1.0]
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- This changelog
|
|
13
|
+
|
|
14
|
+
## [8.0.0]
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
- "use struct" directive for struct mode
|
|
18
|
+
- Dependencies: `is-`, `n0p3-es2015-cjs`, `deep-freeze-node3`, `@uppercase-letters/e`, `@uppercase-letters/o`, `@uppercase-letters/r`, `@rightpad/concat`, `as-array`
|
|
19
|
+
- `CreateError` helper function
|
|
20
|
+
- Improved error construction using functional programming utilities
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Default error message now constructed using `concat` with uppercase letters
|
|
24
|
+
- Updated dependencies versions
|
|
25
|
+
- Simplified test file
|
|
26
|
+
|
|
27
|
+
### Removed
|
|
28
|
+
- `es-object-atoms`, `true-value`, `yanoop` dependencies
|
|
29
|
+
|
|
30
|
+
## [7.2.0]
|
|
31
|
+
|
|
32
|
+
### Changed
|
|
33
|
+
- Minor adjustment in vm.Script args formatting
|
|
34
|
+
|
|
35
|
+
### Updated
|
|
36
|
+
- `@positive-numbers/zero` to `^4.0.0`
|
|
37
|
+
|
|
38
|
+
## [7.1.0]
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
- Replaced `get-intrinsic` with `es-intrinsic-cache`
|
|
42
|
+
|
|
43
|
+
## [7.0.0]
|
|
44
|
+
|
|
45
|
+
### Added
|
|
46
|
+
- Support for `EvalError` and `URIError`
|
|
47
|
+
- `es-error-intrinsics` for better error handling
|
|
48
|
+
- `bail` for error throwing
|
|
49
|
+
- Stack trace capture using `Error.captureStackTrace`
|
|
50
|
+
|
|
51
|
+
### Changed
|
|
52
|
+
- Error types: Removed `AggregateError`, `AssertionError`, `NativeAssertionError`; Added `EvalError`, `URIError`
|
|
53
|
+
- Updated API to use `bail` in vm context
|
|
54
|
+
- Repository URL changed to `in-fp`
|
|
55
|
+
- Author changed to "10x'ly Made"
|
|
56
|
+
|
|
57
|
+
### Removed
|
|
58
|
+
- `assert-fn`, `es-object-atoms`, `number-zero` dependencies
|
|
59
|
+
- Some keywords from package.json
|
|
60
|
+
|
|
61
|
+
### Updated
|
|
62
|
+
- Tests to reflect new error types
|
|
63
|
+
|
|
64
|
+
## [6.4.0]
|
|
65
|
+
|
|
66
|
+
### Added
|
|
67
|
+
- Functional programming refactor using `switch-in-fp`, `construct-new`, `attempt-statement`
|
|
68
|
+
- `@positive-numbers/*` dependencies for numbers
|
|
69
|
+
- Jest tests
|
|
70
|
+
- TypeScript definitions (`index.d.ts`)
|
|
71
|
+
|
|
72
|
+
### Changed
|
|
73
|
+
- Major code refactor to FP style
|
|
74
|
+
- Dependencies updated to scoped packages
|
|
75
|
+
- Description changed to "throw errors in fp"
|
|
76
|
+
- Test script added
|
|
77
|
+
- Keywords updated with FP and other terms
|
|
78
|
+
|
|
79
|
+
### Removed
|
|
80
|
+
- Old dependencies replaced with new ones
|
|
81
|
+
|
|
82
|
+
## [6.3.0]
|
|
83
|
+
|
|
84
|
+
### Changed
|
|
85
|
+
- Code formatting and indentation
|
|
86
|
+
- License changed to "Unlicense"
|
|
87
|
+
- Removed some dependencies: `if`, `noop10`, `se7en`, `the-number-one`, `two`, `vanilla-javascript`
|
|
88
|
+
|
|
89
|
+
### Removed
|
|
90
|
+
- "why?" section from README
|
|
91
|
+
|
|
92
|
+
## [6.2.0]
|
|
93
|
+
|
|
94
|
+
### Changed
|
|
95
|
+
- Simplified code structure
|
|
96
|
+
- Updated vm script logic
|
|
97
|
+
- Removed dependencies: `bail`, `esm-wallaby`, `picocolors`
|
|
98
|
+
|
|
99
|
+
### Added
|
|
100
|
+
- `has-self-equality`, `noop10` dependencies
|
|
101
|
+
|
|
102
|
+
## [6.1.0]
|
|
103
|
+
|
|
104
|
+
### Added
|
|
105
|
+
- `AggregateError` support
|
|
106
|
+
- Updated README with `AggregateError` example
|
|
107
|
+
- Updated TypeScript definitions
|
|
108
|
+
|
|
109
|
+
## [6.0.0]
|
|
110
|
+
|
|
111
|
+
### Added
|
|
112
|
+
- `AggregateError` to error types
|
|
113
|
+
- `get-intrinsic` for intrinsics
|
|
114
|
+
|
|
115
|
+
### Changed
|
|
116
|
+
- Error types mapping
|
|
117
|
+
- Removed some dependencies: `jquery*`, `successor`, `vanilla-javascript`
|
|
118
|
+
|
|
119
|
+
### Updated
|
|
120
|
+
- `es-errors` to `^1.3.0`
|
|
121
|
+
|
|
122
|
+
## [5.1.1]
|
|
123
|
+
|
|
124
|
+
### Changed
|
|
125
|
+
- Replaced `cli-color` with `picocolors`
|
|
126
|
+
|
|
127
|
+
## [5.1.0]
|
|
128
|
+
|
|
129
|
+
### Changed
|
|
130
|
+
- Description updated to "Throw errors, better."
|
|
131
|
+
|
|
132
|
+
## [5.0.0]
|
|
133
|
+
|
|
134
|
+
### Added
|
|
135
|
+
- `esm-wallaby` for ESM requiring
|
|
136
|
+
- `bail` for error throwing
|
|
137
|
+
|
|
138
|
+
### Changed
|
|
139
|
+
- Updated vm script to use `bail` with random logic
|
|
140
|
+
|
|
141
|
+
## [4.0.0]
|
|
142
|
+
|
|
143
|
+
### Added
|
|
144
|
+
- ES modules export style
|
|
145
|
+
- Support for custom error classes
|
|
146
|
+
- `es-errors` for proper error constructors
|
|
147
|
+
- TypeScript definitions
|
|
148
|
+
- More error types: `BaseError`, `AssertionError`, `AggregateError`, `NativeAssertionError`
|
|
149
|
+
|
|
150
|
+
### Changed
|
|
151
|
+
- Major API change: `immediateError(message, errorType)`
|
|
152
|
+
- Removed `fox` dependency
|
|
153
|
+
- Updated README with new usage
|
|
154
|
+
- License to "Unlicense"
|
|
155
|
+
|
|
156
|
+
### Removed
|
|
157
|
+
- Old dependencies
|
|
158
|
+
|
|
159
|
+
## [3.1.3]
|
|
160
|
+
|
|
161
|
+
### Added
|
|
162
|
+
- `FuckingError` class
|
|
163
|
+
- More number dependencies for error type values
|
|
164
|
+
- Updated README with `FuckingError` example
|
|
165
|
+
|
|
166
|
+
## [3.1.2]
|
|
167
|
+
|
|
168
|
+
### Changed
|
|
169
|
+
- Removed console.log from vm script
|
|
170
|
+
|
|
171
|
+
## [3.1.1]
|
|
172
|
+
|
|
173
|
+
### Removed
|
|
174
|
+
- `integer-value-positive-zero` dependency
|
|
175
|
+
|
|
176
|
+
## [3.1.0]
|
|
177
|
+
|
|
178
|
+
### Added
|
|
179
|
+
- Many new dependencies for numbers, jQuery, etc.
|
|
180
|
+
- Complex vm context with random error throwing
|
|
181
|
+
- Updated README
|
|
182
|
+
|
|
183
|
+
### Changed
|
|
184
|
+
- Default message to aggressive one
|
|
185
|
+
- Error creation using packages for numbers
|
|
186
|
+
|
|
187
|
+
## [3.0.0]
|
|
188
|
+
|
|
189
|
+
### Added
|
|
190
|
+
- Repository, keywords, author info
|
|
191
|
+
- Many dependencies: `vanilla-javascript`, `vapor-js-npm`, etc.
|
|
192
|
+
- vm context for error throwing
|
|
193
|
+
|
|
194
|
+
### Changed
|
|
195
|
+
- Description to "Immediate-error"
|
|
196
|
+
- Major code changes with more complexity
|
|
197
|
+
|
|
198
|
+
## [2.1.0]
|
|
199
|
+
|
|
200
|
+
### Added
|
|
201
|
+
- ERROR object with multiple error types
|
|
202
|
+
- eval-based error throwing
|
|
203
|
+
|
|
204
|
+
### Changed
|
|
205
|
+
- License to "UNLICENSED"
|
|
206
|
+
- Removed dependencies
|
|
207
|
+
|
|
208
|
+
### Updated
|
|
209
|
+
- README with more examples
|
|
210
|
+
|
|
211
|
+
## [2.0.0]
|
|
212
|
+
|
|
213
|
+
### Changed
|
|
214
|
+
- Simplified to throw `new Error(message)` with default message (logic that makes sense)
|
|
215
|
+
- Updated README example
|
|
216
|
+
|
|
217
|
+
## [1.0.1]
|
|
218
|
+
|
|
219
|
+
### Changed
|
|
220
|
+
- Author to "tj-commits/87f"
|
|
221
|
+
|
|
222
|
+
## [1.0.0]
|
|
223
|
+
|
|
224
|
+
### Added
|
|
225
|
+
- README.md with usage
|
|
226
|
+
- Self-dependency (circular?)
|
|
227
|
+
|
|
228
|
+
### Changed
|
|
229
|
+
- Version to 1.0.0
|
|
230
|
+
|
|
231
|
+
## [0.0.1]
|
|
232
|
+
|
|
233
|
+
### Added
|
|
234
|
+
- Initial release
|
|
235
|
+
- Basic index.js that requires 'fox', which is a pure ESM module, so it would throw an error since the package is CommonJS
|
|
236
|
+
- package.json with basic info
|
package/README.md
CHANGED
|
@@ -36,5 +36,8 @@ class MyCustomError extends Error {
|
|
|
36
36
|
immediateError('Error!', MyCustomError) // throws a MyCustomError with the message "Error!" which in turn prints out "Custom: Error!" because we used our own error class
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
+
### Changelog
|
|
40
|
+
See Changelog in [Changelog.md](https://github.com/enterprise-npm-ai/immediate-error/blob/main/CHANGELOG.md)
|
|
41
|
+
|
|
39
42
|
## License
|
|
40
43
|
Unlicense
|
package/output.txt
ADDED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "immediate-error",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.0",
|
|
4
4
|
"description": "throw errors in fp",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
|
-
"url": "git+https://github.com/
|
|
11
|
+
"url": "git+https://github.com/enterprise-npm-ai/immediate-error.git"
|
|
12
12
|
},
|
|
13
13
|
"keywords": [
|
|
14
14
|
"error",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"jest",
|
|
37
37
|
"67",
|
|
38
38
|
"fp",
|
|
39
|
-
"
|
|
39
|
+
"enterprise-npm-ai",
|
|
40
40
|
"sigmaskibidi",
|
|
41
41
|
"tj-commits",
|
|
42
42
|
"skibidi-toilet-hacker",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"author": "10x'ly Made",
|
|
46
46
|
"license": "Unlicense",
|
|
47
47
|
"bugs": {
|
|
48
|
-
"url": "https://github.com/
|
|
48
|
+
"url": "https://github.com/enterprise-npm-ai/immediate-error/issues"
|
|
49
49
|
},
|
|
50
|
-
"homepage": "https://github.com/
|
|
50
|
+
"homepage": "https://github.com/enterprise-npm-ai/immediate-error#readme",
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@positive-numbers/five": "^3.0.0",
|
|
53
53
|
"@positive-numbers/four": "^3.0.0",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"is-": "^1.0.0",
|
|
71
71
|
"n0p3-es2015-cjs": "^1.0.1",
|
|
72
72
|
"number-zero": "^1.0.3",
|
|
73
|
-
"switch-
|
|
73
|
+
"switch-enterprise-npm-ai": "^3.0.0",
|
|
74
74
|
"true-value": "^2.0.5"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|