juliangruber / balanced-match

Match balanced character pairs, like { and }
MIT License
125 stars 40 forks source link

Error with new version launched today #31

Closed pimfeltkamp closed 3 years ago

pimfeltkamp commented 3 years ago

Hi,

Since the launch of the new version today I get the following error:

/node_modules/balanced-match/index.js:7 const r = range(a, b, str) ^^^^^ SyntaxError: Use of const in strict mode.

What do I need to do?

Kind Regards

alexandrubirlan commented 3 years ago

+1

alexandrubirlan commented 3 years ago

if this works with a different version of ES, it should be specified somewhere

pimfeltkamp commented 3 years ago

I think this should have been an update to 2.0.0 instead of 1.0.1

alexandrubirlan commented 3 years ago

would make sense since this looks like a breaking change

juliangruber commented 3 years ago

I'm sorry about this, will fix asap

pimfeltkamp commented 3 years ago

Thanks! Excellent and fast service! 💯

juliangruber commented 3 years ago

I forgot that people might be using this with node versions that don't support const

juliangruber commented 3 years ago

https://github.com/juliangruber/balanced-match/releases/tag/v1.0.2

juliangruber commented 3 years ago

https://github.com/juliangruber/balanced-match/releases/tag/v2.0.0