Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: uppy@4.0.0-beta.7 #5162

Merged
merged 9 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BUNDLE-README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Hi, thanks for trying out the bundled version of the Uppy File Uploader. You can
use this from a CDN
(`<script src="https://releases.transloadit.com/uppy/v4.0.0-beta.6/uppy.min.js"></script>`)
(`<script src="https://releases.transloadit.com/uppy/v4.0.0-beta.7/uppy.min.js"></script>`)
or bundle it with your webapp.

Note that the recommended way to use Uppy is to install it with yarn/npm and use
Expand Down
37 changes: 37 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@ Please add your entries in this format:

In the current stage we aim to release a new version at least every month.

## 4.0.0-beta.7

Released: 2024-05-14

| Package | Version | Package | Version |
| ---------------------- | ------------ | ---------------------- | ------------ |
| @uppy/companion | 5.0.0-beta.6 | @uppy/status-bar | 4.0.0-beta.7 |
| @uppy/companion-client | 4.0.0-beta.6 | @uppy/unsplash | 4.0.0-beta.6 |
| @uppy/compressor | 2.0.0-beta.7 | @uppy/url | 4.0.0-beta.6 |
| @uppy/core | 4.0.0-beta.7 | @uppy/utils | 6.0.0-beta.6 |
| @uppy/dashboard | 4.0.0-beta.7 | @uppy/webcam | 4.0.0-beta.6 |
| @uppy/dropbox | 4.0.0-beta.6 | @uppy/xhr-upload | 4.0.0-beta.4 |
| @uppy/image-editor | 3.0.0-beta.4 | uppy | 4.0.0-beta.7 |
| @uppy/screen-capture | 4.0.0-beta.5 | | |

