-
Notifications
You must be signed in to change notification settings - Fork 2
Update styled-components to the latest version 🚀 #33
base: master
Are you sure you want to change the base?
Conversation
Version 3.0.1 just got published. |
Version 3.0.2 just got published. |
Version 3.1.0-2 just got published. |
Version 3.1.0-3 just got published. |
Version 3.1.0 just got published. |
Version 3.1.1 just got published.Update to this version instead 🚀 CommitsThe new version differs by 6 commits.
See the full diff |
Version 3.1.2 just got published. |
Version 3.1.3 just got published.Update to this version instead 🚀 CommitsThe new version differs by 9 commits.
See the full diff |
Version 3.1.4 just got published. |
Version 3.1.5 just got published. |
Version 3.1.6 just got published. |
Version 3.2.0 just got published.Update to this version instead 🚀 Release Notesv3.2.0This is a small minor release that introduces a couple of minor changes, but also a complete rewrite of our StyleSheet implementation. Not only is it smaller, but it also lowers the barrier to entry for new contributors (like yourself, dear reader, hopefully!) to read and understand it, and eventually contribute great new features! DeprecationsStream reconciliation function
|
Version 3.2.1 just got published.Update to this version instead 🚀 Release Notesv3.2.1FixesIncorrect SSR React Element outputWe accidentally removed We have corrected this mistake and more unit tests are now in place to prevent this from happening again. Thanks to @misund for reporting this mistake! Support out-of-order injection for
|
Version 3.2.2 just got published. |
Version 3.2.3 just got published.Update to this version instead 🚀 Release Notesv3.2.3FixesSSR memory leaks? No more!This release simply frees up some memory by removing cloned |
Version 3.2.4 just got published. |
Version 3.2.5 just got published. |
Version 3.2.6 just got published.Update to this version instead 🚀 Release Notesv3.2.6The primary fix in this patch release was related to a misconfiguration in the stylis rule splitter which could cause some rules to be discarded when there was no whitespace around selector operands.
|
Version 3.0.0 of styled-components was just published.
The version 3.0.0 is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
It might be worth looking into these changes and trying to get this project onto the latest version of styled-components.
If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.
Release Notes
v3.0.0This major release prepares some great features that are yet to come, so be ready for some new and exciting features soon! But for now please read on for what’s in the current (majorly awesome) release. 🔥
Breaking Changes
Shipping only flat bundles
Thanks to @Andarist we're now shipping flat bundles for each of our entries only. This means that the entire
lib/
folder won’t be inside our npm package.While this might break a couple of third party libraries, it stands to reason that our internals should not have been exposed in this way before.
This new way of bundling not only makes it easier for us to perform some refactors quite soon, it also makes it easier for us to optimise our releases even more. Please check your codebases and libraries for usages of our internals and make sure not to rely on them. Open an issue please if you need help to migrate to v3.
There are bundles for Web, React Native, and React Primitives. The former two come with both ES Modules and CommonJS bundles. The Web bundle also comes with a minified bundle. We’re also now shipping source maps for each of these bundles.
Added
isStyledComponent
utilityBecause we’re now shipping flat bundles we also wanted to provide a frequently requested utility function that determines whether a given component is a StyledComponent. This utility returns a boolean telling you just that. (see #1418)
It should make it easier to determine whether to pass on
innerRef
orref
for instance in some cases, and should allow you to avoid accessing some of our internals or to check whether a component hasstyledComponentId
set.More information on this utility can be found on our website’s API reference section.
React Native warning
From time to time, it’s easy to forget to import
styled-components/native
instead on React Native. We now log a warning when you import the web-version accidentally. (see #1391 and #1394)Fixes
innerRef
could beundefined
when usingwithTheme
, which can lead to unexpected behaviour when spreading props or passing it on. (see #1414)Chores
Thanks
Thanks to the numerous contributors and maintainers who have worked towards this release. We're sorry if some names are missing, so thanks additionally goes out to everyone who’s worked hard to get v3 out!
(In no particular order)
Commits
The new version differs by 80 commits.
b602445
v3.0.0
6849080
Add notes on pre-commit to husky migration to CONTRIBUTING.md
7b01f9c
Update CHANGELOG
d811350
Merge pull request #1427 from pelotom/allow-component-type
b463a8c
Use React.ComponentType type in test
06b5ec4
Disallow styling component with wrong typed theme
e4f59b0
Merge pull request #1426 from probablyup/react-16
ab2e25c
upgrade tests to react 16
cd9dac9
Add link to the TypeScript bug report
3f3929b
Add issue trail in comments
c6bf52c
Allow passing a React.ComponentType to styled()
0ab1abb
Add failing test
761fb10
Merge pull request #1425 from probablyup/es-sourcemaps
10aa07c
Merge pull request #1242 from theshortcut/enzyme-3
b4044b1
hack around react-native global typescript definitions clashing with node's
There are 80 commits in total.
See the full diff
FAQ and help
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper bot 🌴