<a name="1.5.1"></a>
# [1.5.1](https://github.com/ts-stack/chain-error/releases/tag/1.5.1) (2025-09-02)

### Features

| Commit | Type | Description |
| -- | -- | -- |
| [5a6ba10757](https://github.com/ts-stack/chain-error/commit/5a6ba10757) | fix | If `chainErrorOptions.name !== undefined` such a name is taken into account even if it has an empty string. |

<a name="1.5.0"></a>
## [1.5.0](https://github.com/ts-stack/chain-error/releases/tag/1.5.0) (2025-08-20)

### Features

| Commit | Type | Description |
| -- | -- | -- |
| [384bb74834](https://github.com/ts-stack/chain-error/commit/384bb74834) | feat | If `error.cause.trace` has common trace lines with `error.trace`, they are now removed from `error.cause.trace` (using `ChainError.getFullStack()`). |

<a name="1.4.2"></a>
## [1.4.2](https://github.com/ts-stack/chain-error/releases/tag/1.4.2) (2025-08-15)

### Bug fix

| Commit | Type | Description |
| -- | -- | -- |
| [f89b71abac](https://github.com/ts-stack/chain-error/commit/f89b71abac) | fix | init `err.cause` only if it exists. |

<a name="1.3.1"></a>
## [1.3.1](https://github.com/ts-stack/chain-error/releases/tag/1.3.1) (2024-10-18)

### Bug fix

| Commit | Type | Description |
| -- | -- | -- |
| [a62b8a6103](https://github.com/ts-stack/chain-error/commit/a62b8a6103616ea8) | fix | fixed type for `chainErrorOptions.constructorOpt`. |

<a name="1.3.0"></a>
## [1.3.0](https://github.com/ts-stack/chain-error/releases/tag/1.3.0) (2024-09-30)

### Features

- Migration to ESM.

<a name="1.2.0"></a>
## [1.2.0](https://github.com/ts-stack/chain-error/releases/tag/1.2.0) (2020-04-16)

### Features

- Added generic for `ChainError.getInfo<T>()`. Also, the following properties of `ChainError` are made public:
  - `cause`
  - `info`
  - `currentMessage`
  - `skipCauseMessage`

<a name="1.1.0"></a>
## [1.1.0](https://github.com/ts-stack/chain-error/releases/tag/1.1.0) (2020-04-16)

### Features

- Added generic for `ChainError<T>`, by default it `ObjectAny`;
