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 #8395

Open
wants to merge 38 commits into
base: master
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.

arcanis and others added 30 commits March 6, 2020 17:18
* Makes the CLI 2 forwarding stricter

* Fixes a test
…t have release date before the specified one
…yarnpkg#8142)

* fix(pack): always ignore yarnrc.yml file

* fix(pack): sort files before packing

* docs: changelog

* chore: ping ci

* Update CHANGELOG.md

Co-authored-by: Maël Nison <nison.mael@gmail.com>
This improves the experience of working with yarn
in workspaces that are marked as "type": "module"
in the package.json file.

This change has also been applied in yarn 2, see yarnpkg/berry#1354
- Add `--package-date-limit` option to only-install package version that have release date before the specified one
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

5 participants