본문으로 건너뛰기

The year 2022 for pnpm

· 1분 소요

연말이네요. 힘든 한 해였습니다. 아실지 모르겠지만 저는 우크라이나에 살고 있고 러시아와의 전쟁 때문에 예전보다 프로젝트의 진행이 어려웠습니다. 하지만 pnpm에게는 좋은 한 해였습니다. 신규 유저와 기여자가 많이 생겼고 훌륭한 기능들을 많이 구현할 수 있었습니다.

(위 이미지는 Midjourney에 의해 생성되었습니다. 호랑이는 호랑이의 해를 의미합니다)

사용

다운로드 통계

올해 내 목표는 다운로드 수로 Lerna를 이기는 것이 었습니다. 우리는 8월에 이 목표를 달성할 수 있었습니다.

pnpm was downloaded more than 5 times more in 2022 than in 2021:

문서 방문

Google Analytics를 사용하여 문서에서 개인화되지 않은 통계를 수집합니다. In 2022, sometimes we had more than 20,000 unique visitors a week. This is 10 times more than in 2021!

깃허브 스타

Our main GitHub repository received almost +7,000 stars this year.

Our contributors

We had a lot of new and active contributors this year. These are the people the merge at least one PR in 2022:

주요 기능

Supporting a symlinkless hoisted node_modules (since v6.25.0)

Right at the beginning of 2022, we have added support for the "traditional" hoisted (a.k.a flat node_modules). We use Yarn's hoisting algorithm to create a proper hoisted node_modules. This new setting has basically made pnpm compatible with all Node.js stack that are compatible with npm CLI.

To use the hoisted node_modules directory structure, use the node-linker=hoisted setting in an .npmrc file.

Side effects cache (since v7.0.0)

Since v7, side-effect-cache is enabled by default, so dependencies that should be built are only built once on a machine. This improves installation speed by a lot in projects that have dependencies with build scripts.

Dependencies patching (since v7.4.0)

The pnpm patch command have been added for patching dependencies in your node_modules.

Time-based resolution strategy (since v7.10.0)

A new resolution mode was added to pnpm, which should make updating dependencies more secure. You can change the resolution mode with the resolution-mode setting.

Listing licenses of dependencies (since v7.17.0)

You may now use the pnpm licenses list command to check the licenses of the installed packages.