unstale

npm / react-dropzone

react-dropzone

What changed in react-dropzone 5 to 20, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

27 breaking10 new APIs and options3 behavior and defaults2 tooling18 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

react-dropzone 208 changes

Breaking changes 1

  • Node.js 20 is no longer supported; the minimum supported Node.js version is now 22.

    20.0.0release notes

New APIs and options 2

  • Adds file removal and selection clearing.

    20.2.0release notes

  • Exposes rejected files from drag operations so applications can access and handle drag file rejections.

    20.1.0release notes

Fixes and other changes 5

  • The root receives aria-disabled only when its role is non-presentational.

    20.2.1release notes

  • getInputProps now passes disabled to the input props.

    20.2.1release notes

  • The hidden file input no longer widens its parent in Safari.

    20.1.4release notes

  • In-flight processing is aborted when the dropzone unmounts, preventing processing from continuing after unmount.

    20.1.3release notes

  • Empty validator error arrays are now accepted.

    20.1.2release notes

react-dropzone 197 changes

Breaking changes 1

  • acceptedFiles and onDropAccepted now return files within the limit instead of rejecting the entire batch.

    19.0.0release notes

New APIs and options 2

  • MIME types can now be grouped in the accept configuration.

    19.3.0release notes

  • Adds paste-to-upload support, allowing developers to handle uploaded files pasted into the dropzone.

    19.2.0release notes

Behavior and default changes 1

  • Validators can now be asynchronous, allowing validation logic that awaits results.

    19.1.0release notes

Fixes and other changes 3

  • Drops on the dropzone are ignored while the file dialog is open.

    19.1.1release notes

  • Dragged files are detected via items kind when the drag event types omit Files.

    19.0.2release notes

  • The file input is hidden in-flow to prevent scroll jumps for users interacting with the dropzone.

    19.0.1release notes

react-dropzone 1813 changes

Breaking changes 3

  • The validator is skipped during drag, changing when validation logic runs.

    18.3.0release notes

  • FileWithPath now requires path or relativePath, so plain File is no longer assignable; type onDrop handlers as File[].

    18.0.0release notes

  • The full extension-to-MIME table is no longer bundled; pass COMMON_MIME_TYPES from file-selector/mime to restore it.

    18.0.0release notes

New APIs and options 2

  • Adds isDragUnknown state so developers can detect when the drag state is unknown.

    18.3.0release notes

  • Adds a prop to override file rejection messages.

    18.2.0release notes

Behavior and default changes 1

  • File size errors are formatted using human-readable units, making rejection messages easier for developers and users to understand.

    18.1.0release notes

Tooling 1

  • @types/react is added as an optional peer dependency for projects needing React type definitions.

    18.0.2release notes

Fixes and other changes 6

  • Prevents the browser from opening files dropped on disabled or noDrag dropzones.

    18.2.2release notes

  • Falls back to the native input when the file picker is blocked.

    18.2.1release notes

  • The root receives aria-disabled when the dropzone is disabled, improving accessibility semantics.

    18.0.2release notes

  • Drop callback event types remain event-shaped, improving type accuracy for callback consumers.

    18.0.2release notes

  • The hidden file input is labeled, improving its accessibility.

    18.0.2release notes

  • Extensions are now enforced when paired with wildcard MIME types in the accept configuration.

    18.0.1release notes

react-dropzone 174 changes

Breaking changes 3

  • defaultProps are removed and replaced by default parameter values.

    17.0.0release notes

  • prop-types support is removed in favor of TypeScript types.

    17.0.0release notes

  • The package now requires React 18 or newer.

    17.0.0release notes

Tooling 1

  • Hand-written typings are replaced by declarations generated from the source.

    17.0.0release notes

react-dropzone 164 changes

Breaking changes 4

  • The dist/es/ output path is removed, requiring consumers of old deep-import paths to migrate.

    16.0.0release notes

  • The package now uses an exports map with ESM and CJS entry points.

    16.0.0release notes

  • Building the package now requires Node 20 or newer.

    16.0.0release notes

  • The UMD build is removed, so CDN and script-tag consumers must migrate.

    16.0.0release notes

react-dropzone 151 changes

Breaking changes 1

  • isDragReject now reflects only active drag state and clears after drop; use fileRejections or onDropRejected/onDrop for post-drop rejection UI.

    15.0.0release notes

react-dropzone 147 changes

Breaking changes 2

  • The accept/reject state is computed only on drag enter and drop.

    14.0.0release notes

  • Removes the draggedFiles prop from the returned hook state.

    14.0.0release notes

New APIs and options 1

  • Adds state for detecting drag activity at the document level.

    14.4.0release notes

Fixes and other changes 4

  • Prevents the tarball from being included in the published package, avoiding unintended package contents for users.

    14.4.1release notes

  • The dragLeave filter logic is corrected.

    14.4.0release notes

  • Files with an empty type are now accepted during drag events.

    14.4.0release notes

  • Adds support for React 18.

    14.0.0release notes

react-dropzone 132 changes

Breaking changes 1

  • Now requires an object instead of a string or array of strings, and allows file extensions to be passed to the file picker options.

    13.0.0release notes

New APIs and options 1

react-dropzone 122 changes

Breaking changes 1

  • The accept attribute no longer works with file extensions.

    12.0.0release notes

Behavior and default changes 1

  • The file system access API is enabled by default.

    12.0.0release notes

react-dropzone 115 changes

Breaking changes 3

  • The second callback argument is now an array of FileRejection objects, providing reasons why files were rejected.

    11.0.0release notes

  • The first callback argument is now an array of FileRejection objects, providing reasons why files were rejected.

    11.0.0release notes

  • The return value now uses fileRejections instead of rejectedFiles.

    11.0.0release notes

New APIs and options 2

  • Introduces a type describing an error with a message and code.

    11.0.0release notes

  • Introduces a type describing a rejected file and its errors.

    11.0.0release notes

react-dropzone 102 changes

Breaking changes 2

  • The property getDataTransferItems was renamed to getFilesFromEvent.

    10.0.0release notes

  • React >= 16.8 is required to use this release.

    10.0.0release notes

react-dropzone 91 changes

Breaking changes 1

  • The deprecated prop was removed. To prevent the default click behavior, use an onClick handler that calls preventDefault().

    9.0.0release notes

react-dropzone 81 changes

Breaking changes 1

  • Dropzone is now headless and requires a rendering function, provided as children or a prop.

    8.0.0release notes

react-dropzone 71 changes

Breaking changes 1

  • The preview field was removed from File to avoid possible memory leaks; create previews in onDrop() with URL.createObjectURL() and revoke them when done.

    7.0.0release notes

react-dropzone 61 changes

Breaking changes 1

  • Drag callbacks are no longer executed for non-file items; react-dropzone ignores items that aren't of type File.

    6.0.0release notes

react-dropzone 51 changes

Breaking changes 1

  • All files are rejected in a single file drop, changing the behavior relied on by some applications.

    5.0.0release notes