Skip to content
This repository was archived by the owner on Feb 19, 2024. It is now read-only.

v4.0.0

Choose a tag to compare

@ostowe ostowe released this 10 Sep 01:01

4.0.0 (2020-09-10)

Full changeset

Notable changes in 4.0

Most changes in 4.0 are bugfixes—check individual package changelogs to see exactly what bugfixes were introduced. Major and/or breaking changes we've added in this version are primarily in @irvingjs/styled-components:

  • Add a hook for getting and transforming a specific set of standard props for all styled components:
    • className, which will be combined together using the classnames package
    • id, which will render directly to the id attribute
    • style, in which any site theme context variables will be replaced
    • tag, which will be converted to the styled-components as prop (or omitted entirely if no tag is provided)
    • All of the above can have component defaults which will be combined with user input or, in the case of id, replaced by user input.
  • Add a utility for converting a component name to a className. This className will automatically be added to a component.
  • PropTypes definitions for a wider variety of standard props.
  • defaultProps definitions for the same.
  • Switch the default export of the styled components package to be the config instead of the component map and rename the function exported form the component map.
  • Remove unused support for photon transforms and picture element sources from the styled image component.
  • Remove/deprecate the createWithUserThemes hoc as it is now an unnecessary abstraction.
  • Convert audio player play/pause button component to a themable styled component.