zspecza / common-tags

🔖 Useful template literal tags for dealing with strings in ES2015+
Other
1.99k stars 61 forks source link

1.5.0 breaking changes #128

Closed jakeweary closed 6 years ago

jakeweary commented 6 years ago

stripIndents now replaces multiple newlines with a single one.

console.log(stripIndents`
a
b

c
`);

1.4.0 output:

a
b

c

1.5.0 output:

a
b
c
fatfisz commented 6 years ago

This was unintended, sorry for that. Will get to that ASAP.

fatfisz commented 6 years ago

The breaking change was introduced in #127; unfortunately there were no tests for that case. I added some and fixed the problem, will be releasing soon.

fatfisz commented 6 years ago

Fix released in 1.5.1!

jakeweary commented 6 years ago

Awesome! 🎉