Upgrading react-dropzone 12 to 13
Breaking12.1.0 → 13.0.0Breaking1New2
BreakingUpgrade verdict
1 breaking change.
In plain terms
- The way you tell the dropzone which file types to accept has changed: you now group extensions under a MIME type instead of listing them as a string or array.
Must act 1 item needs code or config changes
What you must change
Breaking1
The accept prop now requires an object instead of a string or array of strings.
acceptuseDropzoneAPI changes
Generated by DepDelta from published .d.ts files. Not mixed with prose notes.
- changed:
type DropzoneOptions = Pick<React.HTMLProps<HTMLElement>, PropTypes> & { accept?: string | string[]; minSize?: number; maxSize?: number; maxFiles?: number; preventDropOnDocument?: bo… → type DropzoneOptions = Pick<React.HTMLProps<HTMLElement>, PropTypes> & { accept?: Accept; minSize?: number; maxSize?: number; maxFiles?: number; preventDropOnDocument?: boolean; noCl… - added:
index Accept[key: string]: string[] - added:
interface Accept