Pomax / BezierInfo-2

The development repo for the Primer on Bézier curves, https://pomax.github.io/bezierinfo
https://pomax.github.io/bezierinfo
Other
2.35k stars 289 forks source link

Stop build at ?? #386

Closed andr1972 closed 1 year ago

andr1972 commented 1 year ago

file:///home/andrzej/wazne/gitmy/BezierInfo-2work/docs/js/graphics-element/api/graphics-api.js:689 let w = this.panelWidth ?? this.width;

file:///home/andrzej/wazne/gitmy/BezierInfo-2work/docs/js/graphics-element/api/types/matrix.js:130 this.data = data ?? [...new Array(n)].map((v) => [...new Array(m)].map((v) => 0));

file:///home/andrzej/wazne/gitmy/BezierInfo-2work/docs/js/graphics-element/api/impart-slider-logic.js:120 let checked = transform ? transform(value) ?? value : value;

steps to reproduce : npm test remove ?? code and "npm test" again

Pomax commented 1 year ago

Stop using Node 14 or older and use a version of Node that supports the not-even-new-anymore ?? operator. The current LTS is v18, but even the previous LTS version (v16) supports ?? just fine.