Common Tags Versions Save

🔖 Useful template literal tags for dealing with strings in ES2015+

v1.8.2

2 years ago

This release is based on the same code that v1.8.1, but it fixes a regression caused by forgetting to run the build before publishing. Thanks @alumni for the hint!

v1.8.1

2 years ago

The creator of the package changed the handle from declandewet to zspecza, and for a while GitHub was redirecting from the old repo to the new one. This changed with the "takeover" of the original user handle by a random person, and so in this release all the links in package.json are updated to include the new handle.

v2.0.0-alpha.1

5 years ago

This is a pre-release. Please help the development of common-tags by testing the common-tags@next version.

Version 2.0.0 is coming. Before it is released however, there are some things to be done - eg. the documentation needs to be rewritten properly for clarity. Maybe the package will be also rewritten into TypeScript? Who knows.

Breaking changes

New stuff

Deprecations

v1.8.0

5 years ago

Bug Fixes

  • Previously valueOf was called on objects in templates before toString - now the order is in line with the spec (#144)

Plumbing

  • babel-plugin-transform-runtime was removed as a dependency and as a result babel-runtime is not necessary to use common-tags any more (that means common-tags is dependency-free!) (#148)
  • common-tags is now rolling up into a neat bundle that you can get at unpkg. This makes it even easier to get started with this library! (#150)
  • Dev dependencies were updated (no changes to the actual code) (#149)

v1.8.0-rc.1

5 years ago

This was a test release to check if common-tags will register properly with unpkg.com.

v1.7.2

6 years ago

No major changes in this release, we just migrated from the AVA test runner to Jest, which has mitigated some issues with our CI pipeline speeds and removed some hard to maintain configs.

v1.7.1

6 years ago

Patches

We've migrated from StandardJS formatting to Prettier's automatic code formatting as well as the recommended ESLint rules. Big props to @fatfisz on this release 🎊

v1.7.0

6 years ago

New Features

onString

onString - transformers now accept an onString method which runs on each part of the template literal that is not marked as a substitution (i.e. not inside "${}").

replaceStringTransformer

replaceStringTransformer(replaceWhat, replaceWith)

Replaces the result of all strings (what's not in ${ ... }) with a new value. Same as for replaceResultTransformer, replaceWhat can be a string or regular expression and replaceWith is the new value.

v1.6.0

6 years ago

New Features

  • using tags on regular string literals is now supported (#132)

Chores

  • stripIndentTransformer was touched up so now the regular expressions (and the behavior) is more consistent across all the tags - thanks @thepheer!
  • the docs were improved and now we have a nice logo!

v1.5.1

6 years ago

Fixes

  • stripIndents preserves empty lines as before (#129)