Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RFC: abbreviated metadata 压缩版本的 metadata 返回 time 字段 #609

Open
Beace opened this issue Nov 7, 2023 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@Beace
Copy link
Contributor

Beace commented Nov 7, 2023

使得 pnpm 在 resolution-mode=time-base 模式时,安装速度更快

 When resolution-mode is set to time-based, dependencies will be resolved the following way:

Direct dependencies will be resolved to their lowest versions. So if there is foo@^1.1.0 in the dependencies, then 1.1.0 will be installed.
Subdependencies will be resolved from versions that were published before the last direct dependency was published.

verdaccio 在 5.15.1 版本中支持了 time 字段,使得 pnpm 在 time-based 模式下安装速度更快,相关 RFC https://pnpm.io/npmrc#resolution-mode

This resolution mode works only with npm's full metadata. So it is slower in some scenarios. However, if you use Verdaccio v5.15.1 or newer, you may set the registry-supports-time-field setting to true, and it will be really fast.

@fengmk2
Copy link
Member

fengmk2 commented Nov 7, 2023

+1

@fengmk2 fengmk2 added the enhancement New feature or request label Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants