-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or requestp3This is a minor priority issueThis is a minor priority issue
Description
Self-service
- I'd be willing to implement this feature
Problem
In #531, we plan to recommend users to use latest version of codemod in every run. However, it's possible that they may not use the latest version and miss bug fixes or new features when attempting to transform their applications.
Solution
Check the latest version available on npm, and display a warning if they're not using the latest version.
To minimize network calls, the CLI can limit it's calls to maximum once per day and store the information locally in the following format:
{
"last_call_timestamp": Date,
"latest_observed_version": Number
}The data can be stored next to codemod installation inside npx folder, so that it's deleted when codemod is deleted.
Alternatives
N/A
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestp3This is a minor priority issueThis is a minor priority issue