# @pnpm/worker

## 1000.3.0

### Minor Changes

- 8993f68: Export worker start function.

### Patch Changes

- @pnpm/exec.pkg-requires-build@1000.0.11
- @pnpm/symlink-dependency@1000.0.12
- @pnpm/store.cafs@1000.0.19
- @pnpm/cafs-types@1000.0.0
- @pnpm/create-cafs-store@1000.0.20
- @pnpm/fs.hard-link-dir@1000.0.2

## 1000.2.0

### Minor Changes

- 06d2160: Allow to specify the max amount of pnpm workers via the `PNPM_MAX_WORKERS` environment variable [#10056](https://github.com/pnpm/pnpm/pull/10056).

## 1000.1.14

### Patch Changes

- Updated dependencies [9b9faa5]
  - @pnpm/fs.hard-link-dir@1000.0.2
  - @pnpm/graceful-fs@1000.0.1
  - @pnpm/store.cafs@1000.0.18
  - @pnpm/create-cafs-store@1000.0.19
  - @pnpm/symlink-dependency@1000.0.11

## 1000.1.13

### Patch Changes

- @pnpm/error@1000.0.5
- @pnpm/fs.hard-link-dir@1000.0.1
- @pnpm/symlink-dependency@1000.0.11
- @pnpm/create-cafs-store@1000.0.18

## 1000.1.12

### Patch Changes

- @pnpm/exec.pkg-requires-build@1000.0.10
- @pnpm/symlink-dependency@1000.0.11
- @pnpm/store.cafs@1000.0.17
- @pnpm/cafs-types@1000.0.0
- @pnpm/fs.hard-link-dir@1000.0.1
- @pnpm/create-cafs-store@1000.0.18

## 1000.1.11

### Patch Changes

- @pnpm/error@1000.0.4
- @pnpm/store.cafs@1000.0.16
- @pnpm/create-cafs-store@1000.0.17
- @pnpm/fs.hard-link-dir@1000.0.1
- @pnpm/symlink-dependency@1000.0.10

## 1000.1.10

### Patch Changes

- @pnpm/exec.pkg-requires-build@1000.0.9
- @pnpm/symlink-dependency@1000.0.10
- @pnpm/store.cafs@1000.0.15
- @pnpm/cafs-types@1000.0.0
- @pnpm/create-cafs-store@1000.0.16
- @pnpm/error@1000.0.3
- @pnpm/fs.hard-link-dir@1000.0.1

## 1000.1.9

### Patch Changes

- 589ac1f: Replaced `shell-quote` with `shlex` for quoting command arguments [#9381](https://github.com/pnpm/pnpm/issues/9381).

## 1000.1.8

### Patch Changes

- @pnpm/store.cafs@1000.0.14
- @pnpm/create-cafs-store@1000.0.15
- @pnpm/fs.hard-link-dir@1000.0.1
- @pnpm/symlink-dependency@1000.0.9

## 1000.1.7

### Patch Changes

- @pnpm/store.cafs@1000.0.13
- @pnpm/create-cafs-store@1000.0.14
- @pnpm/fs.hard-link-dir@1000.0.1
- @pnpm/symlink-dependency@1000.0.9

## 1000.1.6

### Patch Changes

- 09cf46f: Update `@pnpm/logger` in peer dependencies.
- Updated dependencies [09cf46f]
  - @pnpm/create-cafs-store@1000.0.13
  - @pnpm/symlink-dependency@1000.0.9
  - @pnpm/fs.hard-link-dir@1000.0.1
  - @pnpm/exec.pkg-requires-build@1000.0.8
  - @pnpm/store.cafs@1000.0.12
  - @pnpm/cafs-types@1000.0.0

## 1000.1.5

### Patch Changes

- Updated dependencies [8a9f3a4]
  - @pnpm/logger@1001.0.0
  - @pnpm/store.cafs@1000.0.11
  - @pnpm/create-cafs-store@1000.0.12
  - @pnpm/symlink-dependency@1000.0.8
  - @pnpm/exec.pkg-requires-build@1000.0.7
  - @pnpm/cafs-types@1000.0.0
  - @pnpm/fs.hard-link-dir@1000.0.0

## 1000.1.4

### Patch Changes

- @pnpm/create-cafs-store@1000.0.11
- @pnpm/store.cafs@1000.0.10
- @pnpm/fs.hard-link-dir@1000.0.0
- @pnpm/symlink-dependency@1000.0.7

## 1000.1.3

### Patch Changes

- @pnpm/exec.pkg-requires-build@1000.0.6
- @pnpm/symlink-dependency@1000.0.7
- @pnpm/store.cafs@1000.0.9
- @pnpm/cafs-types@1000.0.0
- @pnpm/create-cafs-store@1000.0.10
- @pnpm/fs.hard-link-dir@1000.0.0

## 1000.1.2

### Patch Changes

- @pnpm/exec.pkg-requires-build@1000.0.5
- @pnpm/symlink-dependency@1000.0.6
- @pnpm/store.cafs@1000.0.8
- @pnpm/cafs-types@1000.0.0
- @pnpm/fs.hard-link-dir@1000.0.0
- @pnpm/create-cafs-store@1000.0.9

## 1000.1.1

### Patch Changes

- @pnpm/store.cafs@1000.0.7
- @pnpm/create-cafs-store@1000.0.8
- @pnpm/fs.hard-link-dir@1000.0.0
- @pnpm/symlink-dependency@1000.0.5

## 1000.1.0

### Minor Changes

- 2e05789: The max amount of workers running for linking packages from the store has been reduced to 4 to achieve optimal results [#9286](https://github.com/pnpm/pnpm/issues/9286). The workers are performing many file system operations, so increasing the number of CPUs doesn't help performance after some point.

## 1000.0.8

### Patch Changes

- Updated dependencies [58d8597]
  - @pnpm/crypto.polyfill@1000.1.0

## 1000.0.7

### Patch Changes

- @pnpm/exec.pkg-requires-build@1000.0.4
- @pnpm/symlink-dependency@1000.0.5
- @pnpm/store.cafs@1000.0.6
- @pnpm/cafs-types@1000.0.0
- @pnpm/fs.hard-link-dir@1000.0.0
- @pnpm/create-cafs-store@1000.0.7

## 1000.0.6

### Patch Changes

- @pnpm/create-cafs-store@1000.0.6
- @pnpm/exec.pkg-requires-build@1000.0.3
- @pnpm/symlink-dependency@1000.0.4
- @pnpm/store.cafs@1000.0.5
- @pnpm/cafs-types@1000.0.0
- @pnpm/fs.hard-link-dir@1000.0.0

## 1000.0.5

### Patch Changes

- @pnpm/error@1000.0.2
- @pnpm/exec.pkg-requires-build@1000.0.2
- @pnpm/symlink-dependency@1000.0.3
- @pnpm/store.cafs@1000.0.4
- @pnpm/cafs-types@1000.0.0
- @pnpm/fs.hard-link-dir@1000.0.0
- @pnpm/create-cafs-store@1000.0.5

## 1000.0.4

### Patch Changes

- @pnpm/store.cafs@1000.0.3
- @pnpm/create-cafs-store@1000.0.4
- @pnpm/fs.hard-link-dir@1000.0.0
- @pnpm/symlink-dependency@1000.0.2

## 1000.0.3

### Patch Changes

- @pnpm/exec.pkg-requires-build@1000.0.1
- @pnpm/symlink-dependency@1000.0.2
- @pnpm/store.cafs@1000.0.2
- @pnpm/cafs-types@1000.0.0
- @pnpm/fs.hard-link-dir@1000.0.0
- @pnpm/create-cafs-store@1000.0.3

## 1000.0.2

### Patch Changes

- 7272992: Print a hint, when installation fails due to an exFAT drive.
  - @pnpm/symlink-dependency@1000.0.1
  - @pnpm/create-cafs-store@1000.0.2
  - @pnpm/fs.hard-link-dir@1000.0.0

## 1000.0.1

### Patch Changes

- @pnpm/error@1000.0.1
- @pnpm/store.cafs@1000.0.1
- @pnpm/create-cafs-store@1000.0.1
- @pnpm/fs.hard-link-dir@1000.0.0
- @pnpm/symlink-dependency@1000.0.0

## 2.0.0

### Major Changes

- 099e6af: Changed the structure of the index files in the store to store side effects cache information more efficiently. In the new version, side effects do not list all the files of the package but just the differences [#8636](https://github.com/pnpm/pnpm/pull/8636).

### Patch Changes

- Updated dependencies [d433cb9]
- Updated dependencies [099e6af]
  - @pnpm/store.cafs@5.0.0
  - @pnpm/cafs-types@6.0.0
  - @pnpm/error@6.0.3
  - @pnpm/create-cafs-store@7.0.12
  - @pnpm/fs.hard-link-dir@4.0.0
  - @pnpm/symlink-dependency@8.0.8

## 1.0.13

### Patch Changes

- 222d10a: Use `crypto.hash`, when available, for improved performance [#8629](https://github.com/pnpm/pnpm/pull/8629).
- Updated dependencies [222d10a]
- Updated dependencies [222d10a]
- Updated dependencies [a1f4df2]
  - @pnpm/crypto.polyfill@1.0.0
  - @pnpm/store.cafs@4.0.2
  - @pnpm/create-cafs-store@7.0.11
  - @pnpm/fs.hard-link-dir@4.0.0
  - @pnpm/symlink-dependency@8.0.8

## 1.0.12

### Patch Changes

- Updated dependencies [db7ff76]
  - @pnpm/store.cafs@4.0.1
  - @pnpm/create-cafs-store@7.0.10
  - @pnpm/fs.hard-link-dir@4.0.0
  - @pnpm/symlink-dependency@8.0.8

## 1.0.11

### Patch Changes

- @pnpm/error@6.0.2
- @pnpm/fs.hard-link-dir@4.0.0
- @pnpm/symlink-dependency@8.0.8
- @pnpm/create-cafs-store@7.0.9

## 1.0.10

### Patch Changes

- Updated dependencies [db420ab]
  - @pnpm/store.cafs@4.0.0
  - @pnpm/exec.pkg-requires-build@1.0.7
  - @pnpm/symlink-dependency@8.0.8
  - @pnpm/cafs-types@5.0.0
  - @pnpm/create-cafs-store@7.0.9
  - @pnpm/fs.hard-link-dir@4.0.0

## 1.0.9

### Patch Changes

- @pnpm/exec.pkg-requires-build@1.0.6
- @pnpm/symlink-dependency@8.0.7
- @pnpm/store.cafs@3.0.8
- @pnpm/cafs-types@5.0.0
- @pnpm/fs.hard-link-dir@4.0.0
- @pnpm/create-cafs-store@7.0.8

## 1.0.8

### Patch Changes

- @pnpm/exec.pkg-requires-build@1.0.5
- @pnpm/symlink-dependency@8.0.6
- @pnpm/store.cafs@3.0.7
- @pnpm/cafs-types@5.0.0
- @pnpm/fs.hard-link-dir@4.0.0
- @pnpm/create-cafs-store@7.0.7

## 1.0.7

### Patch Changes

- @pnpm/exec.pkg-requires-build@1.0.4
- @pnpm/symlink-dependency@8.0.5
- @pnpm/store.cafs@3.0.6
- @pnpm/cafs-types@5.0.0
- @pnpm/fs.hard-link-dir@4.0.0
- @pnpm/create-cafs-store@7.0.6

## 1.0.6

### Patch Changes

- Updated dependencies [afe520d]
- Updated dependencies [afe520d]
  - @pnpm/store.cafs@3.0.5
  - @pnpm/symlink-dependency@8.0.4
  - @pnpm/create-cafs-store@7.0.5
  - @pnpm/fs.hard-link-dir@4.0.0

## 1.0.5

### Patch Changes

- @pnpm/exec.pkg-requires-build@1.0.3
- @pnpm/symlink-dependency@8.0.3
- @pnpm/store.cafs@3.0.4
- @pnpm/cafs-types@5.0.0
- @pnpm/create-cafs-store@7.0.4
- @pnpm/fs.hard-link-dir@4.0.0

## 1.0.4

### Patch Changes

- @pnpm/exec.pkg-requires-build@1.0.2
- @pnpm/symlink-dependency@8.0.2
- @pnpm/store.cafs@3.0.3
- @pnpm/cafs-types@5.0.0
- @pnpm/fs.hard-link-dir@4.0.0
- @pnpm/create-cafs-store@7.0.3

## 1.0.3

### Patch Changes

- @pnpm/store.cafs@3.0.2
- @pnpm/create-cafs-store@7.0.2
- @pnpm/fs.hard-link-dir@4.0.0
- @pnpm/symlink-dependency@8.0.1

## 1.0.2

### Patch Changes

- @pnpm/exec.pkg-requires-build@1.0.1
- @pnpm/symlink-dependency@8.0.1
- @pnpm/store.cafs@3.0.1
- @pnpm/cafs-types@5.0.0
- @pnpm/fs.hard-link-dir@4.0.0
- @pnpm/create-cafs-store@7.0.1

## 1.0.1

### Patch Changes

- Updated dependencies [a7aef51]
  - @pnpm/error@6.0.1

## 1.0.0

### Major Changes

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

### Minor Changes

- 730929e: Add a field named `ignoredOptionalDependencies`. This is an array of strings. If an optional dependency has its name included in this array, it will be skipped.

### 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).
- 11d9ebd: Always add a name and version field to the index files in the store [#7115](https://github.com/pnpm/pnpm/issues/7115).
- 36dcaa0: When installing git-hosted dependencies, only pick the files that would be packed with the package [#7638](https://github.com/pnpm/pnpm/pull/7638).
- Updated dependencies [3ded840]
- Updated dependencies [43cdd87]
- Updated dependencies [6cdbf11]
- Updated dependencies [36dcaa0]
- Updated dependencies [0e6b757]
- Updated dependencies [730929e]
  - @pnpm/error@6.0.0
  - @pnpm/create-cafs-store@7.0.0
  - @pnpm/symlink-dependency@8.0.0
  - @pnpm/fs.hard-link-dir@4.0.0
  - @pnpm/cafs-types@5.0.0
  - @pnpm/graceful-fs@4.0.0
  - @pnpm/store.cafs@3.0.0
  - @pnpm/exec.pkg-requires-build@1.0.0

## 0.3.14

### Patch Changes

- @pnpm/store.cafs@2.0.12
- @pnpm/create-cafs-store@6.0.13
- @pnpm/fs.hard-link-dir@3.0.0
- @pnpm/symlink-dependency@7.1.4

## 0.3.13

### Patch Changes

- @pnpm/create-cafs-store@6.0.12

## 0.3.12

### Patch Changes

- Updated dependencies [33313d2fd]
  - @pnpm/store.cafs@2.0.11
  - @pnpm/create-cafs-store@6.0.11
  - @pnpm/symlink-dependency@7.1.4
  - @pnpm/cafs-types@4.0.0
  - @pnpm/fs.hard-link-dir@3.0.0

## 0.3.11

### Patch Changes

- @pnpm/symlink-dependency@7.1.3
- @pnpm/store.cafs@2.0.10
- @pnpm/cafs-types@4.0.0
- @pnpm/fs.hard-link-dir@3.0.0
- @pnpm/create-cafs-store@6.0.10

## 0.3.10

### Patch Changes

- @pnpm/create-cafs-store@6.0.9

## 0.3.9

### Patch Changes

- 1e7bd4af3: Use availableParallelism, when available.

## 0.3.8

### Patch Changes

- @pnpm/store.cafs@2.0.9
- @pnpm/create-cafs-store@6.0.8
- @pnpm/fs.hard-link-dir@3.0.0
- @pnpm/symlink-dependency@7.1.2

## 0.3.7

### Patch Changes

- Updated dependencies [cfc017ee3]
  - @pnpm/create-cafs-store@6.0.7
  - @pnpm/store.cafs@2.0.8
  - @pnpm/fs.hard-link-dir@3.0.0
  - @pnpm/symlink-dependency@7.1.2

## 0.3.6

### Patch Changes

- 6390033cd: Directory hard linking moved to the worker.
- Updated dependencies [6390033cd]
  - @pnpm/fs.hard-link-dir@3.0.0
  - @pnpm/store.cafs@2.0.7
  - @pnpm/create-cafs-store@6.0.6
  - @pnpm/symlink-dependency@7.1.2
  - @pnpm/cafs-types@4.0.0

## 0.3.5

### Patch Changes

- @pnpm/create-cafs-store@6.0.5

## 0.3.4

### Patch Changes

- 08b65ff78: Update @rushstack/worker-pool.
- Updated dependencies [01bc58e2c]
  - @pnpm/store.cafs@2.0.6
  - @pnpm/create-cafs-store@6.0.4
  - @pnpm/symlink-dependency@7.1.1

## 0.3.3

### Patch Changes

- @pnpm/create-cafs-store@6.0.3

## 0.3.2

### Patch Changes

- @pnpm/create-cafs-store@6.0.2

## 0.3.1

### Patch Changes

- @pnpm/create-cafs-store@6.0.1
- @pnpm/symlink-dependency@7.1.1
- @pnpm/store.cafs@2.0.5
- @pnpm/cafs-types@4.0.0

## 0.3.0

### Minor Changes

- 9caa33d53: Remove `disableRelinkFromStore` and `relinkLocalDirDeps`. Replace them with `disableRelinkLocalDirDeps`.

### Patch Changes

- Updated dependencies [9caa33d53]
- Updated dependencies [9caa33d53]
  - @pnpm/create-cafs-store@6.0.0
  - @pnpm/cafs-types@4.0.0
  - @pnpm/graceful-fs@3.2.0
  - @pnpm/store.cafs@2.0.4
  - @pnpm/symlink-dependency@7.1.0

## 0.2.1

### Patch Changes

- @pnpm/create-cafs-store@5.1.1

## 0.2.0

### Minor Changes

- 48dcd108c: Improve performance of installation by using a worker for creating the symlinks inside `node_modules/.pnpm` [#7069](https://github.com/pnpm/pnpm/pull/7069).

### Patch Changes

- 03cdccc6e: New option added: disableRelinkFromStore.
- Updated dependencies [03cdccc6e]
- Updated dependencies [48dcd108c]
  - @pnpm/create-cafs-store@5.1.0
  - @pnpm/cafs-types@3.1.0
  - @pnpm/symlink-dependency@7.1.0
  - @pnpm/store.cafs@2.0.3

## 0.1.2

### Patch Changes

- Updated dependencies [b3947185c]
  - @pnpm/store.cafs@2.0.2
  - @pnpm/create-cafs-store@5.0.2

## 0.1.1

### Patch Changes

- Updated dependencies [b548f2f43]
- Updated dependencies [4a1a9431d]
  - @pnpm/store.cafs@2.0.1
  - @pnpm/cafs-types@3.0.1
  - @pnpm/create-cafs-store@5.0.1

## 0.1.0

### Minor Changes

- 083bbf590: Initial release.

### Patch Changes

- Updated dependencies [0fd9e6a6c]
- Updated dependencies [f2009d175]
- Updated dependencies [083bbf590]
- Updated dependencies [083bbf590]
  - @pnpm/store.cafs@2.0.0
  - @pnpm/create-cafs-store@5.0.0
  - @pnpm/cafs-types@3.0.0
  - @pnpm/graceful-fs@3.1.0
