# @pnpm/error

## 1001.0.0

### Major Changes

- 491a84f: This package is now pure ESM.
- 7d2fd48: Node.js v18, 19, 20, and 21 support discontinued.

### Minor Changes

- 831f574: The `PnpmError` class now accepts an optional `cause` argument.

### Patch Changes

- Updated dependencies [c55c614]
- Updated dependencies [a8f016c]
- Updated dependencies [491a84f]
- Updated dependencies [075aa99]
- Updated dependencies [7d2fd48]
- Updated dependencies [50fbeca]
- Updated dependencies [71de2b3]
  - @pnpm/constants@1002.0.0

## 1000.0.5

### Patch Changes

- Updated dependencies [6365bc4]
  - @pnpm/constants@1001.3.1

## 1000.0.4

### Patch Changes

- Updated dependencies [d1edf73]
- Updated dependencies [86b33e9]
  - @pnpm/constants@1001.3.0

## 1000.0.3

### Patch Changes

- Updated dependencies [1a07b8f]
  - @pnpm/constants@1001.2.0

## 1000.0.2

### Patch Changes

- Updated dependencies [9a44e6c]
  - @pnpm/constants@1001.1.0

## 1000.0.1

### Patch Changes

- Updated dependencies [d2e83b0]
- Updated dependencies [a76da0c]
  - @pnpm/constants@1001.0.0

## 6.0.3

### Patch Changes

- Updated dependencies [19d5b51]
- Updated dependencies [8108680]
- Updated dependencies [c4f5231]
  - @pnpm/constants@10.0.0

## 6.0.2

### Patch Changes

- Updated dependencies [83681da]
  - @pnpm/constants@9.0.0

## 6.0.1

### Patch Changes

- a7aef51: Hide auth token in FetchError object [#8069](https://github.com/pnpm/pnpm/pull/8069).

## 6.0.0

### Major Changes

- 43cdd87: Node.js v16 support dropped. Use at least Node.js v18.12.

### Patch Changes

- 3ded840: Print the right error code when a package fails to be added to the store [#7679](https://github.com/pnpm/pnpm/issues/7679).
- Updated dependencies [c692f80]
- Updated dependencies [43cdd87]
- Updated dependencies [d381a60]
  - @pnpm/constants@8.0.0

## 5.0.2

### Patch Changes

- Updated dependencies [302ebffc5]
  - @pnpm/constants@7.1.1

## 5.0.1

### Patch Changes

- Updated dependencies [9c4ae87bd]
  - @pnpm/constants@7.1.0

## 5.0.0

### Major Changes

- eceaa8b8b: Node.js 14 support dropped.

### Patch Changes

- Updated dependencies [eceaa8b8b]
  - @pnpm/constants@7.0.0

## 4.0.1

### Patch Changes

- Updated dependencies [3ebce5db7]
  - @pnpm/constants@6.2.0

## 4.0.0

### Major Changes

- 043d988fc: Breaking change to the API. Defaul export is not used.
- f884689e0: Require `@pnpm/logger` v5.

## 3.1.0

### Minor Changes

- e8a631bf0: Add new optional field: prefix.

## 3.0.1

### Patch Changes

- Updated dependencies [1267e4eff]
  - @pnpm/constants@6.1.0

## 3.0.0

### Major Changes

- 542014839: Node.js 12 is not supported.

### Patch Changes

- Updated dependencies [542014839]
  - @pnpm/constants@6.0.0

## 2.1.0

### Minor Changes

- 70ba51da9: Add new error object: LockfileMissingDependencyError.

## 2.0.0

### Major Changes

- 97b986fbc: Node.js 10 support is dropped. At least Node.js 12.17 is required for the package to work.

## 1.4.0

### Minor Changes

- 0c5f1bcc9: Every error object has an optional "attempts" field.

## 1.3.1

### Patch Changes

- 75a36deba: Report auth info on 404 errors as well.

## 1.3.0

### Minor Changes

- 6d480dd7a: A new error class added for throwing fetch errors: FetchError.

## 1.2.1
