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

Update dependency react-dropzone from v4.3.0 to v14 #193

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 6, 2023

This PR contains the following updates:

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

Release Notes

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

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.

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.

@sonarcloud
Copy link

sonarcloud bot commented Jan 6, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@github-actions
Copy link

github-actions bot commented Jan 6, 2023

Visit the preview URL for this PR (updated for commit 9c0c043):

https://ent-ninkasi-dev--pr193-renovate-react-dropz-dd2a9jmy.web.app

(expires Wed, 22 Feb 2023 12:40:30 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 3b0561e5cc3d851fe15278e5840d2aac3e38a547

@renovate renovate bot force-pushed the renovate/react-dropzone-14.x branch from 3619f1b to 9c0c043 Compare February 15, 2023 12:38
@renovate renovate bot force-pushed the renovate/react-dropzone-14.x branch from 9c0c043 to f35b23d Compare October 2, 2024 16:36
Copy link
Contributor Author

renovate bot commented Oct 2, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: package-lock.json
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: @material-ui/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"18.2.0" from the root project
npm ERR!   peer react@"^16.0.0 || ^17.0.0 || ^18.0.0" from @entur/[email protected]
npm ERR!   node_modules/@entur/auth-provider
npm ERR!     @entur/auth-provider@"1.1.0" from the root project
npm ERR!   9 more (@entur/micro-frontend, react-icon-base, react-redux, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR! node_modules/@material-ui/core
npm ERR!   @material-ui/core@"4.12.4" from the root project
npm ERR!   peer @material-ui/core@"^4.0.0" from @material-ui/[email protected]
npm ERR!   node_modules/@material-ui/icons
npm ERR!     @material-ui/icons@"4.11.3" from the root project
npm ERR!   1 more (@material-ui/lab)
npm ERR! 
npm ERR! Conflicting peer dependency: [email protected]
npm ERR! node_modules/react
npm ERR!   peer react@"^16.8.0 || ^17.0.0" from @material-ui/[email protected]
npm ERR!   node_modules/@material-ui/core
npm ERR!     @material-ui/core@"4.12.4" from the root project
npm ERR!     peer @material-ui/core@"^4.0.0" from @material-ui/[email protected]
npm ERR!     node_modules/@material-ui/icons
npm ERR!       @material-ui/icons@"4.11.3" from the root project
npm ERR!     1 more (@material-ui/lab)
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /tmp/renovate/cache/others/npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /tmp/renovate/cache/others/npm/_logs/2024-10-19T12_20_03_515Z-debug-0.log

@renovate renovate bot force-pushed the renovate/react-dropzone-14.x branch from f35b23d to d25ba04 Compare October 3, 2024 07:34
@renovate renovate bot force-pushed the renovate/react-dropzone-14.x branch from d25ba04 to d8c6f22 Compare October 19, 2024 12:20
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