You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm an author of a library called cross-fetch. It uses a rollup plugin called @rollup/plugin-terser which in turn uses smob@^1.0.0. Because of that caret version, all minor/patch versions of smub are automatically installed, including 1.5.0. cross-fetch supports Node 14+ but because of the at method usage, its CI cannot properly function.
Would you consider releasing a v1.6.0 with the same functionality but with a slightly different implementation? Here's a potential alternative to solve the problem:
functionat(arr,index){// Handle negative indicesindex=Math.trunc(index)||0;// Ensure index is an integerif(index<0){index+=arr.length;}// Return undefined if index is out of boundsif(index<0||index>=arr.length){returnundefined;}// Return the element at the indexreturnarr[index];};
The text was updated successfully, but these errors were encountered:
lquixada
changed the title
v1.5.0 breaking on node 14.
v1.5.0 breaking on node 16.5-.
Dec 7, 2024
The 1.5.0 release is using the new-ish .at method of Javascript Array. However, that method was only available on Node 16.6+ which means that
[email protected]
broke backward compatibility with Node 16.5-.I'm an author of a library called cross-fetch. It uses a rollup plugin called
@rollup/plugin-terser
which in turn uses smob@^1.0.0. Because of that caret version, all minor/patch versions ofsmub
are automatically installed, including 1.5.0. cross-fetch supports Node 14+ but because of theat
method usage, its CI cannot properly function.Would you consider releasing a v1.6.0 with the same functionality but with a slightly different implementation? Here's a potential alternative to solve the problem:
The text was updated successfully, but these errors were encountered: