Skip to content
This repository has been archived by the owner on Feb 24, 2022. It is now read-only.

Latest commit

 

History

History
68 lines (50 loc) · 2.72 KB

changelog.md

File metadata and controls

68 lines (50 loc) · 2.72 KB

[Unreleased]

[1.0.0]

  • PropTypes via the prop-types package (thanks @13colours).

[1.0.0-rc.3]

  • Fixed a bug with file url creation (thanks @davidascher).
  • Fixed a build error caused by babel picking up the wrong config.

[1.0.0-rc.2]

  • The prop upload is used to specify options for react-s3-uploader (replaces uploaderOptions).
  • Readme is better.

[1.0.0-rc.1]

  • Refactoring to clean up this abomination.
  • Props have been cleaned up.
  • Other props are pased to react-dropzone.
  • The fileUrls and filenames props have been replaced by uploadedFile objects. Each uploadedFile object has the filename, full s3 url (as fileUrl) and a reference to the original file descriptor from the upload.
  • Children have state information passed again via the uploadedFiles prop.
  • Passing children props can be disabled by setting the passChildrenProps prop to false to avoid React warnings about unused props.

[0.11.0]

  • Upgraded react-s3-uploader to ^4.0.0

[0.10.0]

  • Removed underscored props in favour of camelCase only.

[0.9.0]

  • Upgraded react-s3-uploader to v3.3.0
  • Added some props: uploaderOptions and preprocess

[0.8.1]

  • Fix bug caused by using _.map without importing it

[0.8.0]

  • props.children no longer receive the fileUrl, s3Url, filename, progress, error, imageStyle props. If the fileComponent prop is specified it will receive these props.
  • maxFileSize and minFileSize are passed to the react-dropzone component, which handles validation
  • multiple files are handled better. Props named fileUrls and filenames are passed to the fileComponent, with an entry per file uploaded.

[0.7.3]

  • Accepts an prop named onDrop, a function to be called with the files object when files are dropped.

[0.7.0]

  • Removed dependency on react-bootstrap
  • New props:
    • progressComponent, a react component to render progress. Is provided a prop called progress with the current uploader progress percentage as an int (0-100).
    • fileComponent prop to do the same for rendering an uploaded file (not an image).
    • isImage a function that should return true if a filename represents an image. Default is filename => filename && filename.match(/\.(jpeg|jpg|gif|png|svg)/i)
  • If a child component is present it's only passed these props: fileUrl, s3Url, filename, progress, error, imageStyle

[0.5.3]

  • Update React dependecy to include 15.x.x

[0.5.0]

  • react-bootstrap dependency updated to ^0.29.0

[0.4.2]

  • Renamed host option to server to match react-s3-uploader

[0.4.1]

  • Pass accept prop to Dropzone

[0.4.0]

  • Supports a display component via a child element.

[0.3.1]

  • readme