@speclynx/apidom-error 4.0.3 → 4.0.5

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
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.0.5](https://github.com/speclynx/apidom/compare/v4.0.4...v4.0.5) (2026-03-13)
7
+
8
+ **Note:** Version bump only for package @speclynx/apidom-error
9
+
10
+ ## [4.0.4](https://github.com/speclynx/apidom/compare/v4.0.3...v4.0.4) (2026-03-12)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **release:** override minimatch 10.2.3 to fix glob pattern regression in lerna publish ([#157](https://github.com/speclynx/apidom/issues/157)) ([c2d65a0](https://github.com/speclynx/apidom/commit/c2d65a06a2187e8563a9dc9db74ba27255450e0b)), closes [lerna/lerna#4305](https://github.com/lerna/lerna/issues/4305) [isaacs/minimatch#284](https://github.com/isaacs/minimatch/issues/284)
15
+
6
16
  ## [4.0.3](https://github.com/speclynx/apidom/compare/v4.0.2...v4.0.3) (2026-03-11)
7
17
 
8
18
  ### Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@speclynx/apidom-error",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "Backward compatible custom ApiDOM errors with causes.",
5
5
  "keywords": [
6
6
  "apidom",
@@ -50,7 +50,8 @@
50
50
  "@babel/runtime-corejs3": "^7.28.4"
51
51
  },
52
52
  "files": [
53
- "src/",
53
+ "src/**/*.mjs",
54
+ "src/**/*.cjs",
54
55
  "dist/",
55
56
  "types/apidom-error.d.ts",
56
57
  "LICENSES",
@@ -58,5 +59,5 @@
58
59
  "README.md",
59
60
  "CHANGELOG.md"
60
61
  ],
61
- "gitHead": "6ccfa09c02232516215e7de3ead276641957e626"
62
+ "gitHead": "5a85d2a832eeefb07d03760faa391b457447e966"
62
63
  }
@@ -1,18 +0,0 @@
1
- import type ApiDOMErrorOptions from './ApiDOMErrorOptions.ts';
2
-
3
- /**
4
- * @public
5
- */
6
- class ApiDOMAggregateError extends AggregateError {
7
- constructor(errors: Iterable<unknown>, message?: string, options?: ApiDOMErrorOptions) {
8
- super(errors, message, options);
9
-
10
- this.name = this.constructor.name;
11
-
12
- if (typeof Error.captureStackTrace === 'function') {
13
- Error.captureStackTrace(this, this.constructor);
14
- }
15
- }
16
- }
17
-
18
- export default ApiDOMAggregateError;
@@ -1,27 +0,0 @@
1
- import ApiDOMAggregateError from './ApiDOMAggregateError.ts';
2
- import type ApiDOMErrorOptions from './ApiDOMErrorOptions.ts';
3
-
4
- /**
5
- * @public
6
- */
7
- class ApiDOMError extends Error {
8
- public static [Symbol.hasInstance](instance: unknown) {
9
- // we want to ApiDOMAggregateError to act as if ApiDOMError was its superclass
10
- return (
11
- super[Symbol.hasInstance](instance) ||
12
- Function.prototype[Symbol.hasInstance].call(ApiDOMAggregateError, instance)
13
- );
14
- }
15
-
16
- constructor(message?: string, options?: ApiDOMErrorOptions) {
17
- super(message, options);
18
-
19
- this.name = this.constructor.name;
20
-
21
- if (typeof Error.captureStackTrace === 'function') {
22
- Error.captureStackTrace(this, this.constructor);
23
- }
24
- }
25
- }
26
-
27
- export default ApiDOMError;
@@ -1,7 +0,0 @@
1
- /**
2
- * @public
3
- */
4
- export default interface ApiDOMErrorOptions extends ErrorOptions {
5
- readonly cause?: unknown;
6
- readonly [key: string]: unknown;
7
- }
@@ -1,19 +0,0 @@
1
- import ApiDOMError from './ApiDOMError.ts';
2
- import type ApiDOMErrorOptions from './ApiDOMErrorOptions.ts';
3
-
4
- /**
5
- * @public
6
- */
7
- class ApiDOMStructuredError extends ApiDOMError {
8
- constructor(message?: string, structuredOptions?: ApiDOMErrorOptions) {
9
- super(message, structuredOptions);
10
-
11
- if (structuredOptions != null && typeof structuredOptions === 'object') {
12
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
13
- const { cause, ...causelessOptions } = structuredOptions;
14
- Object.assign(this, causelessOptions);
15
- }
16
- }
17
- }
18
-
19
- export default ApiDOMStructuredError;
@@ -1,8 +0,0 @@
1
- import UnsupportedOperationError from './UnsupportedOperationError.ts';
2
-
3
- /**
4
- * @public
5
- */
6
- class NotImplementedError extends UnsupportedOperationError {}
7
-
8
- export default NotImplementedError;
@@ -1,8 +0,0 @@
1
- import ApiDOMError from './ApiDOMError.ts';
2
-
3
- /**
4
- * @public
5
- */
6
- class UnsupportedOperationError extends ApiDOMError {}
7
-
8
- export default UnsupportedOperationError;
package/src/index.ts DELETED
@@ -1,8 +0,0 @@
1
- // base error classes
2
- export { default as ApiDOMError } from './ApiDOMError.ts';
3
- export { default as ApiDOMAggregateError } from './ApiDOMAggregateError.ts';
4
- export { default as ApiDOMStructuredError } from './ApiDOMStructuredError.ts';
5
- export type { default as ApiDOMErrorOptions } from './ApiDOMErrorOptions.ts';
6
- // generic custom error classes
7
- export { default as UnsupportedOperationError } from './UnsupportedOperationError.ts';
8
- export { default as NotImplementedError } from './NotImplementedError.ts';