Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add packageDateLimit option to only-install package version that have release date before the specified one #8298

Open
wants to merge 6 commits into
base: 1.22-stable
Choose a base branch
from

Conversation

nthachus
Copy link

Summary
Add --package-date-limit option to only-install package version that have release date before the specified one.

In example, when installing with yarn --package-date-limit "2019-08-15T00:00:00.000Z" , only package versions that have release date before 2019-08-15 will be installed.

NOTE The date must be in JSON format.

This feature is similar with a feature request to install packages with minimum versions.

If you got dependency conflictions when installing some old framework, such as generator-jhipster, create-react-app, please try this new feature.

E.g. create-react-app v3.4.1 was released at 2020-03-21 , so, you can set packageDateLimit option to that date with command yarn config set package-date-limit "2020-03-21T00:00:22.357Z" then run create-react-app to initialize a new webapp without any @babel dependency conflictions.

I didn't update the changelog yet.

Test plan
I was also created unit-tests for this feature.

Copy link

@calbearox calbearox left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants