This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
Update common-tags to the latest version 🚀 #206
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 1.7.0 of common-tags was just published.
The version 1.7.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of common-tags.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v1.7.0New Features
onString
onString
- transformers now accept anonString
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 forreplaceResultTransformer
,replaceWhat
can be a string or regular expression andreplaceWith
is the new value.Commits
The new version differs by 9 commits.
38c07c9
1.7.0
2ffb01e
Merge pull request #106 from pizzafroide/transform-literals
446229e
Rename
onLiteral
toonString
(andreplaceLiteralTransformer
toreplaceStringTransformer
)ff8eb71
Take #132 changes into account
156f200
Merge pull request #136 from declandewet/greenkeeper/cross-env-5.1.3
3fe7cd8
chore(package): update cross-env to version 5.1.3
a4007c8
Merge branch 'master' into transform-literals
b31038e
Update TOC in readme.md
3c5ec7c
Add onLiteral function to transformers and replaceLiteralTransformer
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