Skip to content

Commit 0fd5d8f

Browse files
authored
chore: bump uploader (#93)
* chore: bump uploader * chore: add demo test page * chore: bump biome version & fix warnings * chore: update lockfile * chore: bump ci node version * chore: try to fix ci * chore: fix types * chore: update css import * chore: use release version * chore: improve demo --------- Co-authored-by: nd0ut <nd0ut@users.noreply.github.com>
1 parent 4a26a70 commit 0fd5d8f

31 files changed

+2976
-2501
lines changed

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- uses: actions/setup-node@v4
1515
with:
16-
node-version: "20"
16+
node-version: "22"
1717
- name: Install dependencies
1818
working-directory: ./
1919
run: npm i

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ We provide a full set of props that are used in File Uploader. For review we sug
5454

5555
For convenience, we provide the ability to access the File Uploader API using `apiRef`.
5656
You can see what methods are available in `apiRef` in the [documentation][uc-docs-file-uploader-api].
57-
It is important to note that we now pass all InstanceType from UploadCtxProvider.
5857

5958
```jsx
6059
import React, {useRef, useEffect} from "react";
@@ -65,7 +64,7 @@ import {
6564
import "@uploadcare/react-uploader/core.css";
6665

6766
const Example = () => {
68-
const uploaderRef = useRef<InstanceType<UploadCtxProvider> | null>(null);
67+
const uploaderRef = useRef<UploadCtxProvider | null>(null);
6968

7069
<FileUploaderRegular apiRef={uploaderRef} pubkey="YOUR_PUBLIC_KEY"/>;
7170
}
@@ -155,4 +154,4 @@ request at [hello@uploadcare.com][uc-email-hello].
155154

156155
[uc-docs-events]: https://uploadcare.com/docs/file-uploader/events/
157156
[uc-docs-file-uploader-api]: https://uploadcare.com/docs/file-uploader/api
158-
[uc-docs-file-uploader-options]: https://uploadcare.com/docs/file-uploader/options/
157+
[uc-docs-file-uploader-options]: https://uploadcare.com/docs/file-uploader/options/

biome.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.6.4/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
2+
"$schema": "https://biomejs.dev/schemas/2.2.6/schema.json",
3+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
64
"linter": {
75
"enabled": true,
86
"rules": {
97
"recommended": true
108
},
11-
"ignore": ["./.nx", "node_modules/", "dist/"]
9+
"includes": ["**", "!.nx", "!**/node_modules/**", "!**/dist/**"]
1210
},
1311
"formatter": {
1412
"indentStyle": "space",
1513
"enabled": true,
1614
"lineWidth": 80
15+
},
16+
"javascript": {
17+
"jsxRuntime": "reactClassic"
1718
}
1819
}

lerna.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
"version": {
66
"createRelease": "github",
77
"conventionalCommits": true,
8-
"allowBranch": [
9-
"main",
10-
"release"
11-
],
8+
"allowBranch": ["main", "release"],
129
"message": "chore(release): publish"
1310
}
1411
}
15-
}
12+
}

nx.json

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,19 @@
22
"targetDefaults": {
33
"dev": {
44
"cache": true,
5-
"dependsOn": [
6-
"^dev"
7-
]
5+
"dependsOn": ["^dev"]
86
},
97
"build": {
108
"cache": true,
11-
"dependsOn": [
12-
"^build"
13-
]
9+
"dependsOn": ["^build"]
1410
},
1511
"preview": {
1612
"dependsOn": []
1713
}
1814
},
1915
"namedInputs": {
20-
"default": [
21-
"{projectRoot}/**/*",
22-
"sharedGlobals"
23-
],
16+
"default": ["{projectRoot}/**/*", "sharedGlobals"],
2417
"sharedGlobals": [],
25-
"production": [
26-
"default"
27-
]
18+
"production": ["default"]
2819
}
29-
}
20+
}

0 commit comments

Comments
 (0)