-
Notifications
You must be signed in to change notification settings - Fork 4
Make interpolate-components smaller. #14
base: master
Are you sure you want to change the base?
Conversation
The library depended on `react-addons-create-fragment`, a deprecated utility that is easily replaceable with native Fragment support in React. Dropping this library saves around 1.6KB (compressed). In addition, this change updates all dependencies and adds minification to the build process, to reduce the library size further.
Thanks for this @sgomes! I pushed a couple of changes and I think we can ship this as 2.0.0 (ideally as
That fixes all the issues in this repo and puts us in a good place with v2. I hope you don't mind my piling on here! Let's make sure tests are passing, then I'll give this a spin and approve. |
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.
Thank you for updating this, @sirreal ! I think this is still a good idea but I'm not sure if this is still the right place to do it. I thought the canonical location for this package was now in the wp-calypso repo?
@@ -1,5 +1,12 @@ | |||
# Changelog | |||
|
|||
## 2.0.0 | |||
* Breaking change: require React ^16.2.0 (for native Fragment support) | |||
* Breaking change: `react` and `react-com` are now `peerDependencies`. |
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.
* Breaking change: `react` and `react-com` are now `peerDependencies`. | |
* Breaking change: `react` and `react-dom` are now `peerDependencies`. |
I had no idea, thanks! It looks like that packages has a different name, I wonder what we can do to make it clear the upgrade path is to change packages. I'll reach out to folks based on what you linked. |
The library depended on
react-addons-create-fragment
, a deprecated utility that is easily replaceable with nativeFragment
support in React.Dropping this utility saves around 1.6KB (compressed).
In addition, this change updates all dependencies and adds minification to the build process, to reduce the library size further.
All of this results in a breaking change, and thus a new major version.
@ockham: as it's been a while since this project got updated, please CC in other folks if you're no longer the right person to review this 🙂
Fixes #16
Fixes #15
Fixes #13