Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): update dependency react-dropzone to v14 #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Nov 20, 2022

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-dropzone ^4.2.1 -> ^14.0.0 age adoption passing confidence

Release Notes

react-dropzone/react-dropzone (react-dropzone)

v14.3.5

Compare Source

Bug Fixes

v14.3.4

Compare Source

Bug Fixes

v14.3.3

Compare Source

v14.3.2

Compare Source

v14.3.1

Compare Source

v14.3.0

Compare Source

v14.2.10

Compare Source

Bug Fixes
  • fix exports declaration (53bba3a)

v14.2.9

Compare Source

Bug Fixes
  • disable file access API by default (c0255d5)

v14.2.8

Compare Source

Bug Fixes
  • revert min node version to 10.13 (d1ae54d)

v14.2.7

Compare Source

Bug Fixes

v14.2.6

Compare Source

Bug Fixes
  • ensure package works as a module (2471dd9)

v14.2.5

Compare Source

Bug Fixes
  • ensure proper readonly arrays for types (d7799eb)

v14.2.4

Compare Source

Bug Fixes
  • add path to acceptedFiles and fileRejections (960c6d3)

v14.2.3

Compare Source

Bug Fixes

v14.2.2

Compare Source

Bug Fixes
  • allow {accept} file selection w/o using the OS options (8127759)

v14.2.1

Compare Source

Bug Fixes
  • call onError if FS access API fails in secure ctx (a2039fd)

v14.2.0

Compare Source

Features
  • bump file-selector to v0.6 (239dd29)

v14.1.2

Compare Source

Bug Fixes
  • add missing onError type (7aff9a5)

v14.1.1

Compare Source

Bug Fixes
  • apply custom validator on {isDragAccept,isDragReject} (2d33fdf)

v14.1.0

Compare Source

Features

v14.0.1

Compare Source

Bug Fixes

v14.0.0

Compare Source

Features
BREAKING CHANGES
  • the {draggedFiles} prop on the returned hook state has been removed and the accept/reject state is only computed on drag enter and drop.

v13.0.0

Compare Source

Features
  • add {onError} cb to allow users to handle errors (9134893)
  • allow passing file ext. to the file picker options and close #​1141 (58976f4)
BREAKING CHANGES
  • The {accept} prop will now require an object instead of a string or array of strings:

Before:

useDropzone({
  accept: ".jpeg,.png"
  // accept: [".jpeg", ".png"]
})

After:

useDropzone({
  accept: {
    "image/*": [".jpeg", ".png"]
  }
})

v12.1.0

Compare Source

Features
  • deps: bump file-selector from 0.4.0 to 0.5.0 (2a71cc9)

v12.0.6

Compare Source

Bug Fixes
  • remove autocomplete for file input type (5bc4273)

v12.0.5

Compare Source

Bug Fixes
  • use KeyboardEvent.key to detect space/enter events (67e3f59)

v12.0.4

Compare Source

Bug Fixes

v12.0.3

Compare Source

Bug Fixes
  • fallback to input click to open the file picker (dbaec3f)

v12.0.2

Compare Source

Bug Fixes
  • do not use FS access API if code is not in secure context (8eb49d4)

v12.0.1

Compare Source

Bug Fixes
  • add useFsAccessApi type (df8a9b4)

v12.0.0

Compare Source

Features
  • enable file system access API by default (a034252)
BREAKING CHANGES

v11.7.1

Compare Source

Bug Fixes
  • disable file system access API usage by default and close #​1131 (15dd32f)

v11.7.0

Compare Source

Features
  • set role attr to button by default on the root and close #​1110 (207282b)

v11.6.0

Compare Source

Features

v11.5.3

Compare Source

Bug Fixes
  • fix minor grammatical mistake in file size error (ab4359f)

v11.5.2

Compare Source

Bug Fixes
  • remove doka/pintura source files (60f6ef0)

v11.5.1

Compare Source

Bug Fixes
  • declare the package as side effect free (199556b)

v11.5.0

Compare Source

Features
  • add onFileDialogOpen callback (d50c578)

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.

v4.3.0

Compare Source

Features

v4.2.13

Compare Source

Bug Fixes

v4.2.12

Compare Source

Bug Fixes
  • accessibility: Better CSS to hide file input to still make it focusable and accessible for validation and keyboard (#​606) (d12f9f6)

v4.2.11

Compare Source

Bug Fixes
  • update 'accept' proptype definition (f174b13)

v4.2.10

Compare Source

Bug Fixes
  • Fix onFileDialogCancel listener being overwritten for each instance (#​611) (afaf401)

v4.2.9

Compare Source

Bug Fixes

v4.2.8

Compare Source

Bug Fixes

v4.2.7

Compare Source

Bug Fixes
  • restore isFileDialogActive to false after the FileDialog was closed (#​556) (0eb69bb)

v4.2.6

Compare Source

Bug Fixes

v4.2.5

Compare Source

Bug Fixes

v4.2.4

Compare Source

Bug Fixes
  • Chrome 63 hangs dragging a file onto the drop zone whilst the file dialog is open (#​549) (70ac399)

v4.2.3

Compare Source

Bug Fixes
  • SSR: Remove event listeners only if the element exist in DOM (#​537) (ccb859f)

v4.2.2

Compare Source

Bug Fixes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

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

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

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


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot changed the title Update dependency react-dropzone to v14 fix(deps): update dependency react-dropzone to v14 Mar 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants