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

Implements optional peer dependencies #6671

Merged
merged 6 commits into from Dec 3, 2018

Conversation

arcanis
Copy link
Member

@arcanis arcanis commented Nov 13, 2018

Summary

This PR implements yarnpkg/rfcs#105 (Optional Peer Dependencies).

It uses a new peerDependenciesMeta field to specify which peer dependency warnings can be safely ignored.

Test plan

Added tests.

@arcanis arcanis merged commit 011a634 into yarnpkg:master Dec 3, 2018
@ljharb
Copy link

ljharb commented Dec 3, 2018

This is merged before the rfc itself is merged?

@arcanis
Copy link
Member Author

arcanis commented Dec 3, 2018

I wanted to leave an extra chance to the npm folks to participate before officially merging the rfc. Whatever happens, it will be merged for the next minor release (eta mid December).

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request Jan 17, 2019
## 1.13.0

- Implements a new `package.json` field: `peerDependenciesMeta`

  [6671](yarnpkg/yarn#6671) - [**Maël Nison**](https://twitter.com/arcanis)

- Adds an `optional` settings to `peerDependenciesMeta` to silence missing peer dependency warnings

  [6671](yarnpkg/yarn#6671) - [**Maël Nison**](https://twitter.com/arcanis)

- Implements `yarn policies set-version [range]`. Check [the documentation]() for usage & tips.

  [6673](yarnpkg/yarn#6673) - [**Maël Nison**](https://twitter.com/arcanis)

- Fixes a resolution issue when a package had an invalid `main` entry

  [6682](yarnpkg/yarn#6682) - [**Maël Nison**](https://twitter.com/arcanis)

- Decreases the size of the generated `$PATH` environment variable for a better Windows support

  [6683](yarnpkg/yarn#6683) - [**Rowan Lonsdale**](https://github.com/hWorblehat)

- Fixes postinstall scripts for third-party packages when they were referencing a binary from their own dependencies

  [6712](yarnpkg/yarn#6712) - [**Maël Nison**](https://twitter.com/arcanis)

- Fixes yarn audit exit code overflow

  [6748](yarnpkg/yarn#6748) - [**Andrey Vetlugin**](https://github.com/antrew)

- Stops automatically unplugging packages with postinstall script when running under `--ignore-scripts`

  [6820](yarnpkg/yarn#6820) - [**Maël Nison**](https://twitter.com/arcanis)

- Adds transparent support for the [`resolve`](https://github.com/browserify/resolve) package when using Plug'n'Play

  [6816](yarnpkg/yarn#6816) - [**Maël Nison**](https://twitter.com/arcanis)

- Properly reports the error codes when the npm registry throws 500's

  [6817](yarnpkg/yarn#6817) - [**Maël Nison**](https://twitter.com/arcanis)
@artembatura
Copy link

@arcanis Hi! Is it possible to hide such messages? (click to open image)
image
package.json

@arcanis
Copy link
Member Author

arcanis commented Jan 22, 2019

Not yet, but I have medium-term related improvements in progress that'll help.

@felixfbecker
Copy link

Is there a CLI flag to ignore failures because of peerDependenciesMeta config, like --ignore-engines?

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

4 participants