This should fix installation of immutable from NPM (https://www.npmjs.com/package/immutable) which appears to contain version 0.8.0-SNAPSHOT which causes exception in Composer's version normalization.
There shouldn't be any major or even minor issues with this fix.
It will allow to install NPM packages, that contain appropriate version (while skipping versions like mentioned above) as well as still fail for packages that do not have any version that can be parsed by Composer.
Sorry for not adding any test case, I've tried, but failed to write correct one. Feel free to push more commits into this branch if needed, you should be able to do so.
This should fix installation of
immutable
from NPM (https://www.npmjs.com/package/immutable) which appears to contain version0.8.0-SNAPSHOT
which causes exception in Composer's version normalization.There shouldn't be any major or even minor issues with this fix. It will allow to install NPM packages, that contain appropriate version (while skipping versions like mentioned above) as well as still fail for packages that do not have any version that can be parsed by Composer.
Sorry for not adding any test case, I've tried, but failed to write correct one. Feel free to push more commits into this branch if needed, you should be able to do so.