Closed tbranyen closed 2 years ago
FWIW, even if it is in the ESModule version, adding this syntax is a breaking change because it drops support for a node@12 which is currently LTS.
The most conservative "solution" to this is to re-publish a 1.1.2
which backs out these changes and land this all in 2.0.0
. A more "quick" fix would be to just swap the unsupported ??
for a more verbose backward compatible check and keep things in the 1.x
range.
I think I am going to retract my statement above, I don't think just changing the syntax is enough. It is HIGHLY unlikely you can do a JS to TS conversion without it being a major semver bump. If I were you I would back it out and re-publish as a2.0.0
.
@wesleytodd thank you for that issue I've created a new PR and tested commonjs module on Node v6. It works fine
@wesleytodd I've published v1.1.2
. Please try it
Awesome, thanks for the quick turn around @microshine! We have some teams who it looks like will try out the new version, also I pinned back our originally reported failed build. I was wondering, is there any way to get tags for the previous versions? It looks like you added standard-version
now which is awesome, but when I was looking for a quick version to pin back to I was unable to find one because of the missing tags (I ended up going with 1.0.17 which is really old, but is what was in our package.json).
Can confirm that at least for some of our users pulling in 1.1.2
fixed their issues. Thanks again for the quick response @microshine!! Have a great day!
Looks like this module has
build/utils.es.js
andbuild/utils.js
, in the new version published1.1.1
I see in the non-es file:Where
??
is not valid ES5-ES2015 syntax. Shouldn't this only occur in theutils.es.js
file?