npm and Yarn by default install things with a major version range. This provides intent that the package should work with any version within that major version range. The locking is already provided by the yarn.lock file, so there shouldn't be a need to lock packages to a specific version in the package.json file. It's standard practice in JS projects to use ranges for package versions.
npm and Yarn by default install things with a major version range. This provides intent that the package should work with any version within that major version range. The locking is already provided by the
yarn.lock
file, so there shouldn't be a need to lock packages to a specific version in thepackage.json
file. It's standard practice in JS projects to use ranges for package versions.