- @uppy/companion: switch from `node-redis` to `ioredis` (Dominik Schmidt / #4623)
- meta: Fix headings in xhr.mdx (Merlijn Vos)
- @uppy/xhr-upload: introduce hooks similar to tus (Merlijn Vos / #5094)
- @uppy/core: close->destroy, clearUploadedFiles->clear (Merlijn Vos / #5154)
- @uppy/companion-client,@uppy/dropbox,@uppy/screen-capture,@uppy/unsplash,@uppy/url,@uppy/webcam: Use `title` consistently from locales (Merlijn Vos / #5134)


## 4.0.0-beta.6

Released: 2024-05-08
Expand Down Expand Up @@ -287,6 +309,21 @@ Released: 2024-03-28
- @uppy/vue: [v4.x] remove manual types (Antoine du Hamel / #4803)
- meta: prepare release workflow for beta versions (Antoine du Hamel)

## 3.25.3

Released: 2024-05-14

| Package | Version | Package | Version |
| ------------------ | ------- | ------------------ | ------- |
| @uppy/core | 3.11.3 | uppy | 3.25.3 |
| @uppy/image-editor | 2.4.6 | | |

- @uppy/image-editor: fix tooltips (Avneet Singh Malhotra / #5156)
- meta: Remove redundant `plugins` prop from examples (Merlijn Vos / #5145)
- @uppy/image-editor: Remove `target` option from examples and document consistently (Merlijn Vos / #5146)
- @uppy/core: make getObjectOfFilesPerState more efficient (Merlijn Vos / #5155)


## 3.25.2

Released: 2024-05-07
Expand Down
81 changes: 61 additions & 20 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/framework-integrations/react.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ function Component() {
// IMPORTANT: passing an initializer function to prevent Uppy from being reinstantiated on every render.
const [uppy] = useState(() => new Uppy().use(Webcam));

return <Dashboard uppy={uppy} plugins={['Webcam']} />;
return <Dashboard uppy={uppy} />;
}
```

Expand Down Expand Up @@ -175,7 +175,7 @@ function Component(props) {
uppy.getPlugin('Webcam').setOptions({ modes: props.webcamModes });
}, [props.webcamModes]);

return <Dashboard uppy={uppy} plugins={['Webcam']} />;
return <Dashboard uppy={uppy} />;
}
```

Expand Down
4 changes: 2 additions & 2 deletions docs/framework-integrations/svelte.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ instance can be passed into components as an `uppy` prop. Due to the way Svelte
handles reactivity, you can initialize Uppy the same way you would with vanilla
JavaScript.

```html
```svelte
<script>
import { Dashboard } from '@uppy/svelte';
import Uppy from '@uppy/core';
Expand All @@ -64,7 +64,7 @@ JavaScript.
const uppy = new Uppy().use(Webcam);
</script>

<main><Dashboard uppy={uppy} plugins={["Webcam"]} /></main>
<main><Dashboard uppy={uppy} /></main>
```

[svelte]: https://svelte.dev
2 changes: 1 addition & 1 deletion docs/framework-integrations/vue.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ JavaScript.
</script>

<template>
<Dashboard :uppy="uppy" :plugins="['Webcam']" />
<Dashboard :uppy="uppy" />
</template>
```

Expand Down
6 changes: 2 additions & 4 deletions docs/guides/migration-guides.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,14 @@ new Uppy()
companionAllowedHosts: COMPANION_ALLOWED_HOSTS,
})
.use(Webcam, {
target: Dashboard,
showVideoSourceDropdown: true,
showRecordingLength: true,
})
.use(Audio, {
target: Dashboard,
showRecordingLength: true,
})
.use(ScreenCapture, { target: Dashboard })
.use(ImageEditor, { target: Dashboard })
.use(ScreenCapture)
.use(ImageEditor)
.use(Transloadit, {
service: 'https://api2.transloadit.com',
async getAssemblyOptions(file) {
Expand Down
3 changes: 2 additions & 1 deletion docs/presets/remote-sources.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ default: `same-origin`).
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string`, `Element`, `Function`, or `UIPlugin`, default: `Dashboard`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

[`request.credentials` value]:
https://developer.mozilla.org/en-US/docs/Web/API/Request/credentials
11 changes: 5 additions & 6 deletions docs/sources/audio.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ yarn add @uppy/audio
import { Uppy, Dashboard, Audio } from "{{UPPY_JS_URL}}"
const uppy = new Uppy()
uppy.use(Dashboard, { inline: true, target: 'body' })
uppy.use(Audio, { target: Uppy.Dashboard })
uppy.use(Audio)
`}
</UppyCdnExample>
</TabItem>
Expand All @@ -67,9 +67,7 @@ import '@uppy/core/dist/style.min.css';
import '@uppy/dashboard/dist/style.min.css';
import '@uppy/audio/dist/style.min.css';

new Uppy()
.use(Dashboard, { inline: true, target: 'body' })
.use(Audio, { target: Dashboard });
new Uppy().use(Dashboard, { inline: true, target: 'body' }).use(Audio);
```

### API
Expand All @@ -87,8 +85,9 @@ Configures the title / name shown in the UI, for instance, on Dashboard tabs

#### `target`

DOM element, CSS selector, or plugin to place the audio into (`string` or
`Element`, default: `null`).
DOM element, CSS selector, or plugin to place the drag and drop area into
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `showAudioSourceDropdown`

Expand Down
10 changes: 5 additions & 5 deletions docs/sources/companion-plugins/box.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ import Box from '@uppy/box';
import '@uppy/core/dist/style.min.css';
import '@uppy/dashboard/dist/style.min.css';

new Uppy().use(Dashboard, { inline: true, target: '#dashboard' }).use(Box, {
target: Dashboard,
companionUrl: 'https://your-companion.com',
});
new Uppy()
.use(Dashboard, { inline: true, target: '#dashboard' })
.use(Box, { companionUrl: 'https://your-companion.com' });
```

### Use in Companion
Expand Down Expand Up @@ -150,7 +149,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default:
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string` or `Element`, default: `null`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `companionUrl`

Expand Down
10 changes: 5 additions & 5 deletions docs/sources/companion-plugins/dropbox.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ import Dropbox from '@uppy/dropbox';
import '@uppy/core/dist/style.min.css';
import '@uppy/dashboard/dist/style.min.css';

new Uppy().use(Dashboard, { inline: true, target: '#dashboard' }).use(Dropbox, {
target: Dashboard,
companionUrl: 'https://your-companion.com',
});
new Uppy()
.use(Dashboard, { inline: true, target: '#dashboard' })
.use(Dropbox, { companionUrl: 'https://your-companion.com' });
```

### Use in Companion
Expand Down Expand Up @@ -149,7 +148,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default:
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string` or `Element`, default: `null`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `companionUrl`

Expand Down
8 changes: 3 additions & 5 deletions docs/sources/companion-plugins/facebook.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css';

new Uppy()
.use(Dashboard, { inline: true, target: '#dashboard' })
.use(Facebook, {
target: Dashboard,
companionUrl: 'https://your-companion.com',
});
.use(Facebook, { companionUrl: 'https://your-companion.com' });
```

### Use in Companion
Expand Down Expand Up @@ -148,7 +145,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default:
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string` or `Element`, default: `null`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `companionUrl`

Expand Down
8 changes: 3 additions & 5 deletions docs/sources/companion-plugins/google-drive.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css';

new Uppy()
.use(Dashboard, { inline: true, target: '#dashboard' })
.use(GoogleDrive, {
target: Dashboard,
companionUrl: 'https://your-companion.com',
});
.use(GoogleDrive, { companionUrl: 'https://your-companion.com' });
```

### Use in Companion
Expand Down Expand Up @@ -152,7 +149,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default:
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string` or `Element`, default: `null`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `companionUrl`

Expand Down
8 changes: 3 additions & 5 deletions docs/sources/companion-plugins/instagram.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css';

new Uppy()
.use(Dashboard, { inline: true, target: '#dashboard' })
.use(Instagram, {
target: Dashboard,
companionUrl: 'https://your-companion.com',
});
.use(Instagram, { companionUrl: 'https://your-companion.com' });
```

### Use in Companion
Expand Down Expand Up @@ -142,7 +139,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default:
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string` or `Element`, default: `null`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `companionUrl`

Expand Down
8 changes: 3 additions & 5 deletions docs/sources/companion-plugins/onedrive.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css';

new Uppy()
.use(Dashboard, { inline: true, target: '#dashboard' })
.use(OneDrive, {
target: Dashboard,
companionUrl: 'https://your-companion.com',
});
.use(OneDrive, { companionUrl: 'https://your-companion.com' });
```

### Use in Companion
Expand Down Expand Up @@ -142,7 +139,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default:
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string` or `Element`, default: `null`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `companionUrl`

Expand Down
8 changes: 3 additions & 5 deletions docs/sources/companion-plugins/unsplash.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ import '@uppy/dashboard/dist/style.min.css';

new Uppy()
.use(Dashboard, { inline: true, target: '#dashboard' })
.use(Unsplash, {
target: Dashboard,
companionUrl: 'https://your-companion.com',
});
.use(Unsplash, { companionUrl: 'https://your-companion.com' });
```

### Use in Companion
Expand Down Expand Up @@ -127,7 +124,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default:
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string` or `Element`, default: `null`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `companionUrl`

Expand Down
10 changes: 5 additions & 5 deletions docs/sources/companion-plugins/url.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,9 @@ import Url from '@uppy/url';
import '@uppy/core/dist/style.min.css';
import '@uppy/dashboard/dist/style.min.css';

new Uppy().use(Dashboard, { inline: true, target: '#dashboard' }).use(Url, {
target: Dashboard,
companionUrl: 'https://your-companion.com',
});
new Uppy()
.use(Dashboard, { inline: true, target: '#dashboard' })
.use(Url, { companionUrl: 'https://your-companion.com' });
```

### Use in Companion
Expand All @@ -110,7 +109,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default:
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string` or `Element`, default: `null`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `companionUrl`

Expand Down
10 changes: 5 additions & 5 deletions docs/sources/companion-plugins/zoom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ import Zoom from '@uppy/zoom';
import '@uppy/core/dist/style.min.css';
import '@uppy/dashboard/dist/style.min.css';

new Uppy().use(Dashboard, { inline: true, target: '#dashboard' }).use(Zoom, {
target: Dashboard,
companionUrl: 'https://your-companion.com',
});
new Uppy()
.use(Dashboard, { inline: true, target: '#dashboard' })
.use(Zoom, { companionUrl: 'https://your-companion.com' });
```

### Use in Companion
Expand Down Expand Up @@ -121,7 +120,8 @@ Title / name shown in the UI, such as Dashboard tabs (`string`, default:
#### `target`

DOM element, CSS selector, or plugin to place the drag and drop area into
(`string` or `Element`, default: `null`).
(`string`, `Element`, `Function`, or `UIPlugin`, default:
[`Dashboard`](/docs/dashboard)).

#### `companionUrl`

Expand Down
Loading