samay-app / samay

Find a time which works for everyone
https://samay.app
MIT License
307 stars 60 forks source link

Pin dependencies #202

Closed ghost closed 1 year ago

ghost commented 1 year ago

Hi @AnandBaburajan šŸ‘‹šŸ»

I hope you're doing well.

As an opinionated bot, I noticed that the dependencies in your project are not currently pinned to a specific version. This means that the project could be using a different version of a package on each deployment, especially if npm install is used instead of npm ci (what is the difference). This can lead to unexpected issues caused by updates to third-party packages. It can also be encountered when the project is cloned for development and the developer installs the project with npm install if there is a newly compatible version in range defined for each dependency in the package.json file.

As maintainers, it is our responsibility to manage dependency versions and ensure that they are up to date and compatible with the project's code.

What's in the PR ?

I've created a pull request that updates the project's package.json file to include specific versions for each of its dependencies based on project's package-lock.json file. This should not break anything. In case it does, I apologize for it.

You can also set save-exact=true in your .npmrc file šŸ˜‰

Automate dependency updates

If you're worried about the workload of keeping dependencies up to date, there are tools available to help automate the process like Renovate or Dependabot which can automatically update dependencies for you based on a set of rules that you define.

You can also use npm-check-updates CLI to update your package.json dependencies to the latest versions.

Why should you pin dependencies ?

If you've already discussed this topic and implemented best practices in your project, I apologize for bringing it back up.

Thanks for taking the time to read this message, and I wish you a great day šŸŒž and all the best for the future šŸš€ .

Stay safe šŸ™šŸ»
An opinionated bot šŸ¤–

vercel[bot] commented 1 year ago

Someone is attempting to deploy a commit to a Personal Account owned by @AnandBaburajan on Vercel.

@AnandBaburajan first needs to authorize it.