-
Notifications
You must be signed in to change notification settings - Fork 187
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
Conversation
dissoc, keys, forEach,
examples/github.js
Outdated
R.concat('Calls remaining this hour: '), | ||
console.log | ||
) | ||
R.pipe(RS.dotPath('headers.x-ratelimit-remaining'), R.concat('Calls remaining this hour: '), console.log), |
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.
I know this is automatic reformatting, but the Elixirist in me thinks that each pipe on its own line looks better!
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.
I agree! I might force it to do things differently here.
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.
I actually want to de-ramdaify this file as well, as I think it does more harm than good here.
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.
Probably not worth forcing the formatting - I was just nitpicking about how sometimes the automated tooling goofs
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.
Looks good!
## [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))
🎉 This PR is included in version 2.1.4 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.)
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.