@uppy/react
Advanced tools
Comparing version 3.0.2 to 3.1.0
# @uppy/react | ||
## 3.1.0 | ||
Released: 2023-01-26 | ||
Included in: Uppy v3.4.0 | ||
- @uppy/react: deprecate `useUppy` (Merlijn Vos / #4223) | ||
## 3.0.2 | ||
@@ -4,0 +11,0 @@ |
import { useEffect, useRef } from 'react'; | ||
import { Uppy as UppyCore } from '@uppy/core'; | ||
/** | ||
* @deprecated Initialize Uppy outside of the component. | ||
*/ | ||
export default function useUppy(factory) { | ||
@@ -4,0 +8,0 @@ if (typeof factory !== 'function') { |
{ | ||
"name": "@uppy/react", | ||
"description": "React component wrappers around Uppy's official UI plugins.", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"license": "MIT", | ||
@@ -25,3 +25,3 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@uppy/utils": "^5.0.2", | ||
"@uppy/utils": "^5.1.2", | ||
"prop-types": "^15.6.1" | ||
@@ -34,4 +34,4 @@ }, | ||
"peerDependencies": { | ||
"@uppy/core": "^3.0.2", | ||
"@uppy/dashboard": "^3.1.0", | ||
"@uppy/core": "^3.0.5", | ||
"@uppy/dashboard": "^3.2.1", | ||
"@uppy/drag-drop": "^3.0.1", | ||
@@ -38,0 +38,0 @@ "@uppy/file-input": "^3.0.1", |
import type Uppy from '@uppy/core' | ||
/** | ||
* @deprecated Initialize Uppy outside of the component. | ||
*/ | ||
declare function useUppy(factory: () => Uppy): Uppy | ||
export default useUppy |
import { useEffect, useRef } from 'react' | ||
import { Uppy as UppyCore } from '@uppy/core' | ||
/** | ||
* @deprecated Initialize Uppy outside of the component. | ||
*/ | ||
export default function useUppy (factory) { | ||
@@ -5,0 +8,0 @@ if (typeof factory !== 'function') { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
115522
1882
Updated@uppy/utils@^5.1.2