Skip to content

Releases: braposo/react-responsive-picture

v3.2.2

16 Sep 23:23
Compare
Choose a tag to compare

Fixes issue with CommonJS bundle

v3.2.1

15 Sep 09:02
Compare
Choose a tag to compare

Improve typings for cover prop in FullsizePicture component

v3.2.0

12 Sep 21:35
Compare
Choose a tag to compare

Converts code to Typescript.

v3.1.1

05 May 12:34
Compare
Choose a tag to compare

Adds React 16 as peer dependency so we don't get warnings when installing it.

v3.1.0

29 Nov 19:39
Compare
Choose a tag to compare

v3.0.0

13 Nov 23:29
Compare
Choose a tag to compare

Breaking changes:

  • Removes css prop from Picture and pictureCSS prop from FullsizePicture component. Styling is now done exclusively through className prop.
  • className prop in FullsizePicture is assigned to the inner Picture component to keep API consistency between components. It was previously called pictureClassName.
  • New wrapperClassName prop to style wrapper component in FullsizePicture. It was previously called className
  • FullsizePicture default behaviour now mimics background-size: cover behaviour for full-width images

Other changes:

  • Update to README and CONTRIBUTING docs
  • Adds examples to be used in Codesandbox
  • Removes glamorous and adds cxs for styling
  • Updates all dependencies to latest versions

v2.1.0

07 Mar 23:41
Compare
Choose a tag to compare

v2.0.0

04 Jul 23:37
Compare
Choose a tag to compare
  • Converts components to use glamorous
  • Accepts any valid prop for Picture and FullsizePicture components (you can define alt tags for example)
  • Breaking: Uses css prop to override styles using glamorous, which can now accept objects, arrays and strings for styling. Previous style prop is now only for simple inline styles, like any other basic React component.
  • Breaking: Renames imageClassName and imageStyle to pictureCSS so it's semantically more accurate and avoid confusion

v1.0.6

25 May 10:58
Compare
Choose a tag to compare
  • Actually releases the last changes properly on NPM, sorry about that!

v1.0.5

25 May 10:42
Compare
Choose a tag to compare
  • Updates PropTypes to use external package and fix warnings in React 15.5+ (#15 by @dmitrizzle)
  • Removes CHANGELOG file and use releases instead to avoid duplication of work