Enzyme: warning enzyme > rst-selector-parser > nearley > [email protected]: Package no longer supported. Contact [email protected] for more info.

Created on 21 Feb 2018  Â·  9Comments  Â·  Source: enzymejs/enzyme

Current behavior

installation prints a warning

Expected behavior

Installation does not print a warning

Your environment

N/A

also a nice excuse to excise nomnom and its underscore craziness: https://github.com/airbnb/enzyme/issues/1249

All 9 comments

Warnings like this can and should be ignored; either way, closing in favor of https://github.com/aweary/rst-selector-parser/issues/12

@ljharb Can this be expedited? npm install is now throwing an error and breaking my CI.

In case anyone else comes across this, I ran npm_config_loglevel=silent npm install to ignore the warnings. Now it seems subsequent npm install's complete successfully.

The loglevel wasn't necessary; the reason npm install stopped showing the errors is urelated to this issue (deprecation warnings never should break CI).

It is ignored technical debt like this that makes me opinionated against a project. This project uses the dependency in one place and the dependency project has stated it will not be updating. Can't the dependency be replaced or forked? What happens when it is found that there is an exploit or some reason they no longer support the project?

The code that's deprecated isn't actually executed

@jrgleason a warning from a downstream transitive dependency isn’t technical debt;
https://github.com/aweary/rst-selector-parser/issues/12 is the proper place to file it, not here; if there ever is a time when a dependency is ctually causing a real problem in enzyme - which it is currently not - then of course we’d have to find a way to replace it.

These warnings don’t break installs, they don’t obstruct anything - all they do is notify about a potential issue. In this case, there is no issue, and thus no action that is needed.

@ljharb whilst that is true, having multiple persistent warnings from various transient dependencies being shown during yarn/npm install, trains users to ignore the warnings entirely - when for things like missing peer dependency warnings they really shouldn't be ignored (as I'm sure you can appreciate, given the number of eslint-config-airbnb(-base) support tickets that are due to invalid peer dependencies).

@edmorley yes, i realize console warning output can be irritating, but that’s not the same thing as “ignored technical debt”. As for peer dep warnings, those show up on npm ls, which is the only place you should be validating your dependency graph - this warning shows up on install.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

timhonders picture timhonders  Â·  3Comments

blainekasten picture blainekasten  Â·  3Comments

blainekasten picture blainekasten  Â·  3Comments

nelsonchen90 picture nelsonchen90  Â·  3Comments

heikkimu picture heikkimu  Â·  3Comments