Skip to content

Commit 0570f5c

Browse files
committed
Upgrade to Node 18
1 parent ed61e7f commit 0570f5c

File tree

4 files changed

+13070
-32
lines changed

4 files changed

+13070
-32
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: "Install node & npm"
2121
uses: actions/setup-node@v1
2222
with:
23-
node-version: 12.x
23+
node-version: 18.x
2424

2525
- name: "Install repository dependencies"
2626
run: npm ci
@@ -40,6 +40,7 @@ jobs:
4040
AWS_EC2_METADATA_DISABLED: true
4141
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Automatically generated by GitHub / is not in our secrets.
4242
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
43+
NODE_OPTIONS: --openssl-legacy-provider
4344
run: |
4445
npm set //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
4546
npm run publish:executeIfReleaseCommit

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ yarn add react-uploader
9393
Or via a `<script>` tag:
9494

9595
```html
96-
<script src="https://js.upload.io/react-uploader/v1"></script>
96+
<script src="https://js.upload.io/react-uploader/v2"></script>
9797
```
9898

9999
# Usage
@@ -171,6 +171,7 @@ The callbacks receive a `Array<UploaderResult>`:
171171
```javascript
172172
{
173173
fileUrl: "https://upcdn.io/FW25...", // URL to use when serving this file.
174+
filePath: "/uploads/example.jpg", // File path (we recommend saving this to your database).
174175

175176
editedFile: undefined, // Edited file (for image crops). Same structure as below.
176177

0 commit comments

Comments
 (0)