Closed greenkeeper[bot] closed 6 years ago
Update to this version instead 🚀
The new version differs by 6 commits.
5651781
v3.1.1
e5e2329
Update CHANGELOG
f01bb08
Merge pull request #1453 from styled-components/3.1.0
89984f1
Merge pull request #1455 from vvasilev-/fix-react-native-dist-bundle
a1e695a
Fix name of dist bundle for React Native
5f6bc1a
Update CHANGELOG
See the full diff
Update to this version instead 🚀
The new version differs by 9 commits.
e5c4056
v3.1.3
36af87e
UPdate CHANGELOG
0286ca2
Merge pull request #1457 from styled-components/3.1.1
07b4867
Merge branch 'master' into 3.1.1
03cbfef
Merge pull request #1460 from evan-scott-zocdoc/disable-speedy-test
d980a70
changelog entry
c2dabda
disable speedy for non-production
0edca9d
Merge pull request #1452 from manpenaloza/better-sandbox-stylings
8744a14
refactor sandbox example buttons to especially improve mobile appearance
See the full diff
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](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper bot :palm_tree: