Styled-components version 6.0.0 represents a significant upgrade over the previous 5.3.11, modernizing the library and focusing on enhanced performance and developer experience. The most noticeable change is the shift in dependencies. Version 6.0.0 adopts a wider array of modern development tools, including updated Babel packages (@babel/cli, @babel/core, presets, and plugins) and TypeScript support, indicated by the inclusion of @babel/preset-typescript and typescript as dev dependencies. This signals a stronger commitment to TypeScript integration, benefiting developers who prefer strongly typed components. Core dependencies were also updated to newer major versions, like stylis and postcss, potentially bringing performance improvements and new CSS features. This new version aligns with the latest React features, though it retains peer dependency compatibility with React 16.8.0 and above.
Majorly, the development dependencies have been updated significantly, dropping the old flow-bin, @babel/preset-flow, eslint-plugin-flowtype packages and introducing new packages like @rollup/plugin-typescript, @types/react-test-renderer packages. These changes highlight a move towards modern tooling, potentially leading to faster builds, better type checking, and improved debugging. While the core concepts remain consistent, developers should be aware of potential breaking changes due to the major version bump, particularly in areas related to internal APIs or custom styling solutions. The increased file count and reduced unpacked size in version 6.0.0's distribution suggest packaging optimizations that contribute to a leaner bundle. Note that a peer dependency for the babel plugin has been added, which means that the plugin must be installed outside the styled-components package and in the local project of the user.
The are not vulnerabilities for the version 6.0.0 of the package styled-components