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

Removing Ramda (from prod build) and going from 19k to 6k #281

Merged
merged 14 commits into from
Dec 17, 2021

Conversation

jamonholmgren
Copy link
Member

This PR removes Ramda from our production build of apisauce. (It's still present in devDependencies because I didn't feel like untangling the tests.)

            commonjs    umd
With Ramda:     7.6k  19.2k
Without:        6.6k   5.8k

As you can see, the size win is significant -- 1k less for commonjs and 13k less for umd (not sure why umd has such a huge win, but i'll take it).

At some point it would be nice to remove Ramda from the tests too, but that's a chore.

R.concat('Calls remaining this hour: '),
console.log
)
R.pipe(RS.dotPath('headers.x-ratelimit-remaining'), R.concat('Calls remaining this hour: '), console.log),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is automatic reformatting, but the Elixirist in me thinks that each pipe on its own line looks better!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree! I might force it to do things differently here.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually want to de-ramdaify this file as well, as I think it does more harm than good here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not worth forcing the formatting - I was just nitpicking about how sometimes the automated tooling goofs

Copy link
Member

@bryanstearns bryanstearns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@jamonholmgren jamonholmgren merged commit 638df8b into master Dec 17, 2021
@jamonholmgren jamonholmgren deleted the deramdaify branch December 17, 2021 19:12
infinitered-circleci pushed a commit that referenced this pull request Dec 17, 2021
## [2.1.4](v2.1.3...v2.1.4) (2021-12-17)

### Bug Fixes

* **deps:** Removes ramda.js ([#281](#281) by [@jamonholmgren](https://github.com/jamonholmgren)) ([638df8b](638df8b))
@infinitered-circleci
Copy link

🎉 This PR is included in version 2.1.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants