@thi.ng/errors 2.4.0 → 2.4.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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2023-10-24T08:38:23Z
3
+ - **Last updated**: 2023-11-09T10:28:18Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [2.4.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.4.1) (2023-11-09)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
17
+
12
18
  ## [2.4.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/errors@2.4.0) (2023-10-24)
13
19
 
14
20
  #### 🚀 Features
package/assert.d.ts CHANGED
@@ -4,6 +4,7 @@ export declare const AssertionError: {
4
4
  name: string;
5
5
  message: string;
6
6
  stack?: string | undefined;
7
+ cause?: unknown;
7
8
  };
8
9
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
package/deferror.d.ts CHANGED
@@ -4,6 +4,7 @@ export declare const defError: <T = string>(prefix: (msg?: T | undefined) => str
4
4
  name: string;
5
5
  message: string;
6
6
  stack?: string | undefined;
7
+ cause?: unknown;
7
8
  };
8
9
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
@@ -4,6 +4,7 @@ export declare const IllegalArgumentError: {
4
4
  name: string;
5
5
  message: string;
6
6
  stack?: string | undefined;
7
+ cause?: unknown;
7
8
  };
8
9
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
@@ -4,6 +4,7 @@ export declare const IllegalArityError: {
4
4
  name: string;
5
5
  message: string;
6
6
  stack?: string | undefined;
7
+ cause?: unknown;
7
8
  };
8
9
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
@@ -4,6 +4,7 @@ export declare const IllegalStateError: {
4
4
  name: string;
5
5
  message: string;
6
6
  stack?: string | undefined;
7
+ cause?: unknown;
7
8
  };
8
9
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
package/io.d.ts CHANGED
@@ -4,6 +4,7 @@ export declare const IOError: {
4
4
  name: string;
5
5
  message: string;
6
6
  stack?: string | undefined;
7
+ cause?: unknown;
7
8
  };
8
9
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
@@ -15,6 +16,7 @@ export declare const FileNotFoundError: {
15
16
  name: string;
16
17
  message: string;
17
18
  stack?: string | undefined;
19
+ cause?: unknown;
18
20
  };
19
21
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
20
22
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
@@ -4,6 +4,7 @@ export declare const OutOfBoundsError: {
4
4
  name: string;
5
5
  message: string;
6
6
  stack?: string | undefined;
7
+ cause?: unknown;
7
8
  };
8
9
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/errors",
3
- "version": "2.4.0",
3
+ "version": "2.4.2",
4
4
  "description": "Custom error types and error factory functions",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -28,18 +28,17 @@
28
28
  "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
29
29
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
30
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && tools:readme",
32
- "doc:stats": "tools:module-stats",
31
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
33
32
  "pub": "yarn npm publish --access public",
34
- "test": "testament test"
33
+ "test": "bun test"
35
34
  },
36
35
  "devDependencies": {
37
- "@microsoft/api-extractor": "^7.38.0",
38
- "@thi.ng/testament": "^0.3.24",
39
- "@types/node": "^20.8.7",
36
+ "@microsoft/api-extractor": "^7.38.2",
37
+ "@thi.ng/testament": "^0.4.1",
38
+ "@types/node": "^20.9.0",
40
39
  "rimraf": "^5.0.5",
41
40
  "tools": "^0.0.1",
42
- "typedoc": "^0.25.2",
41
+ "typedoc": "^0.25.3",
43
42
  "typescript": "^5.2.2"
44
43
  },
45
44
  "keywords": [
@@ -96,5 +95,5 @@
96
95
  "thi.ng": {
97
96
  "year": 2018
98
97
  },
99
- "gitHead": "dc7eeaba72f3c3977f2d6cc201e595ed6d68e2ad\n"
98
+ "gitHead": "669a3151e4302480244fe3e60eff5e732ea5b7a7\n"
100
99
  }
package/unsupported.d.ts CHANGED
@@ -4,6 +4,7 @@ export declare const UnsupportedOperationError: {
4
4
  name: string;
5
5
  message: string;
6
6
  stack?: string | undefined;
7
+ cause?: unknown;
7
8
  };
8
9
  captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void;
9
10
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;