pnpm-lock.yaml
A dependency lock file generated by the pnpm package manager, recording the exact versions and integrity hashes of the dependency tree.
Core Facts
Lockfiles (such as pnpm-lock.yaml, package-lock.json, yarn.lock) record every dependency actually installed by the project and its exact version; when a direct dependency requires a higher version, the package manager will bump the lockfile entry, which may trigger synchronized changes in indirect dependencies.
In production environments, it is recommended to use a lockfile (such as pnpm-lock.yaml) to pin exact versions, avoiding unexpected behavioral changes introduced by automatic upgrades.
It is recommended to use package-lock.json or pnpm-lock.yaml to precisely lock the actually installed versions, and to submit upgrade PRs on a scheduled basis via tools such as Dependabot or Renovate.
Timeline (last 90 days)
When troubleshooting dependency version issues, one should check the versions actually installed in the lock file (such as package-lock.json or pnpm-lock.yaml) rather than only looking at the ranges declared in package.json.
The lockfile records the exact versions and integrity hashes of the dependency tree and is a key means of controlling the risk of indirect dependency upgrades; when workflow-harness is introduced as an indirect dependency, its actual version is jointly determined by the upper package's dependency declarations and the lockfile.
The lockfile records the exact resolution result of the dependency tree, ensuring that different environments install exactly the same versions; when a dependency's version requirement changes, the corresponding package in the lockfile may need to be explicitly updated.
package-lock.json and pnpm-lock.yaml record the exact resolved versions; after upgrading the adapter layer, you should check whether the final versions of ai and provider-utils in them are consistent with the other AI SDK packages, and if necessary use overrides/resolutions to force unification.
Dependency resolution in the JavaScript ecosystem is based on lockfiles rather than strict contracts, and different packages in the same dependency tree may pull different versions of ai
If package.json specifies ^2.0.15, npm/pnpm will only pull 2.0.16 on reinstall; if a package-lock.json or pnpm-lock.yaml already exists, it stays unchanged, and you must explicitly run npm update @ai-sdk/zai or delete the lockfile and reinstall.
pnpm uses pnpm-lock.yaml to lock the dependency tree, ensuring that installations in different environments and at different times yield completely identical dependency versions.
npm's peerDependencies constraints and lockfiles (package-lock.json, pnpm-lock.yaml) are the first place to look when troubleshooting dependency version mismatches.
After a patch upgrade, dependencies need to be reinstalled and integration tests run, because the lockfile does not automatically follow version changes in package.json.
Lockfiles (such as pnpm-lock.yaml, package-lock.json, yarn.lock) record every dependency actually installed by the project and its exact version; when a direct dependency requires a higher version, the package manager will bump the lockfile entry, which may trigger synchronized changes in indirect dependencies.
8 more timeline events
All Facts (18)
Lockfiles (such as pnpm-lock.yaml, package-lock.json, yarn.lock) record every dependency actually installed by the project and its exact version; when a direct dependency requires a higher version, the package manager will bump the lockfile entry, which may trigger synchronized changes in indirect dependencies.
90%VerifiedIn production environments, it is recommended to use a lockfile (such as pnpm-lock.yaml) to pin exact versions, avoiding unexpected behavioral changes introduced by automatic upgrades.
80%VerifiedIt is recommended to use package-lock.json or pnpm-lock.yaml to precisely lock the actually installed versions, and to submit upgrade PRs on a scheduled basis via tools such as Dependabot or Renovate.
75%VerifiedIn high-frequency-iteration dependency libraries, committing and maintaining lock files (such as package-lock.json or pnpm-lock.yaml) ensures consistent dependencies across team members and CI environments.
75%VerifiedA lockfile (such as package-lock.json or pnpm-lock.yaml) records the exact version and integrity checksum hash of every package in the entire dependency tree, ensuring consistent installation results across different environments.
75%VerifiedIn modern front-end engineering, lockfiles (such as package-lock.json and pnpm-lock.yaml) record the exact versions and hash values of the dependency tree, ensuring that team members, CI/CD environments, and production deployments use identical dependency versions.
75%UnverifiedIf package.json specifies ^2.0.15, npm/pnpm will only pull 2.0.16 on reinstall; if a package-lock.json or pnpm-lock.yaml already exists, it stays unchanged, and you must explicitly run npm update @ai-sdk/zai or delete the lockfile and reinstall.
70%UnverifiedA lockfile precisely records the exact version and integrity hash of every package across the entire dependency tree, ensuring a consistent dependency snapshot is installed across different environments.
70%UnverifiedWhen troubleshooting dependency version issues, one should check the versions actually installed in the lock file (such as package-lock.json or pnpm-lock.yaml) rather than only looking at the ranges declared in package.json.
50%UnverifiedThe lockfile records the exact versions and integrity hashes of the dependency tree and is a key means of controlling the risk of indirect dependency upgrades; when workflow-harness is introduced as an indirect dependency, its actual version is jointly determined by the upper package's dependency declarations and the lockfile.
50%UnverifiedThe lockfile records the exact resolution result of the dependency tree, ensuring that different environments install exactly the same versions; when a dependency's version requirement changes, the corresponding package in the lockfile may need to be explicitly updated.
50%Unverifiedpackage-lock.json and pnpm-lock.yaml record the exact resolved versions; after upgrading the adapter layer, you should check whether the final versions of ai and provider-utils in them are consistent with the other AI SDK packages, and if necessary use overrides/resolutions to force unification.
50%UnverifiedDependency resolution in the JavaScript ecosystem is based on lockfiles rather than strict contracts, and different packages in the same dependency tree may pull different versions of ai
50%Unverifiedpnpm uses pnpm-lock.yaml to lock the dependency tree, ensuring that installations in different environments and at different times yield completely identical dependency versions.
50%Unverifiednpm's peerDependencies constraints and lockfiles (package-lock.json, pnpm-lock.yaml) are the first place to look when troubleshooting dependency version mismatches.
50%UnverifiedAfter a patch upgrade, dependencies need to be reinstalled and integration tests run, because the lockfile does not automatically follow version changes in package.json.
50%UnverifiedCommon means of avoiding duplicate dependency versions include: using npm ls ai to check for duplicate dependencies, pinning versions in the lockfile, or keeping adapter packages and the core package within the same minor version range.
50%UnverifiedIn production environments, lock files such as package-lock.json or pnpm-lock.yaml should be committed to version control to ensure that team members and CI environments use a consistent dependency tree.
50%