Skip to content
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

Merged

Conversation

saranshkataria
Copy link
Contributor

Description

Removed underscore.string from gatsby-transformer-remark and replaced it with lodash truncate

Related Issues

Fixes #10958

@DSchau DSchau changed the title removed underscore.string from gatsby-transformer-remark Jan 28, 2019
Copy link
Contributor

@DSchau DSchau left a 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!

Copy link
Contributor

@wardpeet wardpeet left a 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

@wardpeet wardpeet added the status: awaiting author response Additional information has been requested from the author label Feb 1, 2019
@pieh
Copy link
Contributor

pieh commented Feb 1, 2019

Can we just bump version of underscore.string? It's fixed and even now only way to have old version installed is if lock file locks it down (because version range selector allow installing updated version)?

ref: https://www.npmjs.com/advisories/745

@saranshkataria
Copy link
Contributor Author

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.

@pieh pieh changed the title chore(gatsby-transformer-remark): swap underscore.string with lodash.truncate Feb 1, 2019
@pieh pieh dismissed wardpeet’s stale review February 1, 2019 22:28

PR was changed to bump underscore.string

@pieh pieh removed the status: awaiting author response Additional information has been requested from the author label Feb 1, 2019
Copy link
Contributor

@pieh pieh left a 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!

@pieh pieh merged commit 2089742 into gatsbyjs:master Feb 1, 2019
@gatsbot
Copy link

gatsbot bot commented Feb 1, 2019

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:

  1. We’d like to send you some Gatsby swag. As a token of our appreciation, you can go to the Gatsby Swag Store and log in with your GitHub account to get a coupon code good for one free piece of swag. (Currently we’ve got a couple t-shirts available, plus some socks that are really razzing our berries right now.)
  2. We just invited you to join the Gatsby organization on GitHub. This will add you to our team of maintainers. Accept the invite by visiting https://github.com/orgs/gatsbyjs/invitation. By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests.

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants