-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(gatsby-transformer-remark): bump underscore.string version #11328
chore(gatsby-transformer-remark): bump underscore.string version #11328
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a comment, but this looks good. All in favor of moving off of underscore where we can!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saranshkataria Sadly we're not having the same output as underscore.
I've made a glitch to demonstrate the failures. I've used underscore's test as a baseline.
https://glitch.com/edit/#!/solar-mechanic
I think the best way is just to mimic the underscore code in gatsby if we want to get rid of underscore.
https://github.com/epeli/underscore.string/blob/master/prune.js
Can we just bump version of |
I tried to make the functionality similar to that of prune, but was not able to. Reverted the changes and bumped up the underscore version for now to fix the original issue. Will give removing underscore another shot sometime later. |
PR was changed to bump underscore.string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, let's ship it! Thanks @saranshkataria for exploring options here!
Holy buckets, @saranshkataria — we just merged your PR to Gatsby! 💪💜 Gatsby is built by awesome people like you. Let us say “thanks” in two ways:
If there’s anything we can do to help, please don’t hesitate to reach out to us: tweet at @gatsbyjs and we’ll come a-runnin’. Thanks again! |
Description
Removed underscore.string from gatsby-transformer-remark and replaced it with lodash truncate
Related Issues
Fixes #10958