Skip to content

Commit d07f68b

Browse files
committed
chore: update @rc-component/upload"
1 parent 02ea32a commit d07f68b

File tree

12 files changed

+290
-302
lines changed

12 files changed

+290
-302
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ coverage
2828
yarn.lock
2929
es
3030
package-lock.json
31+
pnpm-lock.yaml
3132
tmp/
3233
.history
3334
.storybook

docs/examples/beforeUpload.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint no-console:0 */
22

3-
import { Action } from '@/interface';
3+
import type { Action } from '@/interface';
44
import Upload from 'rc-upload';
55

66
const props = {

docs/examples/customRequest.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import React from 'react';
33
import axios from 'axios';
44
import Upload from 'rc-upload';
5-
import { UploadRequestOption } from '@/interface';
5+
import type { UploadRequestOption } from '@/interface';
66

77
const uploadProps = {
88
action: '/upload.do',

package.json

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "rc-upload",
3-
"version": "4.8.1",
2+
"name": "@rc-component/upload",
3+
"version": "1.0.0",
44
"description": "upload ui component for react",
55
"keywords": [
66
"react",
@@ -38,16 +38,18 @@
3838
},
3939
"dependencies": {
4040
"@babel/runtime": "^7.18.3",
41-
"classnames": "^2.2.5",
42-
"rc-util": "^5.2.0"
41+
"@rc-component/util": "^1.2.0",
42+
"classnames": "^2.2.5"
4343
},
4444
"devDependencies": {
4545
"@rc-component/father-plugin": "^1.0.0",
4646
"@testing-library/jest-dom": "^6.1.5",
4747
"@testing-library/react": "^14.1.2",
4848
"@types/jest": "^29.5.11",
49-
"@types/react": "^18.0.0",
50-
"@types/react-dom": "^18.0.0",
49+
"@types/node": "^22.12.0",
50+
"@types/react": "^19.0.8",
51+
"@types/react-dom": "^19.0.3",
52+
"@types/sinon": "^17.0.3",
5153
"@umijs/fabric": "^4.0.1",
5254
"axios": "^1.7.2",
5355
"co-busboy": "^1.3.0",
@@ -61,15 +63,11 @@
6163
"np": "^10.0.7",
6264
"raf": "^3.4.0",
6365
"rc-test": "^7.0.13",
64-
"react": "^18.0.0",
65-
"react-dom": "^18.0.0",
66+
"react": "^19.0.0",
67+
"react-dom": "^19.0.0",
6668
"regenerator-runtime": "^0.14.1",
6769
"sinon": "^9.0.2",
6870
"typescript": "^5.3.3",
6971
"vinyl-fs": "^3.0.3"
70-
},
71-
"peerDependencies": {
72-
"react": ">=16.9.0",
73-
"react-dom": ">=16.9.0"
7472
}
7573
}

0 commit comments

Comments
 (0)