pnpm/spec

Specifications for lockfile versions >= 5.3?

adamcohen2 opened this issue · 10 comments

I've noticed that the specifications only exist up to lockfile version 5.2. Are there any details on the specifications for lockfile versions 5.3, 5.4 and 6? Thanks!

Tagging @zkochan since it is not clear if this issue tracker is monitored.

no, they are not documented. But v6 is almost the same as v5

I've had a hard time finding out what the correct schemas are to parse. At what point did dependencies change from a simple string to a struct?

v5.4 (which is undocumented):

lockfileVersion: 5.4

dependencies:
  nanoid: 3.3.4

v6 (which is also undocumented):

lockfileVersion: '6.0'

dependencies:
  '@testing-library/jest-dom':
    specifier: ^5.16.5
    version: 5.16.5

in v6

Hello @zkochan
Can you clarify:
v5 has next package format: <pkg_name>/<pkg_version> (/foo/1.0.0). For non-default registry - registry.node-modules.io/foo/1.0.0

but, if i understand correctly, v6 uses <pkg_name>@<pkg_version> format (pnpm/pnpm#5810)
What would the v6 format look like for a private registry?

Best regards, Dmitriy!

It will be registry.node-modules.io/foo@1.0.0

Thanks for the quick response!

Will the docs be updated to mention the change in the schema of dependencies? I would like to do it in a PR(have the time) but I am not sure if I will be able to mention all the additional details, which you could.

Hi @RahulGautamSingh!

If you do, may I ask you to add the information that lockfileVersion is a string in v6.

Thank you in advance

added a v6 doc