react-dropzone 14.2.6 → 14.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CONTRIBUTING.md CHANGED
@@ -88,29 +88,31 @@ Enhancement suggestions are tracked as [GitHub issues](/issues). If you have a s
88
88
 
89
89
  ### Your First Code Contribution
90
90
 
91
+ Make sure your node version is at least 18, then:
92
+
91
93
  1. Fork this repo
92
- 1. Clone your fork:
94
+ 2. Clone your fork:
93
95
  ```bash
94
96
  git clone https://github.com/myusername/react-dropzone.git
95
97
  ```
96
- 2. Install system dependencies (needed for local development):
98
+ 3. Install system dependencies (needed for local development):
97
99
  ```bash
98
100
  # macOS
99
101
  brew install libpng libimagequant
100
102
  # Linux
101
103
  sudo apt-get install -y libpng-dev libimagequant-dev
102
104
  ```
103
- 3. Install project dependencies:
105
+ 4. Install project dependencies:
104
106
  ```bash
105
107
  yarn install
106
108
  ```
107
- 4. Create a new branch:
109
+ 5. Create a new branch:
108
110
  ```bash
109
111
  git checkout -b fix/fix-some-bug
110
112
  ```
111
- 5. Start hacking
112
- 6. Commit and push your code
113
- 7. Make a PR
113
+ 6. Start hacking
114
+ 7. Commit and push your code
115
+ 8. Make a PR
114
116
 
115
117
  **NOTE** If you're using Apple silicon, you'll need to install Rosetta 2 (see [imagemin/pngquant-bin#121](https://github.com/imagemin/pngquant-bin/issues/121) and [SO](https://stackoverflow.com/a/66662497/1092007)):
116
118
  ```bash
@@ -67,7 +67,7 @@ function Previews(props) {
67
67
  useEffect(() => {
68
68
  // Make sure to revoke the data uris to avoid memory leaks, will run on unmount
69
69
  return () => files.forEach(file => URL.revokeObjectURL(file.preview));
70
- }, []);
70
+ }, [files]);
71
71
 
72
72
  return (
73
73
  <section className="container">
package/package.json CHANGED
@@ -6,7 +6,15 @@
6
6
  "exports": {
7
7
  ".": {
8
8
  "import": "./dist/es/index.js",
9
- "require": "./dist/index.js"
9
+ "require": "./dist/index.js",
10
+ "types": "./typings/react-dropzone.d.ts"
11
+ }
12
+ },
13
+ "typesVersions": {
14
+ "*": {
15
+ ".": [
16
+ "./typings/react-dropzone.d.ts"
17
+ ]
10
18
  }
11
19
  },
12
20
  "sideEffects": false,
@@ -177,9 +185,9 @@
177
185
  "webpack-blocks": "^2.1.0"
178
186
  },
179
187
  "typings": "typings/react-dropzone.d.ts",
180
- "version": "14.2.6",
188
+ "version": "14.2.8",
181
189
  "engines": {
182
- "node": ">= 20.17"
190
+ "node": ">= 10.13"
183
191
  },
184
192
  "browserslist": [
185
193
  "defaults"