Skip to content

Update dependency react-dropzone to v11

Ilka Schulz requested to merge renovate/react-dropzone-11.x into master

This MR contains the following updates:

Package Change Age Adoption Passing Confidence
react-dropzone 4.3.0 -> 11.4.2 age adoption passing confidence

Release Notes

react-dropzone/react-dropzone

v11.4.2

Compare Source

Bug Fixes
  • re-export ErrorCode from './utils' (2e83d35)

v11.4.1

Compare Source

Bug Fixes

v11.4.0

Compare Source

Features
  • ts: export the error codes as an enum (58abc82)

v11.3.5

Compare Source

Bug Fixes
  • ignore the vendor dir to avoid licensing issues (7447fd2)

v11.3.4

Compare Source

Bug Fixes
  • add the validator as dependency to onDropCb (4e625d2)

v11.3.3

Compare Source

Bug Fixes
  • typings: use generics for getRootProps and getInputProps (27243bc)

v11.3.2

Compare Source

Bug Fixes
  • Check drag event contains files before showing "copy" cursor (ec93425), closes #​1042

v11.3.1

Compare Source

Bug Fixes
  • allow validator to be null (6f0e826)

v11.3.0

Compare Source

Features
  • add {validator} for custom validation (ebe2130)

v11.2.4

Compare Source

Bug Fixes
  • add supported browsers via browserslist config and close #​630 (5a4ae93)

v11.2.3

Compare Source

Bug Fixes
  • update internal state when maxFiles prop changes and close #​1025 (bb42b94)

v11.2.2

Compare Source

Bug Fixes

v11.2.1

Compare Source

Bug Fixes

v11.2.0

Compare Source

Features
  • add {maxFiles} to limit the accepted files (624549c)

v11.1.0

Compare Source

Features
  • improve Typescript support for errors (21a412c)

v11.0.3

Compare Source

Bug Fixes
  • define functions as properties (dc5c7e2)

v11.0.2

Compare Source

Bug Fixes
  • examples: rejectedFiles to fileRejections (19cf778)

v11.0.1

Compare Source

Bug Fixes
  • #​911 isDragActive value when dragging over text on Firefox (08a89cf)

v11.0.0

Compare Source

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[];
}

v10.2.2

Compare Source

Bug Fixes

v10.2.1

Compare Source

Bug Fixes
  • cover for edge cases when checking file size and close #​888 (b09129b)

v10.2.0

Compare Source

Features

v10.1.10

Compare Source

Bug Fixes
  • apply min/max file size conditions to {isDragReject} prop (#​878) (c8a7322)

v10.1.9

Compare Source

Bug Fixes

v10.1.8

Compare Source

Bug Fixes

v10.1.7

Compare Source

Bug Fixes
  • allow setting input {disabled} prop to false (acea5df)

v10.1.6

Compare Source

Bug Fixes

v10.1.5

Compare Source

Bug Fixes
  • change types to support custom plugins (93bded7)

v10.1.4

Compare Source

Bug Fixes

v10.1.3

Compare Source

Bug Fixes
  • prevent click on input when propagated form a , close #​182 (ea5fb32)

v10.1.2

Compare Source

Bug Fixes

v10.1.1

Compare Source

Bug Fixes

v10.1.0

Compare Source

Features
  • add {noClick}, {noKeyboard}, {noDrag} and {noDragEventsBubbling} (91ee25d), closes #​783

v10.0.6

Compare Source

Bug Fixes

v10.0.5

Compare Source

Bug Fixes
  • prevent errors in IE when dragEffect is set and close #​791 (be5b238)

v10.0.4

Compare Source

Bug Fixes

v10.0.3

Compare Source

Bug Fixes

v10.0.2

Compare Source

Bug Fixes

v10.0.1

Compare Source

Bug Fixes

v10.0.0

Compare Source

Features
BREAKING CHANGES
  • React '>= 16.8' is required.

{getDataTransferItems} property has been renamed to {getFilesFromEvent}.

v9.0.0

Compare Source

Bug Fixes
BREAKING CHANGES
  • Remove deprecated prop {disableClick}. To prevent the default behavior of click just use idiomatic js:
<Dropzone>
  {({getRootProps}) => (
    <div {...getRootProps({onClick: evt => evt.preventDefault()})}>
      Drop some files here
    </div>
  )}
</Dropzone>

v8.2.0

Compare Source

Features
  • add support for folder drag 'n' drop (2fc6e06)

v8.1.0

Compare Source

Features
  • use native {defaultPrevented} and {cancelBubble} (db88425)

v8.0.4

Compare Source

Bug Fixes

v8.0.3

Compare Source

Bug Fixes

v8.0.2

Compare Source

Bug Fixes
  • do not capture keyboard events from children and close #​730 (d4ee298)

v8.0.1

Compare Source

Bug Fixes
  • allow drag drop while file select dialog is opened (c8e3ad1)

v8.0.0

Compare Source

Features
BREAKING CHANGES
  • The <Dropzone> component now requires a rendering function, either provided as the children or as a prop.

Before:

<Dropzone />

After:

<Dropzone>
  {({getRootProps}) => <div {...getRootProps()} />}
</Dropzone>

v7.0.1

Compare Source

Bug Fixes

v7.0.0

Compare Source

Code Refactoring
BREAKING CHANGES
  • File{preview} has been removed to avoid possible memory leaks

If you wish to create previews, you can easily achieve this in the onDrop() callback:

class MyZone extends React.Component {
  onDrop = files => {
    this.setState({
      files: files.map(file => ({
        ...file,
        preview: URL.createObjectURL(file)
      }))
    });
  }

  cleanup = () => {
    // Revoke data uris when done using the previews
    const {files} = this.state;

    for (const file of files) {
      URL.revokeObjectURL(file.preview);
    }
  }

  render() {
    return (
      <Dropzone onDrop={this.onDrop} />
    );
  }
}

v6.2.4

Compare Source

Bug Fixes

v6.2.3

Compare Source

Bug Fixes
  • fix types for getDataTransferItems() (14e6b67)

v6.2.2

Compare Source

Bug Fixes

v6.2.1

Compare Source

Bug Fixes

v6.2.0

Compare Source

Features
  • improve TypeScript setup (5fedd14)

v6.1.3

Compare Source

Bug Fixes
  • improve drag type detection and fix styling in Safari (78d8eed), closes #​668

v6.1.2

Compare Source

Bug Fixes
  • pass event to user-supplied inputProps {onClick} (fd99719)

v6.1.1

Compare Source

Bug Fixes

v6.1.0

Compare Source

Features

v6.0.4

Compare Source

Bug Fixes
  • edge: drag a link trigger drop event (d6cc063)

v6.0.3

Compare Source

Bug Fixes
  • update folder drop example (f016c8d)

v6.0.2

Compare Source

Bug Fixes

v6.0.1

Compare Source

Bug Fixes

v6.0.0

Compare Source

Bug Fixes
BREAKING CHANGES
  • Callbacks won't get executed for non-file items anymore i.e. if items aren't of type File when react-dropzone will ignore them.

v5.1.1

Compare Source

Bug Fixes
  • set accepted/rejected files state on drop (cb99c8a)

v5.1.0

Compare Source

Features

v5.0.2

Compare Source

Bug Fixes

v5.0.1

Compare Source

Bug Fixes

v5.0.0

Compare Source

Bug Fixes
BREAKING CHANGES
  • This can break applications that rely on the current behavior.

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Edited by James Bowden

Merge request reports

Loading