All Versions
26
Latest Version
Avg Release Cycle
26 days
Latest Release
1255 days ago

Changelog History
Page 1

  • v11.2.4 Changes

    November 08, 2020

    11.2.4 (2020-11-08)

    ๐Ÿ› Bug Fixes

    • โž• add supported browsers via browserslist config and close #630 (5a4ae93)
  • v11.2.3 Changes

    October 30, 2020

    11.2.3 (2020-10-30)

    ๐Ÿ› Bug Fixes

    • โšก๏ธ update internal state when maxFiles prop changes and close #1025 (bb42b94)
  • v11.2.2 Changes

    October 28, 2020

    11.2.2 (2020-10-28)

    ๐Ÿ› Bug Fixes

    • set isDragReject true when maxFiles rejects (#1020) (b4a1ac6)
  • v11.2.1 Changes

    October 23, 2020

    11.2.1 (2020-10-23)

    ๐Ÿ› Bug Fixes

  • v11.2.0 Changes

    September 18, 2020

    11.2.0 (2020-09-18)

    ๐Ÿ”‹ Features

    • โž• add {maxFiles} to limit the accepted files (624549c)
  • v11.1.0 Changes

    September 09, 2020

    11.1.0 (2020-09-09)

    ๐Ÿ”‹ Features

    • ๐Ÿ‘Œ improve Typescript support for errors (21a412c)
  • v11.0.3 Changes

    August 13, 2020

    11.0.3 (2020-08-13)

    ๐Ÿ› Bug Fixes

    • define functions as properties (dc5c7e2)
  • v11.0.2 Changes

    July 14, 2020

    11.0.2 (2020-07-14)

    ๐Ÿ› Bug Fixes

    • examples: rejectedFiles to fileRejections (19cf778)
  • v11.0.1 Changes

    April 26, 2020

    11.0.1 (2020-04-26)

    ๐Ÿ› Bug Fixes

    • #911 isDragActive value when dragging over text on Firefox (08a89cf)
  • v11.0.0 Changes

    April 26, 2020

    11.0.0 (2020-04-26)

    ๐Ÿ”‹ Features

    • โž• add reject reasons to onDrop, onDropRejected callbacks (#938) (199c9ea)

    ๐Ÿ’ฅ BREAKING CHANGES

    • The method signatures of onDrop and onDropRejected as well as the return value of useDropzone were changed in order to add the reasons why rejected files were rejected.

    onDrop BEFORE this change:

    onDrop?<T extends File>(acceptedFiles: T[], rejectedFiles: T[], event: DropEvent): void;
    

    onDrop AFTER this change:

    onDrop?<T extends File>(acceptedFiles: T[], fileRejections: FileRejection[], event: DropEvent): void;
    

    onDropRejected BEFORE this change:

    onDropRejected?<T extends File>(files: T[], event: DropEvent): void;
    

    onDropRejected AFTER this change:

    onDropRejected?(fileRejections: FileRejection[], event: DropEvent): void;
    

    rejectedFiles from the return value of useDropzone was replaced with
    fileRejections.

    The defintion of a FileRejection is:

    export interface FileError {
      message: string;
      code: string;
    }
    
    export interface FileRejection {
      file: File;
      errors: FileError[];
    }